oh-langfuse 0.1.50 → 0.1.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-langfuse",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Use npm scripts to configure Claude Code / OpenCode / Codex with Langfuse tracing.",
@@ -60,6 +60,19 @@ function npxCommand() {
60
60
  return process.platform === "win32" ? "npx.cmd" : "npx";
61
61
  }
62
62
 
63
+ function runNpx(args, options = {}) {
64
+ if (process.platform === "win32") {
65
+ return spawnSync("cmd.exe", ["/d", "/s", "/c", npxCommand(), ...args], {
66
+ ...options,
67
+ windowsHide: true,
68
+ });
69
+ }
70
+ return spawnSync(npxCommand(), args, {
71
+ ...options,
72
+ windowsHide: true,
73
+ });
74
+ }
75
+
63
76
  function targetLabel(target) {
64
77
  if (target === "claude") return "Claude";
65
78
  if (target === "codex") return "Codex";
@@ -85,11 +98,8 @@ function runUpdate(target, args) {
85
98
  if (args["skip-check"]) updateArgs.push("--skip-check");
86
99
  if (args.npmRegistry) updateArgs.push(`--npmRegistry=${args.npmRegistry}`);
87
100
  if (args.pipIndexUrl) updateArgs.push(`--pipIndexUrl=${args.pipIndexUrl}`);
88
- const command = npxCommand();
89
- const result = spawnSync(command, updateArgs, {
101
+ const result = runNpx(updateArgs, {
90
102
  stdio: "inherit",
91
- shell: process.platform === "win32",
92
- windowsHide: true,
93
103
  timeout: 900000,
94
104
  });
95
105
  return result.status ?? (result.error ? 1 : 0);