claude-pangu 2.3.2 → 2.3.3

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
  {
2
2
  "$schema": "https://code.claude.com/plugin-schema.json",
3
3
  "name": "oh-my-claude",
4
- "version": "2.3.2",
4
+ "version": "2.3.3",
5
5
  "hooks": "../hooks/hooks.json",
6
6
  "description": "基于中国传统文化的 Claude Code 智能编排插件 - A Claude Code plugin inspired by Chinese traditional culture",
7
7
  "author": "ZDragon17",
package/README.md CHANGED
@@ -921,6 +921,7 @@ model: sonnet
921
921
  - [x] v2.3.0 - **oh-my-opencode v3.8.4 全面移植** 🚀(9 Agent 重写 + 6 新 Hook + 5 命令更新 + 4 技能升级)
922
922
  - [x] v2.3.1 - **Hook 注册修复** 🐛(syncHooksToSettings 完善 Wave 2 Hook 注册,新增 4 测试用例)
923
923
  - [x] v2.3.2 - **Hook 无 jq 回退修复** 🐛(4 个 Hook 的 Windows/无 jq 环境兼容性修复)
924
+ - [x] v2.3.3 - **Hook 逻辑修复** 🐛(json-error-recovery 模式排序 + write-existing-file-guard 路径排除修复)
924
925
 
925
926
  ### v2.2.2 核心更新
926
927
 
@@ -67,27 +67,23 @@ detect_json_parse_error() {
67
67
  # 检测具体的 JSON 错误类型
68
68
  detect_specific_error() {
69
69
  local output="$1"
70
-
71
- if echo "$output" | grep -qiE 'Unexpected token.*position|at (column|position)|position [0-9]'; then
72
- echo "POSITION"
73
- return
74
- fi
75
-
70
+ # STRING 检查必须在 POSITION 之前(POSITION 的 'at (column|position)' 会误匹配 STRING 类错误)
76
71
  if echo "$output" | grep -qiE 'Unterminated string|unclosed.*string'; then
77
72
  echo "STRING"
78
73
  return
79
74
  fi
80
-
81
75
  if echo "$output" | grep -qiE 'trailing comma|Expected.*}.*got.*,'; then
82
76
  echo "TRAILING_COMMA"
83
77
  return
84
78
  fi
85
-
79
+ if echo "$output" | grep -qiE 'Unexpected token.*position|at (column|position)|position [0-9]'; then
80
+ echo "POSITION"
81
+ return
82
+ fi
86
83
  if echo "$output" | grep -qiE 'Unexpected end|unexpected eof|incomplete'; then
87
84
  echo "INCOMPLETE"
88
85
  return
89
86
  fi
90
-
91
87
  echo "GENERIC"
92
88
  }
93
89
 
@@ -78,7 +78,7 @@ fi
78
78
 
79
79
  # 允许对特定目录的文件覆写(内部管理文件)
80
80
  case "$FILE_PATH" in
81
- */.claude/*|*/oh-my-claude/*|*/.oh-my-claude/*|*/.sisyphus/*)
81
+ */.claude/*|*/.oh-my-claude/*|*/.sisyphus/*)
82
82
  exit 0
83
83
  ;;
84
84
  esac
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-pangu",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "基于中国传统文化的 Claude Code 智能编排插件 - A Claude Code plugin inspired by Chinese traditional culture (原名 oh-my-claude)",
5
5
  "keywords": [
6
6
  "claude-code",