dsh-library 0.1.1 → 0.1.3
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 +12 -0
- package/README.es.md +2 -2
- package/README.hi.md +2 -2
- package/README.md +3 -2
- package/README.pt.md +2 -2
- package/README.zh.md +2 -2
- package/lib/types/index.d.ts +21 -21
- package/package.json +31 -25
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.3] - 2026-08-22
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Upgraded every `@deepseek-ai/dsh-*` dependency to `0.1.1-rc.2` (devDependencies exact, peerDependencies `>=0.1.0-rc.8 <0.2.0`) and re-declared compatibility for DeepSeek Harness `0.1.1-rc.2`.
|
|
13
|
+
|
|
14
|
+
## [0.1.2] - 2026-08-21
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Upgraded every `@deepseek-ai/dsh-*` dependency to `0.1.0-rc.8` (devDependencies exact, peerDependencies `>=0.1.0-rc.8 <0.2.0`) and re-declared compatibility for DeepSeek Harness `0.1.0-rc.8`.
|
|
19
|
+
|
|
8
20
|
## [0.1.1] - 2026-08-17
|
|
9
21
|
|
|
10
22
|
### Fixed
|
package/README.es.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| Superficie | Estado |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` (compatibilidad declarada para `0.1.1-rc.2`) |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| Almacenamiento | Cualquier backend de storage-domain (JSON o SQLite); el índice vive en el dominio de almacenamiento del host |
|
|
30
30
|
| Modelos | Ninguno requerido — el embedder integrado es hash determinista (cero descargas) |
|
|
@@ -137,7 +137,7 @@ Todos los ajustes son campos `Config` de Schemastery (modificables desde cordis.
|
|
|
137
137
|
```sh
|
|
138
138
|
pnpm install # node ^22.19 || >=24
|
|
139
139
|
pnpm run typecheck # tsc: src + tests contra el checkout local del harness
|
|
140
|
-
pnpm run typecheck:ci # tsc contra los tipos publicados 0.1.
|
|
140
|
+
pnpm run typecheck:ci # tsc contra los tipos publicados 0.1.1-rc.2 (sin paths)
|
|
141
141
|
pnpm test # vitest: puertos de calidad, vocabulario núcleo, ensamblaje con pila real
|
|
142
142
|
pnpm run build # bundle tsdown + declaraciones tsc (lib/)
|
|
143
143
|
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.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` (`0.1.1-rc.2` के लिए घोषित संगतता) |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| भंडारण | कोई भी storage-domain बैकएंड (JSON या SQLite); सूचकांक होस्ट के भंडारण डोमेन में रहता है |
|
|
30
30
|
| मॉडल | किसी की आवश्यकता नहीं — अंतर्निहित एम्बेडर नियतात्मक हैश है (शून्य डाउनलोड) |
|
|
@@ -137,7 +137,7 @@ dsh --profile web --dump-config | grep -A2 'id: dsh-library'
|
|
|
137
137
|
```sh
|
|
138
138
|
pnpm install # node ^22.19 || >=24
|
|
139
139
|
pnpm run typecheck # tsc: src + tests स्थानीय हार्नेस चेकआउट के विरुद्ध
|
|
140
|
-
pnpm run typecheck:ci # tsc प्रकाशित 0.1.
|
|
140
|
+
pnpm run typecheck:ci # tsc प्रकाशित 0.1.1-rc.2 प्रकारों के विरुद्ध (बिना paths)
|
|
141
141
|
pnpm test # vitest: गुणवत्ता पोर्ट, मूल शब्दावली, वास्तविक-स्टैक संयोजन
|
|
142
142
|
pnpm run build # tsdown बंडल + tsc घोषणाएँ (lib/)
|
|
143
143
|
pnpm run verify:self-contained # निर्भरता स्पेक registry से हल होती हैं
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
3
|
# 📚 dsh-library
|
|
4
|
+
[](https://gitee.com/perrylink/dsh-library)
|
|
4
5
|
|
|
5
6
|
**Local document knowledge base for DeepSeek Harness.**
|
|
6
7
|
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
|
|
25
26
|
| Surface | Status |
|
|
26
27
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
28
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` (compat declared for `0.1.1-rc.2`) |
|
|
28
29
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
30
|
| Storage | Any storage-domain backend (JSON or SQLite); the index lives in the host's storage domain |
|
|
30
31
|
| Models | None required — the built-in embedder is deterministic hashing (zero downloads) |
|
|
@@ -137,7 +138,7 @@ All tunables are Schemastery `Config` fields (changeable from cordis.yml). An id
|
|
|
137
138
|
```sh
|
|
138
139
|
pnpm install # node ^22.19 || >=24
|
|
139
140
|
pnpm run typecheck # tsc: src + tests against the local harness checkout
|
|
140
|
-
pnpm run typecheck:ci # tsc against the published 0.1.
|
|
141
|
+
pnpm run typecheck:ci # tsc against the published 0.1.1-rc.2 types (no paths)
|
|
141
142
|
pnpm test # vitest: quality ports, core vocabulary, real-stack assembly
|
|
142
143
|
pnpm run build # tsdown bundle + tsc declarations (lib/)
|
|
143
144
|
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.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` (compatibilidade declarada para `0.1.1-rc.2`) |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| Armazenamento | Qualquer backend de storage-domain (JSON ou SQLite); o índice vive no domínio de armazenamento do host |
|
|
30
30
|
| Modelos | Nenhum necessário — o embedder integrado é hash determinístico (zero downloads) |
|
|
@@ -137,7 +137,7 @@ Todos os ajustes são campos `Config` do Schemastery (alteráveis pelo cordis.ym
|
|
|
137
137
|
```sh
|
|
138
138
|
pnpm install # node ^22.19 || >=24
|
|
139
139
|
pnpm run typecheck # tsc: src + tests contra o checkout local do harness
|
|
140
|
-
pnpm run typecheck:ci # tsc contra os tipos publicados 0.1.
|
|
140
|
+
pnpm run typecheck:ci # tsc contra os tipos publicados 0.1.1-rc.2 (sem paths)
|
|
141
141
|
pnpm test # vitest: portas de qualidade, vocabulário núcleo, montagem com pilha real
|
|
142
142
|
pnpm run build # bundle tsdown + declarações tsc (lib/)
|
|
143
143
|
pnpm run verify:self-contained # especificações de dependências resolvem pelo registry
|
package/README.zh.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| 方面 | 状态 |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2`(声明兼容 `0.1.1-rc.2`) |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| 存储 | 任意 storage-domain 后端(JSON 或 SQLite);索引存放在宿主的存储域中 |
|
|
30
30
|
| 模型 | 无需任何模型 —— 内置嵌入为确定性哈希(零下载) |
|
|
@@ -137,7 +137,7 @@ dsh --profile web --dump-config | grep -A2 'id: dsh-library'
|
|
|
137
137
|
```sh
|
|
138
138
|
pnpm install # node ^22.19 || >=24
|
|
139
139
|
pnpm run typecheck # tsc:src + tests 对照本地 harness checkout
|
|
140
|
-
pnpm run typecheck:ci # tsc:对照已发布的 0.1.
|
|
140
|
+
pnpm run typecheck:ci # tsc:对照已发布的 0.1.1-rc.2 类型(无 paths)
|
|
141
141
|
pnpm test # vitest:八移植回归、核心词汇、真实栈装配
|
|
142
142
|
pnpm run build # tsdown bundle + tsc 声明(lib/)
|
|
143
143
|
pnpm run verify:self-contained # 依赖声明全部来自 registry
|
package/lib/types/index.d.ts
CHANGED
|
@@ -15,30 +15,30 @@ import type { Context } from '@deepseek-ai/cordis';
|
|
|
15
15
|
import { type Domain } from '@deepseek-ai/dsh-storage-domain';
|
|
16
16
|
import { z as zod } from 'zod';
|
|
17
17
|
import type { SubprocessRuntime } from '@deepseek-ai/dsh-subprocess';
|
|
18
|
-
import { Config, type ResolvedConfig } from './config.
|
|
19
|
-
import { chunkSizeHistogram } from './quality/chunk-visual.
|
|
18
|
+
import { Config, type ResolvedConfig } from './config.js';
|
|
19
|
+
import { chunkSizeHistogram } from './quality/chunk-visual.js';
|
|
20
20
|
export declare const name = "dsh-library";
|
|
21
21
|
/** Hard services: the durable index lives in the storage domain; tools and the command register here. */
|
|
22
22
|
export declare const inject: string[];
|
|
23
|
-
export { Config, resolveConfig, LIBRARY_NAME } from './config.
|
|
24
|
-
export type { ResolvedConfig, EmbeddingConfig, SearchConfig, InjectionConfig, CitationConfig, PurgeConfig, DiagnoseConfig } from './config.
|
|
25
|
-
export { embedHash, cosine, splitCommandLine } from './embedding.
|
|
26
|
-
export { CHUNK_SIZE_BUCKETS, chunkSizeHistogram, chunkText, chunkHash, findDuplicateChunks } from './quality/chunk-visual.
|
|
27
|
-
export type { Chunk, ChunkSizeHistogram, ChunkDiagnostics } from './quality/chunk-visual.
|
|
28
|
-
export { checkDiversity, maximalMarginalRelevance } from './quality/diversity.
|
|
29
|
-
export type { DiversityReport, RerankCandidate, DuplicatePair } from './quality/diversity.
|
|
30
|
-
export { successByPosition, makeProbe, insertProbe, buildProbePrompt, avoidLostMiddle, positionBins, middlePenalty, PROBE_PREFIX } from './quality/lost-middle.
|
|
31
|
-
export type { ProbeResult, PositionStats, RankedItem, PositionBin } from './quality/lost-middle.
|
|
32
|
-
export { scoreRelevance, scoreBatch, filterDocuments } from './quality/relevance.
|
|
33
|
-
export type { ScoredDocument } from './quality/relevance.
|
|
34
|
-
export { validateQaPair, selectFewShot, formatFewShotPrompt } from './quality/few-shot.
|
|
35
|
-
export type { QaExample, SelectedExample, FewShotOptions } from './quality/few-shot.
|
|
36
|
-
export { extractCitations, extractContext, verifyReferences } from './quality/reference.
|
|
37
|
-
export type { CitationMarker, ReferenceDocument, ReferenceVerdict, ReferenceReport, ReferenceOptions } from './quality/reference.
|
|
38
|
-
export { extractCitationNumbers, extractSentenceWithCitation, fuzzyPartialRatio, validateCitation, validateCitations } from './quality/citation.
|
|
39
|
-
export type { CitationMatch, ValidationResult } from './quality/citation.
|
|
40
|
-
export { verifyPurge, sampleSignatures } from './quality/purge.
|
|
41
|
-
export type { RemainingChunk, PurgeProbeResult, PurgeReport, PurgeOptions } from './quality/purge.
|
|
23
|
+
export { Config, resolveConfig, LIBRARY_NAME } from './config.js';
|
|
24
|
+
export type { ResolvedConfig, EmbeddingConfig, SearchConfig, InjectionConfig, CitationConfig, PurgeConfig, DiagnoseConfig } from './config.js';
|
|
25
|
+
export { embedHash, cosine, splitCommandLine } from './embedding.js';
|
|
26
|
+
export { CHUNK_SIZE_BUCKETS, chunkSizeHistogram, chunkText, chunkHash, findDuplicateChunks } from './quality/chunk-visual.js';
|
|
27
|
+
export type { Chunk, ChunkSizeHistogram, ChunkDiagnostics } from './quality/chunk-visual.js';
|
|
28
|
+
export { checkDiversity, maximalMarginalRelevance } from './quality/diversity.js';
|
|
29
|
+
export type { DiversityReport, RerankCandidate, DuplicatePair } from './quality/diversity.js';
|
|
30
|
+
export { successByPosition, makeProbe, insertProbe, buildProbePrompt, avoidLostMiddle, positionBins, middlePenalty, PROBE_PREFIX } from './quality/lost-middle.js';
|
|
31
|
+
export type { ProbeResult, PositionStats, RankedItem, PositionBin } from './quality/lost-middle.js';
|
|
32
|
+
export { scoreRelevance, scoreBatch, filterDocuments } from './quality/relevance.js';
|
|
33
|
+
export type { ScoredDocument } from './quality/relevance.js';
|
|
34
|
+
export { validateQaPair, selectFewShot, formatFewShotPrompt } from './quality/few-shot.js';
|
|
35
|
+
export type { QaExample, SelectedExample, FewShotOptions } from './quality/few-shot.js';
|
|
36
|
+
export { extractCitations, extractContext, verifyReferences } from './quality/reference.js';
|
|
37
|
+
export type { CitationMarker, ReferenceDocument, ReferenceVerdict, ReferenceReport, ReferenceOptions } from './quality/reference.js';
|
|
38
|
+
export { extractCitationNumbers, extractSentenceWithCitation, fuzzyPartialRatio, validateCitation, validateCitations } from './quality/citation.js';
|
|
39
|
+
export type { CitationMatch, ValidationResult } from './quality/citation.js';
|
|
40
|
+
export { verifyPurge, sampleSignatures } from './quality/purge.js';
|
|
41
|
+
export type { RemainingChunk, PurgeProbeResult, PurgeReport, PurgeOptions } from './quality/purge.js';
|
|
42
42
|
/** The dsh-library storage-domain declaration (unit names allow `[a-z][a-z0-9_]*` only). */
|
|
43
43
|
export declare const libraryDomainSpec: {
|
|
44
44
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-library",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Local document knowledge base for DeepSeek Harness: library_add/remove/list, hybrid semantic+keyword library_search with diversity re-ranking, relevance filtering and lost-in-the-middle avoidance, citation-aware injection, library_cite_check and library_diagnose
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Local document knowledge base for DeepSeek Harness: library_add/remove/list, hybrid semantic+keyword library_search with diversity re-ranking, relevance filtering and lost-in-the-middle avoidance, citation-aware injection, library_cite_check and library_diagnose —SQLite-backed index via the storage domain, local embedding, zero model downloads",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PerryLink/dsh-library.git"
|
|
@@ -67,8 +67,7 @@
|
|
|
67
67
|
],
|
|
68
68
|
"compatibility": {
|
|
69
69
|
"dshVersions": [
|
|
70
|
-
"0.1.
|
|
71
|
-
"0.1.0-rc.6"
|
|
70
|
+
"0.1.1-rc.2"
|
|
72
71
|
]
|
|
73
72
|
},
|
|
74
73
|
"capability": {
|
|
@@ -104,15 +103,15 @@
|
|
|
104
103
|
"packageManager": "pnpm@11.7.0",
|
|
105
104
|
"peerDependencies": {
|
|
106
105
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
107
|
-
"@deepseek-ai/
|
|
108
|
-
"@deepseek-ai/dsh-
|
|
109
|
-
"@deepseek-ai/dsh-
|
|
110
|
-
"@deepseek-ai/dsh-
|
|
111
|
-
"@deepseek-ai/dsh-storage": "0.1.0-rc.
|
|
112
|
-
"@deepseek-ai/dsh-storage-json": "0.1.0-rc.
|
|
113
|
-
"@deepseek-ai/dsh-
|
|
114
|
-
"@deepseek-ai/dsh-
|
|
115
|
-
"@deepseek-ai/
|
|
106
|
+
"@deepseek-ai/dsh-fs": ">=0.1.0-rc.8 <0.2.0",
|
|
107
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.8 <0.2.0",
|
|
108
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
|
|
109
|
+
"@deepseek-ai/dsh-storage": ">=0.1.0-rc.8 <0.2.0",
|
|
110
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.1.0-rc.8 <0.2.0",
|
|
111
|
+
"@deepseek-ai/dsh-storage-json": ">=0.1.0-rc.8 <0.2.0",
|
|
112
|
+
"@deepseek-ai/dsh-subprocess": ">=0.1.0-rc.8 <0.2.0",
|
|
113
|
+
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
|
|
114
|
+
"@deepseek-ai/schemastery": "^3.18.0"
|
|
116
115
|
},
|
|
117
116
|
"dependencies": {
|
|
118
117
|
"tsdown": "^0.22.14",
|
|
@@ -121,20 +120,24 @@
|
|
|
121
120
|
},
|
|
122
121
|
"devDependencies": {
|
|
123
122
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
123
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.6",
|
|
124
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
|
|
125
|
+
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-commands": "0.1.1-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-fs": "0.1.1-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-fs-local": "0.1.1-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
|
|
131
|
+
"@deepseek-ai/dsh-storage": "0.1.1-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.1-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-storage-json": "0.1.1-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-subprocess": "0.1.1-rc.2",
|
|
135
|
+
"@deepseek-ai/dsh-subprocess-local": "0.1.1-rc.2",
|
|
136
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
124
137
|
"@deepseek-ai/schemastery": "^3.18.0",
|
|
125
|
-
"@deepseek-ai/dsh-agent": "0.1.0-rc.6",
|
|
126
|
-
"@deepseek-ai/dsh-commands": "0.1.0-rc.6",
|
|
127
|
-
"@deepseek-ai/dsh-fs": "0.1.0-rc.6",
|
|
128
|
-
"@deepseek-ai/dsh-fs-local": "0.1.0-rc.6",
|
|
129
|
-
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",
|
|
130
|
-
"@deepseek-ai/dsh-session": "0.1.0-rc.6",
|
|
131
|
-
"@deepseek-ai/dsh-storage": "0.1.0-rc.6",
|
|
132
|
-
"@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
|
|
133
|
-
"@deepseek-ai/dsh-storage-json": "0.1.0-rc.6",
|
|
134
|
-
"@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
|
|
135
|
-
"@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.6",
|
|
136
|
-
"@deepseek-ai/dsh-tools": "0.1.0-rc.6",
|
|
137
138
|
"@types/node": "^22.19.0",
|
|
139
|
+
"@vitest/coverage-v8": "3.2.0",
|
|
140
|
+
"oxlint": "0.18.1",
|
|
138
141
|
"vitest": "^3.2.0"
|
|
139
142
|
},
|
|
140
143
|
"scripts": {
|
|
@@ -144,6 +147,9 @@
|
|
|
144
147
|
"typecheck:ci": "tsc -p tsconfig.ci.json --noEmit",
|
|
145
148
|
"test": "vitest run",
|
|
146
149
|
"test:watch": "vitest",
|
|
150
|
+
"test:coverage": "vitest run --coverage",
|
|
151
|
+
"lint": "oxlint",
|
|
152
|
+
"check:readmes": "node scripts/check-readme-sync.mjs",
|
|
147
153
|
"verify:self-contained": "node scripts/verify-self-contained.mjs",
|
|
148
154
|
"verify:artifacts": "node scripts/verify-artifacts.mjs"
|
|
149
155
|
},
|