@agent-api/cli 0.4.24 → 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 CHANGED
@@ -1,4 +1,4 @@
1
1
  export declare const cliName = "agent-tui";
2
2
  export declare const cliAuthor = "AgentsWay";
3
- export declare const cliVersion = "0.4.24";
3
+ export declare const cliVersion = "0.4.27";
4
4
  export declare const legacyCliName = "agent-api-cli";
package/dist/runtime.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export const cliName = "agent-tui";
2
2
  export const cliAuthor = "AgentsWay";
3
- export const cliVersion = "0.4.24";
3
+ export const cliVersion = "0.4.27";
4
4
  export const legacyCliName = "agent-api-cli";
@@ -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, enableMouseReporting, parseMouseEvent } from "../mouse.js";
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
- enableTerminalMouse(stdout);
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);
@@ -1,4 +1,3 @@
1
1
  import type { WorkbenchTerminalMouseEvent } from "@agent-api/app-engine/terminal";
2
- export declare const enableMouseReporting = "\u001B[?1000h\u001B[?1002h\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
@@ -1,4 +1,3 @@
1
- export const enableMouseReporting = "\x1b[?1000h\x1b[?1002h\x1b[?1006h";
2
1
  export const disableMouseReporting = "\x1b[?1000l\x1b[?1002l\x1b[?1006l";
3
2
  export function parseMouseEvent(input) {
4
3
  const match = /(?:\x1b)?\[<(\d+);(\d+);(\d+)([mM])/.exec(input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-api/cli",
3
- "version": "0.4.24",
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.23",
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"