pi-zh-cn 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -49,7 +49,7 @@ pi list
49
49
 
50
50
  ```bash
51
51
  npm install # 安装 devDependencies(含 peer 自动安装)
52
- npm exec tsc -p tsconfig.json # 类型检查
52
+ ./node_modules/.bin/tsc -p . # 类型检查
53
53
 
54
54
  # 本地试跑
55
55
  pi --no-session -e ./extensions/index.ts -p "hi"
@@ -44,6 +44,8 @@ export const zh = {
44
44
  interrupt: "中断",
45
45
  clearExit: "清空/退出",
46
46
  commands: "命令菜单",
47
+ more: "更多",
48
+ expandHelp: "按下上述按键查看完整启动帮助与已加载资源",
47
49
  onboarding:
48
50
  "Pi 能解释自身的功能、查阅自己的文档——想知道怎么用、怎么扩展,直接问它。",
49
51
  },
@@ -77,8 +77,18 @@ export default function (pi: ExtensionAPI) {
77
77
  ),
78
78
  rawKeyHint("/", zh.header.commands),
79
79
  rawKeyHint("!", "bash"),
80
+ keyHint("app.tools.expand", zh.header.more),
80
81
  ].join(theme.fg("muted", " · "));
81
- return [logo, compact, "", theme.fg("dim", zh.header.onboarding)];
82
+ return [
83
+ logo,
84
+ compact,
85
+ theme.fg(
86
+ "dim",
87
+ `${zh.header.expandHelp} (${keyText("app.tools.expand")})`,
88
+ ),
89
+ "",
90
+ theme.fg("dim", zh.header.onboarding),
91
+ ];
82
92
  },
83
93
  invalidate() {},
84
94
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-zh-cn",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "pi 编码代理的简体中文界面汉化插件",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -23,6 +23,6 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^26.3.0",
26
- "typescript": "^7.0.2"
26
+ "typescript": "^5.9.3"
27
27
  }
28
28
  }