dsh-observe 0.1.1 → 0.1.2
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 +6 -0
- package/README.es.md +4 -4
- package/README.hi.md +3 -3
- package/README.md +4 -4
- package/README.pt.md +3 -3
- package/README.zh.md +3 -3
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/lib/index.js +1 -1
- package/lib/types/collector.d.ts +3 -3
- package/lib/types/index.d.ts +7 -7
- package/lib/types/pipeline.d.ts +4 -4
- package/lib/types/pricing.d.ts +2 -2
- package/lib/types/remote.d.ts +2 -2
- package/lib/types/remote.js +1 -1
- package/lib/types/sanitize.d.ts +1 -1
- package/lib/types/sinks.d.ts +2 -2
- package/lib/types/spool.d.ts +1 -1
- package/lib/types/version.d.ts +1 -1
- package/lib/types/version.js +1 -1
- package/lib/types/wire.d.ts +1 -1
- package/package.json +19 -15
- package/src/remote.ts +1 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.2] - 2026-08-21
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Upgraded the `@deepseek-ai/dsh-*` dependency family from `0.1.0-rc.6` to `0.1.0-rc.8` (`dsh-llm`, `dsh-session`, `dsh-storage`, `dsh-storage-domain`, `dsh-storage-json`, `dsh-typert-protocol`); peer ranges now span `>=0.1.0-rc.8 <0.2.0` so the plugin ships against the rc.8 harness baseline.
|
|
13
|
+
|
|
8
14
|
## [0.1.1] - 2026-08-17
|
|
9
15
|
|
|
10
16
|
### Fixed
|
package/README.es.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| Superficie | Estado |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.0-rc.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.0-rc.8` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| Backends | OpenTelemetry OTLP/HTTP (traces + metrics, codificación JSON) y Langfuse (observabilidad de LLM) — uno o ambos |
|
|
30
30
|
| Modelo | Independiente del modelo: exporta el flujo `session/event`; no realiza llamadas a modelos |
|
|
@@ -166,7 +166,7 @@ Este plugin **no registra herramientas de modelo** — es un exportador en segun
|
|
|
166
166
|
|
|
167
167
|
## Known limitations
|
|
168
168
|
|
|
169
|
-
- **Solo rc.
|
|
169
|
+
- **Solo rc.8** — el plugin se desarrolla y prueba contra `@deepseek-ai/dsh@0.1.0-rc.8`; se espera que baselines más nuevos funcionen y el workflow compat mensual los verifica.
|
|
170
170
|
- **Las métricas evitan la ruta de reintento/spool** — las métricas OTLP se agregan de forma acumulativa, así que un flush perdido se autocura en el siguiente (por diseño, no es un fallo).
|
|
171
171
|
- **Sin muestreo** — toda familia de spans habilitada se exporta; ajusta los interruptores `capture.*` y `batch.maxBufferRecords` para sesiones de alto volumen.
|
|
172
172
|
|
|
@@ -175,8 +175,8 @@ Este plugin **no registra herramientas de modelo** — es un exportador en segun
|
|
|
175
175
|
```sh
|
|
176
176
|
pnpm install # node ^22.19 || >=24
|
|
177
177
|
pnpm run typecheck # tsc: src + tests contra el checkout local del harness
|
|
178
|
-
pnpm run typecheck:ci # tsc contra los tipos publicados 0.1.0-rc.
|
|
179
|
-
pnpm test # vitest:
|
|
178
|
+
pnpm run typecheck:ci # tsc contra los tipos publicados 0.1.0-rc.8 (sin paths)
|
|
179
|
+
pnpm test # vitest: 114 tests, 18 suites (Context/Session/storage seam reales)
|
|
180
180
|
pnpm run test:coverage # puerta de cobertura (90/80/90/90)
|
|
181
181
|
pnpm run build # bundle tsdown + declaraciones tsc (lib/)
|
|
182
182
|
pnpm run verify:self-contained # las especificaciones de dependencias resuelven desde el registry
|
package/README.hi.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| सतह | स्थिति |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.0-rc.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.0-rc.8` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| बैकएंड | OpenTelemetry OTLP/HTTP (traces + metrics, JSON एन्कोडिंग) और Langfuse (LLM ऑब्ज़र्वेबिलिटी) — एक या दोनों |
|
|
30
30
|
| मॉडल | मॉडल-स्वतंत्र: यह `session/event` स्ट्रीम निर्यात करता है; कोई मॉडल कॉल नहीं करता |
|
|
@@ -166,7 +166,7 @@ dsh --profile web --dump-config | grep -A2 'id: dsh-observe'
|
|
|
166
166
|
|
|
167
167
|
## Known limitations
|
|
168
168
|
|
|
169
|
-
- **केवल rc.
|
|
169
|
+
- **केवल rc.8** — प्लगइन `@deepseek-ai/dsh@0.1.0-rc.8` के विरुद्ध विकसित और परीक्षित है; नए हार्नेस बेसलाइन काम करने चाहिए और मासिक compat वर्कफ़्लो उन्हें सत्यापित करता है।
|
|
170
170
|
- **मेट्रिक्स पुनर्प्रयास/spool पथ से बचती हैं** — OTLP मेट्रिक्स संचयी रूप से एकत्र होती हैं, इसलिए खोया flush अगले में स्वयं-सुधर जाता है (डिज़ाइन से, बग नहीं)।
|
|
171
171
|
- **कोई सैंपलिंग नहीं** — हर सक्षम span परिवार निर्यात होता है; उच्च-मात्रा सत्रों के लिए `capture.*` स्विच और `batch.maxBufferRecords` समायोजित करें।
|
|
172
172
|
|
|
@@ -175,7 +175,7 @@ dsh --profile web --dump-config | grep -A2 'id: dsh-observe'
|
|
|
175
175
|
```sh
|
|
176
176
|
pnpm install # node ^22.19 || >=24
|
|
177
177
|
pnpm run typecheck # tsc: src + tests स्थानीय हार्नेस चेकआउट के विरुद्ध
|
|
178
|
-
pnpm run typecheck:ci # tsc प्रकाशित 0.1.0-rc.
|
|
178
|
+
pnpm run typecheck:ci # tsc प्रकाशित 0.1.0-rc.8 प्रकारों के विरुद्ध (बिना paths)
|
|
179
179
|
pnpm test # vitest: 95 टेस्ट, 13 सुइट (वास्तविक Context/Session/storage seam)
|
|
180
180
|
pnpm run test:coverage # कवरेज द्वार (90/80/90/90)
|
|
181
181
|
pnpm run build # tsdown बंडल + tsc घोषणाएँ (lib/)
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| Surface | Status |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.0-rc.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.0-rc.8` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| Backends | OpenTelemetry OTLP/HTTP (traces + metrics, JSON encoding) and Langfuse (LLM observability) — either or both |
|
|
30
30
|
| Model | Model-agnostic: it exports the session/event stream; no model calls are made |
|
|
@@ -166,7 +166,7 @@ This plugin registers **no model tools** — it is a background exporter. Its su
|
|
|
166
166
|
|
|
167
167
|
## Known limitations
|
|
168
168
|
|
|
169
|
-
- **rc.
|
|
169
|
+
- **rc.8 only** — the plugin is developed and tested against `@deepseek-ai/dsh@0.1.0-rc.8`; newer harness baselines are expected to work but are verified by the monthly compat workflow.
|
|
170
170
|
- **Metrics bypass the retry/spool path** — OTLP metrics are aggregated cumulatively, so a lost flush self-heals on the next one (by design, not a bug).
|
|
171
171
|
- **No sampling** — every enabled span family is exported; set `capture.*` switches and `batch.maxBufferRecords` for high-volume sessions.
|
|
172
172
|
|
|
@@ -175,8 +175,8 @@ This plugin registers **no model tools** — it is a background exporter. Its su
|
|
|
175
175
|
```sh
|
|
176
176
|
pnpm install # node ^22.19 || >=24
|
|
177
177
|
pnpm run typecheck # tsc: src + tests against the local harness checkout
|
|
178
|
-
pnpm run typecheck:ci # tsc against the published 0.1.0-rc.
|
|
179
|
-
pnpm test # vitest:
|
|
178
|
+
pnpm run typecheck:ci # tsc against the published 0.1.0-rc.8 types (no paths)
|
|
179
|
+
pnpm test # vitest: 114 tests, 18 suites (real Context/Session/storage seam)
|
|
180
180
|
pnpm run test:coverage # coverage gate (90/80/90/90)
|
|
181
181
|
pnpm run build # tsdown bundle + tsc declarations (lib/)
|
|
182
182
|
pnpm run verify:self-contained # dependency specs resolve from the registry
|
package/README.pt.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| Superfície | Status |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.0-rc.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.0-rc.8` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| Backends | OpenTelemetry OTLP/HTTP (traces + metrics, codificação JSON) e Langfuse (observabilidade de LLM) — um ou ambos |
|
|
30
30
|
| Modelo | Independente de modelo: exporta o fluxo `session/event`; não faz chamadas a modelos |
|
|
@@ -166,7 +166,7 @@ Este plugin **não registra ferramentas de modelo** — é um exportador em segu
|
|
|
166
166
|
|
|
167
167
|
## Known limitations
|
|
168
168
|
|
|
169
|
-
- **Somente rc.
|
|
169
|
+
- **Somente rc.8** — o plugin é desenvolvido e testado contra `@deepseek-ai/dsh@0.1.0-rc.8`; baselines mais novos devem funcionar e são verificados pelo workflow compat mensal.
|
|
170
170
|
- **Métricas evitam o caminho de tentativa/spool** — as métricas OTLP são agregadas cumulativamente, então um flush perdido se autocura no seguinte (por design, não é um bug).
|
|
171
171
|
- **Sem amostragem** — toda família de spans habilitada é exportada; ajuste os interruptores `capture.*` e `batch.maxBufferRecords` para sessões de alto volume.
|
|
172
172
|
|
|
@@ -175,7 +175,7 @@ Este plugin **não registra ferramentas de modelo** — é um exportador em segu
|
|
|
175
175
|
```sh
|
|
176
176
|
pnpm install # node ^22.19 || >=24
|
|
177
177
|
pnpm run typecheck # tsc: src + tests contra o checkout local do harness
|
|
178
|
-
pnpm run typecheck:ci # tsc contra os tipos publicados 0.1.0-rc.
|
|
178
|
+
pnpm run typecheck:ci # tsc contra os tipos publicados 0.1.0-rc.8 (sem paths)
|
|
179
179
|
pnpm test # vitest: 95 testes, 13 suítes (Context/Session/storage seam reais)
|
|
180
180
|
pnpm run test:coverage # porta de cobertura (90/80/90/90)
|
|
181
181
|
pnpm run build # bundle tsdown + declarações tsc (lib/)
|
package/README.zh.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| 方面 | 状态 |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.0-rc.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.0-rc.8` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| 后端 | OpenTelemetry OTLP/HTTP(traces + metrics,JSON 编码)与 Langfuse(LLM 可观测)——二选一或同时 |
|
|
30
30
|
| 模型 | 与模型无关:它导出 session/event 流,自身不调用任何模型 |
|
|
@@ -166,7 +166,7 @@ dsh --profile web --dump-config | grep -A2 'id: dsh-observe'
|
|
|
166
166
|
|
|
167
167
|
## Known limitations
|
|
168
168
|
|
|
169
|
-
- **仅 rc.
|
|
169
|
+
- **仅 rc.8** —— 插件针对 `@deepseek-ai/dsh@0.1.0-rc.8` 开发与测试;更新的 harness 基线预期可用,由月度 compat 工作流验证。
|
|
170
170
|
- **Metrics 不走重试/缓冲路径** —— OTLP metrics 按累计聚合,丢失一次 flush 会在下一次自愈(设计如此,非缺陷)。
|
|
171
171
|
- **无采样** —— 每个启用的 span 族都会导出;大流量会话请调整 `capture.*` 开关与 `batch.maxBufferRecords`。
|
|
172
172
|
|
|
@@ -175,7 +175,7 @@ dsh --profile web --dump-config | grep -A2 'id: dsh-observe'
|
|
|
175
175
|
```sh
|
|
176
176
|
pnpm install # node ^22.19 || >=24
|
|
177
177
|
pnpm run typecheck # tsc:src + tests,对照本地 harness checkout
|
|
178
|
-
pnpm run typecheck:ci # tsc:对照已发布的 0.1.0-rc.
|
|
178
|
+
pnpm run typecheck:ci # tsc:对照已发布的 0.1.0-rc.8 类型(无 paths)
|
|
179
179
|
pnpm test # vitest:95 个测试、13 个套件(真实 Context/Session/storage 接缝)
|
|
180
180
|
pnpm run test:coverage # 覆盖率门禁(90/80/90/90)
|
|
181
181
|
pnpm run build # tsdown bundle + tsc 声明(lib/)
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -14,7 +14,7 @@ published tarball; these are install-time dependencies:
|
|
|
14
14
|
| [zod](https://github.com/colinhacks/zod) | `^4.4.3` | MIT | Runtime value schema for the durable offline-buffer domain table |
|
|
15
15
|
| [@deepseek-ai/cordis](https://www.npmjs.com/package/@deepseek-ai/cordis) | `^4.0.1` (peer) | See package | The plugin runtime |
|
|
16
16
|
| [@deepseek-ai/schemastery](https://www.npmjs.com/package/@deepseek-ai/schemastery) | `^3.18.0` (peer) | See package | Configuration schema |
|
|
17
|
-
| `@deepseek-ai/dsh-*` peers | `0.1.0-rc.
|
|
17
|
+
| `@deepseek-ai/dsh-*` peers | `0.1.0-rc.8` (peer) | See packages | Official harness seams (`dsh-session`, `dsh-llm`, `dsh-storage-domain`, `dsh-typert-protocol`) |
|
|
18
18
|
|
|
19
19
|
At runtime the plugin only talks to the harness services listed as
|
|
20
20
|
peerDependencies and to the observability endpoints **you** configure; it
|
package/lib/index.js
CHANGED
|
@@ -568,7 +568,7 @@ function langfuseId(...parts) {
|
|
|
568
568
|
* @module dsh-observe/version
|
|
569
569
|
*/
|
|
570
570
|
/** The dsh-observe package version, kept in sync with package.json. */
|
|
571
|
-
const VERSION = "0.1.
|
|
571
|
+
const VERSION = "0.1.2";
|
|
572
572
|
//#endregion
|
|
573
573
|
//#region src/sinks.ts
|
|
574
574
|
/** POST a JSON body with a timeout; throws on non-2xx. */
|
package/lib/types/collector.d.ts
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* @module dsh-observe/collector
|
|
12
12
|
*/
|
|
13
13
|
import type { Session, SessionEvent } from '@deepseek-ai/dsh-session';
|
|
14
|
-
import type { ResolvedConfig } from './config.
|
|
15
|
-
import type { MetricRecord, SpanRecord } from './model.
|
|
16
|
-
import type { ObserveLogger } from './sinks.
|
|
14
|
+
import type { ResolvedConfig } from './config.js';
|
|
15
|
+
import type { MetricRecord, SpanRecord } from './model.js';
|
|
16
|
+
import type { ObserveLogger } from './sinks.js';
|
|
17
17
|
/**
|
|
18
18
|
* The structural surface of the optional `ctx.tokenMeter` service. Only the
|
|
19
19
|
* fields dsh-observe reads are declared; the service is optional, so a host
|
package/lib/types/index.d.ts
CHANGED
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
* @module dsh-observe
|
|
15
15
|
*/
|
|
16
16
|
import type { Context } from '@deepseek-ai/cordis';
|
|
17
|
-
import { Config } from './config.
|
|
17
|
+
import { Config } from './config.js';
|
|
18
18
|
export declare const name = "observe";
|
|
19
19
|
/** The durable offline buffer needs the host's storage-domain facility. */
|
|
20
20
|
export declare const inject: string[];
|
|
21
|
-
export { Config, resolveConfig } from './config.
|
|
22
|
-
export type { ResolvedConfig, PricingRule, SanitizeConfig, BatchConfig, RetryConfig, OtlpConfig, LangfuseConfig } from './config.
|
|
23
|
-
export { VERSION } from './version.
|
|
24
|
-
export { REDACTED, sanitizeJson, sanitizeJsonText, sanitizeText, truncate } from './sanitize.
|
|
25
|
-
export type { SpanRecord, MetricRecord, ExportRecord, TokenCounts, SpanKind } from './model.
|
|
26
|
-
export type { ObserveStatus, ObserveSetEnabledResult } from './wire.
|
|
21
|
+
export { Config, resolveConfig } from './config.js';
|
|
22
|
+
export type { ResolvedConfig, PricingRule, SanitizeConfig, BatchConfig, RetryConfig, OtlpConfig, LangfuseConfig } from './config.js';
|
|
23
|
+
export { VERSION } from './version.js';
|
|
24
|
+
export { REDACTED, sanitizeJson, sanitizeJsonText, sanitizeText, truncate } from './sanitize.js';
|
|
25
|
+
export type { SpanRecord, MetricRecord, ExportRecord, TokenCounts, SpanKind } from './model.js';
|
|
26
|
+
export type { ObserveStatus, ObserveSetEnabledResult } from './wire.js';
|
|
27
27
|
/**
|
|
28
28
|
* Mount the exporter. The resolved config is validated first (fail loud);
|
|
29
29
|
* with `enabled: false` the plugin registers nothing and stays inert.
|
package/lib/types/pipeline.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* when retries are exhausted). Spool draining runs on its own cycle.
|
|
6
6
|
* @module dsh-observe/pipeline
|
|
7
7
|
*/
|
|
8
|
-
import type { ResolvedBatch, ResolvedRetry } from './config.
|
|
9
|
-
import type { BackendName, ExportRecord, MetricRecord } from './model.
|
|
10
|
-
import type { ObserveLogger, SpanSink } from './sinks.
|
|
11
|
-
import type { Spool } from './spool.
|
|
8
|
+
import type { ResolvedBatch, ResolvedRetry } from './config.js';
|
|
9
|
+
import type { BackendName, ExportRecord, MetricRecord } from './model.js';
|
|
10
|
+
import type { ObserveLogger, SpanSink } from './sinks.js';
|
|
11
|
+
import type { Spool } from './spool.js';
|
|
12
12
|
/** Everything one pipeline needs. */
|
|
13
13
|
export interface PipelineOptions {
|
|
14
14
|
name: BackendName;
|
package/lib/types/pricing.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* simply means the cost metric stays silent for that model.
|
|
5
5
|
* @module dsh-observe/pricing
|
|
6
6
|
*/
|
|
7
|
-
import type { PricingRule } from './config.
|
|
8
|
-
import type { TokenCounts } from './model.
|
|
7
|
+
import type { PricingRule } from './config.js';
|
|
8
|
+
import type { TokenCounts } from './model.js';
|
|
9
9
|
/**
|
|
10
10
|
* Compile a glob pattern (only `*` is special) to an anchored regular
|
|
11
11
|
* expression.
|
package/lib/types/remote.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* (or resumes) exporting without unmounting the plugin. Mounted only when
|
|
6
6
|
* `remote.enabled: true`; the service itself never exports data.
|
|
7
7
|
*
|
|
8
|
-
* **No `@Remote` method decorators**: the rc.
|
|
8
|
+
* **No `@Remote` method decorators**: the rc.8 typert loader binds the
|
|
9
9
|
* `./typert` manifest invocations (src/typert.host.ts) to same-named public
|
|
10
10
|
* methods, and decorator syntax breaks both the vitest transform pipeline
|
|
11
11
|
* and the plain-Node build output (the dsh-mcp-panel precedent).
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @module dsh-observe/remote
|
|
14
14
|
*/
|
|
15
15
|
import type { Plugin } from '@deepseek-ai/cordis';
|
|
16
|
-
import type { ObserveStatus } from './wire.
|
|
16
|
+
import type { ObserveStatus } from './wire.js';
|
|
17
17
|
/** Bindings the remote service reads from the runtime. */
|
|
18
18
|
export interface ObserveRemoteOptions {
|
|
19
19
|
getStatus: () => ObserveStatus;
|
package/lib/types/remote.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* (or resumes) exporting without unmounting the plugin. Mounted only when
|
|
6
6
|
* `remote.enabled: true`; the service itself never exports data.
|
|
7
7
|
*
|
|
8
|
-
* **No `@Remote` method decorators**: the rc.
|
|
8
|
+
* **No `@Remote` method decorators**: the rc.8 typert loader binds the
|
|
9
9
|
* `./typert` manifest invocations (src/typert.host.ts) to same-named public
|
|
10
10
|
* methods, and decorator syntax breaks both the vitest transform pipeline
|
|
11
11
|
* and the plain-Node build output (the dsh-mcp-panel precedent).
|
package/lib/types/sanitize.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* replayed session log produces byte-identical exports.
|
|
8
8
|
* @module dsh-observe/sanitize
|
|
9
9
|
*/
|
|
10
|
-
import type { ResolvedSanitize } from './config.
|
|
10
|
+
import type { ResolvedSanitize } from './config.js';
|
|
11
11
|
/** The placeholder replacing any redacted value. */
|
|
12
12
|
export declare const REDACTED = "[REDACTED]";
|
|
13
13
|
/**
|
package/lib/types/sinks.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module dsh-observe/sinks
|
|
7
7
|
*/
|
|
8
8
|
import type { Logger } from '@deepseek-ai/cordis';
|
|
9
|
-
import type { ResolvedLangfuse, ResolvedOtlp } from './config.
|
|
10
|
-
import type { ExportRecord, MetricRecord } from './model.
|
|
9
|
+
import type { ResolvedLangfuse, ResolvedOtlp } from './config.js';
|
|
10
|
+
import type { ExportRecord, MetricRecord } from './model.js';
|
|
11
11
|
/** The observable logging surface consumed by sinks, pipelines, and the collector. */
|
|
12
12
|
export type ObserveLogger = Pick<Logger, 'info' | 'warn' | 'error'>;
|
|
13
13
|
/** One span sink: consumes span records and delivers them to its backend. */
|
package/lib/types/spool.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { Domain, KvTable } from '@deepseek-ai/dsh-storage-domain';
|
|
12
12
|
import { z } from 'zod';
|
|
13
|
-
import type { BackendName, ExportRecord } from './model.
|
|
13
|
+
import type { BackendName, ExportRecord } from './model.js';
|
|
14
14
|
/** One stored batch: creation time plus sanitized export records. */
|
|
15
15
|
declare const spoolBatchSchema: z.ZodObject<{
|
|
16
16
|
createdAt: z.ZodNumber;
|
package/lib/types/version.d.ts
CHANGED
package/lib/types/version.js
CHANGED
package/lib/types/wire.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module dsh-observe/wire
|
|
7
7
|
*/
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import type { SpoolCounts } from './spool.
|
|
9
|
+
import type { SpoolCounts } from './spool.js';
|
|
10
10
|
/** The status payload returned by `observe/status`. */
|
|
11
11
|
export interface ObserveStatus {
|
|
12
12
|
/** The runtime kill switch state. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-observe",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
],
|
|
71
71
|
"compatibility": {
|
|
72
72
|
"dshVersions": [
|
|
73
|
-
"0.1.0-rc.
|
|
73
|
+
"0.1.0-rc.8"
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
"capability": {
|
|
@@ -107,13 +107,13 @@
|
|
|
107
107
|
"packageManager": "pnpm@11.7.0",
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
110
|
-
"@deepseek-ai/
|
|
111
|
-
"@deepseek-ai/dsh-
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
113
|
-
"@deepseek-ai/dsh-storage": "0.1.0-rc.
|
|
114
|
-
"@deepseek-ai/dsh-storage-json": "0.1.0-rc.
|
|
115
|
-
"@deepseek-ai/dsh-
|
|
116
|
-
"@deepseek-ai/
|
|
110
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.8 <0.2.0",
|
|
111
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
|
|
112
|
+
"@deepseek-ai/dsh-storage": ">=0.1.0-rc.8 <0.2.0",
|
|
113
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.1.0-rc.8 <0.2.0",
|
|
114
|
+
"@deepseek-ai/dsh-storage-json": ">=0.1.0-rc.8 <0.2.0",
|
|
115
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.1.0-rc.8 <0.2.0",
|
|
116
|
+
"@deepseek-ai/schemastery": "^3.18.0"
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
119
|
"tsdown": "^0.22.14",
|
|
@@ -122,15 +122,18 @@
|
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
125
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.6",
|
|
126
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
|
|
127
|
+
"@deepseek-ai/dsh-llm": "0.1.0-rc.8",
|
|
128
|
+
"@deepseek-ai/dsh-session": "0.1.0-rc.8",
|
|
129
|
+
"@deepseek-ai/dsh-storage": "0.1.0-rc.8",
|
|
130
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.0-rc.8",
|
|
131
|
+
"@deepseek-ai/dsh-storage-json": "0.1.0-rc.8",
|
|
132
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.0-rc.8",
|
|
125
133
|
"@deepseek-ai/schemastery": "^3.18.0",
|
|
126
|
-
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",
|
|
127
|
-
"@deepseek-ai/dsh-session": "0.1.0-rc.6",
|
|
128
|
-
"@deepseek-ai/dsh-storage": "0.1.0-rc.6",
|
|
129
|
-
"@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
|
|
130
|
-
"@deepseek-ai/dsh-storage-json": "0.1.0-rc.6",
|
|
131
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.0-rc.6",
|
|
132
134
|
"@types/node": "^22.19.0",
|
|
133
135
|
"@vitest/coverage-v8": "^3.2.0",
|
|
136
|
+
"oxlint": "0.18.1",
|
|
134
137
|
"vitest": "^3.2.0"
|
|
135
138
|
},
|
|
136
139
|
"scripts": {
|
|
@@ -139,6 +142,7 @@
|
|
|
139
142
|
"typecheck:ci": "tsc -p tsconfig.ci.json --noEmit",
|
|
140
143
|
"test": "vitest run",
|
|
141
144
|
"test:coverage": "vitest run --coverage",
|
|
145
|
+
"lint": "oxlint",
|
|
142
146
|
"prepare": "node scripts/prepare.mjs",
|
|
143
147
|
"verify:self-contained": "node scripts/verify-self-contained.mjs",
|
|
144
148
|
"verify:artifacts": "node scripts/verify-artifacts.mjs",
|
package/src/remote.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* (or resumes) exporting without unmounting the plugin. Mounted only when
|
|
6
6
|
* `remote.enabled: true`; the service itself never exports data.
|
|
7
7
|
*
|
|
8
|
-
* **No `@Remote` method decorators**: the rc.
|
|
8
|
+
* **No `@Remote` method decorators**: the rc.8 typert loader binds the
|
|
9
9
|
* `./typert` manifest invocations (src/typert.host.ts) to same-named public
|
|
10
10
|
* methods, and decorator syntax breaks both the vitest transform pipeline
|
|
11
11
|
* and the plain-Node build output (the dsh-mcp-panel precedent).
|
package/src/version.ts
CHANGED