pi-must-have-extension 0.4.7 → 0.4.8

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.8] - 2026-04-01
4
+
5
+ ### Changed
6
+ - Updated `@mariozechner/pi-coding-agent` peer dependency to ^0.64.0
7
+ - Updated `typescript` dev dependency to ^6.0.2
8
+
3
9
  ## [0.4.7] - 2026-03-23
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-must-have-extension",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "RFC 2119 keyword normalizer extension for the Pi coding agent.",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -60,11 +60,11 @@
60
60
  ]
61
61
  },
62
62
  "peerDependencies": {
63
- "@mariozechner/pi-coding-agent": "*"
63
+ "@mariozechner/pi-coding-agent": "^0.64.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@mariozechner/pi-coding-agent": "^0.62.0",
66
+ "@mariozechner/pi-coding-agent": "^0.64.0",
67
67
  "@types/node": "^25.5.0",
68
- "typescript": "^5.9.3"
68
+ "typescript": "^6.0.2"
69
69
  }
70
70
  }
package/src/constants.ts CHANGED
@@ -1,63 +1,63 @@
1
- import { homedir } from "node:os";
2
- import { join } from "node:path";
3
- import type { MustHaveExtensionConfig } from "./types.js";
4
-
5
- export const EXTENSION_NAME = "pi-must-have-extension";
6
- export const CONFIG_DIR = join(homedir(), ".pi", "agent", "extensions", EXTENSION_NAME);
7
- export const CONFIG_PATH = join(CONFIG_DIR, "config.jsonc");
8
-
9
- export const LEGACY_PI_MUST_HAVE_PLUGIN_CONFIG_PATH = join(
10
- homedir(),
11
- ".pi",
12
- "agent",
13
- "extensions",
14
- "pi-must-have-plugin",
15
- "config.jsonc",
16
- );
17
- export const LEGACY_MUST_HAVE_PLUGIN_CONFIG_PATH = join(
18
- homedir(),
19
- ".pi",
20
- "agent",
21
- "extensions",
22
- "must-have-plugin",
23
- "config.jsonc",
24
- );
25
- export const LEGACY_OPENCODE_CONFIG_PATH = join(homedir(), ".config", "opencode", "MUST-have-plugin.jsonc");
26
-
27
- export const RFC2119_DEFAULTS: Readonly<Record<string, string>> = {
28
- must: "MUST",
29
- "must not": "MUST NOT",
30
- required: "REQUIRED",
31
- shall: "SHALL",
32
- "shall not": "SHALL NOT",
33
- should: "SHOULD",
34
- "should not": "SHOULD NOT",
35
- recommended: "RECOMMENDED",
36
- "not recommended": "NOT RECOMMENDED",
37
- may: "MAY",
38
- optional: "OPTIONAL",
39
- };
40
-
41
- export const FALLBACK_CONFIG: MustHaveExtensionConfig = {
42
- debug: false,
43
- replacements: { ...RFC2119_DEFAULTS },
44
- };
45
-
46
- export const DEFAULT_CONFIG = `{
47
- // Enable debug notifications in the TUI
48
- // "debug": true,
49
-
50
- "replacements": {
51
- "must": "MUST",
52
- "must not": "MUST NOT",
53
- "required": "REQUIRED",
54
- "shall": "SHALL",
55
- "shall not": "SHALL NOT",
56
- "should": "SHOULD",
57
- "should not": "SHOULD NOT",
58
- "recommended": "RECOMMENDED",
59
- "not recommended": "NOT RECOMMENDED",
60
- "may": "MAY",
61
- "optional": "OPTIONAL"
62
- }
63
- }\n`;
1
+ import { homedir } from "node:os";
2
+ import { join } from "node:path";
3
+ import type { MustHaveExtensionConfig } from "./types.js";
4
+
5
+ export const EXTENSION_NAME = "pi-must-have-extension";
6
+ export const CONFIG_DIR = join(homedir(), ".pi", "agent", "extensions", EXTENSION_NAME);
7
+ export const CONFIG_PATH = join(CONFIG_DIR, "config.jsonc");
8
+
9
+ export const LEGACY_PI_MUST_HAVE_PLUGIN_CONFIG_PATH = join(
10
+ homedir(),
11
+ ".pi",
12
+ "agent",
13
+ "extensions",
14
+ "pi-must-have-plugin",
15
+ "config.jsonc",
16
+ );
17
+ export const LEGACY_MUST_HAVE_PLUGIN_CONFIG_PATH = join(
18
+ homedir(),
19
+ ".pi",
20
+ "agent",
21
+ "extensions",
22
+ "must-have-plugin",
23
+ "config.jsonc",
24
+ );
25
+ export const LEGACY_OPENCODE_CONFIG_PATH = join(homedir(), ".config", "opencode", "MUST-have-plugin.jsonc");
26
+
27
+ export const RFC2119_DEFAULTS: Readonly<Record<string, string>> = {
28
+ must: "MUST",
29
+ "must not": "MUST NOT",
30
+ required: "REQUIRED",
31
+ shall: "SHALL",
32
+ "shall not": "SHALL NOT",
33
+ should: "SHOULD",
34
+ "should not": "SHOULD NOT",
35
+ recommended: "RECOMMENDED",
36
+ "not recommended": "NOT RECOMMENDED",
37
+ may: "MAY",
38
+ optional: "OPTIONAL",
39
+ };
40
+
41
+ export const FALLBACK_CONFIG: MustHaveExtensionConfig = {
42
+ debug: false,
43
+ replacements: { ...RFC2119_DEFAULTS },
44
+ };
45
+
46
+ export const DEFAULT_CONFIG = `{
47
+ // Enable debug notifications in the TUI
48
+ // "debug": true,
49
+
50
+ "replacements": {
51
+ "must": "MUST",
52
+ "must not": "MUST NOT",
53
+ "required": "REQUIRED",
54
+ "shall": "SHALL",
55
+ "shall not": "SHALL NOT",
56
+ "should": "SHOULD",
57
+ "should not": "SHOULD NOT",
58
+ "recommended": "RECOMMENDED",
59
+ "not recommended": "NOT RECOMMENDED",
60
+ "may": "MAY",
61
+ "optional": "OPTIONAL"
62
+ }
63
+ }\n`;