@agent-api/cli 0.4.26 → 0.4.27
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/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/tui/ink/app.js +2 -6
- package/dist/tui/mouse.d.ts +0 -1
- package/dist/tui/mouse.js +0 -1
- package/package.json +2 -2
package/dist/runtime.d.ts
CHANGED
package/dist/runtime.js
CHANGED
package/dist/tui/ink/app.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createWorkbenchAuthController, createWorkbenchAuthGateController, parse
|
|
|
6
6
|
import { buildWorkbenchRenderModel, copyTextFromActivitySelection, copyTextFromHeaderSelection, copyTextFromRenderModel, copyTextFromTranscriptSelection, createWorkbenchTerminalController, initialWorkbenchTerminalState, normalizeTerminalState, selectedPanelRange, } from "@agent-api/app-engine/terminal";
|
|
7
7
|
import { InkAuthGate, InkWorkbenchScreen } from "./components.js";
|
|
8
8
|
import { detectClipboardCapabilities, formatClipboardCapabilities, readClipboard, writeClipboard, } from "../clipboard.js";
|
|
9
|
-
import { disableMouseReporting,
|
|
9
|
+
import { disableMouseReporting, parseMouseEvent } from "../mouse.js";
|
|
10
10
|
export function ChatApp({ options }) {
|
|
11
11
|
return _jsx(AuthenticatedChatApp, { options: options });
|
|
12
12
|
}
|
|
@@ -33,7 +33,7 @@ function AuthenticatedChatApp({ options }) {
|
|
|
33
33
|
}));
|
|
34
34
|
useEffect(() => {
|
|
35
35
|
hideTerminalCursor(stdout);
|
|
36
|
-
|
|
36
|
+
disableTerminalMouse(stdout);
|
|
37
37
|
return () => {
|
|
38
38
|
disableTerminalMouse(stdout);
|
|
39
39
|
showTerminalCursor(stdout);
|
|
@@ -118,10 +118,6 @@ function showTerminalCursor(stdout) {
|
|
|
118
118
|
if (stdout.isTTY)
|
|
119
119
|
stdout.write("\x1b[?25h");
|
|
120
120
|
}
|
|
121
|
-
function enableTerminalMouse(stdout) {
|
|
122
|
-
if (stdout.isTTY)
|
|
123
|
-
stdout.write(enableMouseReporting);
|
|
124
|
-
}
|
|
125
121
|
function disableTerminalMouse(stdout) {
|
|
126
122
|
if (stdout.isTTY)
|
|
127
123
|
stdout.write(disableMouseReporting);
|
package/dist/tui/mouse.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { WorkbenchTerminalMouseEvent } from "@agent-api/app-engine/terminal";
|
|
2
|
-
export declare const enableMouseReporting = "\u001B[?1000h\u001B[?1006h";
|
|
3
2
|
export declare const disableMouseReporting = "\u001B[?1000l\u001B[?1002l\u001B[?1006l";
|
|
4
3
|
export declare function parseMouseEvent(input: string): WorkbenchTerminalMouseEvent | null;
|
package/dist/tui/mouse.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.27",
|
|
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.26",
|
|
39
39
|
"commander": "^14.0.3",
|
|
40
40
|
"ink": "^6.8.0",
|
|
41
41
|
"react": "^19.2.7"
|