@amaster.ai/dsh-langfuse 0.1.2 → 0.1.4
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/lib/client.js +1 -1
- package/lib/index.js +2 -2
- package/lib/types/client.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +10 -10
package/lib/client.js
CHANGED
|
@@ -46,7 +46,7 @@ const NO_PARENT = { traceId: '0'.repeat(32), spanId: '0'.repeat(16), traceFlags:
|
|
|
46
46
|
* `input_*`, `output` excludes `output_*`, `total` is the bucket sum —
|
|
47
47
|
* overlapping buckets double-count usage and inferred cost). dsh reports
|
|
48
48
|
* uncached input, separate cache buckets, and provider-style output that
|
|
49
|
-
* INCLUDES reasoning (verified in dsh-llm-deepseek@0.1.
|
|
49
|
+
* INCLUDES reasoning (verified in dsh-llm-deepseek@0.1.6-alpha.2:
|
|
50
50
|
* `outputTokens: usage.completion_tokens`, with reasoning split out of
|
|
51
51
|
* `completion_tokens_details`), so the `output` bucket subtracts
|
|
52
52
|
* `reasoningTokens` into `output_reasoning`. Only `usageDetails` is sent.
|
package/lib/index.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* `subagent/descriptor` event).
|
|
24
24
|
*
|
|
25
25
|
* Event/waterfall shapes verified against the installed
|
|
26
|
-
* @deepseek-ai/dsh-{llm,session,tools,agent,subagent}@0.1.
|
|
26
|
+
* @deepseek-ai/dsh-{llm,session,tools,agent,subagent}@0.1.6-alpha.2 package sources
|
|
27
27
|
* (types for shapes; `lib/*.js` for the session/created ordering claim).
|
|
28
28
|
*
|
|
29
29
|
* @module dsh-langfuse
|
|
@@ -179,7 +179,7 @@ export function apply(ctx, config) {
|
|
|
179
179
|
// ------------------------------------------------------------------
|
|
180
180
|
// Subagent child sessions: session/created precedes both subagent/start
|
|
181
181
|
// and the child's first generation, and the durable header already links
|
|
182
|
-
// child → parent (verified against dsh-subagent@0.1.
|
|
182
|
+
// child → parent (verified against dsh-subagent@0.1.6-alpha.2).
|
|
183
183
|
// ------------------------------------------------------------------
|
|
184
184
|
ctx.on('session/created', (session) => {
|
|
185
185
|
const parentSessionId = session.header.parentSession;
|
package/lib/types/client.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ type Observation = LangfuseSpan | LangfuseGeneration;
|
|
|
49
49
|
* `input_*`, `output` excludes `output_*`, `total` is the bucket sum —
|
|
50
50
|
* overlapping buckets double-count usage and inferred cost). dsh reports
|
|
51
51
|
* uncached input, separate cache buckets, and provider-style output that
|
|
52
|
-
* INCLUDES reasoning (verified in dsh-llm-deepseek@0.1.
|
|
52
|
+
* INCLUDES reasoning (verified in dsh-llm-deepseek@0.1.6-alpha.2:
|
|
53
53
|
* `outputTokens: usage.completion_tokens`, with reasoning split out of
|
|
54
54
|
* `completion_tokens_details`), so the `output` bucket subtracts
|
|
55
55
|
* `reasoningTokens` into `output_reasoning`. Only `usageDetails` is sent.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* `subagent/descriptor` event).
|
|
24
24
|
*
|
|
25
25
|
* Event/waterfall shapes verified against the installed
|
|
26
|
-
* @deepseek-ai/dsh-{llm,session,tools,agent,subagent}@0.1.
|
|
26
|
+
* @deepseek-ai/dsh-{llm,session,tools,agent,subagent}@0.1.6-alpha.2 package sources
|
|
27
27
|
* (types for shapes; `lib/*.js` for the session/created ordering claim).
|
|
28
28
|
*
|
|
29
29
|
* @module dsh-langfuse
|
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.4",
|
|
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,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
39
|
-
"@deepseek-ai/dsh-llm": "0.1.5-rc.1",
|
|
40
|
-
"@deepseek-ai/dsh-session": "0.1.5-rc.1",
|
|
41
|
-
"@deepseek-ai/dsh-subagent": "0.1.5-rc.1",
|
|
42
|
-
"@deepseek-ai/dsh-tools": "0.1.5-rc.1",
|
|
39
|
+
"@deepseek-ai/dsh-llm": ">=0.1.5-rc.1",
|
|
40
|
+
"@deepseek-ai/dsh-session": ">=0.1.5-rc.1",
|
|
41
|
+
"@deepseek-ai/dsh-subagent": ">=0.1.5-rc.1",
|
|
42
|
+
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.1",
|
|
43
43
|
"@langfuse/otel": "^5.10.1",
|
|
44
44
|
"@langfuse/tracing": "^5.10.1",
|
|
45
45
|
"@opentelemetry/sdk-trace-node": "^2.10.0"
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
60
|
-
"@deepseek-ai/dsh-agent": "0.1.
|
|
61
|
-
"@deepseek-ai/dsh-llm": "0.1.
|
|
62
|
-
"@deepseek-ai/dsh-session": "0.1.
|
|
63
|
-
"@deepseek-ai/dsh-subagent": "0.1.
|
|
64
|
-
"@deepseek-ai/dsh-tools": "0.1.
|
|
60
|
+
"@deepseek-ai/dsh-agent": "0.1.6-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-llm": "0.1.6-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-session": "0.1.6-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-subagent": "0.1.6-alpha.2",
|
|
64
|
+
"@deepseek-ai/dsh-tools": "0.1.6-alpha.2",
|
|
65
65
|
"@langfuse/otel": "5.10.1",
|
|
66
66
|
"@langfuse/tracing": "5.10.1",
|
|
67
67
|
"@opentelemetry/api": "^1.9.1",
|