@dshtrading/client-ui-strategies 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/lib/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ //#region src/index.d.ts
2
+ /**
3
+ * client-ui-strategies node half. Empty apply so the plugin appears in the
4
+ * host cordis.yml / Loader (client-ui-indicators / client-ui-settings same
5
+ * pattern); the browser half owns the stage-view registration through
6
+ * exports["./client"], discovered from the package.json dsh.client
7
+ * declaration. All strategy engine logic lives in @dshtrading/strategies.
8
+ */
9
+ /** Host plugin body — no host-side behavior for this view plugin. */
10
+ declare function apply(): void;
11
+ //#endregion
12
+ export { apply };
package/lib/index.js ADDED
@@ -0,0 +1,12 @@
1
+ //#region src/index.ts
2
+ /**
3
+ * client-ui-strategies node half. Empty apply so the plugin appears in the
4
+ * host cordis.yml / Loader (client-ui-indicators / client-ui-settings same
5
+ * pattern); the browser half owns the stage-view registration through
6
+ * exports["./client"], discovered from the package.json dsh.client
7
+ * declaration. All strategy engine logic lives in @dshtrading/strategies.
8
+ */
9
+ /** Host plugin body — no host-side behavior for this view plugin. */
10
+ function apply() {}
11
+ //#endregion
12
+ export { apply };
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@dshtrading/client-ui-strategies",
3
+ "description": "Strategy stage view plugin for dsh-trading (issue #34 / P5): registers the 中栏「策略」tab via the tradingStageViews service — horizon segmented control, strategy cards, backtest runner with equity curve and trade log. Engine comes from the @dshtrading/strategies 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
+ "lightweight-charts": "^5.2.1",
29
+ "@dshtrading/strategies": "^0.1.0"
30
+ },
31
+ "peerDependencies": {
32
+ "@deepseek-ai/cordis": ">=4.0.0",
33
+ "@deepseek-ai/dsh-client-locale": ">=0.1.2-alpha.1",
34
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.2-alpha.1",
35
+ "@types/react": "~18.3.1",
36
+ "react": "^18.2.0"
37
+ },
38
+ "devDependencies": {
39
+ "@testing-library/dom": "^10.4.1",
40
+ "@testing-library/react": "^16.3.3",
41
+ "@types/react": "~18.3.1",
42
+ "@types/react-dom": "~18.3.7",
43
+ "jsdom": "^30.0.1",
44
+ "lightningcss": "^1.0.0",
45
+ "react": "^18.2.0",
46
+ "react-dom": "^18.3.1",
47
+ "tsdown": "^0.22.0",
48
+ "typescript": "^5.5.0",
49
+ "vitest": "^3.0.0",
50
+ "@deepseek-ai/dsh-client-ui-tool": "0.1.2-alpha.3"
51
+ },
52
+ "dsh": {
53
+ "client": {
54
+ "inject": [
55
+ "@deepseek-ai/dsh-client-locale",
56
+ "@deepseek-ai/dsh-client-ui-slots"
57
+ ],
58
+ "platform": "web"
59
+ }
60
+ },
61
+ "scripts": {
62
+ "bundle": "tsdown && tsdown --config tsdown.client.config.mjs",
63
+ "build": "tsdown && tsdown --config tsdown.client.config.mjs",
64
+ "test": "vitest run"
65
+ }
66
+ }