@xiao-53/dsh-mindmap 0.0.0-stage → 0.4.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/LICENSE +21 -0
- package/README.md +58 -2
- package/cordis.yml +3 -0
- package/lib/client.js +137591 -0
- package/lib/index.js +2701 -0
- package/lib/typert.js +55 -0
- package/package.json +112 -6
package/lib/typert.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// src/shared/rpc.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { createTypertRemoteInfo } from "@deepseek-ai/dsh-typert-protocol/remote-info";
|
|
4
|
+
var ATLAS_PACKAGE_NAME = true ? "@xiao-53/dsh-mindmap" : "dsh-mindmap";
|
|
5
|
+
var codec = {
|
|
6
|
+
mode: "strict",
|
|
7
|
+
typeSymbol: `${ATLAS_PACKAGE_NAME}#string`,
|
|
8
|
+
create: () => z.string()
|
|
9
|
+
};
|
|
10
|
+
var atlasRemote = createTypertRemoteInfo(
|
|
11
|
+
{
|
|
12
|
+
package: ATLAS_PACKAGE_NAME,
|
|
13
|
+
methods: {
|
|
14
|
+
"dshAtlas/request": {
|
|
15
|
+
service: "dshAtlas",
|
|
16
|
+
invocation: { kind: "direct" },
|
|
17
|
+
parameters: [
|
|
18
|
+
{
|
|
19
|
+
name: "workspaceFileScope",
|
|
20
|
+
wire: "workspaceFileScopeId",
|
|
21
|
+
source: "lookup",
|
|
22
|
+
lookup: "workspaceFileScope",
|
|
23
|
+
codec: {
|
|
24
|
+
...codec,
|
|
25
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId"
|
|
26
|
+
},
|
|
27
|
+
strictCodec: {
|
|
28
|
+
...codec,
|
|
29
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{ name: "payload", source: "json", codec, strictCodec: codec }
|
|
33
|
+
],
|
|
34
|
+
cancellation: { parameter: "signal" },
|
|
35
|
+
result: codec
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
z
|
|
40
|
+
);
|
|
41
|
+
var requestMethod = atlasRemote.methods["dshAtlas/request"];
|
|
42
|
+
|
|
43
|
+
// src/typert.ts
|
|
44
|
+
var TYPERT = {
|
|
45
|
+
package: ATLAS_PACKAGE_NAME,
|
|
46
|
+
face: "host",
|
|
47
|
+
schemas: [],
|
|
48
|
+
get invocations() {
|
|
49
|
+
return atlasRemote.descriptors;
|
|
50
|
+
},
|
|
51
|
+
model: { services: [], events: [], objects: [] }
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
TYPERT
|
|
55
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,112 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@xiao-53/dsh-mindmap",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@xiao-53/dsh-mindmap",
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"description": "DSH 原生侧栏思维导图,支持 Markdown 笔记、布局保存和离线 HTML 导出。",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": ["dsh-plugin"],
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Xiao-53/dsh-mindmap.git"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public",
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "lib/index.js",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": "./lib/index.js",
|
|
19
|
+
"./client": "./lib/client.js",
|
|
20
|
+
"./typert": "./lib/typert.js",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"lib/index.js",
|
|
25
|
+
"lib/client.js",
|
|
26
|
+
"lib/typert.js",
|
|
27
|
+
"cordis.yml"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=24.9.0",
|
|
31
|
+
"dsh": "0.2.2-rc.3"
|
|
32
|
+
},
|
|
33
|
+
"dsh": {
|
|
34
|
+
"bundle": {
|
|
35
|
+
"patch": "./cordis.yml"
|
|
36
|
+
},
|
|
37
|
+
"client": {
|
|
38
|
+
"platform": "web",
|
|
39
|
+
"inject": [
|
|
40
|
+
"@deepseek-ai/dsh-api-gateway",
|
|
41
|
+
"@deepseek-ai/dsh-api-workspace-files",
|
|
42
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
43
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
44
|
+
"@deepseek-ai/dsh-client-ui-input-trigger",
|
|
45
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-session"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "node scripts/build.mjs",
|
|
52
|
+
"typecheck": "tsc -p tsconfig.host.json && tsc -p tsconfig.client.json",
|
|
53
|
+
"test": "node --experimental-strip-types --test tests/shared/*.test.ts tests/integration/*.test.ts",
|
|
54
|
+
"prepack": "npm run build",
|
|
55
|
+
"pack:plugin": "node scripts/pack-release.mjs",
|
|
56
|
+
"pretest": "npm run build && node scripts/build-ui-tests.mjs"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.3",
|
|
60
|
+
"@deepseek-ai/dsh-skill": "0.2.2-rc.3",
|
|
61
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.3",
|
|
62
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.3",
|
|
63
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.3",
|
|
64
|
+
"katex": "0.19.1",
|
|
65
|
+
"marked": "17.0.1",
|
|
66
|
+
"zod": "4.6.6"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
70
|
+
"react": "^18.2.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@codemirror/commands": "6.11.1",
|
|
74
|
+
"@codemirror/lang-markdown": "6.5.2",
|
|
75
|
+
"@codemirror/language": "6.13.1",
|
|
76
|
+
"@codemirror/state": "6.7.6",
|
|
77
|
+
"@codemirror/view": "6.43.15",
|
|
78
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
79
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.2-rc.3",
|
|
80
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.3",
|
|
81
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.2.2-rc.3",
|
|
82
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.3",
|
|
83
|
+
"@deepseek-ai/dsh-client-resources": "0.2.2-rc.3",
|
|
84
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.3",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.3",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.2-rc.3",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.3",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.3",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.3",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.3",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.2-rc.3",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.3",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.3",
|
|
94
|
+
"@deepseek-ai/dsh-fs": "0.2.2-rc.3",
|
|
95
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-rc.3",
|
|
96
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.3",
|
|
97
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.3",
|
|
98
|
+
"@deepseek-ai/dsh-typert-loader": "0.2.2-rc.3",
|
|
99
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.2-rc.3",
|
|
100
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.3",
|
|
101
|
+
"@types/jsdom": "^27.0.0",
|
|
102
|
+
"@types/node": "^24.0.0",
|
|
103
|
+
"@types/react": "^18.2.0",
|
|
104
|
+
"@types/react-dom": "^18.3.7",
|
|
105
|
+
"esbuild": "^0.27.0",
|
|
106
|
+
"jsdom": "^27.4.0",
|
|
107
|
+
"jsxgraph": "1.14.3",
|
|
108
|
+
"react": "^18.2.0",
|
|
109
|
+
"react-dom": "^18.3.1",
|
|
110
|
+
"typescript": "^6.0.3"
|
|
111
|
+
}
|
|
112
|
+
}
|