pi-win-notify 1.0.5 → 1.0.6
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 +51 -51
- package/README.zh.md +51 -51
- package/extensions/desktop-notify.ts +562 -562
- package/extensions/host.ps1 +290 -289
- package/package.json +34 -34
package/README.md
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
# pi-win-notify
|
|
2
|
-
|
|
3
|
-
A Windows notification tool for [pi](https://pi.dev) — fast focus, response preview, elapsed time, mute, multi-language. Pops up a dark popup when pi finishes, so you never miss a completed task. Skips automatically when the terminal is focused.
|
|
4
|
-
|
|
5
|
-
> 中文说明见 [README.zh.md](./README.zh.md)
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pi install pi-win-notify
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Or from GitHub:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pi install git:https://github.com/ryanchan720/pi-desktop-notify.git
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
| Command | Description |
|
|
22
|
-
|---------|-------------|
|
|
23
|
-
| `/notify` | Toggle on/off |
|
|
24
|
-
| `/notify on` / `off` | Force state |
|
|
25
|
-
| `/notify timeout 15` | Auto-dismiss seconds (5~60, default 15) |
|
|
26
|
-
| `/notify opacity 1.0` | Window opacity (0.3~1.0) |
|
|
27
|
-
| `/notify message fixed` | Fixed completion text |
|
|
28
|
-
| `/notify message response` | AI reply first 50 chars (default) |
|
|
29
|
-
| `/notify lang en` | Language: `zh` `en` `ja` `ko` |
|
|
30
|
-
| `/notify status` | Daemon health + current config |
|
|
31
|
-
|
|
32
|
-
## Features
|
|
33
|
-
|
|
34
|
-
- ⚡ **Fast focus** — click or **Alt+]** to switch back to terminal. **Alt+[** to dismiss
|
|
35
|
-
- 👁 **Response preview** — shows AI reply (first 50 chars) right in the popup, or fixed text
|
|
36
|
-
- ⏱ **Elapsed time** — displays how long the task took
|
|
37
|
-
- 🔕 **Mute** — 3 min / 30 min / 1 hour / off. Persists to disk, survives restarts. Multi-instance auto-sync
|
|
38
|
-
- 🌐 **Multi-language** — `zh` / `en` / `ja` / `ko`
|
|
39
|
-
- 🪟 Dark rounded popup, bottom-right, follows cursor across monitors
|
|
40
|
-
- 🔝 Top-most, never steals focus, configurable opacity, auto-dismiss
|
|
41
|
-
- 🤖 Auto-suppress during LLM retries & context compaction
|
|
42
|
-
- 📝 Title = first 25 chars of user prompt
|
|
43
|
-
- 📚 Multi-pi window stacking
|
|
44
|
-
|
|
45
|
-
## Test
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
node --experimental-strip-types tests/tests.ts
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
42 unit tests covering content extraction, retry detection, and state machine.
|
|
1
|
+
# pi-win-notify
|
|
2
|
+
|
|
3
|
+
A Windows notification tool for [pi](https://pi.dev) — fast focus, response preview, elapsed time, mute, multi-language. Pops up a dark popup when pi finishes, so you never miss a completed task. Skips automatically when the terminal is focused.
|
|
4
|
+
|
|
5
|
+
> 中文说明见 [README.zh.md](./README.zh.md)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pi install pi-win-notify
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or from GitHub:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pi install git:https://github.com/ryanchan720/pi-desktop-notify.git
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
| Command | Description |
|
|
22
|
+
|---------|-------------|
|
|
23
|
+
| `/notify` | Toggle on/off |
|
|
24
|
+
| `/notify on` / `off` | Force state |
|
|
25
|
+
| `/notify timeout 15` | Auto-dismiss seconds (5~60, default 15) |
|
|
26
|
+
| `/notify opacity 1.0` | Window opacity (0.3~1.0) |
|
|
27
|
+
| `/notify message fixed` | Fixed completion text |
|
|
28
|
+
| `/notify message response` | AI reply first 50 chars (default) |
|
|
29
|
+
| `/notify lang en` | Language: `zh` `en` `ja` `ko` |
|
|
30
|
+
| `/notify status` | Daemon health + current config |
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
- ⚡ **Fast focus** — click or **Alt+]** to switch back to terminal. **Alt+[** to dismiss
|
|
35
|
+
- 👁 **Response preview** — shows AI reply (first 50 chars) right in the popup, or fixed text
|
|
36
|
+
- ⏱ **Elapsed time** — displays how long the task took
|
|
37
|
+
- 🔕 **Mute** — 3 min / 30 min / 1 hour / off. Persists to disk, survives restarts. Multi-instance auto-sync
|
|
38
|
+
- 🌐 **Multi-language** — `zh` / `en` / `ja` / `ko`
|
|
39
|
+
- 🪟 Dark rounded popup, bottom-right, follows cursor across monitors
|
|
40
|
+
- 🔝 Top-most, never steals focus, configurable opacity, auto-dismiss
|
|
41
|
+
- 🤖 Auto-suppress during LLM retries & context compaction
|
|
42
|
+
- 📝 Title = first 25 chars of user prompt
|
|
43
|
+
- 📚 Multi-pi window stacking
|
|
44
|
+
|
|
45
|
+
## Test
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
node --experimental-strip-types tests/tests.ts
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
42 unit tests covering content extraction, retry detection, and state machine.
|
package/README.zh.md
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
# pi-win-notify
|
|
2
|
-
|
|
3
|
-
[pi](https://pi.dev) 桌面通知工具 — 快速聚焦、回复预览、耗时显示、勿扰、多语言。pi 完成时右下角弹出暗色窗口,切走也不错过。终端在前台时自动跳过。
|
|
4
|
-
|
|
5
|
-
> For English, see [README.md](./README.md)
|
|
6
|
-
|
|
7
|
-
## 安装
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pi install pi-win-notify
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
或从 GitHub:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pi install git:https://github.com/ryanchan720/pi-desktop-notify.git
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## 使用
|
|
20
|
-
|
|
21
|
-
| 命令 | 说明 |
|
|
22
|
-
|---------|-------------|
|
|
23
|
-
| `/notify` | 开关切换 |
|
|
24
|
-
| `/notify on` / `off` | 强制开关 |
|
|
25
|
-
| `/notify timeout 15` | 自动消失秒数 (5~60, 默认 15) |
|
|
26
|
-
| `/notify opacity 1.0` | 窗口不透明度 (0.3~1.0) |
|
|
27
|
-
| `/notify message fixed` | 固定完成文本 |
|
|
28
|
-
| `/notify message response` | AI 回复前 50 字(默认) |
|
|
29
|
-
| `/notify lang en` | 语言:`zh` `en` `ja` `ko` |
|
|
30
|
-
| `/notify status` | 守护进程状态 + 当前配置 |
|
|
31
|
-
|
|
32
|
-
## 特性
|
|
33
|
-
|
|
34
|
-
- ⚡ **快速聚焦** — 点击按钮或 **Alt+]** 一键切回终端。**Alt+[** 关闭弹窗
|
|
35
|
-
- 👁 **回复预览** — 弹窗直接显示 AI 回复前 50 字,或固定完成文本
|
|
36
|
-
- ⏱ **耗时显示** — 显示任务耗时
|
|
37
|
-
- 🔕 **勿扰** — 3 分钟 / 30 分钟 / 1 小时 / 关闭。持久化,重启不丢。多实例自动同步
|
|
38
|
-
- 🌐 **多语言** — `zh` / `en` / `ja` / `ko`
|
|
39
|
-
- 🪟 暗色圆角弹窗,右下角,跟光标走
|
|
40
|
-
- 🔝 置顶、不抢焦点、可配不透明度、自动消失
|
|
41
|
-
- 🤖 自动抑制 LLM 重试和上下文压缩期间的弹窗
|
|
42
|
-
- 📝 通知标题 = 用户 prompt 前 25 字
|
|
43
|
-
- 📚 多 pi 窗口堆叠
|
|
44
|
-
|
|
45
|
-
## 测试
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
node --experimental-strip-types tests/tests.ts
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
42 个单元测试,覆盖内容提取、重试检测和状态机。
|
|
1
|
+
# pi-win-notify
|
|
2
|
+
|
|
3
|
+
[pi](https://pi.dev) 桌面通知工具 — 快速聚焦、回复预览、耗时显示、勿扰、多语言。pi 完成时右下角弹出暗色窗口,切走也不错过。终端在前台时自动跳过。
|
|
4
|
+
|
|
5
|
+
> For English, see [README.md](./README.md)
|
|
6
|
+
|
|
7
|
+
## 安装
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pi install pi-win-notify
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
或从 GitHub:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pi install git:https://github.com/ryanchan720/pi-desktop-notify.git
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 使用
|
|
20
|
+
|
|
21
|
+
| 命令 | 说明 |
|
|
22
|
+
|---------|-------------|
|
|
23
|
+
| `/notify` | 开关切换 |
|
|
24
|
+
| `/notify on` / `off` | 强制开关 |
|
|
25
|
+
| `/notify timeout 15` | 自动消失秒数 (5~60, 默认 15) |
|
|
26
|
+
| `/notify opacity 1.0` | 窗口不透明度 (0.3~1.0) |
|
|
27
|
+
| `/notify message fixed` | 固定完成文本 |
|
|
28
|
+
| `/notify message response` | AI 回复前 50 字(默认) |
|
|
29
|
+
| `/notify lang en` | 语言:`zh` `en` `ja` `ko` |
|
|
30
|
+
| `/notify status` | 守护进程状态 + 当前配置 |
|
|
31
|
+
|
|
32
|
+
## 特性
|
|
33
|
+
|
|
34
|
+
- ⚡ **快速聚焦** — 点击按钮或 **Alt+]** 一键切回终端。**Alt+[** 关闭弹窗
|
|
35
|
+
- 👁 **回复预览** — 弹窗直接显示 AI 回复前 50 字,或固定完成文本
|
|
36
|
+
- ⏱ **耗时显示** — 显示任务耗时
|
|
37
|
+
- 🔕 **勿扰** — 3 分钟 / 30 分钟 / 1 小时 / 关闭。持久化,重启不丢。多实例自动同步
|
|
38
|
+
- 🌐 **多语言** — `zh` / `en` / `ja` / `ko`
|
|
39
|
+
- 🪟 暗色圆角弹窗,右下角,跟光标走
|
|
40
|
+
- 🔝 置顶、不抢焦点、可配不透明度、自动消失
|
|
41
|
+
- 🤖 自动抑制 LLM 重试和上下文压缩期间的弹窗
|
|
42
|
+
- 📝 通知标题 = 用户 prompt 前 25 字
|
|
43
|
+
- 📚 多 pi 窗口堆叠
|
|
44
|
+
|
|
45
|
+
## 测试
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
node --experimental-strip-types tests/tests.ts
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
42 个单元测试,覆盖内容提取、重试检测和状态机。
|