@dxos/plugin-chess 0.8.4-main.f9ba587 → 0.8.4-main.fcfe5033a5
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/dist/lib/browser/blueprints/index.mjs +14 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-2TJN26DN.mjs +67 -0
- package/dist/lib/browser/chunk-2TJN26DN.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-JZMN24DY.mjs +28 -0
- package/dist/lib/browser/chunk-JZMN24DY.mjs.map +7 -0
- package/dist/lib/browser/chunk-MC7L6JNC.mjs +36 -0
- package/dist/lib/browser/chunk-MC7L6JNC.mjs.map +7 -0
- package/dist/lib/browser/chunk-XAJZK6Z2.mjs +110 -0
- package/dist/lib/browser/chunk-XAJZK6Z2.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +34 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/create-AJHN4QT4.mjs +24 -0
- package/dist/lib/browser/create-AJHN4QT4.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +367 -74
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/move-T2NLRBR4.mjs +36 -0
- package/dist/lib/browser/move-T2NLRBR4.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +19 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/play-7VTMD3SJ.mjs +45 -0
- package/dist/lib/browser/play-7VTMD3SJ.mjs.map +7 -0
- package/dist/lib/browser/print-EW7LPW4D.mjs +30 -0
- package/dist/lib/browser/print-EW7LPW4D.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -7
- package/dist/lib/node-esm/blueprints/index.mjs +15 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4HZWCKMR.mjs +38 -0
- package/dist/lib/node-esm/chunk-4HZWCKMR.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-LQEDIKCV.mjs +29 -0
- package/dist/lib/node-esm/chunk-LQEDIKCV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-NYU5JVXP.mjs +111 -0
- package/dist/lib/node-esm/chunk-NYU5JVXP.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-OIRJVY2R.mjs +68 -0
- package/dist/lib/node-esm/chunk-OIRJVY2R.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +35 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/create-QSETDT4N.mjs +25 -0
- package/dist/lib/node-esm/create-QSETDT4N.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +367 -74
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/move-5F2ANDTE.mjs +37 -0
- package/dist/lib/node-esm/move-5F2ANDTE.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +20 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/play-W4DQCQRX.mjs +46 -0
- package/dist/lib/node-esm/play-W4DQCQRX.mjs.map +7 -0
- package/dist/lib/node-esm/print-UJHXAXMS.mjs +31 -0
- package/dist/lib/node-esm/print-UJHXAXMS.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -7
- package/dist/types/src/ChessPlugin.d.ts +2 -1
- package/dist/types/src/ChessPlugin.d.ts.map +1 -1
- package/dist/types/src/ChessPlugin.test.d.ts +2 -0
- package/dist/types/src/ChessPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/chess-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/chess-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +3 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition.d.ts +3 -2
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +5 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +3 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/Chessboard.d.ts +34 -0
- package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts +48 -0
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/Info.d.ts +21 -0
- package/dist/types/src/components/Chessboard/Info.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/index.d.ts +2 -0
- package/dist/types/src/components/Chessboard/index.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/types.d.ts +8 -0
- package/dist/types/src/components/Chessboard/types.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -5
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts +6 -0
- package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts.map +1 -0
- package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts +47 -0
- package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChessArticle/index.d.ts +2 -0
- package/dist/types/src/containers/ChessArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChessCard/ChessCard.d.ts +6 -0
- package/dist/types/src/containers/ChessCard/ChessCard.d.ts.map +1 -0
- package/dist/types/src/containers/ChessCard/ChessCard.stories.d.ts +15 -0
- package/dist/types/src/containers/ChessCard/ChessCard.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChessCard/index.d.ts +2 -0
- package/dist/types/src/containers/ChessCard/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +51 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/move.d.ts +5 -0
- package/dist/types/src/operations/move.d.ts.map +1 -0
- package/dist/types/src/operations/play.d.ts +5 -0
- package/dist/types/src/operations/play.d.ts.map +1 -0
- package/dist/types/src/operations/print.d.ts +5 -0
- package/dist/types/src/operations/print.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +22 -10
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Chess.d.ts +27 -0
- package/dist/types/src/types/Chess.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +1 -2
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +77 -35
- package/src/ChessPlugin.test.ts +65 -0
- package/src/ChessPlugin.tsx +42 -53
- package/src/blueprints/chess-blueprint.ts +35 -0
- package/src/blueprints/index.ts +6 -0
- package/src/capabilities/artifact-definition.ts +108 -97
- package/src/capabilities/blueprint-definition.ts +17 -0
- package/src/capabilities/index.ts +8 -4
- package/src/capabilities/operation-handler.ts +14 -0
- package/src/capabilities/react-surface.tsx +27 -22
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +37 -0
- package/src/components/Chessboard/Chessboard.stories.tsx +94 -0
- package/src/components/Chessboard/Chessboard.tsx +180 -0
- package/src/components/Chessboard/Info.tsx +253 -0
- package/src/components/Chessboard/index.ts +5 -0
- package/src/components/Chessboard/types.ts +18 -0
- package/src/components/index.ts +2 -6
- package/src/containers/ChessArticle/ChessArticle.stories.tsx +53 -0
- package/src/containers/ChessArticle/ChessArticle.tsx +73 -0
- package/src/containers/ChessArticle/index.ts +5 -0
- package/src/containers/ChessCard/ChessCard.stories.tsx +42 -0
- package/src/containers/ChessCard/ChessCard.tsx +22 -0
- package/src/containers/ChessCard/index.ts +5 -0
- package/src/containers/index.ts +8 -0
- package/src/index.ts +3 -2
- package/src/meta.ts +9 -7
- package/src/operations/create.ts +21 -0
- package/src/operations/definitions.ts +109 -0
- package/src/operations/index.ts +16 -0
- package/src/operations/move.ts +36 -0
- package/src/operations/play.ts +45 -0
- package/src/operations/print.ts +28 -0
- package/src/translations.ts +22 -10
- package/src/types/Chess.ts +62 -0
- package/src/types/index.ts +1 -2
- package/dist/lib/browser/ChessContainer-DL5J6VIK.mjs +0 -101
- package/dist/lib/browser/ChessContainer-DL5J6VIK.mjs.map +0 -7
- package/dist/lib/browser/artifact-definition-4AMZY5LQ.mjs +0 -182
- package/dist/lib/browser/artifact-definition-4AMZY5LQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-2VF6U52K.mjs +0 -8
- package/dist/lib/browser/chunk-2VF6U52K.mjs.map +0 -7
- package/dist/lib/browser/chunk-A3WEUKPK.mjs +0 -61
- package/dist/lib/browser/chunk-A3WEUKPK.mjs.map +0 -7
- package/dist/lib/browser/chunk-AZSYKAFK.mjs +0 -61
- package/dist/lib/browser/chunk-AZSYKAFK.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-KQYYX44R.mjs +0 -28
- package/dist/lib/browser/intent-resolver-KQYYX44R.mjs.map +0 -7
- package/dist/lib/browser/react-surface-4TBVZUKU.mjs +0 -43
- package/dist/lib/browser/react-surface-4TBVZUKU.mjs.map +0 -7
- package/dist/lib/node-esm/ChessContainer-WVOL2KSE.mjs +0 -102
- package/dist/lib/node-esm/ChessContainer-WVOL2KSE.mjs.map +0 -7
- package/dist/lib/node-esm/artifact-definition-TT3747JB.mjs +0 -183
- package/dist/lib/node-esm/artifact-definition-TT3747JB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2DRWEDVT.mjs +0 -63
- package/dist/lib/node-esm/chunk-2DRWEDVT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IS3Y25PL.mjs +0 -63
- package/dist/lib/node-esm/chunk-IS3Y25PL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TD2SWK2H.mjs +0 -10
- package/dist/lib/node-esm/chunk-TD2SWK2H.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-GXK2JROQ.mjs +0 -29
- package/dist/lib/node-esm/intent-resolver-GXK2JROQ.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-PAUEOIBL.mjs +0 -44
- package/dist/lib/node-esm/react-surface-PAUEOIBL.mjs.map +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/ChessComponent.d.ts +0 -6
- package/dist/types/src/components/ChessComponent.d.ts.map +0 -1
- package/dist/types/src/components/ChessContainer.d.ts +0 -8
- package/dist/types/src/components/ChessContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChessPanel.d.ts +0 -11
- package/dist/types/src/components/ChessPanel.d.ts.map +0 -1
- package/dist/types/src/components/Chessboard.stories.d.ts +0 -8
- package/dist/types/src/components/Chessboard.stories.d.ts.map +0 -1
- package/dist/types/src/components/PlayerSelector.d.ts +0 -8
- package/dist/types/src/components/PlayerSelector.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -29
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/dist/types/src/types/types.d.ts +0 -32
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -26
- package/src/components/ChessComponent.tsx +0 -54
- package/src/components/ChessContainer.tsx +0 -35
- package/src/components/ChessPanel.tsx +0 -67
- package/src/components/Chessboard.stories.tsx +0 -39
- package/src/components/PlayerSelector.tsx +0 -80
- package/src/types/schema.ts +0 -34
- package/src/types/types.ts +0 -20
package/package.json
CHANGED
|
@@ -1,20 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-chess",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.fcfe5033a5",
|
|
4
4
|
"description": "Chess for new plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
10
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#blueprints": "./src/blueprints/index.ts",
|
|
17
|
+
"#capabilities": "./src/capabilities/index.ts",
|
|
18
|
+
"#components": "./src/components/index.ts",
|
|
19
|
+
"#containers": "./src/containers/index.ts",
|
|
20
|
+
"#meta": "./src/meta.ts",
|
|
21
|
+
"#operations": "./src/operations/index.ts",
|
|
22
|
+
"#types": "./src/types/index.ts"
|
|
23
|
+
},
|
|
11
24
|
"exports": {
|
|
12
25
|
".": {
|
|
26
|
+
"source": "./src/index.ts",
|
|
13
27
|
"types": "./dist/types/src/index.d.ts",
|
|
14
28
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
29
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
30
|
},
|
|
31
|
+
"./blueprints": {
|
|
32
|
+
"source": "./src/blueprints/index.ts",
|
|
33
|
+
"types": "./dist/types/src/blueprints/index.d.ts",
|
|
34
|
+
"browser": "./dist/lib/browser/blueprints/index.mjs",
|
|
35
|
+
"node": "./dist/lib/node-esm/blueprints/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./cli": {
|
|
38
|
+
"source": "./src/cli/index.ts",
|
|
39
|
+
"types": "./dist/types/src/cli/index.d.ts",
|
|
40
|
+
"browser": "./dist/lib/browser/cli/index.mjs",
|
|
41
|
+
"node": "./dist/lib/node-esm/cli/index.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./operations": {
|
|
44
|
+
"source": "./src/operations/index.ts",
|
|
45
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
46
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
47
|
+
"node": "./dist/lib/node-esm/operations/index.mjs"
|
|
48
|
+
},
|
|
17
49
|
"./types": {
|
|
50
|
+
"source": "./src/types/index.ts",
|
|
18
51
|
"types": "./dist/types/src/types/index.d.ts",
|
|
19
52
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
20
53
|
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
@@ -33,45 +66,54 @@
|
|
|
33
66
|
"src"
|
|
34
67
|
],
|
|
35
68
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
69
|
+
"@automerge/automerge": "3.2.3",
|
|
70
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
38
71
|
"chess.js": "^1.0.0",
|
|
39
|
-
"effect": "3.
|
|
40
|
-
"@dxos/ai": "0.8.4-main.
|
|
41
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/assistant": "0.8.4-main.
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/echo": "0.8.4-main.
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/react-
|
|
72
|
+
"effect": "3.20.0",
|
|
73
|
+
"@dxos/ai": "0.8.4-main.fcfe5033a5",
|
|
74
|
+
"@dxos/app-framework": "0.8.4-main.fcfe5033a5",
|
|
75
|
+
"@dxos/app-toolkit": "0.8.4-main.fcfe5033a5",
|
|
76
|
+
"@dxos/assistant": "0.8.4-main.fcfe5033a5",
|
|
77
|
+
"@dxos/blueprints": "0.8.4-main.fcfe5033a5",
|
|
78
|
+
"@dxos/async": "0.8.4-main.fcfe5033a5",
|
|
79
|
+
"@dxos/echo": "0.8.4-main.fcfe5033a5",
|
|
80
|
+
"@dxos/display-name": "0.8.4-main.fcfe5033a5",
|
|
81
|
+
"@dxos/echo-react": "0.8.4-main.fcfe5033a5",
|
|
82
|
+
"@dxos/echo-db": "0.8.4-main.fcfe5033a5",
|
|
83
|
+
"@dxos/functions": "0.8.4-main.fcfe5033a5",
|
|
84
|
+
"@dxos/invariant": "0.8.4-main.fcfe5033a5",
|
|
85
|
+
"@dxos/operation": "0.8.4-main.fcfe5033a5",
|
|
86
|
+
"@dxos/log": "0.8.4-main.fcfe5033a5",
|
|
87
|
+
"@dxos/plugin-graph": "0.8.4-main.fcfe5033a5",
|
|
88
|
+
"@dxos/plugin-markdown": "0.8.4-main.fcfe5033a5",
|
|
89
|
+
"@dxos/react-client": "0.8.4-main.fcfe5033a5",
|
|
90
|
+
"@dxos/react-ui-gameboard": "0.8.4-main.fcfe5033a5",
|
|
91
|
+
"@dxos/plugin-space": "0.8.4-main.fcfe5033a5",
|
|
92
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.fcfe5033a5",
|
|
93
|
+
"@dxos/react-ui-sfx": "0.8.4-main.fcfe5033a5",
|
|
94
|
+
"@dxos/react-ui-stack": "0.8.4-main.fcfe5033a5",
|
|
95
|
+
"@dxos/schema": "0.8.4-main.fcfe5033a5",
|
|
96
|
+
"@dxos/types": "0.8.4-main.fcfe5033a5",
|
|
97
|
+
"@dxos/plugin-client": "0.8.4-main.fcfe5033a5",
|
|
98
|
+
"@dxos/util": "0.8.4-main.fcfe5033a5"
|
|
57
99
|
},
|
|
58
100
|
"devDependencies": {
|
|
59
|
-
"@
|
|
60
|
-
"@types/react": "~
|
|
61
|
-
"
|
|
62
|
-
"react": "~
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/react-ui
|
|
67
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
101
|
+
"@types/react": "~19.2.7",
|
|
102
|
+
"@types/react-dom": "~19.2.3",
|
|
103
|
+
"react": "~19.2.3",
|
|
104
|
+
"react-dom": "~19.2.3",
|
|
105
|
+
"vite": "^7.1.11",
|
|
106
|
+
"@dxos/plugin-testing": "0.8.4-main.fcfe5033a5",
|
|
107
|
+
"@dxos/plugin-theme": "0.8.4-main.fcfe5033a5",
|
|
108
|
+
"@dxos/react-ui": "0.8.4-main.fcfe5033a5",
|
|
109
|
+
"@dxos/storybook-utils": "0.8.4-main.fcfe5033a5",
|
|
110
|
+
"@dxos/ui-theme": "0.8.4-main.fcfe5033a5"
|
|
68
111
|
},
|
|
69
112
|
"peerDependencies": {
|
|
70
|
-
"
|
|
71
|
-
"react": "~
|
|
72
|
-
"react-
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/react-ui-theme": "0.8.4-main.f9ba587"
|
|
113
|
+
"react": "~19.2.3",
|
|
114
|
+
"react-dom": "~19.2.3",
|
|
115
|
+
"@dxos/react-ui": "0.8.4-main.fcfe5033a5",
|
|
116
|
+
"@dxos/ui-theme": "0.8.4-main.fcfe5033a5"
|
|
75
117
|
},
|
|
76
118
|
"publishConfig": {
|
|
77
119
|
"access": "public"
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { ActivationEvents, Capabilities } from '@dxos/app-framework';
|
|
8
|
+
import { createTestApp } from '@dxos/app-framework/testing';
|
|
9
|
+
import { AppActivationEvents, AppCapabilities } from '@dxos/app-toolkit';
|
|
10
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
11
|
+
|
|
12
|
+
import { ChessPlugin } from './ChessPlugin';
|
|
13
|
+
import { Print } from './operations';
|
|
14
|
+
|
|
15
|
+
describe('ChessPlugin', () => {
|
|
16
|
+
test('activates and contributes expected capabilities', async ({ expect }) => {
|
|
17
|
+
await using harness = await createTestApp({ plugins: [ChessPlugin()] });
|
|
18
|
+
const surfaces = harness.getAll(Capabilities.ReactSurface).flat();
|
|
19
|
+
expect(surfaces.length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test('fires activation events explicitly with autoStart: false', async ({ expect }) => {
|
|
23
|
+
await using harness = await createTestApp({ plugins: [ChessPlugin()], autoStart: false });
|
|
24
|
+
|
|
25
|
+
// No modules have activated yet; schema/surface capabilities are absent.
|
|
26
|
+
expect(harness.getAll(AppCapabilities.Schema)).toHaveLength(0);
|
|
27
|
+
expect(harness.getAll(Capabilities.ReactSurface)).toHaveLength(0);
|
|
28
|
+
|
|
29
|
+
// Fire SetupSchema — the schema module activates and contributes the Chess.Game type.
|
|
30
|
+
await harness.fire(AppActivationEvents.SetupSchema);
|
|
31
|
+
const schemas = harness.getAll(AppCapabilities.Schema).flat();
|
|
32
|
+
expect(schemas.length).toBeGreaterThan(0);
|
|
33
|
+
|
|
34
|
+
// ReactSurface is gated on a different event; still absent.
|
|
35
|
+
expect(harness.getAll(Capabilities.ReactSurface)).toHaveLength(0);
|
|
36
|
+
|
|
37
|
+
// Fire SetupReactSurface; the surface module contributes.
|
|
38
|
+
await harness.fire(ActivationEvents.SetupReactSurface);
|
|
39
|
+
expect(harness.getAll(Capabilities.ReactSurface).flat().length).toBeGreaterThan(0);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
test('waitForEvent resolves once the event has been fired', async ({ expect }) => {
|
|
43
|
+
await using harness = await createTestApp({ plugins: [ChessPlugin()], autoStart: false });
|
|
44
|
+
|
|
45
|
+
// Fire and wait concurrently — waitForEvent resolves regardless of ordering.
|
|
46
|
+
await Promise.all([
|
|
47
|
+
harness.fire(AppActivationEvents.SetupTranslations),
|
|
48
|
+
harness.waitForEvent(AppActivationEvents.SetupTranslations),
|
|
49
|
+
]);
|
|
50
|
+
expect(harness.getAll(AppCapabilities.Translations).flat().length).toBeGreaterThan(0);
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
test('invokes the Print operation via the invoker capability', async ({ expect }) => {
|
|
54
|
+
await using harness = await createComposerTestApp({ plugins: [ChessPlugin()] });
|
|
55
|
+
const result = await harness.invoke(Print, {});
|
|
56
|
+
// Empty input returns empty ASCII (handler swallows errors for malformed FEN).
|
|
57
|
+
expect(typeof result.ascii).toBe('string');
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test('Print renders a PGN to ASCII board', async ({ expect }) => {
|
|
61
|
+
await using harness = await createComposerTestApp({ plugins: [ChessPlugin()] });
|
|
62
|
+
const { ascii } = await harness.invoke(Print, { pgn: '1. e4 e5' });
|
|
63
|
+
expect(ascii).toContain('a b c d e f g h');
|
|
64
|
+
});
|
|
65
|
+
});
|
package/src/ChessPlugin.tsx
CHANGED
|
@@ -2,59 +2,48 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import {
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Option from 'effect/Option';
|
|
7
|
+
|
|
8
|
+
import { Plugin } from '@dxos/app-framework';
|
|
9
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Annotation } from '@dxos/echo';
|
|
11
|
+
import { Operation } from '@dxos/operation';
|
|
12
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
13
|
+
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
14
|
+
|
|
15
|
+
import { ChessBlueprint } from '#blueprints';
|
|
16
|
+
import { BlueprintDefinition, OperationHandler, ReactSurface } from '#capabilities';
|
|
17
|
+
import { meta } from '#meta';
|
|
18
|
+
import { Chess } from '#types';
|
|
9
19
|
|
|
10
|
-
import { ArtifactDefinition, IntentResolver, ReactSurface } from './capabilities';
|
|
11
|
-
import { meta } from './meta';
|
|
12
20
|
import { translations } from './translations';
|
|
13
|
-
import { ChessAction, ChessType } from './types';
|
|
14
21
|
|
|
15
|
-
export const ChessPlugin = ()
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
),
|
|
44
|
-
}),
|
|
45
|
-
defineModule({
|
|
46
|
-
id: `${meta.id}/module/react-surface`,
|
|
47
|
-
activatesOn: Events.SetupReactSurface,
|
|
48
|
-
activate: ReactSurface,
|
|
49
|
-
}),
|
|
50
|
-
defineModule({
|
|
51
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
52
|
-
activatesOn: Events.SetupIntentResolver,
|
|
53
|
-
activate: IntentResolver,
|
|
54
|
-
}),
|
|
55
|
-
defineModule({
|
|
56
|
-
id: `${meta.id}/module/artifact-definition`,
|
|
57
|
-
activatesOn: Events.SetupArtifactDefinition,
|
|
58
|
-
activate: ArtifactDefinition,
|
|
59
|
-
}),
|
|
60
|
-
]);
|
|
22
|
+
export const ChessPlugin = Plugin.define(meta).pipe(
|
|
23
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
24
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
25
|
+
AppPlugin.addMetadataModule({
|
|
26
|
+
metadata: {
|
|
27
|
+
id: Chess.Game.typename,
|
|
28
|
+
metadata: {
|
|
29
|
+
icon: Annotation.IconAnnotation.get(Chess.Game).pipe(Option.getOrThrow).icon,
|
|
30
|
+
iconHue: Annotation.IconAnnotation.get(Chess.Game).pipe(Option.getOrThrow).hue ?? 'white',
|
|
31
|
+
blueprints: [ChessBlueprint.key],
|
|
32
|
+
createObject: ((props, options) =>
|
|
33
|
+
Effect.gen(function* () {
|
|
34
|
+
const object = Chess.make(props);
|
|
35
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
36
|
+
object,
|
|
37
|
+
target: options.target,
|
|
38
|
+
hidden: true,
|
|
39
|
+
targetNodeId: options.targetNodeId,
|
|
40
|
+
});
|
|
41
|
+
})) satisfies CreateObject,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
}),
|
|
45
|
+
AppPlugin.addSchemaModule({ schema: [Chess.Game] }),
|
|
46
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
47
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
48
|
+
Plugin.make,
|
|
49
|
+
);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
6
|
+
import { Blueprint, Template } from '@dxos/blueprints';
|
|
7
|
+
import { trim } from '@dxos/util';
|
|
8
|
+
|
|
9
|
+
import { Create, Move, Play, Print } from '#operations';
|
|
10
|
+
|
|
11
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.chess';
|
|
12
|
+
|
|
13
|
+
const operations = [Create, Move, Play, Print];
|
|
14
|
+
|
|
15
|
+
const make = () =>
|
|
16
|
+
Blueprint.make({
|
|
17
|
+
key: BLUEPRINT_KEY,
|
|
18
|
+
name: 'Chess',
|
|
19
|
+
tools: Blueprint.toolDefinitions({ operations }),
|
|
20
|
+
instructions: Template.make({
|
|
21
|
+
source: trim`
|
|
22
|
+
You are an expert chess player.
|
|
23
|
+
To analyze a game you can access the "pgn" property by loading the context object that represents the current game.
|
|
24
|
+
You could suggest a good next move or offer to play a move.
|
|
25
|
+
Don't actually make a move unless you are asked to.
|
|
26
|
+
`,
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
31
|
+
key: BLUEPRINT_KEY,
|
|
32
|
+
make,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default blueprint;
|
|
@@ -2,20 +2,25 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// ISSUE(burdon): defineArtifact
|
|
6
|
+
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
8
|
+
import { Chess as ChessJS } from 'chess.js';
|
|
9
|
+
import * as Effect from 'effect/Effect';
|
|
10
|
+
import * as Schema from 'effect/Schema';
|
|
11
|
+
|
|
12
|
+
import { ToolResult, createTool } from '@dxos/ai';
|
|
13
|
+
import { Capabilities, Capability, type PromiseIntentDispatcher } from '@dxos/app-framework';
|
|
14
|
+
import { ArtifactId, VersionPin, createArtifactElement } from '@dxos/assistant';
|
|
15
|
+
import { defineArtifact } from '@dxos/blueprints';
|
|
12
16
|
import { Obj } from '@dxos/echo';
|
|
13
17
|
import { invariant } from '@dxos/invariant';
|
|
14
|
-
import {
|
|
18
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
15
19
|
import { Filter, type Space } from '@dxos/react-client/echo';
|
|
20
|
+
import { trim } from '@dxos/util';
|
|
16
21
|
|
|
17
|
-
import { meta } from '
|
|
18
|
-
import {
|
|
22
|
+
import { meta } from '#meta';
|
|
23
|
+
import { Chess } from '#types';
|
|
19
24
|
|
|
20
25
|
// TODO(burdon): Factor out.
|
|
21
26
|
declare global {
|
|
@@ -25,100 +30,106 @@ declare global {
|
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
export default () =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
export default Capability.makeModule(() =>
|
|
34
|
+
Effect.sync(() => {
|
|
35
|
+
const definition = defineArtifact({
|
|
36
|
+
id: `artifact:${meta.id}`,
|
|
37
|
+
name: meta.name,
|
|
38
|
+
description: 'Provides a simple chess engine.',
|
|
39
|
+
instructions: trim`
|
|
34
40
|
- If the user's message relates to a chess game, you must return the chess game inside the artifact tag as a valid FEN string with no additional text.
|
|
35
41
|
- Always inspect the chess game at the start of every prompt realting to a chess game, as it might have changed since the interaction.
|
|
36
42
|
`,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const intent = pipe(
|
|
50
|
-
createIntent(ChessAction.Create, { fen }),
|
|
51
|
-
chain(SpaceAction.AddObject, { target: extensions.space }),
|
|
52
|
-
);
|
|
53
|
-
const { data, error } = await extensions.dispatch(intent);
|
|
54
|
-
if (!data || error) {
|
|
55
|
-
return ToolResult.Error(error?.message ?? 'Failed to create chess game');
|
|
56
|
-
}
|
|
43
|
+
schema: Chess.Game,
|
|
44
|
+
tools: [
|
|
45
|
+
createTool(meta.id, {
|
|
46
|
+
name: 'create',
|
|
47
|
+
description: 'Create a new chess game. Returns the artifact definition for the game.',
|
|
48
|
+
caption: 'Creating chess game...',
|
|
49
|
+
schema: Schema.Struct({
|
|
50
|
+
pgn: Schema.String.annotations({ description: 'The state of the chess game in the PGN format.' }),
|
|
51
|
+
}),
|
|
52
|
+
execute: async ({ pgn }, { extensions }) => {
|
|
53
|
+
invariant(extensions?.space, 'No space');
|
|
54
|
+
invariant(extensions?.invoke, 'No operation invoker');
|
|
57
55
|
|
|
58
|
-
|
|
59
|
-
VersionPin.createBlock(VersionPin.fromObject(data.object)),
|
|
60
|
-
]);
|
|
61
|
-
},
|
|
62
|
-
}),
|
|
63
|
-
createTool(meta.id, {
|
|
64
|
-
name: 'list',
|
|
65
|
-
description: 'Query all active chess games.',
|
|
66
|
-
caption: 'Getting games...',
|
|
67
|
-
schema: Schema.Struct({}),
|
|
68
|
-
execute: async (_, { extensions }) => {
|
|
69
|
-
invariant(extensions?.space, 'No space');
|
|
70
|
-
const { objects: games } = await extensions.space.db.query(Filter.type(ChessType)).run();
|
|
71
|
-
invariant(games.length > 0, 'No chess games found');
|
|
56
|
+
const game = Chess.make({ pgn });
|
|
72
57
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
schema: Schema.Struct({ id: ArtifactId }),
|
|
81
|
-
execute: async ({ id }, { extensions }) => {
|
|
82
|
-
invariant(extensions?.space, 'No space');
|
|
83
|
-
const game = await extensions.space.db
|
|
84
|
-
.query(Filter.ids(ArtifactId.toDXN(id, extensions.space.id).toString()))
|
|
85
|
-
.first();
|
|
86
|
-
invariant(Obj.instanceOf(ChessType, game));
|
|
58
|
+
const { data, error } = await extensions.invoke(SpaceOperation.AddObject, {
|
|
59
|
+
target: extensions.space,
|
|
60
|
+
object: game,
|
|
61
|
+
});
|
|
62
|
+
if (error) {
|
|
63
|
+
return ToolResult.Error(error?.message ?? 'Failed to add chess game to space');
|
|
64
|
+
}
|
|
87
65
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
66
|
+
return ToolResult.Success(createArtifactElement(game.id), [
|
|
67
|
+
VersionPin.createBlock(VersionPin.fromObject(game)),
|
|
68
|
+
]);
|
|
69
|
+
},
|
|
70
|
+
}),
|
|
71
|
+
createTool(meta.id, {
|
|
72
|
+
name: 'list',
|
|
73
|
+
description: 'Query all active chess games.',
|
|
74
|
+
caption: 'Getting games...',
|
|
75
|
+
schema: Schema.Struct({}),
|
|
76
|
+
execute: async (_, { extensions }) => {
|
|
77
|
+
invariant(extensions?.space, 'No space');
|
|
78
|
+
const { objects: games } = await extensions.space.db.query(Filter.type(Chess.Game)).run();
|
|
79
|
+
invariant(games.length > 0, 'No chess games found');
|
|
80
|
+
|
|
81
|
+
return ToolResult.Success(games);
|
|
82
|
+
},
|
|
101
83
|
}),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
84
|
+
createTool(meta.id, {
|
|
85
|
+
name: 'inspect',
|
|
86
|
+
description: 'Get the current state of the chess game.',
|
|
87
|
+
caption: 'Inspecting game...',
|
|
88
|
+
schema: Schema.Struct({ id: ArtifactId }),
|
|
89
|
+
execute: async ({ id }, { extensions }) => {
|
|
90
|
+
invariant(extensions?.space, 'No space');
|
|
91
|
+
const game = await extensions.space.db
|
|
92
|
+
.query(Filter.id(ArtifactId.toDXN(id, extensions.space.id).toString()))
|
|
93
|
+
.first();
|
|
94
|
+
invariant(Obj.instanceOf(Chess.Game, game));
|
|
108
95
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
96
|
+
return ToolResult.Success(game.pgn);
|
|
97
|
+
},
|
|
98
|
+
}),
|
|
99
|
+
createTool(meta.id, {
|
|
100
|
+
name: 'move',
|
|
101
|
+
description: 'Make a move in the chess game.',
|
|
102
|
+
caption: 'Making chess move...',
|
|
103
|
+
schema: Schema.Struct({
|
|
104
|
+
id: ArtifactId,
|
|
105
|
+
move: Schema.String.annotations({
|
|
106
|
+
description: 'The move to make in the chess game.',
|
|
107
|
+
examples: ['e4', 'Bf3'],
|
|
108
|
+
}),
|
|
109
|
+
}),
|
|
110
|
+
execute: async ({ id, move }, { extensions }) => {
|
|
111
|
+
invariant(extensions?.space, 'No space');
|
|
112
|
+
const game = await extensions.space.db
|
|
113
|
+
.query(Filter.id(ArtifactId.toDXN(id, extensions.space.id).toString()))
|
|
114
|
+
.first();
|
|
115
|
+
invariant(Obj.instanceOf(Chess.Game, game));
|
|
116
|
+
|
|
117
|
+
const chess = new ChessJS(game.pgn);
|
|
118
|
+
try {
|
|
119
|
+
chess.move(move);
|
|
120
|
+
} catch (error: any) {
|
|
121
|
+
return ToolResult.Error(error.message);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
Obj.change(game, (game) => {
|
|
125
|
+
game.pgn = chess.pgn();
|
|
126
|
+
});
|
|
127
|
+
return ToolResult.Success(game.pgn);
|
|
128
|
+
},
|
|
129
|
+
}),
|
|
130
|
+
],
|
|
131
|
+
});
|
|
122
132
|
|
|
123
|
-
|
|
124
|
-
}
|
|
133
|
+
return Capability.contributes(Capabilities.ArtifactDefinition, definition);
|
|
134
|
+
}),
|
|
135
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
|
|
10
|
+
import { ChessBlueprint } from '#blueprints';
|
|
11
|
+
|
|
12
|
+
const blueprintDefinition = Capability.makeModule<
|
|
13
|
+
[],
|
|
14
|
+
Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]
|
|
15
|
+
>(() => Effect.succeed([Capability.contributes(AppCapabilities.BlueprintDefinition, ChessBlueprint)]));
|
|
16
|
+
|
|
17
|
+
export default blueprintDefinition;
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
6
7
|
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
|
|
8
|
+
export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
|
|
9
|
+
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
10
|
+
'OperationHandler',
|
|
11
|
+
() => import('./operation-handler'),
|
|
12
|
+
);
|
|
13
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright 2025 DXOS.org
|
|
2
|
+
|
|
3
|
+
import * as Effect from 'effect/Effect';
|
|
4
|
+
|
|
5
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
6
|
+
import type { OperationHandlerSet } from '@dxos/operation';
|
|
7
|
+
|
|
8
|
+
import { ChessHandlers } from '#operations';
|
|
9
|
+
|
|
10
|
+
export default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(
|
|
11
|
+
Effect.fnUntraced(function* () {
|
|
12
|
+
return Capability.contributes(Capabilities.OperationHandler, ChessHandlers);
|
|
13
|
+
}),
|
|
14
|
+
);
|