@agent-api/cli 0.4.10 → 0.4.11
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/index.js +6 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ program.action(async (workdir) => {
|
|
|
32
32
|
const options = normalizeChatOptions([], launchWorkdir ? { workdir: launchWorkdir } : {});
|
|
33
33
|
const app = render(React.createElement(ChatApp, { options }));
|
|
34
34
|
await app.waitUntilExit();
|
|
35
|
+
clearTerminalAfterTUI();
|
|
35
36
|
});
|
|
36
37
|
program
|
|
37
38
|
.command("auth")
|
|
@@ -86,6 +87,11 @@ program.parseAsync(process.argv).catch((error) => {
|
|
|
86
87
|
console.error(error instanceof Error ? error.message : String(error));
|
|
87
88
|
process.exitCode = 1;
|
|
88
89
|
});
|
|
90
|
+
function clearTerminalAfterTUI() {
|
|
91
|
+
if (!process.stdout.isTTY)
|
|
92
|
+
return;
|
|
93
|
+
process.stdout.write("\x1b[2J\x1b[3J\x1b[H");
|
|
94
|
+
}
|
|
89
95
|
function authLoginCommand() {
|
|
90
96
|
return new Command("login")
|
|
91
97
|
.description("Sign in with browser auth or save an API key profile")
|
package/dist/runtime.d.ts
CHANGED
package/dist/runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-api/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "First-class command line interface for Agent API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/scalebox-dev/agent-tui#readme",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "npm run sync-version && npm run build && npm run smoke -w @agent-api/app-engine && node --test test/*.test.mjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agent-api/app-engine": "^0.1.
|
|
38
|
+
"@agent-api/app-engine": "^0.1.11",
|
|
39
39
|
"commander": "^14.0.3",
|
|
40
40
|
"ink": "^6.8.0",
|
|
41
41
|
"react": "^19.2.7"
|