@amaster.ai/dsh-langfuse 0.1.26 → 0.1.28

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
@@ -95,6 +95,8 @@ Custom bridges use the same `hook/invoked` and `hook/result` session records. Th
95
95
 
96
96
  Import `appendHookEvent`, `HookInvoked`, and `HookResult` from `@amaster.ai/dsh-langfuse`. This typed writer uses the real `session.append` publication path without redeclaring `SessionEventMap`. Its TypeScript adaptation allows custom payloads despite the optional upstream `dsh-hook-protocol` type augmentation; it does not widen that package's runtime contract, runner, or bridge APIs. The writer validates fields, catches append failures, logs `[dsh-langfuse]`, and returns a boolean; telemetry success must never control a hook's decision.
97
97
 
98
+ **DSH 0.2.1-rc.2.** The upstream hook invariant companion and `dsh-invariants` package are no longer part of this runtime. Custom dialects and delayed results are accepted through the session publication seam; the plugin still validates hook records and contains append failures.
99
+
98
100
  **Runtime compatibility boundary (verified with `dsh-hook-protocol@0.2.0-rc.2`).** When its invariant companion is registered and enabled through `dsh-invariants`, it rejects dialects other than `claude-code`/`codex`, invocations outside an open turn, and results after their turn closes or while another turn is open. A type assertion cannot bypass these pre-commit checks. `appendHookEvent` returns `false` for rejected records; they are not committed or published and produce no Langfuse hook observation.
99
101
 
100
102
  | Runtime composition | Claude Code/Codex pairs in the open turn | Custom dialects | Detached invocations / late results |
package/lib/index.js CHANGED
@@ -462,7 +462,6 @@ export function apply(ctx, config) {
462
462
  pending: event.pending,
463
463
  target: event.target,
464
464
  position: event.position,
465
- paused: event.paused,
466
465
  agentStatus: event.agentStatus,
467
466
  turn: event.turn,
468
467
  step: event.step,
@@ -476,7 +475,6 @@ export function apply(ctx, config) {
476
475
  target: event.target,
477
476
  position: event.position,
478
477
  pending: event.pending,
479
- paused: event.paused,
480
478
  agentStatus: event.agentStatus,
481
479
  };
482
480
  if (event.phase === 'selected') {
@@ -561,10 +559,6 @@ export function apply(ctx, config) {
561
559
  };
562
560
  closeTask(task, new Date(event.at));
563
561
  }
564
- else
565
- reporter.updateSpan(task.trace, {
566
- metadata: { taskState: event.phase === 'paused' ? 'paused' : undefined },
567
- });
568
562
  }
569
563
  if (event.phase === 'disposed')
570
564
  suspendTasks(id);
@@ -44,7 +44,6 @@ interface A2aInboxEvent {
44
44
  target?: 'next-turn' | 'next-step';
45
45
  input?: string;
46
46
  position?: number;
47
- paused?: boolean;
48
47
  agentStatus?: string;
49
48
  taskId?: string;
50
49
  taskIds?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/dsh-langfuse",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
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",
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",
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",
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",
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",
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",
44
44
  "@langfuse/otel": "^5.10.1",
45
45
  "@langfuse/tracing": "^5.10.1",
46
46
  "@opentelemetry/api": "^1.9.0",
@@ -64,18 +64,17 @@
64
64
  }
65
65
  },
66
66
  "devDependencies": {
67
- "@deepseek-ai/cordis": "^4.0.4",
68
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
69
- "@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
70
- "@deepseek-ai/dsh-hook-protocol": "0.2.0-rc.2",
71
- "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
72
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
73
- "@deepseek-ai/dsh-ptc-runtime": "0.2.0-rc.2",
74
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
75
- "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
76
- "@deepseek-ai/dsh-subagent": "0.2.0-rc.2",
77
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
78
- "@deepseek-ai/dsh-util-time": "0.2.0-rc.2",
67
+ "@deepseek-ai/cordis": "4.0.5",
68
+ "@deepseek-ai/dsh-agent": "0.2.1-rc.2",
69
+ "@deepseek-ai/dsh-attachment": "0.2.1-rc.2",
70
+ "@deepseek-ai/dsh-hook-protocol": "0.2.1-rc.2",
71
+ "@deepseek-ai/dsh-llm": "0.2.1-rc.2",
72
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.2",
73
+ "@deepseek-ai/dsh-session": "0.2.1-rc.2",
74
+ "@deepseek-ai/dsh-session-projection": "0.2.1-rc.2",
75
+ "@deepseek-ai/dsh-subagent": "0.2.1-rc.2",
76
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
77
+ "@deepseek-ai/dsh-util-time": "0.2.1-rc.2",
79
78
  "@langfuse/otel": "5.10.1",
80
79
  "@langfuse/tracing": "5.10.1",
81
80
  "@opentelemetry/api": "^1.9.1",