@ramarivera/coding-agent-langfuse 0.1.50 → 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.
package/README.md CHANGED
@@ -54,8 +54,8 @@ real network cause, and preserves local state so reruns resume cleanly.
54
54
  ## Project tags and metadata
55
55
 
56
56
  Backfills and live followers can attach stable Langfuse dimensions based on the
57
- session cwd. Use this for client/workstream dashboards like ITSynch without
58
- guessing from host names or Windows paths in the Langfuse UI.
57
+ session cwd. Use this for client/workstream dashboards without guessing from
58
+ host names or Windows paths in the Langfuse UI.
59
59
 
60
60
  There are two config layers:
61
61
 
@@ -69,14 +69,14 @@ Global config uses prefix rules:
69
69
  {
70
70
  "rules": [
71
71
  {
72
- "pathPrefix": "/Users/ramarivera/dev/itsynch",
73
- "tags": ["itsynch", "client:itsynch"],
72
+ "pathPrefix": "/Users/example/dev/acme",
73
+ "tags": ["acme", "client:acme"],
74
74
  "metadata": {
75
- "project_group": "itsynch",
76
- "project_owner": "ramiro"
75
+ "project_group": "acme",
76
+ "project_owner": "platform-team"
77
77
  },
78
- "projectName": "itsynch",
79
- "projectFolder": "itsynch"
78
+ "projectName": "acme",
79
+ "projectFolder": "acme"
80
80
  }
81
81
  ]
82
82
  }
@@ -93,7 +93,7 @@ repos add repo-specific fields:
93
93
  "metadata": {
94
94
  "service": "portal"
95
95
  },
96
- "projectName": "itsynch-portal"
96
+ "projectName": "acme-portal"
97
97
  }
98
98
  ```
99
99
 
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.50",
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",