oh-langfuse 0.1.38 → 0.1.39

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  `oh-langfuse` 是用于给 Claude Code、OpenCode 和 Codex 配置 Langfuse 追踪的命令行工具。它提供交互式安装向导,也支持 `setup` / `check` 直接命令,方便在用户机器上安装、修复和校验配置。
4
4
 
5
- 当前 npm 版本:`0.1.38`
5
+ 当前 npm 版本:`0.1.39`
6
6
 
7
7
  ## 能做什么
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-langfuse",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Use npm scripts to configure Claude Code / OpenCode / Codex with Langfuse tracing.",
@@ -6,7 +6,9 @@ export function shouldSuppressAgentLogLine(line, options = {}) {
6
6
  const showWarnings = options.showWarnings ?? envShowsWarnings(options.env);
7
7
  if (showWarnings) return false;
8
8
  const text = String(line || "").trim();
9
- return /(?:^|\s)(npm\s+warn|warn(?:ing)?\b|\[warn\])/i.test(text);
9
+ return /(?:^|\s)(npm\s+warn|warn(?:ing)?\b|\[warn\])/i.test(text)
10
+ || /^(?:error\b|\[[^\]]*error[^\]]*\])/i.test(text)
11
+ || /\[error\]/i.test(text);
10
12
  }
11
13
 
12
14
  export function filterAgentLogText(text, options = {}) {