agent-simple-english 0.2.0 → 0.2.1

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.
@@ -11,7 +11,7 @@
11
11
  {
12
12
  "name": "simple-english",
13
13
  "description": "Apply technical and house-style writing rules to writes, edits, and git commit messages.",
14
- "version": "0.2.0",
14
+ "version": "0.2.1",
15
15
  "author": {
16
16
  "name": "JIA YI"
17
17
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "simple-english",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "description": "Apply technical and house-style writing rules to writes, edits, and git commit messages.",
6
6
  "repository": "https://github.com/jyooi/agent-simple-english",
7
7
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-simple-english",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Technical and house-style English lint engine, CLI, and host adapters",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -68,6 +68,7 @@
68
68
  "@biomejs/biome": "^1.9.4",
69
69
  "@earendil-works/pi-coding-agent": "0.83.0",
70
70
  "@types/node": "^22.0.0",
71
+ "jiti": "2.7.0",
71
72
  "typebox": "1.3.7",
72
73
  "typescript": "^5.8.0",
73
74
  "vitest": "^3.0.0"
@@ -5,9 +5,12 @@ import phrasalVerbs from "./data/phrasal-verbs.json" with { type: "json" }
5
5
  import type { RuleData } from "./rule-data.ts"
6
6
  import { decodeDictionaryData } from "./schema.ts"
7
7
 
8
+ // Jiti adds a non-enumerable default property that strict schema validation rejects.
9
+ const decodeBundledDictionary = (data: object) => decodeDictionaryData({ ...data })
10
+
8
11
  export const BUNDLED_RULE_DATA: RuleData = {
9
- "phrasal-verb": decodeDictionaryData(phrasalVerbs),
10
- hedging: decodeDictionaryData(hedging),
11
- marketing: decodeDictionaryData(marketing),
12
- "adjectival-participle": decodeDictionaryData(adjectivalParticiples),
12
+ "phrasal-verb": decodeBundledDictionary(phrasalVerbs),
13
+ hedging: decodeBundledDictionary(hedging),
14
+ marketing: decodeBundledDictionary(marketing),
15
+ "adjectival-participle": decodeBundledDictionary(adjectivalParticiples),
13
16
  }