@robota-sdk/agent-cli 3.0.0-beta.28 → 3.0.0-beta.29
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/dist/node/bin.cjs
CHANGED
|
@@ -1976,42 +1976,10 @@ function renderApp(options) {
|
|
|
1976
1976
|
`);
|
|
1977
1977
|
}
|
|
1978
1978
|
});
|
|
1979
|
-
let lastFrame = "";
|
|
1980
|
-
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1981
|
-
const MIN_FRAME_LENGTH = 50;
|
|
1982
|
-
process.stdout.write = (chunk, ...args) => {
|
|
1983
|
-
if (typeof chunk === "string" && chunk.length > MIN_FRAME_LENGTH) {
|
|
1984
|
-
lastFrame = chunk;
|
|
1985
|
-
}
|
|
1986
|
-
return originalWrite(chunk, ...args);
|
|
1987
|
-
};
|
|
1988
|
-
originalWrite("\x1B[?1049h");
|
|
1989
|
-
let altScreenExited = false;
|
|
1990
|
-
const leaveAltScreen = () => {
|
|
1991
|
-
if (altScreenExited) return;
|
|
1992
|
-
altScreenExited = true;
|
|
1993
|
-
process.stdout.write = originalWrite;
|
|
1994
|
-
originalWrite("\x1B[?1049l");
|
|
1995
|
-
if (lastFrame) {
|
|
1996
|
-
originalWrite(lastFrame);
|
|
1997
|
-
}
|
|
1998
|
-
};
|
|
1999
|
-
process.on("exit", leaveAltScreen);
|
|
2000
|
-
process.on("SIGINT", () => {
|
|
2001
|
-
leaveAltScreen();
|
|
2002
|
-
process.exit(0);
|
|
2003
|
-
});
|
|
2004
|
-
process.on("SIGTERM", () => {
|
|
2005
|
-
leaveAltScreen();
|
|
2006
|
-
process.exit(0);
|
|
2007
|
-
});
|
|
2008
1979
|
const instance = (0, import_ink11.render)(/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(App, { ...options }), {
|
|
2009
|
-
exitOnCtrlC:
|
|
1980
|
+
exitOnCtrlC: true
|
|
2010
1981
|
});
|
|
2011
|
-
instance.waitUntilExit().
|
|
2012
|
-
leaveAltScreen();
|
|
2013
|
-
}).catch((err) => {
|
|
2014
|
-
leaveAltScreen();
|
|
1982
|
+
instance.waitUntilExit().catch((err) => {
|
|
2015
1983
|
if (err) {
|
|
2016
1984
|
process.stderr.write(`
|
|
2017
1985
|
[EXIT ERROR] ${err}
|
package/dist/node/bin.js
CHANGED
|
@@ -1964,42 +1964,10 @@ function renderApp(options) {
|
|
|
1964
1964
|
`);
|
|
1965
1965
|
}
|
|
1966
1966
|
});
|
|
1967
|
-
let lastFrame = "";
|
|
1968
|
-
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1969
|
-
const MIN_FRAME_LENGTH = 50;
|
|
1970
|
-
process.stdout.write = (chunk, ...args) => {
|
|
1971
|
-
if (typeof chunk === "string" && chunk.length > MIN_FRAME_LENGTH) {
|
|
1972
|
-
lastFrame = chunk;
|
|
1973
|
-
}
|
|
1974
|
-
return originalWrite(chunk, ...args);
|
|
1975
|
-
};
|
|
1976
|
-
originalWrite("\x1B[?1049h");
|
|
1977
|
-
let altScreenExited = false;
|
|
1978
|
-
const leaveAltScreen = () => {
|
|
1979
|
-
if (altScreenExited) return;
|
|
1980
|
-
altScreenExited = true;
|
|
1981
|
-
process.stdout.write = originalWrite;
|
|
1982
|
-
originalWrite("\x1B[?1049l");
|
|
1983
|
-
if (lastFrame) {
|
|
1984
|
-
originalWrite(lastFrame);
|
|
1985
|
-
}
|
|
1986
|
-
};
|
|
1987
|
-
process.on("exit", leaveAltScreen);
|
|
1988
|
-
process.on("SIGINT", () => {
|
|
1989
|
-
leaveAltScreen();
|
|
1990
|
-
process.exit(0);
|
|
1991
|
-
});
|
|
1992
|
-
process.on("SIGTERM", () => {
|
|
1993
|
-
leaveAltScreen();
|
|
1994
|
-
process.exit(0);
|
|
1995
|
-
});
|
|
1996
1967
|
const instance = render(/* @__PURE__ */ jsx11(App, { ...options }), {
|
|
1997
|
-
exitOnCtrlC:
|
|
1968
|
+
exitOnCtrlC: true
|
|
1998
1969
|
});
|
|
1999
|
-
instance.waitUntilExit().
|
|
2000
|
-
leaveAltScreen();
|
|
2001
|
-
}).catch((err) => {
|
|
2002
|
-
leaveAltScreen();
|
|
1970
|
+
instance.waitUntilExit().catch((err) => {
|
|
2003
1971
|
if (err) {
|
|
2004
1972
|
process.stderr.write(`
|
|
2005
1973
|
[EXIT ERROR] ${err}
|
package/dist/node/index.cjs
CHANGED
|
@@ -1992,42 +1992,10 @@ function renderApp(options) {
|
|
|
1992
1992
|
`);
|
|
1993
1993
|
}
|
|
1994
1994
|
});
|
|
1995
|
-
let lastFrame = "";
|
|
1996
|
-
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1997
|
-
const MIN_FRAME_LENGTH = 50;
|
|
1998
|
-
process.stdout.write = (chunk, ...args) => {
|
|
1999
|
-
if (typeof chunk === "string" && chunk.length > MIN_FRAME_LENGTH) {
|
|
2000
|
-
lastFrame = chunk;
|
|
2001
|
-
}
|
|
2002
|
-
return originalWrite(chunk, ...args);
|
|
2003
|
-
};
|
|
2004
|
-
originalWrite("\x1B[?1049h");
|
|
2005
|
-
let altScreenExited = false;
|
|
2006
|
-
const leaveAltScreen = () => {
|
|
2007
|
-
if (altScreenExited) return;
|
|
2008
|
-
altScreenExited = true;
|
|
2009
|
-
process.stdout.write = originalWrite;
|
|
2010
|
-
originalWrite("\x1B[?1049l");
|
|
2011
|
-
if (lastFrame) {
|
|
2012
|
-
originalWrite(lastFrame);
|
|
2013
|
-
}
|
|
2014
|
-
};
|
|
2015
|
-
process.on("exit", leaveAltScreen);
|
|
2016
|
-
process.on("SIGINT", () => {
|
|
2017
|
-
leaveAltScreen();
|
|
2018
|
-
process.exit(0);
|
|
2019
|
-
});
|
|
2020
|
-
process.on("SIGTERM", () => {
|
|
2021
|
-
leaveAltScreen();
|
|
2022
|
-
process.exit(0);
|
|
2023
|
-
});
|
|
2024
1995
|
const instance = (0, import_ink11.render)(/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(App, { ...options }), {
|
|
2025
|
-
exitOnCtrlC:
|
|
1996
|
+
exitOnCtrlC: true
|
|
2026
1997
|
});
|
|
2027
|
-
instance.waitUntilExit().
|
|
2028
|
-
leaveAltScreen();
|
|
2029
|
-
}).catch((err) => {
|
|
2030
|
-
leaveAltScreen();
|
|
1998
|
+
instance.waitUntilExit().catch((err) => {
|
|
2031
1999
|
if (err) {
|
|
2032
2000
|
process.stderr.write(`
|
|
2033
2001
|
[EXIT ERROR] ${err}
|
package/dist/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.29",
|
|
4
4
|
"description": "AI coding assistant CLI built on Robota SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"marked-terminal": "^7.3.0",
|
|
36
36
|
"react": "19.2.4",
|
|
37
37
|
"string-width": "^8.2.0",
|
|
38
|
-
"@robota-sdk/agent-core": "3.0.0-beta.
|
|
39
|
-
"@robota-sdk/agent-sdk": "3.0.0-beta.
|
|
38
|
+
"@robota-sdk/agent-core": "3.0.0-beta.29",
|
|
39
|
+
"@robota-sdk/agent-sdk": "3.0.0-beta.29"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/marked": "^6.0.0",
|