oh-langfuse 0.1.58 → 0.1.59

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`、`update`、`auto-update` 等直接命令。
4
4
 
5
- 当前 npm 版本:`0.1.58`
5
+ 当前 npm 版本:`0.1.59`
6
6
 
7
7
  ## 能做什么
8
8
 
@@ -88,8 +88,8 @@ npx oh-langfuse@latest verify-update all
88
88
  输出示例:
89
89
 
90
90
  ```text
91
- [OK] OpenCode Langfuse runtime is current: 0.1.58
92
- [FAIL] Codex Langfuse runtime is outdated: installed 0.1.57, latest 0.1.58
91
+ [OK] OpenCode Langfuse runtime is current: 0.1.59
92
+ [FAIL] Codex Langfuse runtime is outdated: installed 0.1.58, latest 0.1.59
93
93
  [FIX] Run: npx oh-langfuse@latest update codex
94
94
  [SKIP] Claude not installed
95
95
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-langfuse",
3
- "version": "0.1.58",
3
+ "version": "0.1.59",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Use npm scripts to configure Claude Code / OpenCode / Codex with Langfuse tracing.",
@@ -254,7 +254,9 @@ async function main() {
254
254
  printUpdateSummary(targets);
255
255
  }
256
256
 
257
- main().catch((error) => {
258
- console.error(`[FAIL] ${error?.message || String(error)}`);
259
- process.exit(1);
260
- });
257
+ main()
258
+ .then(() => process.exit(0))
259
+ .catch((error) => {
260
+ console.error(`[FAIL] ${error?.message || String(error)}`);
261
+ process.exit(1);
262
+ });
@@ -154,9 +154,9 @@ async function main() {
154
154
 
155
155
  main()
156
156
  .then((code) => {
157
- process.exitCode = code;
157
+ process.exit(code);
158
158
  })
159
159
  .catch((error) => {
160
160
  console.error(paint(`[FAIL] ${error?.message || String(error)}`, t.bold, t.red));
161
- process.exitCode = 3;
161
+ process.exit(3);
162
162
  });