@aliyunrds/ctxdb-dsh 0.0.0-stage → 0.0.1-beta.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/README.md +77 -2
- package/cordis.patch.yml +6 -0
- package/dist/client.js +482 -0
- package/dist/configure-host.js +249 -0
- package/dist/configure.js +1988 -0
- package/dist/index.js +9272 -0
- package/package.json +56 -3
- package/skills/contextdb-dsh/SKILL.md +20 -0
package/package.json
CHANGED
|
@@ -1,6 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aliyunrds/ctxdb-dsh",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.1-beta.3",
|
|
4
|
+
"description": "ContextDB memory and knowledge tools for DeepSeek Harness",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./dist/index.js",
|
|
10
|
+
"./client": "./dist/client.js",
|
|
11
|
+
"./configure-host": "./dist/configure-host.js"
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"ctxdb-dsh": "./dist/configure.js"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/index.js",
|
|
18
|
+
"dist/client.js",
|
|
19
|
+
"dist/configure.js",
|
|
20
|
+
"dist/configure-host.js",
|
|
21
|
+
"cordis.patch.yml",
|
|
22
|
+
"skills",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"dsh-plugin",
|
|
27
|
+
"contextdb",
|
|
28
|
+
"memory",
|
|
29
|
+
"knowledge-base"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=24.9.0",
|
|
33
|
+
"dsh": ">=0.2.2-0 <0.2.3-0"
|
|
34
|
+
},
|
|
35
|
+
"dsh": {
|
|
36
|
+
"bundle": {
|
|
37
|
+
"patch": "./cordis.patch.yml"
|
|
38
|
+
},
|
|
39
|
+
"client": {
|
|
40
|
+
"platform": "web",
|
|
41
|
+
"external": [
|
|
42
|
+
"react"
|
|
43
|
+
],
|
|
44
|
+
"inject": [
|
|
45
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
46
|
+
"@deepseek-ai/dsh-api-remote-access",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "pnpm --dir ../../access_layer/ctxdb exec tsup --config ../../plugins/dsh-plugins/tsup.config.ts",
|
|
56
|
+
"typecheck": "pnpm --dir ../../access_layer/ctxdb exec tsc -p ../../plugins/dsh-plugins/tsconfig.json",
|
|
57
|
+
"test": "pnpm build && node --test tests/unit/*.test.mjs tests/*.test.mjs"
|
|
58
|
+
}
|
|
6
59
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: contextdb-dsh
|
|
3
|
+
description: Use ContextDB memories, documents, graphs and Wiki. Discover advanced commands for reviews, memory promotion and maintenance.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use the current DSH connection. For routine work, call the native ContextDB tools directly.
|
|
7
|
+
|
|
8
|
+
- When asked to remember a fact, use `ctxdb_memory_add`. To inspect or forget a specific memory, search or list, read the exact ID, then delete only the selected item. To correct one, use the advanced command `memory update`.
|
|
9
|
+
- Find knowledge bases with `ctxdb_kb_list`. Search the requested libraries with `ctxdb_kb_search`. Cite retrieved document chunks. Use graph entities and relations to navigate, then use `graph entity-chunks` to obtain evidence.
|
|
10
|
+
- Upload an attachment by its exact filename or a local file by its DSH path using `ctxdb_kb_upload_file`. Read the resulting document ID with `kb document-get` to check ingestion before reporting completion.
|
|
11
|
+
- Use native Wiki search and page reading for questions. To edit, read the current page and pass its version as `expected_version` to `wiki page-update`. On a conflict, read it again.
|
|
12
|
+
|
|
13
|
+
For other operations call the model tool named `ctxdb`. Its `command` is a space-separated name and its `args` is a JSON object. Discover only the branch you need.
|
|
14
|
+
|
|
15
|
+
1. `{"command":"help"}` lists the available groups.
|
|
16
|
+
2. `{"command":"help kb review"}` lists review operations. `{"command":"help kb review list"}` shows the arguments.
|
|
17
|
+
3. `{"command":"wiki revisions","args":{"knowledge_base_id":"<kb-id>","page_id":"<page-id>"}}` lists a page's revisions.
|
|
18
|
+
4. For memory-to-document workflows start with `{"command":"help memory promotion"}`. Check the current state and destination before approving a promotion.
|
|
19
|
+
|
|
20
|
+
Use the scope and IDs requested by the user. When a write returns a partial result or an uncertain outcome, inspect the affected resources before retrying.
|