@dshtrading/client-ui-knowledge 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/LICENSE +75 -0
- package/lib/client/contract.d.ts +14 -0
- package/lib/client/locales.d.ts +6 -0
- package/lib/client/locales.js +73 -0
- package/lib/client.js +10950 -0
- package/lib/client.js.map +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +11 -0
- package/package.json +60 -0
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* client-ui-knowledge node half. Empty apply so the plugin appears in the
|
|
4
|
+
* host cordis.yml / Loader (client-ui-indicators / client-ui-strategies same
|
|
5
|
+
* pattern); the browser half owns the stage-view registration through
|
|
6
|
+
* exports["./client"]. Graph logic lives in @dshtrading/knowledge.
|
|
7
|
+
*/
|
|
8
|
+
/** Host plugin body — no host-side behavior for this view plugin. */
|
|
9
|
+
declare function apply(): void;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { apply };
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* client-ui-knowledge node half. Empty apply so the plugin appears in the
|
|
4
|
+
* host cordis.yml / Loader (client-ui-indicators / client-ui-strategies same
|
|
5
|
+
* pattern); the browser half owns the stage-view registration through
|
|
6
|
+
* exports["./client"]. Graph logic lives in @dshtrading/knowledge.
|
|
7
|
+
*/
|
|
8
|
+
/** Host plugin body — no host-side behavior for this view plugin. */
|
|
9
|
+
function apply() {}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { apply };
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dshtrading/client-ui-knowledge",
|
|
3
|
+
"description": "Knowledge-base stage view plugin for dsh-trading (issue #34 / P5): registers the 中栏「知识库」tab via the tradingStageViews service — Obsidian-style force-directed knowledge graph with search/tag/author/credibility filters and a card detail drawer. Graph logic comes from the @dshtrading/knowledge pure library; bridge access goes through the shell's tradingBridge service (ctx.inject only, no cross-package module imports).",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"types": "./lib/types/client/index.d.ts",
|
|
15
|
+
"default": "./lib/client.js"
|
|
16
|
+
},
|
|
17
|
+
"./locales": {
|
|
18
|
+
"types": "./lib/client/locales.d.ts",
|
|
19
|
+
"default": "./lib/client/locales.js"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"lib"
|
|
25
|
+
],
|
|
26
|
+
"license": "PolyForm-Noncommercial-1.0.0",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"force-graph": "^1.51.0",
|
|
29
|
+
"@dshtrading/knowledge": "^0.1.0"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@deepseek-ai/cordis": ">=4.0.0",
|
|
33
|
+
"react": "^18.2.0",
|
|
34
|
+
"@types/react": "~18.3.1",
|
|
35
|
+
"@deepseek-ai/dsh-client-locale": ">=0.1.2-alpha.1",
|
|
36
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.1.2-alpha.1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"lightningcss": "^1.0.0",
|
|
40
|
+
"react": "^18.2.0",
|
|
41
|
+
"@types/react": "~18.3.1",
|
|
42
|
+
"tsdown": "^0.22.0",
|
|
43
|
+
"vitest": "^3.0.0",
|
|
44
|
+
"typescript": "^5.5.0"
|
|
45
|
+
},
|
|
46
|
+
"dsh": {
|
|
47
|
+
"client": {
|
|
48
|
+
"inject": [
|
|
49
|
+
"@deepseek-ai/dsh-client-locale",
|
|
50
|
+
"@deepseek-ai/dsh-client-ui-slots"
|
|
51
|
+
],
|
|
52
|
+
"platform": "web"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"bundle": "tsdown && tsdown --config tsdown.client.config.mjs",
|
|
57
|
+
"build": "tsdown && tsdown --config tsdown.client.config.mjs",
|
|
58
|
+
"test": "vitest run --passWithNoTests"
|
|
59
|
+
}
|
|
60
|
+
}
|