@pi-unipi/input-shortcuts 2.0.7 → 2.0.8
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 +4 -3
- package/src/chord-overlay.ts +2 -2
- package/src/index.ts +2 -2
- package/src/settings-overlay.ts +2 -2
- package/src/status.ts +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/input-shortcuts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Keyboard shortcuts for stash/restore, undo/redo, clipboard, and thinking toggle — chord-based overlay system",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"author": "Neuron Mr White",
|
|
8
9
|
"repository": {
|
|
@@ -40,8 +41,8 @@
|
|
|
40
41
|
"@pi-unipi/core": "*"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
44
|
+
"@earendil-works/pi-coding-agent": "^0.75.5",
|
|
45
|
+
"@earendil-works/pi-tui": "^0.75.5"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@types/node": "^25.6.0",
|
package/src/chord-overlay.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Closes on ESC or after selecting an action. No timeout.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
import type { ExtensionContext } from "@
|
|
16
|
+
import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
17
17
|
import {
|
|
18
18
|
Container,
|
|
19
19
|
Key,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
type Focusable,
|
|
23
23
|
type TUI,
|
|
24
24
|
type KeybindingsManager,
|
|
25
|
-
} from "@
|
|
25
|
+
} from "@earendil-works/pi-tui";
|
|
26
26
|
import type { ChordState } from "./types.ts";
|
|
27
27
|
import { THINKING_CYCLE } from "./types.ts";
|
|
28
28
|
|
package/src/index.ts
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* - Cut/Copy: overlay closes immediately, then action runs (non-blocking)
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import type { ExtensionAPI, ExtensionContext } from "@
|
|
15
|
-
import { Key } from "@
|
|
14
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
15
|
+
import { Key } from "@earendil-works/pi-tui";
|
|
16
16
|
import { MODULES, emitEvent, UNIPI_EVENTS, INPUT_SHORTCUTS_COMMANDS } from "@pi-unipi/core";
|
|
17
17
|
import { RegisterStore } from "./registers.ts";
|
|
18
18
|
import { UndoRedoBuffer } from "./undo-redo.ts";
|
package/src/settings-overlay.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Persists config to .unipi/config/input-shortcuts-config.json.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { Component } from "@
|
|
8
|
-
import { SettingsList, type SettingItem, type SettingsListTheme } from "@
|
|
7
|
+
import type { Component } from "@earendil-works/pi-tui";
|
|
8
|
+
import { SettingsList, type SettingItem, type SettingsListTheme } from "@earendil-works/pi-tui";
|
|
9
9
|
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { dirname, join } from "node:path";
|
|
11
11
|
import type { InputShortcutsConfig } from "./types.ts";
|
package/src/status.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Status bar feedback helper using ctx.ui.setStatus() with auto-clear.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { ExtensionContext } from "@
|
|
5
|
+
import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
6
6
|
import { STATUS_SUCCESS_MS, STATUS_ERROR_MS } from "./types.ts";
|
|
7
7
|
|
|
8
8
|
const STATUS_KEY = "input-shortcuts";
|