@furongjun1999/dsh-memory 0.10.1 → 0.10.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.en.md +65 -0
- package/CHANGELOG.md +642 -516
- package/README.en.md +1 -1
- package/README.md +2 -2
- package/docs/mdcg/cogmap_ops.md +15 -13
- package/lib/tools.d.ts +2 -2
- package/md_cg/bucketscope.py +36 -18
- package/md_cg/cohesion.py +337 -0
- package/md_cg/config_registry_bulk.py +5 -0
- package/md_cg/constraint_audit.py +231 -0
- package/md_cg/constraint_watch.py +206 -0
- package/md_cg/context_audit.py +240 -0
- package/md_cg/context_plan.py +142 -0
- package/md_cg/distill.py +247 -0
- package/md_cg/dossier.py +151 -0
- package/md_cg/entities.py +133 -0
- package/md_cg/mcp_server.py +60 -7
- package/md_cg/mdcg.py +27 -0
- package/md_cg/mdcos.py +319 -2
- package/md_cg/op_table.py +14 -0
- package/md_cg/profiles.py +298 -0
- package/md_cg/protocol.py +7 -1
- package/md_cg/reldate.py +142 -0
- package/md_cg/selfstmt.py +139 -0
- package/md_cg/state_slots.py +4 -0
- package/md_cg/state_view.py +181 -0
- package/md_cg/sustain.py +28 -2
- package/md_cg/test_alternatives_historical.py +4 -1
- package/md_cg/test_bucket_time_rounds.py +87 -0
- package/md_cg/test_cohesion.py +107 -0
- package/md_cg/test_constraint_audit.py +87 -0
- package/md_cg/test_constraint_watch.py +108 -0
- package/md_cg/test_context_audit.py +110 -0
- package/md_cg/test_context_plan.py +81 -0
- package/md_cg/tokens.py +1 -1
- package/md_cg/version_anchor.py +84 -1
- package/md_cg/whitebox_kb/wisdom/code_solidified.json +6195 -6195
- package/package.json +137 -137
package/package.json
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@furongjun1999/dsh-memory",
|
|
3
|
-
"version": "0.10.
|
|
4
|
-
"description": "灵枢(Lingshu·líng shū)DeepSeek Harness 插件:完整大脑——长期记忆/知识飞轮/自我认知/递归反思接入 DSH,对话自动沉淀进 md_cg 认知图(md 文档)",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"types": "lib/index.d.ts",
|
|
8
|
-
"bin": {
|
|
9
|
-
"lingshu": "./lib/cli.js",
|
|
10
|
-
"lingshu-init": "./lib/init.js",
|
|
11
|
-
"dsh-memory": "./lib/cli.js"
|
|
12
|
-
},
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./lib/index.d.ts",
|
|
16
|
-
"import": "./lib/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./client": "./lib/client.js"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"lib",
|
|
22
|
-
"src",
|
|
23
|
-
"md_cg",
|
|
24
|
-
"utf8_boot.py",
|
|
25
|
-
"data/policy.json",
|
|
26
|
-
"hive/id_charset_blocks.txt",
|
|
27
|
-
"skills",
|
|
28
|
-
"CHANGELOG.md",
|
|
29
|
-
"CHANGELOG.en.md",
|
|
30
|
-
"README.md",
|
|
31
|
-
"README.en.md",
|
|
32
|
-
"docs/en",
|
|
33
|
-
"dsh",
|
|
34
|
-
"codebuddy",
|
|
35
|
-
"zcode",
|
|
36
|
-
"docs/规范/AI编程通用规范.md",
|
|
37
|
-
"docs/规范/AI编程通用规范_灵枢适配.md",
|
|
38
|
-
"docs/规范/AI编程通用规范_自检清单.md",
|
|
39
|
-
"docs/discipline",
|
|
40
|
-
"docs/工作纪律_认知图条目_v1.1.json",
|
|
41
|
-
"scripts/workspace_index.py",
|
|
42
|
-
"ui",
|
|
43
|
-
"web",
|
|
44
|
-
"docs/mdcg/写入别名aliases规范_v0.6.md",
|
|
45
|
-
"docs/mdcg/CCG六要素编译.md",
|
|
46
|
-
"docs/mdcg/guardrail-charter.md",
|
|
47
|
-
"docs/mdcg/MCP工具名口径_v1.0.md",
|
|
48
|
-
"docs/mdcg/recall_metadata.md",
|
|
49
|
-
"docs/mdcg/世界模型功能端_使用与运维_v1.0.md",
|
|
50
|
-
"docs/mdcg/cogmap_ops.md"
|
|
51
|
-
],
|
|
52
|
-
"keywords": [
|
|
53
|
-
"deepseek",
|
|
54
|
-
"dsh",
|
|
55
|
-
"dsh-plugin",
|
|
56
|
-
"cordis",
|
|
57
|
-
"memory",
|
|
58
|
-
"agent",
|
|
59
|
-
"aeis",
|
|
60
|
-
"lingshu",
|
|
61
|
-
"multi-agent",
|
|
62
|
-
"spatiotemporal",
|
|
63
|
-
"knowledge-graph"
|
|
64
|
-
],
|
|
65
|
-
"license": "MIT",
|
|
66
|
-
"peerDependenciesMeta": {
|
|
67
|
-
"@deepseek-ai/cordis": {
|
|
68
|
-
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"@deepseek-ai/dsh-llm": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"@deepseek-ai/dsh-session": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
|
-
"@deepseek-ai/dsh-system-prompt": {
|
|
77
|
-
"optional": true
|
|
78
|
-
},
|
|
79
|
-
"@deepseek-ai/dsh-tools": {
|
|
80
|
-
"optional": true
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"peerDependencies": {
|
|
84
|
-
"@deepseek-ai/cordis": ">=4.0.1",
|
|
85
|
-
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.6",
|
|
86
|
-
"@deepseek-ai/dsh-session": ">=0.1.0-rc.6",
|
|
87
|
-
"@deepseek-ai/dsh-system-prompt": ">=0.1.0-rc.6",
|
|
88
|
-
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.6"
|
|
89
|
-
},
|
|
90
|
-
"dependencies": {
|
|
91
|
-
"@deepseek-ai/schemastery": "^3.18.1"
|
|
92
|
-
},
|
|
93
|
-
"devDependencies": {
|
|
94
|
-
"@deepseek-ai/cordis": "^4.0.1",
|
|
95
|
-
"@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
|
|
96
|
-
"@deepseek-ai/dsh-session": "^0.2.0-rc.2",
|
|
97
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2",
|
|
98
|
-
"@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
|
|
99
|
-
"@deepseek-ai/schemastery": "^3.0.0",
|
|
100
|
-
"@types/node": "^26.6.5",
|
|
101
|
-
"tsx": "^4.19.0",
|
|
102
|
-
"typescript": "^7.0.2"
|
|
103
|
-
},
|
|
104
|
-
"scripts": {
|
|
105
|
-
"build": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.json && python scripts/build_ui.py",
|
|
106
|
-
"test": "npm run build && node --import tsx --test \"test/*.test.ts\"",
|
|
107
|
-
"prepare": "node -e \"const fs=require('fs');const tsc='node_modules/typescript/bin/tsc';if(fs.existsSync(tsc)){fs.rmSync('lib',{recursive:true,force:true});require('child_process').execFileSync(process.execPath,[tsc,'-p','tsconfig.json'],{stdio:'inherit'})}else if(fs.existsSync('lib/index.js')){console.log('[prepare] 跳过构建:typescript 未安装(NODE_ENV=production 或 --omit=dev 会省略 devDependencies)——需要构建请用 npm install --include=dev')}else{console.error('[prepare] 本安装会得到一个不可用的包(issue #161):包入口 main 指向 lib/index.js,但 lib/ 被 .gitignore 忽略、git 归档里没有它,此处 typescript 又未安装(NODE_ENV=production 或 --omit=dev 会省略 devDependencies)⇒ prepare 无法构建,lib/index.js 不存在。修法:用 npm install --include=dev 安装(带上 devDependencies,让 prepare 能构建),或改用已带构建产物的发布包。');process.exitCode=1}\" && python scripts/build_ui.py",
|
|
108
|
-
"gate": "python scripts/check_unreachable.py && python scripts/check_publish_artifact.py && python scripts/check_publish_smoke.py && python scripts/cogmap_sync.py check && python scripts/link_check.py && python scripts/check_line_anchors.py && python scripts/workspace_index.py --check && python scripts/discipline_nodes.py --init --write --cg-root .tmp/discipline-cg && python scripts/verify_discipline.py --allow-missing --cg-root .tmp/discipline-cg && python scripts/gate_output.py && python scripts/gate_rust_crate_test.py && python scripts/gate_rust_parity.py && python scripts/check_local_paths.py && python scripts/body_e2e_smoke.py",
|
|
109
|
-
"prepublishOnly": "python scripts/build_ui.py",
|
|
110
|
-
"build:ui": "python scripts/build_ui.py"
|
|
111
|
-
},
|
|
112
|
-
"repository": {
|
|
113
|
-
"type": "git",
|
|
114
|
-
"url": "git+https://github.com/FuRongJun-1999/dsh-memory.git"
|
|
115
|
-
},
|
|
116
|
-
"engines": {
|
|
117
|
-
"node": ">=22.19"
|
|
118
|
-
},
|
|
119
|
-
"dsh": {
|
|
120
|
-
"bundle": {
|
|
121
|
-
"patch": "./dsh/cordis.patch.yml"
|
|
122
|
-
},
|
|
123
|
-
"client": {
|
|
124
|
-
"platform": "web",
|
|
125
|
-
"immediately": true,
|
|
126
|
-
"inject": [
|
|
127
|
-
"@deepseek-ai/dsh-client-ui-renderer",
|
|
128
|
-
"@deepseek-ai/dsh-client-ui-layout",
|
|
129
|
-
"@deepseek-ai/dsh-client-ui-sidebar"
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"publishConfig": {
|
|
134
|
-
"access": "public",
|
|
135
|
-
"registry": "https://registry.npmjs.org/"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@furongjun1999/dsh-memory",
|
|
3
|
+
"version": "0.10.3",
|
|
4
|
+
"description": "灵枢(Lingshu·líng shū)DeepSeek Harness 插件:完整大脑——长期记忆/知识飞轮/自我认知/递归反思接入 DSH,对话自动沉淀进 md_cg 认知图(md 文档)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"lingshu": "./lib/cli.js",
|
|
10
|
+
"lingshu-init": "./lib/init.js",
|
|
11
|
+
"dsh-memory": "./lib/cli.js"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./lib/index.d.ts",
|
|
16
|
+
"import": "./lib/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./client": "./lib/client.js"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"lib",
|
|
22
|
+
"src",
|
|
23
|
+
"md_cg",
|
|
24
|
+
"utf8_boot.py",
|
|
25
|
+
"data/policy.json",
|
|
26
|
+
"hive/id_charset_blocks.txt",
|
|
27
|
+
"skills",
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"CHANGELOG.en.md",
|
|
30
|
+
"README.md",
|
|
31
|
+
"README.en.md",
|
|
32
|
+
"docs/en",
|
|
33
|
+
"dsh",
|
|
34
|
+
"codebuddy",
|
|
35
|
+
"zcode",
|
|
36
|
+
"docs/规范/AI编程通用规范.md",
|
|
37
|
+
"docs/规范/AI编程通用规范_灵枢适配.md",
|
|
38
|
+
"docs/规范/AI编程通用规范_自检清单.md",
|
|
39
|
+
"docs/discipline",
|
|
40
|
+
"docs/工作纪律_认知图条目_v1.1.json",
|
|
41
|
+
"scripts/workspace_index.py",
|
|
42
|
+
"ui",
|
|
43
|
+
"web",
|
|
44
|
+
"docs/mdcg/写入别名aliases规范_v0.6.md",
|
|
45
|
+
"docs/mdcg/CCG六要素编译.md",
|
|
46
|
+
"docs/mdcg/guardrail-charter.md",
|
|
47
|
+
"docs/mdcg/MCP工具名口径_v1.0.md",
|
|
48
|
+
"docs/mdcg/recall_metadata.md",
|
|
49
|
+
"docs/mdcg/世界模型功能端_使用与运维_v1.0.md",
|
|
50
|
+
"docs/mdcg/cogmap_ops.md"
|
|
51
|
+
],
|
|
52
|
+
"keywords": [
|
|
53
|
+
"deepseek",
|
|
54
|
+
"dsh",
|
|
55
|
+
"dsh-plugin",
|
|
56
|
+
"cordis",
|
|
57
|
+
"memory",
|
|
58
|
+
"agent",
|
|
59
|
+
"aeis",
|
|
60
|
+
"lingshu",
|
|
61
|
+
"multi-agent",
|
|
62
|
+
"spatiotemporal",
|
|
63
|
+
"knowledge-graph"
|
|
64
|
+
],
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"@deepseek-ai/cordis": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"@deepseek-ai/dsh-llm": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"@deepseek-ai/dsh-session": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"@deepseek-ai/dsh-system-prompt": {
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"@deepseek-ai/dsh-tools": {
|
|
80
|
+
"optional": true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@deepseek-ai/cordis": ">=4.0.1",
|
|
85
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.6",
|
|
86
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.6",
|
|
87
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.1.0-rc.6",
|
|
88
|
+
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.6"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@deepseek-ai/schemastery": "^3.18.1"
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
95
|
+
"@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-session": "^0.2.0-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
|
|
99
|
+
"@deepseek-ai/schemastery": "^3.0.0",
|
|
100
|
+
"@types/node": "^26.6.5",
|
|
101
|
+
"tsx": "^4.19.0",
|
|
102
|
+
"typescript": "^7.0.2"
|
|
103
|
+
},
|
|
104
|
+
"scripts": {
|
|
105
|
+
"build": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.json && python scripts/build_ui.py",
|
|
106
|
+
"test": "npm run build && node --import tsx --test \"test/*.test.ts\"",
|
|
107
|
+
"prepare": "node -e \"const fs=require('fs');const tsc='node_modules/typescript/bin/tsc';if(fs.existsSync(tsc)){fs.rmSync('lib',{recursive:true,force:true});require('child_process').execFileSync(process.execPath,[tsc,'-p','tsconfig.json'],{stdio:'inherit'})}else if(fs.existsSync('lib/index.js')){console.log('[prepare] 跳过构建:typescript 未安装(NODE_ENV=production 或 --omit=dev 会省略 devDependencies)——需要构建请用 npm install --include=dev')}else{console.error('[prepare] 本安装会得到一个不可用的包(issue #161):包入口 main 指向 lib/index.js,但 lib/ 被 .gitignore 忽略、git 归档里没有它,此处 typescript 又未安装(NODE_ENV=production 或 --omit=dev 会省略 devDependencies)⇒ prepare 无法构建,lib/index.js 不存在。修法:用 npm install --include=dev 安装(带上 devDependencies,让 prepare 能构建),或改用已带构建产物的发布包。');process.exitCode=1}\" && python scripts/build_ui.py",
|
|
108
|
+
"gate": "python scripts/check_unreachable.py && python scripts/check_publish_artifact.py && python scripts/check_publish_smoke.py && python scripts/cogmap_sync.py check && python scripts/link_check.py && python scripts/check_line_anchors.py && python scripts/workspace_index.py --check && python scripts/discipline_nodes.py --init --write --cg-root .tmp/discipline-cg && python scripts/verify_discipline.py --allow-missing --cg-root .tmp/discipline-cg && python scripts/gate_output.py && python scripts/gate_rust_crate_test.py && python scripts/gate_rust_parity.py && python scripts/check_local_paths.py && python scripts/body_e2e_smoke.py",
|
|
109
|
+
"prepublishOnly": "python scripts/build_ui.py",
|
|
110
|
+
"build:ui": "python scripts/build_ui.py"
|
|
111
|
+
},
|
|
112
|
+
"repository": {
|
|
113
|
+
"type": "git",
|
|
114
|
+
"url": "git+https://github.com/FuRongJun-1999/dsh-memory.git"
|
|
115
|
+
},
|
|
116
|
+
"engines": {
|
|
117
|
+
"node": ">=22.19"
|
|
118
|
+
},
|
|
119
|
+
"dsh": {
|
|
120
|
+
"bundle": {
|
|
121
|
+
"patch": "./dsh/cordis.patch.yml"
|
|
122
|
+
},
|
|
123
|
+
"client": {
|
|
124
|
+
"platform": "web",
|
|
125
|
+
"immediately": true,
|
|
126
|
+
"inject": [
|
|
127
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
128
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
129
|
+
"@deepseek-ai/dsh-client-ui-sidebar"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"publishConfig": {
|
|
134
|
+
"access": "public",
|
|
135
|
+
"registry": "https://registry.npmjs.org/"
|
|
136
|
+
}
|
|
137
|
+
}
|