ai-notify 0.4.8 → 0.4.9
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.ja.md +2 -0
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/cli.mjs +2 -2
package/README.ja.md
CHANGED
|
@@ -75,6 +75,8 @@ ai-notify use clear # このペインをリセット
|
|
|
75
75
|
|
|
76
76
|
`声` は `say` の名前/番号(`Kyoko`・`3`)、VOICEVOX の**キャラ名**(`ずんだもん`)、`vv<id>`(`vv3`)が使えます。`--tab` で読み上げ名と別のタブ名を付けられます。
|
|
77
77
|
|
|
78
|
+
> タブ名の変更はベストエフォートで、標準のタイトルエスケープ(OSC 0+2)を送ります。**Terminal.app** と **iTerm2** は反映します。**JetBrains 系(WebStorm/IntelliJ)は新ターミナル(Reworked・2025.2 以降が既定)でのみ反映**し、バージョンによってはタブを再アクティブにすると名前が戻ります([IDEA-277846](https://youtrack.jetbrains.com/issue/IDEA-277846/Support-changing-terminal-tab-title-by-escape-sequences))。プロンプト毎にタイトルを書き換えるシェル設定でも上書きされます。読み上げ名と声は端末に関係なく常に有効です。
|
|
79
|
+
|
|
78
80
|
ペイン別の上書き — エージェントを起動する**前**に、その端末で `export` する:
|
|
79
81
|
|
|
80
82
|
```sh
|
package/README.md
CHANGED
|
@@ -76,6 +76,8 @@ ai-notify use clear # reset this pane
|
|
|
76
76
|
|
|
77
77
|
`voice` is a `say` name/number (`Kyoko`, `3`), a VOICEVOX **character name** (`ずんだもん`), or `vv<id>` (`vv3`). `--tab` sets a different terminal tab title from the spoken name.
|
|
78
78
|
|
|
79
|
+
> Tab renaming is best-effort — it sends the standard title escape (OSC 0 + 2), which **Terminal.app** and **iTerm2** honor. **JetBrains IDEs** (WebStorm/IntelliJ) honor it only with the **Reworked terminal** (default in 2025.2+); some versions reset the name when you re-activate the tab ([IDEA-277846](https://youtrack.jetbrains.com/issue/IDEA-277846/Support-changing-terminal-tab-title-by-escape-sequences)). A shell that rewrites the title every prompt can also override it. The spoken name and voice always apply regardless.
|
|
80
|
+
|
|
79
81
|
Per-window overrides — `export` these in a terminal *before* launching the agent:
|
|
80
82
|
|
|
81
83
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-notify",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Desktop, sound, and spoken notifications for terminal AI coding agents (Claude Code, Codex, Gemini, ...) — with one mute switch that covers all of them, across every terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/cli.mjs
CHANGED
|
@@ -534,7 +534,7 @@ const cmds = {
|
|
|
534
534
|
const [name, voiceArg, volArg] = pos;
|
|
535
535
|
if (!name || name === 'clear' || name === 'reset') {
|
|
536
536
|
updatePaneSetting(tty, { speakName: null, tts: null, voice: null, speaker: null, volume: null });
|
|
537
|
-
process.stdout.write('\u001b]0;\u0007'); // clear
|
|
537
|
+
process.stdout.write('\u001b]0;\u0007\u001b]2;\u0007'); // clear tab title via OSC 0 + 2 (best-effort)
|
|
538
538
|
return log(`✓ pane reset (${tty})`);
|
|
539
539
|
}
|
|
540
540
|
|
|
@@ -580,7 +580,7 @@ const cmds = {
|
|
|
580
580
|
// Rename this terminal tab/window (best-effort — a shell that rewrites the
|
|
581
581
|
// title on each prompt may override it after you return to the prompt).
|
|
582
582
|
const tab = tabTitle || name;
|
|
583
|
-
process.stdout.write(`\u001b]0;${tab}\u0007`);
|
|
583
|
+
process.stdout.write(`\u001b]0;${tab}\u0007\u001b]2;${tab}\u0007`);
|
|
584
584
|
|
|
585
585
|
const bits = [`name ${name}`];
|
|
586
586
|
if (voiceLabel) bits.push(`voice ${voiceLabel}`);
|