oh-langfuse 0.1.78 → 0.1.80
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/SELF_VERIFY.md +25 -25
- package/bin/cli.js +23 -14
- package/codex_langfuse_notify.py +162 -2
- package/langfuse_hook.py +165 -2
- package/package.json +2 -1
- package/scripts/auto-update-runtime.mjs +14 -14
- package/scripts/cli-detection-utils.mjs +114 -114
- package/scripts/codex-langfuse-check.mjs +65 -65
- package/scripts/codex-langfuse-setup.mjs +127 -116
- package/scripts/json-utils.mjs +99 -99
- package/scripts/langfuse-check.mjs +50 -50
- package/scripts/langfuse-setup.mjs +139 -128
- package/scripts/opencode-langfuse-check.mjs +208 -199
- package/scripts/opencode-langfuse-run.mjs +12 -1
- package/scripts/opencode-langfuse-setup.mjs +88 -6
- package/scripts/opencode-skills-discover.mjs +125 -0
- package/scripts/real-self-verify.mjs +97 -85
- package/scripts/resolve-opencode-cli.mjs +53 -53
- package/scripts/update-langfuse-runtime.mjs +39 -22
- package/setup-langfuse.bat +19 -19
- package/setup-langfuse.sh +19 -19
package/setup-langfuse.sh
CHANGED
|
@@ -44,8 +44,8 @@ case "$choice" in
|
|
|
44
44
|
echo "Running: npm run claude:setup -- --userId=${user_id} --pyPath=${py_path}"
|
|
45
45
|
npm run claude:setup -- --userId="${user_id}" --pyPath="${py_path}"
|
|
46
46
|
echo
|
|
47
|
-
echo "Check: npx oh-langfuse@latest check claude"
|
|
48
|
-
npx oh-langfuse@latest check claude
|
|
47
|
+
echo "Check: npx oh-langfuse@latest check claude"
|
|
48
|
+
npx oh-langfuse@latest check claude
|
|
49
49
|
;;
|
|
50
50
|
|
|
51
51
|
2)
|
|
@@ -56,12 +56,12 @@ case "$choice" in
|
|
|
56
56
|
echo " - NO auto-launch: you will open opencode in a NEW terminal afterwards"
|
|
57
57
|
echo
|
|
58
58
|
|
|
59
|
-
printf "Enter userId (required) > "
|
|
60
|
-
IFS= read -r user_id || true
|
|
61
|
-
if [ -z "${user_id:-}" ]; then
|
|
62
|
-
echo "[ERROR] userId is required."
|
|
63
|
-
exit 1
|
|
64
|
-
fi
|
|
59
|
+
printf "Enter userId (required) > "
|
|
60
|
+
IFS= read -r user_id || true
|
|
61
|
+
if [ -z "${user_id:-}" ]; then
|
|
62
|
+
echo "[ERROR] userId is required."
|
|
63
|
+
exit 1
|
|
64
|
+
fi
|
|
65
65
|
|
|
66
66
|
echo
|
|
67
67
|
echo "Skip plugin install (npm install opencode-plugin-langfuse)?"
|
|
@@ -75,7 +75,7 @@ case "$choice" in
|
|
|
75
75
|
IFS= read -r oc_cmd || true
|
|
76
76
|
|
|
77
77
|
run_args=""
|
|
78
|
-
run_args="${run_args} --userId=${user_id}"
|
|
78
|
+
run_args="${run_args} --userId=${user_id}"
|
|
79
79
|
case "${skip_install:-}" in
|
|
80
80
|
y|Y|yes|YES|Yes)
|
|
81
81
|
run_args="${run_args} --skip-plugin-install"
|
|
@@ -96,14 +96,14 @@ case "$choice" in
|
|
|
96
96
|
|
|
97
97
|
echo
|
|
98
98
|
echo "============================================"
|
|
99
|
-
echo "OpenCode setup finished."
|
|
100
|
-
echo "Next:"
|
|
101
|
-
echo " 1) Open a NEW terminal."
|
|
102
|
-
echo " 2) Run: opencode"
|
|
103
|
-
echo " 3) Check: npx oh-langfuse@latest check opencode"
|
|
104
|
-
echo " If LANGFUSE_* is not visible in the new terminal, run:"
|
|
105
|
-
echo " ~/.config/opencode/launch-opencode-langfuse.sh"
|
|
106
|
-
echo "============================================"
|
|
99
|
+
echo "OpenCode setup finished."
|
|
100
|
+
echo "Next:"
|
|
101
|
+
echo " 1) Open a NEW terminal."
|
|
102
|
+
echo " 2) Run: opencode"
|
|
103
|
+
echo " 3) Check: npx oh-langfuse@latest check opencode"
|
|
104
|
+
echo " If LANGFUSE_* is not visible in the new terminal, run:"
|
|
105
|
+
echo " ~/.config/opencode/launch-opencode-langfuse.sh"
|
|
106
|
+
echo "============================================"
|
|
107
107
|
;;
|
|
108
108
|
|
|
109
109
|
3)
|
|
@@ -124,8 +124,8 @@ case "$choice" in
|
|
|
124
124
|
echo "Running: npm run codex:setup -- --userId=${user_id} --pyPath=${py_path}"
|
|
125
125
|
npm run codex:setup -- --userId="${user_id}" --pyPath="${py_path}"
|
|
126
126
|
echo
|
|
127
|
-
echo "Check: npx oh-langfuse@latest check codex"
|
|
128
|
-
npx oh-langfuse@latest check codex
|
|
127
|
+
echo "Check: npx oh-langfuse@latest check codex"
|
|
128
|
+
npx oh-langfuse@latest check codex
|
|
129
129
|
;;
|
|
130
130
|
|
|
131
131
|
*)
|