@juicesharp/rpiv-warp 1.8.0 → 1.8.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to `@juicesharp/rpiv-warp` are documented here.
5
5
  Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
  Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.8.2] - 2026-05-17
9
+
10
+ ## [1.8.1] - 2026-05-17
11
+
8
12
  ## [1.8.0] - 2026-05-16
9
13
 
10
14
  ## [1.7.0] - 2026-05-15
package/config.ts CHANGED
@@ -1,9 +1,6 @@
1
- import { existsSync, readFileSync } from "node:fs";
2
- import { homedir } from "node:os";
3
- import { join } from "node:path";
1
+ import { configPath, loadJsonConfig } from "@juicesharp/rpiv-config";
4
2
 
5
- export const CONFIG_DIR = join(homedir(), ".config", "rpiv-warp");
6
- export const CONFIG_PATH = join(CONFIG_DIR, "config.json");
3
+ export const CONFIG_PATH = configPath("rpiv-warp");
7
4
 
8
5
  export interface RpivWarpConfig {
9
6
  readonly blockingTools?: readonly string[];
@@ -14,14 +11,7 @@ export const DEFAULT_BLOCKING_TOOLS: readonly string[] = ["ask_user_question"];
14
11
  export const DEFAULT_HEARTBEAT_MS = 15000;
15
12
 
16
13
  export function loadConfig(): RpivWarpConfig {
17
- if (!existsSync(CONFIG_PATH)) return {};
18
- try {
19
- const parsed = JSON.parse(readFileSync(CONFIG_PATH, "utf-8")) as unknown;
20
- if (parsed === null || typeof parsed !== "object") return {};
21
- return parsed as RpivWarpConfig;
22
- } catch {
23
- return {};
24
- }
14
+ return loadJsonConfig<RpivWarpConfig>(CONFIG_PATH);
25
15
  }
26
16
 
27
17
  export function getHeartbeatMs(): number {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-warp",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "private": false,
5
5
  "description": "Pi extension. Native Warp terminal notifications, dispatched via OSC 777 on Pi lifecycle events.",
6
6
  "keywords": [
@@ -48,5 +48,8 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@earendil-works/pi-coding-agent": "*"
51
+ },
52
+ "dependencies": {
53
+ "@juicesharp/rpiv-config": "^1.8.2"
51
54
  }
52
55
  }