@ramarivera/coding-agent-langfuse 0.1.34 → 0.1.35

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
@@ -78,9 +78,10 @@ The Windows path intentionally uses a per-user Scheduled Task for the default
78
78
  service binary; raw `sc.exe` is not a good fit for a transient npm command.
79
79
 
80
80
  The generated services are package-manager agnostic. By default the installer
81
- uses the `npx` executable found on the current host and captures the current
82
- `PATH`; use `--npx-path` and `--path` when installing from a shell manager such
83
- as Homebrew, nvm, fnm, Volta, asdf, mise, or a system Node.js install.
81
+ uses `npx` through the service `PATH` (`/usr/bin/env npx` on macOS and Linux)
82
+ and captures the current `PATH`; use `--npx-path` and `--path` when installing
83
+ from a shell manager such as Homebrew, nvm, fnm, Volta, asdf, mise, or a system
84
+ Node.js install.
84
85
 
85
86
  ## Backfill windows
86
87
 
package/dist/service.js CHANGED
@@ -306,6 +306,7 @@ WantedBy=default.target
306
306
  `;
307
307
  }
308
308
  function renderLaunchdPlist(options, command) {
309
+ const programArguments = launchdCommand(command);
309
310
  return `<?xml version="1.0" encoding="UTF-8"?>
310
311
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
311
312
  <plist version="1.0">
@@ -314,7 +315,7 @@ function renderLaunchdPlist(options, command) {
314
315
  <string>${escapeXml(options.name)}</string>
315
316
  <key>ProgramArguments</key>
316
317
  <array>
317
- ${command.map((part) => ` <string>${escapeXml(part)}</string>`).join("\n")}
318
+ ${programArguments.map((part) => ` <string>${escapeXml(part)}</string>`).join("\n")}
318
319
  </array>
319
320
  <key>EnvironmentVariables</key>
320
321
  <dict>
@@ -407,7 +408,13 @@ function defaultNpxPath(platform) {
407
408
  if (platform === "win32") {
408
409
  return findExecutable("npx.cmd", "where") ?? "npx.cmd";
409
410
  }
410
- return findExecutable("npx", "which") ?? "npx";
411
+ return "npx";
412
+ }
413
+ function launchdCommand(command) {
414
+ const [program, ...args] = command;
415
+ if (!program)
416
+ return command;
417
+ return program.includes("/") ? command : ["/usr/bin/env", program, ...args];
411
418
  }
412
419
  function findExecutable(name, finder) {
413
420
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramarivera/coding-agent-langfuse",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "Universal coding-agent Langfuse backfiller and live OTLP helpers",
5
5
  "type": "module",
6
6
  "license": "MIT",