@ramarivera/coding-agent-langfuse 0.1.51 → 0.1.52

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.
Files changed (2) hide show
  1. package/dist/service.js +10 -3
  2. package/package.json +1 -1
package/dist/service.js CHANGED
@@ -332,7 +332,7 @@ WantedBy=default.target
332
332
  `;
333
333
  }
334
334
  function renderLaunchdPlist(options, command) {
335
- const programArguments = launchdCommand(command);
335
+ const programArguments = launchdCommand(options, command);
336
336
  return `<?xml version="1.0" encoding="UTF-8"?>
337
337
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
338
338
  <plist version="1.0">
@@ -434,11 +434,18 @@ function defaultNpxPath(platform) {
434
434
  }
435
435
  return "npx";
436
436
  }
437
- function launchdCommand(command) {
437
+ function launchdCommand(options, command) {
438
438
  const [program, ...args] = command;
439
439
  if (!program)
440
440
  return command;
441
- return program.includes("/") ? command : ["/usr/bin/env", program, ...args];
441
+ const isolatedEnv = [
442
+ "/usr/bin/env",
443
+ "-i",
444
+ `HOME=${options.homeDir}`,
445
+ `PATH=${options.pathEnv}`,
446
+ `LANGFUSE_BACKFILL_ENDPOINT=${options.endpoint}`,
447
+ ];
448
+ return [...isolatedEnv, program, ...args];
442
449
  }
443
450
  function findExecutable(name, finder) {
444
451
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramarivera/coding-agent-langfuse",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "Universal coding-agent Langfuse backfiller and live OTLP helpers",
5
5
  "type": "module",
6
6
  "license": "MIT",