dsh-observe 0.2.28 → 0.2.29

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/LICENSE +0 -0
  3. package/README.en.md +1 -1
  4. package/README.es.md +1 -1
  5. package/README.hi.md +1 -1
  6. package/README.md +1 -1
  7. package/README.pt.md +1 -1
  8. package/THIRD_PARTY_NOTICES.md +0 -0
  9. package/cordis.patch.yml +0 -0
  10. package/lib/index.js +1 -1
  11. package/lib/typert.host.js +0 -0
  12. package/lib/types/backoff.d.ts +0 -0
  13. package/lib/types/backoff.d.ts.map +0 -0
  14. package/lib/types/backoff.js +0 -0
  15. package/lib/types/backoff.js.map +0 -0
  16. package/lib/types/collector.d.ts +0 -0
  17. package/lib/types/collector.d.ts.map +0 -0
  18. package/lib/types/collector.js +0 -0
  19. package/lib/types/collector.js.map +0 -0
  20. package/lib/types/config.d.ts +0 -0
  21. package/lib/types/config.d.ts.map +0 -0
  22. package/lib/types/config.js +0 -0
  23. package/lib/types/config.js.map +0 -0
  24. package/lib/types/ids.d.ts +0 -0
  25. package/lib/types/ids.d.ts.map +0 -0
  26. package/lib/types/ids.js +0 -0
  27. package/lib/types/ids.js.map +0 -0
  28. package/lib/types/index.d.ts +0 -0
  29. package/lib/types/index.d.ts.map +0 -0
  30. package/lib/types/index.js +0 -0
  31. package/lib/types/index.js.map +0 -0
  32. package/lib/types/model.d.ts +0 -0
  33. package/lib/types/model.d.ts.map +0 -0
  34. package/lib/types/model.js +0 -0
  35. package/lib/types/model.js.map +0 -0
  36. package/lib/types/pipeline.d.ts +0 -0
  37. package/lib/types/pipeline.d.ts.map +0 -0
  38. package/lib/types/pipeline.js +0 -0
  39. package/lib/types/pipeline.js.map +0 -0
  40. package/lib/types/pricing.d.ts +0 -0
  41. package/lib/types/pricing.d.ts.map +0 -0
  42. package/lib/types/pricing.js +0 -0
  43. package/lib/types/pricing.js.map +0 -0
  44. package/lib/types/project.d.ts +0 -0
  45. package/lib/types/project.d.ts.map +0 -0
  46. package/lib/types/project.js +0 -0
  47. package/lib/types/project.js.map +0 -0
  48. package/lib/types/remote.d.ts +0 -0
  49. package/lib/types/remote.d.ts.map +0 -0
  50. package/lib/types/remote.js +0 -0
  51. package/lib/types/remote.js.map +0 -0
  52. package/lib/types/sanitize.d.ts +0 -0
  53. package/lib/types/sanitize.d.ts.map +0 -0
  54. package/lib/types/sanitize.js +0 -0
  55. package/lib/types/sanitize.js.map +0 -0
  56. package/lib/types/sinks.d.ts +0 -0
  57. package/lib/types/sinks.d.ts.map +0 -0
  58. package/lib/types/sinks.js +0 -0
  59. package/lib/types/sinks.js.map +0 -0
  60. package/lib/types/spool.d.ts +0 -0
  61. package/lib/types/spool.d.ts.map +0 -0
  62. package/lib/types/spool.js +0 -0
  63. package/lib/types/spool.js.map +0 -0
  64. package/lib/types/typert.host.d.ts +0 -0
  65. package/lib/types/typert.host.d.ts.map +0 -0
  66. package/lib/types/typert.host.js +0 -0
  67. package/lib/types/typert.host.js.map +0 -0
  68. package/lib/types/version.d.ts +1 -1
  69. package/lib/types/version.d.ts.map +0 -0
  70. package/lib/types/version.js +1 -1
  71. package/lib/types/version.js.map +0 -0
  72. package/lib/types/wire.d.ts +0 -0
  73. package/lib/types/wire.d.ts.map +0 -0
  74. package/lib/types/wire.js +0 -0
  75. package/lib/types/wire.js.map +0 -0
  76. package/package.json +9 -28
  77. package/src/backoff.ts +0 -0
  78. package/src/collector.ts +0 -0
  79. package/src/config.ts +0 -0
  80. package/src/ids.ts +0 -0
  81. package/src/index.ts +0 -0
  82. package/src/model.ts +0 -0
  83. package/src/pipeline.ts +0 -0
  84. package/src/pricing.ts +0 -0
  85. package/src/project.ts +0 -0
  86. package/src/remote.ts +0 -0
  87. package/src/sanitize.ts +0 -0
  88. package/src/sinks.ts +0 -0
  89. package/src/spool.ts +0 -0
  90. package/src/typert.host.ts +0 -0
  91. package/src/version.ts +1 -1
  92. package/src/wire.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -60,6 +60,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60
60
 
61
61
  ## [Unreleased]
62
62
 
63
+ ## [0.2.29] - 2026-11-18
64
+
63
65
  ## [0.2.20] - 2026-10-04
64
66
 
65
67
  undefined
package/LICENSE CHANGED
File without changes
package/README.en.md CHANGED
@@ -293,7 +293,7 @@ If another observability plugin is installed in the same profile, mind two thing
293
293
 
294
294
  | Surface | Status |
295
295
  |---|---|
296
- | 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. `engines.dsh` is `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; the profile install smoke is covered by the compat workflow. |
296
+ | Harness | DeepSeek Harness `dsh-v0.2.2-rc.4` (adapted 2026-11-18): 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. `engines.dsh` is `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; the profile install smoke is covered by the compat workflow. |
297
297
  | Node | `^22.19.0 \|\| >=24.9.0`, pure ESM (`"type": "module"`) |
298
298
  | Backends | OpenTelemetry OTLP/HTTP (traces + metrics, JSON encoding) and Langfuse (LLM observability) — either or both |
299
299
  | Model | Model-agnostic: it exports the session/event stream; no model calls are made |
package/README.es.md CHANGED
@@ -293,7 +293,7 @@ Si hay otro plugin de observabilidad en el mismo perfil, atención a dos cosas:
293
293
 
294
294
  | Dimensión | Estado |
295
295
  |---|---|
296
- | 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 por una ruta de compatibilidad de solo lectura). Los demás rasgos del formato V3 se mantienen: el flujo del asistente va embebido en `assistant/message` / `assistant/attempt`, y el system prompt es el nodo 0 de la superficie (`system/message`); el plugin consume solo el flujo de eventos en vivo y nunca lee ficheros de log de sesión. `engines.dsh` es `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; el humo de instalación del perfil lo cubre el workflow de compatibilidad. |
296
+ | Harness | DeepSeek Harness `dsh-v0.2.2-rc.4` (adaptado el 2026-11-18): 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 por una ruta de compatibilidad de solo lectura). Los demás rasgos del formato V3 se mantienen: el flujo del asistente va embebido en `assistant/message` / `assistant/attempt`, y el system prompt es el nodo 0 de la superficie (`system/message`); el plugin consume solo el flujo de eventos en vivo y nunca lee ficheros de log de sesión. `engines.dsh` es `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; el humo de instalación del perfil lo cubre el workflow de compatibilidad. |
297
297
  | Node | `^22.19.0 \|\| >=24.9.0`, ESM puro (`"type": "module"`) |
298
298
  | Backends | OpenTelemetry OTLP/HTTP (trazas + métricas, codificación JSON) y Langfuse (observabilidad LLM) — uno u otro, o ambos |
299
299
  | Modelo | Independiente del modelo: exporta el flujo session/event; no realiza llamadas a modelos |
package/README.hi.md CHANGED
@@ -293,7 +293,7 @@ id-लक्षित ओवरराइड का उदाहरण (पूर
293
293
 
294
294
  | आयाम | स्थिति |
295
295
  |---|---|
296
- | 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` में अंतर्निहित है, और system prompt सतह का नोड 0 (`system/message`) है; प्लगइन केवल लाइव घटना-धारा उपभोग करता है और सत्र लॉग फ़ाइलें कभी नहीं पढ़ता। `engines.dsh` है `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; profile इंस्टॉल स्मोक compat वर्कफ़्लो से कवर है। |
296
+ | Harness | DeepSeek Harness `dsh-v0.2.2-rc.4` (2026-11-18 को अनुकूलित): सत्र प्रारूप V4 टूल परिणाम को प्रथम-श्रेणी `role: 'tool'` संदेश के रूप में दर्शाता है जिसमें शीर्ष स्तर पर `toolCallId` + `content` + वैकल्पिक `isError` होता है — V3 का `tool-result` कंटेंट ब्लॉक होस्ट के `ContentBlockMap` से हट चुका है, और यह प्लगइन केवल V4 आकार पढ़ता है (अपग्रेड-पूर्व V3 लॉग अब भी केवल-पढ़ने योग्य संगतता पथ से प्रक्षेपित होता है)। V3 प्रारूप के बाकी लक्षण जारी हैं: असिस्टेंट स्ट्रीम `assistant/message` / `assistant/attempt` में अंतर्निहित है, और system prompt सतह का नोड 0 (`system/message`) है; प्लगइन केवल लाइव घटना-धारा उपभोग करता है और सत्र लॉग फ़ाइलें कभी नहीं पढ़ता। `engines.dsh` है `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; profile इंस्टॉल स्मोक compat वर्कफ़्लो से कवर है। |
297
297
  | Node | `^22.19.0 \|\| >=24.9.0`, शुद्ध ESM (`"type": "module"`) |
298
298
  | बैकएंड | OpenTelemetry OTLP/HTTP (ट्रेस + मेट्रिक्स, JSON एन्कोडिंग) और Langfuse (LLM अवलोकनीयता) — एक या दोनों |
299
299
  | मॉडल | मॉडल-निरपेक्ष: यह session/event धारा एक्सपोर्ट करता है; कोई मॉडल कॉल नहीं करता |
package/README.md CHANGED
@@ -293,7 +293,7 @@ session/event 流
293
293
 
294
294
  | 维度 | 状态 |
295
295
  |---|---|
296
- | 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`,系统提示词为 surface 节点 0(`system/message`);本插件只消费实时事件流,从不读取会话日志文件。`engines.dsh` 为 `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`,profile 安装冒烟由 compat 工作流覆盖。 |
296
+ | Harness | DeepSeek Harness `dsh-v0.2.2-rc.4`(2026-11-18 已适配):会话格式 V4 把工具结果改为 `role: 'tool'` 的一等消息,顶层携带 `toolCallId` + `content` + 可选 `isError` —— V3 的 `tool-result` 内容块已从宿主 `ContentBlockMap` 移除,本插件只读 V4 形状(升级前的 V3 日志仍可经只读兼容路径投影)。会话格式 V3 的其余特征沿用:助手流内嵌到 `assistant/message` / `assistant/attempt`,系统提示词为 surface 节点 0(`system/message`);本插件只消费实时事件流,从不读取会话日志文件。`engines.dsh` 为 `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`,profile 安装冒烟由 compat 工作流覆盖。 |
297
297
  | Node | `^22.19.0 \|\| >=24.9.0`,纯 ESM(`"type": "module"`) |
298
298
  | 后端 | OpenTelemetry OTLP/HTTP(traces + metrics,JSON 编码)与 Langfuse(LLM 可观测)——二选一或同时 |
299
299
  | 模型 | 与模型无关:它导出 session/event 流,自身不调用任何模型 |
package/README.pt.md CHANGED
@@ -293,7 +293,7 @@ Se houver outro plugin de observabilidade no mesmo perfil, atenção a duas cois
293
293
 
294
294
  | Dimensão | Estado |
295
295
  |---|---|
296
- | 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ê só a forma V4 (um log V3 anterior à atualização ainda é projetado por um caminho de compatibilidade somente leitura). Os demais traços do formato V3 continuam: o fluxo do assistente vem embutido em `assistant/message` / `assistant/attempt`, e o system prompt é 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. `engines.dsh` é `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; o teste de fumaça de instalação do perfil é coberto pelo workflow de compatibilidade. |
296
+ | Harness | DeepSeek Harness `dsh-v0.2.2-rc.4` (adaptado em 2026-11-18): 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ê só a forma V4 (um log V3 anterior à atualização ainda é projetado por um caminho de compatibilidade somente leitura). Os demais traços do formato V3 continuam: o fluxo do assistente vem embutido em `assistant/message` / `assistant/attempt`, e o system prompt é 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. `engines.dsh` é `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0`; o teste de fumaça de instalação do perfil é coberto pelo workflow de compatibilidade. |
297
297
  | Node | `^22.19.0 \|\| >=24.9.0`, ESM puro (`"type": "module"`) |
298
298
  | Backends | OpenTelemetry OTLP/HTTP (traces + métricas, codificação JSON) e Langfuse (observabilidade LLM) — um ou outro, ou ambos |
299
299
  | Modelo | Independente de modelo: exporta o fluxo session/event; não faz chamadas a modelos |
File without changes
package/cordis.patch.yml CHANGED
File without changes
package/lib/index.js CHANGED
@@ -606,7 +606,7 @@ function langfuseId(...parts) {
606
606
  * @module dsh-observe/version
607
607
  */
608
608
  /** The dsh-observe package version, kept in sync with package.json. */
609
- const VERSION = "0.2.28";
609
+ const VERSION = "0.2.29";
610
610
  // src/sinks.ts
611
611
  /** POST a JSON body with a timeout; throws on non-2xx. */
612
612
  async function postJson(url, headers, body, timeoutMs) {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/types/ids.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,5 +6,5 @@
6
6
  * @module dsh-observe/version
7
7
  */
8
8
  /** The dsh-observe package version, kept in sync with package.json. */
9
- export declare const VERSION = "0.2.28";
9
+ export declare const VERSION = "0.2.29";
10
10
  //# sourceMappingURL=version.d.ts.map
File without changes
@@ -6,5 +6,5 @@
6
6
  * @module dsh-observe/version
7
7
  */
8
8
  /** The dsh-observe package version, kept in sync with package.json. */
9
- export const VERSION = '0.2.28';
9
+ export const VERSION = '0.2.29';
10
10
  //# sourceMappingURL=version.js.map
File without changes
File without changes
File without changes
package/lib/types/wire.js CHANGED
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-observe",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
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",
@@ -44,25 +44,6 @@
44
44
  "manifestVersion": 1,
45
45
  "bundle": {
46
46
  "patch": "./cordis.patch.yml"
47
- },
48
- "capabilities": [
49
- "network:egress"
50
- ],
51
- "labels": [],
52
- "standards": {
53
- "schema": "dsh-levels/1",
54
- "entry": {
55
- "status": "not-run",
56
- "evidence": null
57
- },
58
- "flow": {
59
- "status": "not-run",
60
- "evidence": null
61
- },
62
- "boost": {
63
- "status": "not-measured",
64
- "evidence": null
65
- }
66
47
  }
67
48
  },
68
49
  "dshWorkshop": {
@@ -144,16 +125,16 @@
144
125
  "zod": "4.6.6"
145
126
  },
146
127
  "devDependencies": {
147
- "@deepseek-ai/dsh-attachment": "0.2.2-rc.3",
128
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.4",
148
129
  "@deepseek-ai/cordis": "^4.1.0",
149
130
  "@deepseek-ai/cordis-plugin-include": "^1.1.0",
150
131
  "@deepseek-ai/cordis-plugin-loader": "^1.1.0",
151
- "@deepseek-ai/dsh-llm": "0.2.2-rc.3",
152
- "@deepseek-ai/dsh-session": "0.2.2-rc.3",
153
- "@deepseek-ai/dsh-storage": "0.2.2-rc.3",
154
- "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.3",
155
- "@deepseek-ai/dsh-storage-json": "0.2.2-rc.3",
156
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.3",
132
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.4",
133
+ "@deepseek-ai/dsh-session": "0.2.2-rc.4",
134
+ "@deepseek-ai/dsh-storage": "0.2.2-rc.4",
135
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.4",
136
+ "@deepseek-ai/dsh-storage-json": "0.2.2-rc.4",
137
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.4",
157
138
  "@deepseek-ai/schemastery": "~3.19.0",
158
139
  "@types/node": "^22.20.5",
159
140
  "@vitest/coverage-v8": "^3.2.0",
@@ -161,7 +142,7 @@
161
142
  "vitest": "^3.2.0",
162
143
  "tsdown": "^0.23.1",
163
144
  "typescript": "^5.9.0",
164
- "@deepseek-ai/dsh-package-manifest": "0.2.2-rc.3"
145
+ "@deepseek-ai/dsh-package-manifest": "0.2.2-rc.4"
165
146
  },
166
147
  "scripts": {
167
148
  "build": "node scripts/prepare.mjs",
package/src/backoff.ts CHANGED
File without changes
package/src/collector.ts CHANGED
File without changes
package/src/config.ts CHANGED
File without changes
package/src/ids.ts CHANGED
File without changes
package/src/index.ts CHANGED
File without changes
package/src/model.ts CHANGED
File without changes
package/src/pipeline.ts CHANGED
File without changes
package/src/pricing.ts CHANGED
File without changes
package/src/project.ts CHANGED
File without changes
package/src/remote.ts CHANGED
File without changes
package/src/sanitize.ts CHANGED
File without changes
package/src/sinks.ts CHANGED
File without changes
package/src/spool.ts CHANGED
File without changes
File without changes
package/src/version.ts CHANGED
@@ -7,4 +7,4 @@
7
7
  */
8
8
 
9
9
  /** The dsh-observe package version, kept in sync with package.json. */
10
- export const VERSION = '0.2.28'
10
+ export const VERSION = '0.2.29'
package/src/wire.ts CHANGED
File without changes