dsh-library 0.1.0
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 +19 -0
- package/LICENSE +201 -0
- package/README.es.md +158 -0
- package/README.hi.md +158 -0
- package/README.md +158 -0
- package/README.pt.md +158 -0
- package/README.zh.md +158 -0
- package/SECURITY.md +38 -0
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/cordis.patch.yml +79 -0
- package/lib/index.js +6074 -0
- package/lib/types/config.d.ts +208 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/embedding.d.ts +56 -0
- package/lib/types/embedding.d.ts.map +1 -0
- package/lib/types/ids.d.ts +27 -0
- package/lib/types/ids.d.ts.map +1 -0
- package/lib/types/index.d.ts +248 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/quality/chunk-visual.d.ts +93 -0
- package/lib/types/quality/chunk-visual.d.ts.map +1 -0
- package/lib/types/quality/citation.d.ts +76 -0
- package/lib/types/quality/citation.d.ts.map +1 -0
- package/lib/types/quality/diversity.d.ts +54 -0
- package/lib/types/quality/diversity.d.ts.map +1 -0
- package/lib/types/quality/few-shot.d.ts +54 -0
- package/lib/types/quality/few-shot.d.ts.map +1 -0
- package/lib/types/quality/lost-middle.d.ts +95 -0
- package/lib/types/quality/lost-middle.d.ts.map +1 -0
- package/lib/types/quality/purge.d.ts +55 -0
- package/lib/types/quality/purge.d.ts.map +1 -0
- package/lib/types/quality/reference.d.ts +75 -0
- package/lib/types/quality/reference.d.ts.map +1 -0
- package/lib/types/quality/relevance.d.ts +44 -0
- package/lib/types/quality/relevance.d.ts.map +1 -0
- package/lib/types/text.d.ts +51 -0
- package/lib/types/text.d.ts.map +1 -0
- package/package.json +149 -0
package/package.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-library",
|
|
3
|
+
"version": "0.1.0",
|
|
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
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/PerryLink/dsh-library.git"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/PerryLink/dsh-library#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/PerryLink/dsh-library/issues"
|
|
12
|
+
},
|
|
13
|
+
"author": "PerryLink",
|
|
14
|
+
"private": false,
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./lib/index.js",
|
|
17
|
+
"types": "./lib/types/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./lib/types/index.d.ts",
|
|
21
|
+
"default": "./lib/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"lib",
|
|
27
|
+
"cordis.patch.yml",
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"THIRD_PARTY_NOTICES.md",
|
|
30
|
+
"SECURITY.md",
|
|
31
|
+
"README.md",
|
|
32
|
+
"README.zh.md",
|
|
33
|
+
"README.es.md",
|
|
34
|
+
"README.pt.md",
|
|
35
|
+
"README.hi.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"dsh": {
|
|
39
|
+
"bundle": {
|
|
40
|
+
"patch": "./cordis.patch.yml"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"dshWorkshop": {
|
|
44
|
+
"schema": "omdsh-workshop-package/v1",
|
|
45
|
+
"type": "plugin",
|
|
46
|
+
"integration": {
|
|
47
|
+
"protocol": "harness-profile",
|
|
48
|
+
"artifact": "cordis.patch.yml"
|
|
49
|
+
},
|
|
50
|
+
"install": {
|
|
51
|
+
"mode": "transactional",
|
|
52
|
+
"adapter": "profile-bundle",
|
|
53
|
+
"failurePolicy": "generation-rollback",
|
|
54
|
+
"touchesCurrentBeforeActivation": false
|
|
55
|
+
},
|
|
56
|
+
"lifecycle": {
|
|
57
|
+
"activation": "hot-reload",
|
|
58
|
+
"dispose": "supported"
|
|
59
|
+
},
|
|
60
|
+
"permissions": [
|
|
61
|
+
"fs:read",
|
|
62
|
+
"subprocess:spawn",
|
|
63
|
+
"session:append",
|
|
64
|
+
"storage:write",
|
|
65
|
+
"network:none",
|
|
66
|
+
"native-code:none"
|
|
67
|
+
],
|
|
68
|
+
"compatibility": {
|
|
69
|
+
"dshVersions": [
|
|
70
|
+
"0.1.0-rc.5",
|
|
71
|
+
"0.1.0-rc.6"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"capability": {
|
|
75
|
+
"id": "local-knowledge-library",
|
|
76
|
+
"kind": "tool",
|
|
77
|
+
"invocation": "library_add, library_remove, library_list, library_search, library_cite_check, library_diagnose",
|
|
78
|
+
"expected": "builds and queries a local document knowledge base (chunking, local embedding, SQLite-backed index) with diversity re-ranking, relevance filtering, lost-in-the-middle avoidance, citation verification and purge verification"
|
|
79
|
+
},
|
|
80
|
+
"evidence": {
|
|
81
|
+
"install": null,
|
|
82
|
+
"failureIsolation": null,
|
|
83
|
+
"hotReload": null,
|
|
84
|
+
"remove": null
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"keywords": [
|
|
88
|
+
"dsh",
|
|
89
|
+
"dsh-plugin",
|
|
90
|
+
"deepseek-harness",
|
|
91
|
+
"deepseek",
|
|
92
|
+
"cordis",
|
|
93
|
+
"rag",
|
|
94
|
+
"knowledge-base",
|
|
95
|
+
"retrieval",
|
|
96
|
+
"embedding",
|
|
97
|
+
"vector-search",
|
|
98
|
+
"citation-validation",
|
|
99
|
+
"document-library"
|
|
100
|
+
],
|
|
101
|
+
"engines": {
|
|
102
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
103
|
+
},
|
|
104
|
+
"packageManager": "pnpm@11.7.0",
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
107
|
+
"@deepseek-ai/schemastery": "^3.18.0",
|
|
108
|
+
"@deepseek-ai/dsh-fs": "0.1.0-rc.6",
|
|
109
|
+
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",
|
|
110
|
+
"@deepseek-ai/dsh-session": "0.1.0-rc.6",
|
|
111
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
|
|
112
|
+
"@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
|
|
113
|
+
"@deepseek-ai/dsh-tools": "0.1.0-rc.6"
|
|
114
|
+
},
|
|
115
|
+
"dependencies": {
|
|
116
|
+
"tsdown": "^0.22.14",
|
|
117
|
+
"typescript": "^5.9.0",
|
|
118
|
+
"zod": "^4.4.3"
|
|
119
|
+
},
|
|
120
|
+
"devDependencies": {
|
|
121
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
122
|
+
"@deepseek-ai/schemastery": "^3.18.0",
|
|
123
|
+
"@deepseek-ai/dsh-agent": "0.1.0-rc.6",
|
|
124
|
+
"@deepseek-ai/dsh-commands": "0.1.0-rc.6",
|
|
125
|
+
"@deepseek-ai/dsh-fs": "0.1.0-rc.6",
|
|
126
|
+
"@deepseek-ai/dsh-fs-local": "0.1.0-rc.6",
|
|
127
|
+
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",
|
|
128
|
+
"@deepseek-ai/dsh-session": "0.1.0-rc.6",
|
|
129
|
+
"@deepseek-ai/dsh-storage": "0.1.0-rc.6",
|
|
130
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.0-rc.6",
|
|
131
|
+
"@deepseek-ai/dsh-storage-json": "0.1.0-rc.6",
|
|
132
|
+
"@deepseek-ai/dsh-subprocess": "0.1.0-rc.6",
|
|
133
|
+
"@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.6",
|
|
134
|
+
"@deepseek-ai/dsh-tools": "0.1.0-rc.6",
|
|
135
|
+
"@types/node": "^22.19.0",
|
|
136
|
+
"vitest": "^3.2.0"
|
|
137
|
+
},
|
|
138
|
+
"scripts": {
|
|
139
|
+
"build": "node scripts/prepare.mjs",
|
|
140
|
+
"prepare": "node scripts/prepare.mjs",
|
|
141
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
|
|
142
|
+
"typecheck:ci": "tsc -p tsconfig.ci.json --noEmit",
|
|
143
|
+
"test": "vitest run",
|
|
144
|
+
"test:watch": "vitest",
|
|
145
|
+
"verify:self-contained": "node scripts/verify-self-contained.mjs",
|
|
146
|
+
"verify:artifacts": "node scripts/verify-artifacts.mjs"
|
|
147
|
+
},
|
|
148
|
+
"license": "Apache-2.0"
|
|
149
|
+
}
|