takomi 2.1.24 → 2.1.25

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.
@@ -1,7 +1,7 @@
1
1
  import type { ExtensionAPI, ExtensionCommandContext, ExtensionContext } from "@mariozechner/pi-coding-agent";
2
2
  import { mkdir, readFile, writeFile } from "node:fs/promises";
3
3
  import { dirname, join } from "node:path";
4
- import { platform } from "node:os";
4
+ import { homedir, platform } from "node:os";
5
5
  import { spawn } from "node:child_process";
6
6
 
7
7
  type NotifySoundConfig = {
@@ -10,10 +10,11 @@ type NotifySoundConfig = {
10
10
 
11
11
  type NotifyMethod = "auto" | "wav";
12
12
 
13
- const CONFIG_PATH = join(process.cwd(), ".pi", "notify-sound.json");
14
- const WAV_PATH = join(process.cwd(), ".pi", "notify-sound.wav");
15
- const PS1_PATH = join(process.cwd(), ".pi", "notify-sound.ps1");
16
- const VBS_PATH = join(process.cwd(), ".pi", "notify-sound.vbs");
13
+ const GLOBAL_NOTIFY_DIR = join(homedir(), ".pi", "agent", "notify-sound");
14
+ const CONFIG_PATH = join(GLOBAL_NOTIFY_DIR, "notify-sound.json");
15
+ const WAV_PATH = join(GLOBAL_NOTIFY_DIR, "notify-sound.wav");
16
+ const PS1_PATH = join(GLOBAL_NOTIFY_DIR, "notify-sound.ps1");
17
+ const VBS_PATH = join(GLOBAL_NOTIFY_DIR, "notify-sound.vbs");
17
18
  const STALE_AGENT_START_MS = 24 * 60 * 60 * 1000;
18
19
 
19
20
  let config: NotifySoundConfig = { enabled: true };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "takomi",
3
- "version": "2.1.24",
3
+ "version": "2.1.25",
4
4
  "description": "🎯 Stop wrestling with AI. Start building with purpose. The artisan's toolkit for agent workflows, Codex skills, and original Takomi capabilities like 21st.dev integration.",
5
5
  "type": "module",
6
6
  "bin": {