oh-langfuse 0.1.48 → 0.1.49

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.48",
3
+ "version": "0.1.49",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Use npm scripts to configure Claude Code / OpenCode / Codex with Langfuse tracing.",
@@ -55,8 +55,8 @@ function configHasNotify(configText) {
55
55
  return /^\s*notify\s*=.*codex_langfuse_notify\.py/m.test(topLevel);
56
56
  }
57
57
 
58
- function addResult(results, item, ok, detail, fix = "") {
59
- results.push({ item, ok, detail, fix });
58
+ function addResult(results, item, ok, detail, fix = "", options = {}) {
59
+ results.push({ item, ok, detail, fix, required: options.required !== false });
60
60
  }
61
61
 
62
62
  function main() {
@@ -95,8 +95,22 @@ function main() {
95
95
  langfuseConfig?.publicKey ? "configured" : "missing",
96
96
  "Provide publicKey/secretKey or use the defaults from the installer."
97
97
  );
98
- addResult(results, "sessions directory", fs.existsSync(sessionsDir), sessionsDir, "Start Codex once so session JSONL files are created.");
99
- addResult(results, "latest session JSONL", !!latestSession, latestSession || "not found", "Start a Codex conversation, then check again.");
98
+ addResult(
99
+ results,
100
+ "sessions directory",
101
+ fs.existsSync(sessionsDir),
102
+ fs.existsSync(sessionsDir) ? sessionsDir : `${sessionsDir} (not created yet)`,
103
+ "Start Codex once so session JSONL files are created.",
104
+ { required: false }
105
+ );
106
+ addResult(
107
+ results,
108
+ "latest session JSONL",
109
+ !!latestSession,
110
+ latestSession || "not found yet",
111
+ "Start a Codex conversation, then check again.",
112
+ { required: false }
113
+ );
100
114
  addResult(results, "Python", python.ok, python.detail || "not found", "Install Python and pip, then rerun setup.");
101
115
  addResult(results, "Langfuse venv Python", fs.existsSync(hookPython), hookPython, "Run setup again; on Linux install python3-venv if venv creation fails.");
102
116
  addResult(
@@ -118,9 +132,9 @@ function main() {
118
132
  const pad = (s, n) => (s.length >= n ? s : s + " ".repeat(n - s.length));
119
133
  const failed = [];
120
134
  for (const r of results) {
121
- const status = r.ok ? "OK " : "BAD";
135
+ const status = r.ok ? "OK " : r.required ? "BAD" : "INFO";
122
136
  console.log(`${status} ${pad(r.item, w)} ${r.detail}`);
123
- if (!r.ok) failed.push(r);
137
+ if (!r.ok && r.required) failed.push(r);
124
138
  }
125
139
 
126
140
  if (failed.length) {