opencode-core-rules-injector 1.1.4 → 1.2.0

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/README.md CHANGED
@@ -27,8 +27,8 @@ OpenCode 在长时间自动执行(如 5 小时、100 个任务)时,模型
27
27
  ## 安装
28
28
 
29
29
  ```bash
30
- # 使用 bun(推荐,更快)
31
- bun install -g opencode-core-rules-injector
30
+ # 使用 bun(推荐,更快),--trust 确保 postinstall 脚本执行
31
+ bun install -g opencode-core-rules-injector --trust
32
32
 
33
33
  # 或使用 npm
34
34
  npm install -g opencode-core-rules-injector
@@ -64,7 +64,7 @@ npm install -g opencode-core-rules-injector
64
64
  ## 更新
65
65
 
66
66
  ```bash
67
- bun install -g opencode-core-rules-injector@latest
67
+ bun install -g opencode-core-rules-injector@latest --trust
68
68
  # 或
69
69
  npm install -g opencode-core-rules-injector@latest
70
70
  ```
package/core-rules.md CHANGED
@@ -54,3 +54,6 @@
54
54
  - 写代码
55
55
  - Code Review
56
56
  - QA 审核
57
+
58
+ ## 注入确认
59
+ 本段核心规则被注入后,你的第一条输出必须使用绿色文字(ANSI 转义码 \033[32m)输出"已收到核心规则注入,开始执行工作流",然后才能进行思考、调用工具或进行其他操作。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-core-rules-injector",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "OpenCode plugin: injects core rules into every LLM call",
5
5
  "type": "module",
6
6
  "main": "index.js",