dsh-observe 0.2.18 → 0.2.19
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/CHANGELOG.md +10 -0
- package/README-es.md +1 -1
- package/README-hi.md +1 -1
- package/README-pt.md +1 -1
- package/README-zh.md +1 -1
- package/README.md +1 -1
- package/lib/index.js +1 -1
- package/lib/types/version.d.ts +1 -1
- package/lib/types/version.js +1 -1
- package/package.json +23 -22
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.19] - 2026-10-04
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- The Loader composition runner reports a failed row's own reason again. `cordis-plugin-loader` 1.0.6 (the pin this host line moved to) dropped the failure surface 1.0.4's `await()` had: `getTasks()` maps only `entry._initTask || entry.fiber?.inertia`, and by the time a row's config or `apply` has thrown both are cleared — `Entry._init()` clears `_initTask` in a `finally`, and cordis's `_reload()` catches the throw onto `fiber._error` and clears `inertia` — so `await()` returned as if the mount had succeeded. The two negative composition regressions therefore failed on the downstream symptom (`no OTLP /v1/traces export was issued`) instead of the config error they assert (`at least one backend`, `publicKey must be a non-empty string`). `scripts/loader-runner.mjs` now walks `ctx.loader.entries()` after `await()` and re-throws the first FAILED row's `fiber._error` (falling back to the exporter-captured error-level log record, then to a generic row message), throwing an `AggregateError` when several rows failed. Forcing the pre-move dependency instead would have narrowed the host line's own pin, so the recovery lives in the runner; `DSH_LOADER_RUNNER_NO_RETHROW=1` disables it for re-measurement only. No plugin source, exported surface or runtime behavior changed — this is a test-harness fidelity fix, and no README row is affected.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Host pins move to `0.2.1-alpha.1`; re-verified against that host line. Every `@deepseek-ai/dsh-*` dev/test dependency now pins `0.2.1-alpha.1`, the `dshWorkshop.compatibility.dshVersions` timeline appends `0.2.1-alpha.1`, and the compatibility baseline in every README records the `dsh-v0.2.1-alpha.1` host. The declared host ranges (`engines.dsh` and the `peerDependencies` union) gain the `|| >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0` clauses: the previous upper bound was `<0.2.0`, which under semver rejects every 0.2.x host, so the probe host itself was not installable. Nothing was narrowed — the `0.1.x` clauses are unchanged, in place and in order.
|
|
19
|
+
|
|
10
20
|
## [0.2.18] - 2026-09-25
|
|
11
21
|
|
|
12
22
|
### Changed
|
package/README-es.md
CHANGED
|
@@ -36,7 +36,7 @@ Este plugin forma parte de la [familia de plugins DSH](https://github.com/PerryL
|
|
|
36
36
|
|
|
37
37
|
| Superficie | Estado |
|
|
38
38
|
|---|---|
|
|
39
|
-
| Harness | DeepSeek Harness `dsh-v0.1
|
|
39
|
+
| Harness | DeepSeek Harness `dsh-v0.2.1-alpha.1` (adaptado el 2026-10-04): el formato de sesión V4 representa el resultado de una herramienta como un mensaje de primera clase `role: 'tool'` con `toolCallId` + `content` + `isError` opcional en el nivel superior — el bloque de contenido `tool-result` de V3 ya no está en el `ContentBlockMap` del host, y este plugin solo lee la forma V4 (un log V3 anterior a la actualización todavía se proyecta mediante una ruta de compatibilidad de solo lectura). Los demás rasgos del formato de sesión V3 se mantienen: el flujo del asistente se incorpora en `assistant/message` / `assistant/attempt` y el prompt de sistema es el nodo 0 de la superficie (`system/message`); el plugin consume solo el flujo de eventos en vivo y nunca lee archivos de log de sesión. El rango de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.1.5-alpha.1 <0.2.0 \|\| >=0.1.6-0 <0.2.0 \|\| >=0.1.7-0 <0.2.0` mantiene instalable cada línea publicada (cadena completa de puertas local; el workflow compat cubre el smoke de instalación de perfil). |
|
|
40
40
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
41
41
|
| Backends | OpenTelemetry OTLP/HTTP (traces + metrics, codificación JSON) y Langfuse (observabilidad de LLM) — uno o ambos |
|
|
42
42
|
| Modelo | Independiente del modelo: exporta el flujo `session/event`; no realiza llamadas a modelos |
|
package/README-hi.md
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
| सतह | स्थिति |
|
|
38
38
|
|---|---|
|
|
39
|
-
| Harness | DeepSeek Harness `dsh-v0.1
|
|
39
|
+
| Harness | DeepSeek Harness `dsh-v0.2.1-alpha.1` (2026-10-04 को अनुकूलित): सत्र प्रारूप V4 टूल परिणाम को प्रथम-श्रेणी `role: 'tool'` संदेश के रूप में रखता है जिसमें शीर्ष-स्तर पर `toolCallId` + `content` + वैकल्पिक `isError` होता है — V3 का `tool-result` कंटेंट ब्लॉक होस्ट के `ContentBlockMap` से हट चुका है, और यह प्लगइन केवल V4 आकार पढ़ता है (अपग्रेड-पूर्व V3 लॉग अभी भी केवल-पठन संगतता पथ से प्रोजेक्ट होता है)। सत्र प्रारूप V3 के शेष लक्षण जारी हैं: सहायक स्ट्रीम `assistant/message` / `assistant/attempt` में एम्बेड होती है और सिस्टम प्रॉम्प्ट सरफ़ेस नोड 0 (`system/message`) है; प्लगइन केवल लाइव इवेंट स्ट्रीम पढ़ता है और कभी सत्र लॉग फ़ाइलें नहीं पढ़ता। peer रेंज `>=0.1.2-rc.1 <0.2.0 \|\| >=0.1.5-alpha.1 <0.2.0 \|\| >=0.1.6-0 <0.2.0 \|\| >=0.1.7-0 <0.2.0` हर प्रकाशित लाइन को इंस्टॉल-योग्य रखती है (स्थानीय पूर्ण गेट श्रृंखला; प्रोफ़ाइल इंस्टॉल स्मोक compat वर्कफ़्लो कवर करता है)। |
|
|
40
40
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
41
41
|
| बैकएंड | OpenTelemetry OTLP/HTTP (traces + metrics, JSON एन्कोडिंग) और Langfuse (LLM ऑब्ज़र्वेबिलिटी) — एक या दोनों |
|
|
42
42
|
| मॉडल | मॉडल-स्वतंत्र: यह `session/event` स्ट्रीम निर्यात करता है; कोई मॉडल कॉल नहीं करता |
|
package/README-pt.md
CHANGED
|
@@ -36,7 +36,7 @@ Este plugin faz parte da [família de plugins DSH](https://github.com/PerryLink)
|
|
|
36
36
|
|
|
37
37
|
| Superfície | Status |
|
|
38
38
|
|---|---|
|
|
39
|
-
| Harness | DeepSeek Harness `dsh-v0.1
|
|
39
|
+
| Harness | DeepSeek Harness `dsh-v0.2.1-alpha.1` (adaptado em 2026-10-04): o formato de sessão V4 representa o resultado de uma ferramenta como uma mensagem de primeira classe `role: 'tool'` com `toolCallId` + `content` + `isError` opcional no nível superior — o bloco de conteúdo `tool-result` do V3 saiu do `ContentBlockMap` do host, e este plugin lê apenas a forma V4 (um log V3 anterior à atualização ainda é projetado por um caminho de compatibilidade somente leitura). Os demais traços do formato de sessão V3 permanecem: o fluxo do assistente é embutido em `assistant/message` / `assistant/attempt` e o prompt de sistema é o nó 0 da superfície (`system/message`); o plugin consome apenas o fluxo de eventos ao vivo e nunca lê arquivos de log de sessão. O intervalo de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.1.5-alpha.1 <0.2.0 \|\| >=0.1.6-0 <0.2.0 \|\| >=0.1.7-0 <0.2.0` mantém cada linha publicada instalável (cadeia completa de portas local; o workflow compat cobre o smoke de instalação de perfil). |
|
|
40
40
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
41
41
|
| Backends | OpenTelemetry OTLP/HTTP (traces + metrics, codificação JSON) e Langfuse (observabilidade de LLM) — um ou ambos |
|
|
42
42
|
| Modelo | Independente de modelo: exporta o fluxo `session/event`; não faz chamadas a modelos |
|
package/README-zh.md
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
| 方面 | 状态 |
|
|
38
38
|
|---|---|
|
|
39
|
-
| Harness | DeepSeek Harness `dsh-v0.1
|
|
39
|
+
| Harness | DeepSeek Harness `dsh-v0.2.1-alpha.1`(2026-09-22 已适配):会话格式 V4 把工具结果改为 `role: 'tool'` 的一等消息,顶层携带 `toolCallId` + `content` + 可选 `isError` —— V3 的 `tool-result` 内容块已从宿主 `ContentBlockMap` 移除,本插件只读 V4 形状(升级前的 V3 日志仍可经只读兼容路径投影)。会话格式 V3 的其余特征沿用:助手流内嵌到 `assistant/message` / `assistant/attempt`,系统提示词为 surface 节点 0(`system/message`);本插件只消费实时事件流,从不读取会话日志文件。peer 复合范围 `>=0.1.2-rc.1 <0.2.0 \|\| >=0.1.5-alpha.1 <0.2.0 \|\| >=0.1.6-0 <0.2.0 \|\| >=0.1.7-0 <0.2.0` 保持每条已发布线可安装(本地完整门禁链;profile 安装冒烟由 compat 工作流覆盖)。 |
|
|
40
40
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
41
41
|
| 后端 | OpenTelemetry OTLP/HTTP(traces + metrics,JSON 编码)与 Langfuse(LLM 可观测)——二选一或同时 |
|
|
42
42
|
| 模型 | 与模型无关:它导出 session/event 流,自身不调用任何模型 |
|
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
| Surface | Status |
|
|
40
40
|
|---|---|
|
|
41
|
-
| Harness | DeepSeek Harness `dsh-v0.1
|
|
41
|
+
| Harness | DeepSeek Harness `dsh-v0.2.1-alpha.1` (adapted 2026-10-04): session format V4 represents a tool result as a first-class `role: 'tool'` message carrying top-level `toolCallId` + `content` + optional `isError` — the V3 `tool-result` content block is gone from the host's `ContentBlockMap`, and this plugin reads only the V4 shape (a pre-upgrade V3 log still projects through a read-only compatibility path). Session format V3's other traits carry over: the assistant stream is embedded in `assistant/message` / `assistant/attempt`, and the system prompt is surface node 0 (`system/message`); the plugin consumes only the live event stream and never reads session log files. The peer range `>=0.1.2-rc.1 <0.2.0 \|\| >=0.1.5-alpha.1 <0.2.0 \|\| >=0.1.6-0 <0.2.0 \|\| >=0.1.7-0 <0.2.0` keeps every published line installable (full local gate chain; the compat workflow covers the profile install smoke). |
|
|
42
42
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
43
43
|
| Backends | OpenTelemetry OTLP/HTTP (traces + metrics, JSON encoding) and Langfuse (LLM observability) — either or both |
|
|
44
44
|
| Model | Model-agnostic: it exports the session/event stream; no model calls are made |
|
package/lib/index.js
CHANGED
|
@@ -607,7 +607,7 @@ function langfuseId(...parts) {
|
|
|
607
607
|
* @module dsh-observe/version
|
|
608
608
|
*/
|
|
609
609
|
/** The dsh-observe package version, kept in sync with package.json. */
|
|
610
|
-
const VERSION = "0.2.
|
|
610
|
+
const VERSION = "0.2.19";
|
|
611
611
|
//#endregion
|
|
612
612
|
//#region src/sinks.ts
|
|
613
613
|
/** POST a JSON body with a timeout; throws on non-2xx. */
|
package/lib/types/version.d.ts
CHANGED
package/lib/types/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-observe",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "OpenTelemetry and Langfuse observability exporter for DeepSeek Harness: turn/step/tool/LLM spans, token and cost metrics, and sanitized LLM prompt/completion capture from the session/event stream, with async batching, bounded offline buffering, and retry with backoff.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -73,7 +73,8 @@
|
|
|
73
73
|
"dshVersions": [
|
|
74
74
|
"0.1.7-alpha.2",
|
|
75
75
|
"0.1.7-rc.1",
|
|
76
|
-
"0.1.7-rc.2"
|
|
76
|
+
"0.1.7-rc.2",
|
|
77
|
+
"0.2.1-alpha.1"
|
|
77
78
|
]
|
|
78
79
|
},
|
|
79
80
|
"capability": {
|
|
@@ -106,18 +107,18 @@
|
|
|
106
107
|
],
|
|
107
108
|
"engines": {
|
|
108
109
|
"node": "^22.19.0 || >=24.0.0",
|
|
109
|
-
"dsh": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0"
|
|
110
|
+
"dsh": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0"
|
|
110
111
|
},
|
|
111
112
|
"packageManager": "pnpm@11.7.0",
|
|
112
113
|
"peerDependencies": {
|
|
113
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
114
|
-
"@deepseek-ai/dsh-llm": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0",
|
|
115
|
-
"@deepseek-ai/dsh-session": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0",
|
|
116
|
-
"@deepseek-ai/dsh-storage": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0",
|
|
117
|
-
"@deepseek-ai/dsh-storage-domain": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0",
|
|
118
|
-
"@deepseek-ai/dsh-storage-json": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0",
|
|
119
|
-
"@deepseek-ai/dsh-typert-protocol": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0",
|
|
120
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
114
|
+
"@deepseek-ai/cordis": "^4.0.5-alpha.1",
|
|
115
|
+
"@deepseek-ai/dsh-llm": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
|
|
116
|
+
"@deepseek-ai/dsh-session": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
|
|
117
|
+
"@deepseek-ai/dsh-storage": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
|
|
118
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
|
|
119
|
+
"@deepseek-ai/dsh-storage-json": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
|
|
120
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0",
|
|
121
|
+
"@deepseek-ai/schemastery": "^3.18.5-alpha.1"
|
|
121
122
|
},
|
|
122
123
|
"dependencies": {
|
|
123
124
|
"tsdown": "^0.22.14",
|
|
@@ -125,17 +126,17 @@
|
|
|
125
126
|
"zod": "^4.4.3"
|
|
126
127
|
},
|
|
127
128
|
"devDependencies": {
|
|
128
|
-
"@deepseek-ai/dsh-attachment": "0.1
|
|
129
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
130
|
-
"@deepseek-ai/cordis-plugin-include": "^1.0.
|
|
131
|
-
"@deepseek-ai/cordis-plugin-loader": "^1.0.
|
|
132
|
-
"@deepseek-ai/dsh-llm": "0.1
|
|
133
|
-
"@deepseek-ai/dsh-session": "0.1
|
|
134
|
-
"@deepseek-ai/dsh-storage": "0.1
|
|
135
|
-
"@deepseek-ai/dsh-storage-domain": "0.1
|
|
136
|
-
"@deepseek-ai/dsh-storage-json": "0.1
|
|
137
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1
|
|
138
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
129
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-alpha.1",
|
|
130
|
+
"@deepseek-ai/cordis": "^4.0.5-alpha.1",
|
|
131
|
+
"@deepseek-ai/cordis-plugin-include": "^1.0.10-alpha.1",
|
|
132
|
+
"@deepseek-ai/cordis-plugin-loader": "^1.0.6-alpha.1",
|
|
133
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
|
|
134
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.1",
|
|
135
|
+
"@deepseek-ai/dsh-storage": "0.2.1-alpha.1",
|
|
136
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.1-alpha.1",
|
|
137
|
+
"@deepseek-ai/dsh-storage-json": "0.2.1-alpha.1",
|
|
138
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.1",
|
|
139
|
+
"@deepseek-ai/schemastery": "^3.18.5-alpha.1",
|
|
139
140
|
"@types/node": "^22.19.0",
|
|
140
141
|
"@vitest/coverage-v8": "^3.2.0",
|
|
141
142
|
"oxlint": "0.18.1",
|
package/src/version.ts
CHANGED