@amaster.ai/dsh-langfuse 0.1.39 → 0.1.40
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 +1 -1
- package/package.json +19 -18
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ Configured Langfuse credentials and `pk-lf-*` / `sk-lf-*` values are redacted ac
|
|
|
62
62
|
|
|
63
63
|
Text-only generation output remains a string. When reasoning or tool calls are present, output uses the Langfuse chat format: `role: "assistant"`, optional `content`, `thinking` blocks, and `tool_calls` with the original call ID and function arguments. This renders thinking and invoked tools in the formatted preview. The original reasoning deltas remain in the nested `llm-request` output; no extra generation is created.
|
|
64
64
|
|
|
65
|
-
`captureMedia: true` requires content capture and an available `ctx.attachments` service (`@deepseek-ai/dsh-attachment >=0.2.0-rc.1`). Prompt, generation-input, and tool-output image references are read through that service and converted to data URIs for the SDK's media uploader. Install the attachment bundle appropriate to the deployment; the plugin does not instantiate a storage backend. Missing/failed reads, offloaded images, unsupported MIME types, oversized images, and disabled media fall back to MIME/size/dimension metadata. A generation's byte budget covers all messages in that request. Observation end times are captured when the model, tool, or turn completes; delayed image reads do not extend business latency. `LANGFUSE_MEDIA_UPLOAD_ENABLED=false` (or `0`) overrides media capture. Verbatim file references remain metadata; their bytes are not uploaded.
|
|
65
|
+
`captureMedia: true` requires content capture and an available `ctx.attachments` service (`@deepseek-ai/dsh-attachment >=0.2.0-rc.1 || >=0.2.2-rc.1`). Prompt, generation-input, and tool-output image references are read through that service and converted to data URIs for the SDK's media uploader. Install the attachment bundle appropriate to the deployment; the plugin does not instantiate a storage backend. Missing/failed reads, offloaded images, unsupported MIME types, oversized images, and disabled media fall back to MIME/size/dimension metadata. A generation's byte budget covers all messages in that request. Observation end times are captured when the model, tool, or turn completes; delayed image reads do not extend business latency. `LANGFUSE_MEDIA_UPLOAD_ENABLED=false` (or `0`) overrides media capture. Verbatim file references remain metadata; their bytes are not uploaded.
|
|
66
66
|
|
|
67
67
|
Root severity follows the final turn reason: errors are `ERROR`; cancellation, blocking, token limits, and interruptions are `WARNING`. A recovered intermediate generation/tool/hook/subagent error sets `hadErrors` metadata while a successful final turn remains `DEFAULT`. This keeps retry failures visible without treating recovery as a failed turn. Outstanding tools also close as `WARNING` at unload, including calls without an agent/session; late results still reach their original callers without repeated telemetry or media reads.
|
|
68
68
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/dsh-langfuse",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "Langfuse observability plugin for DeepSeek Harness: one generation per LLM call with a nested llm-request span, one span per tool call, one trace per session turn, subagent child sessions nested under the parent's tree.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
39
|
-
"@deepseek-ai/dsh-attachment": ">=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
40
|
-
"@deepseek-ai/dsh-llm": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
41
|
-
"@deepseek-ai/dsh-session": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
42
|
-
"@deepseek-ai/dsh-subagent": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
43
|
-
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
39
|
+
"@deepseek-ai/dsh-attachment": ">=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
40
|
+
"@deepseek-ai/dsh-llm": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
41
|
+
"@deepseek-ai/dsh-session": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
42
|
+
"@deepseek-ai/dsh-subagent": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
43
|
+
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
44
44
|
"@langfuse/otel": "^5.10.1",
|
|
45
45
|
"@langfuse/tracing": "^5.10.1",
|
|
46
46
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -64,17 +64,17 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@deepseek-ai/cordis": "4.0
|
|
68
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
69
|
-
"@deepseek-ai/dsh-attachment": "0.2.
|
|
70
|
-
"@deepseek-ai/dsh-hook-protocol": "0.2.
|
|
71
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
72
|
-
"@deepseek-ai/dsh-ptc-runtime": "0.2.
|
|
73
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
74
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
75
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
76
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
77
|
-
"@deepseek-ai/dsh-util-time": "0.2.
|
|
67
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
68
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-hook-protocol": "0.2.2-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.2-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-util-time": "0.2.2-rc.1",
|
|
78
78
|
"@langfuse/otel": "5.10.1",
|
|
79
79
|
"@langfuse/tracing": "5.10.1",
|
|
80
80
|
"@opentelemetry/api": "^1.9.1",
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
"@opentelemetry/sdk-trace-node": "^2.10.0",
|
|
83
83
|
"@types/node": "^22.0.0",
|
|
84
84
|
"typescript": "^5.6.3",
|
|
85
|
-
"vitest": "^4.1.11"
|
|
85
|
+
"vitest": "^4.1.11",
|
|
86
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1"
|
|
86
87
|
},
|
|
87
88
|
"engines": {
|
|
88
89
|
"node": "^20.19 || ^22.12 || >=24.0"
|