@narumitw/pi-statusline 0.46.0 → 0.49.0
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 +6 -2
- package/src/commands.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-statusline",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "Pi extension that replaces the footer with an information-rich statusline.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"format": "biome check --write --vcs-use-ignore-file=false src test package.json tsconfig.json README.md",
|
|
28
28
|
"typecheck": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
32
|
+
"@earendil-works/pi-tui": "*"
|
|
33
|
+
},
|
|
30
34
|
"devDependencies": {
|
|
31
35
|
"@biomejs/biome": "2.5.6",
|
|
32
36
|
"@earendil-works/pi-coding-agent": "0.83.0",
|
|
@@ -40,6 +44,6 @@
|
|
|
40
44
|
"directory": "extensions/pi-statusline"
|
|
41
45
|
},
|
|
42
46
|
"dependencies": {
|
|
43
|
-
"@narumitw/pi-tui-kit": "^0.
|
|
47
|
+
"@narumitw/pi-tui-kit": "^0.46.0"
|
|
44
48
|
}
|
|
45
49
|
}
|
package/src/commands.ts
CHANGED
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
truncateToWidth,
|
|
15
15
|
wrapTextWithAnsi,
|
|
16
16
|
} from "@earendil-works/pi-tui";
|
|
17
|
-
import { defineMenu, runMenu } from "@narumitw/pi-tui-kit";
|
|
18
17
|
import {
|
|
19
18
|
INFORMATION_PROFILE_NAMES,
|
|
20
19
|
INFORMATION_PROFILES,
|
|
@@ -125,6 +124,8 @@ async function showMainMenu(ctx: ExtensionCommandContext, options: StatuslineCom
|
|
|
125
124
|
signal: fallbackController.signal,
|
|
126
125
|
isCurrent: () => !fallbackController.signal.aborted,
|
|
127
126
|
};
|
|
127
|
+
const { defineMenu, runMenu } = await import("@narumitw/pi-tui-kit");
|
|
128
|
+
if (owner.signal.aborted || !owner.isCurrent()) return;
|
|
128
129
|
type Screen = "main" | "advanced" | "information";
|
|
129
130
|
type Action = "appearance" | "setInformation" | "layout" | "edit" | "status" | "help" | "back";
|
|
130
131
|
const menu = defineMenu<undefined, Screen, Action, ExtensionCommandContext>({
|