@dxos/plugin-chess 0.8.2-staging.7ac8446 → 0.8.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/dist/lib/browser/ChessContainer-S72CLKGK.mjs +101 -0
- package/dist/lib/{node-esm/ChessContainer-MAXLUGKY.mjs.map → browser/ChessContainer-S72CLKGK.mjs.map} +1 -1
- package/dist/lib/browser/{artifact-definition-GHBVTO4Y.mjs → artifact-definition-QYGM7HNY.mjs} +31 -32
- package/dist/lib/browser/artifact-definition-QYGM7HNY.mjs.map +7 -0
- package/dist/lib/browser/chunk-5QBQW62M.mjs +8 -0
- package/dist/lib/browser/chunk-6XPI4FTK.mjs +61 -0
- package/dist/lib/browser/chunk-6XPI4FTK.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4NJ4PMPW.mjs → chunk-77TLTU3X.mjs} +25 -23
- package/dist/lib/browser/chunk-77TLTU3X.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +6 -6
- package/dist/lib/browser/{intent-resolver-JVLCHAJD.mjs → intent-resolver-FLV47FUV.mjs} +4 -4
- package/dist/lib/browser/intent-resolver-FLV47FUV.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-LZYVKHCU.mjs → react-surface-QW2WGAAJ.mjs} +4 -4
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/ChessContainer-EQUVXDJC.cjs +123 -0
- package/dist/lib/node/{ChessContainer-BZMTO4FZ.cjs.map → ChessContainer-EQUVXDJC.cjs.map} +1 -1
- package/dist/lib/node/{artifact-definition-JDJAOTXF.cjs → artifact-definition-FRBMG5FU.cjs} +41 -42
- package/dist/lib/node/artifact-definition-FRBMG5FU.cjs.map +7 -0
- package/dist/lib/node/{chunk-PQ64RGCS.cjs → chunk-33WBRZI6.cjs} +23 -21
- package/dist/lib/node/chunk-33WBRZI6.cjs.map +7 -0
- package/dist/lib/node/{chunk-CSRNUKOH.cjs → chunk-OTMP6HPY.cjs} +50 -31
- package/dist/lib/node/chunk-OTMP6HPY.cjs.map +7 -0
- package/dist/lib/node/{chunk-WKOWLRXP.cjs → chunk-R6JAL3RE.cjs} +5 -5
- package/dist/lib/node/index.cjs +22 -22
- package/dist/lib/node/{intent-resolver-IJXRCQA5.cjs → intent-resolver-AKAIXSZF.cjs} +7 -7
- package/dist/lib/node/intent-resolver-AKAIXSZF.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-JWVHHTQU.cjs → react-surface-7G7NV4FY.cjs} +12 -12
- package/dist/lib/node/types/index.cjs +5 -5
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/ChessContainer-KSLGJHPW.mjs +102 -0
- package/dist/lib/{browser/ChessContainer-6JIE36JW.mjs.map → node-esm/ChessContainer-KSLGJHPW.mjs.map} +1 -1
- package/dist/lib/node-esm/{artifact-definition-CSY4I334.mjs → artifact-definition-YKVCYZQ7.mjs} +31 -32
- package/dist/lib/node-esm/artifact-definition-YKVCYZQ7.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-YFCRXSGH.mjs → chunk-KHMDMPR2.mjs} +2 -2
- package/dist/lib/node-esm/chunk-MVMMCPHE.mjs +63 -0
- package/dist/lib/node-esm/chunk-MVMMCPHE.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-GLBZ7ZZD.mjs → chunk-WPCT7LRN.mjs} +25 -23
- package/dist/lib/node-esm/chunk-WPCT7LRN.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +6 -6
- package/dist/lib/node-esm/{intent-resolver-AWNZCS56.mjs → intent-resolver-VK3EDUMM.mjs} +4 -4
- package/dist/lib/node-esm/intent-resolver-VK3EDUMM.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-TQKBCMJU.mjs → react-surface-Y54QUEUA.mjs} +4 -4
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/components/ChessComponent.d.ts.map +1 -1
- package/dist/types/src/components/ChessContainer.d.ts.map +1 -1
- package/dist/types/src/components/PlayerSelector.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -8
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +15 -15
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +7 -7
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +26 -22
- package/src/capabilities/artifact-definition.ts +25 -18
- package/src/capabilities/intent-resolver.ts +2 -2
- package/src/components/ChessComponent.tsx +6 -1
- package/src/types/schema.ts +15 -13
- package/src/types/types.ts +10 -8
- package/dist/lib/browser/ChessContainer-6JIE36JW.mjs +0 -84
- package/dist/lib/browser/artifact-definition-GHBVTO4Y.mjs.map +0 -7
- package/dist/lib/browser/chunk-4NJ4PMPW.mjs.map +0 -7
- package/dist/lib/browser/chunk-7SPN7XYA.mjs +0 -8
- package/dist/lib/browser/chunk-VRWXC5L2.mjs +0 -42
- package/dist/lib/browser/chunk-VRWXC5L2.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-JVLCHAJD.mjs.map +0 -7
- package/dist/lib/node/ChessContainer-BZMTO4FZ.cjs +0 -106
- package/dist/lib/node/artifact-definition-JDJAOTXF.cjs.map +0 -7
- package/dist/lib/node/chunk-CSRNUKOH.cjs.map +0 -7
- package/dist/lib/node/chunk-PQ64RGCS.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-IJXRCQA5.cjs.map +0 -7
- package/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs +0 -85
- package/dist/lib/node-esm/artifact-definition-CSY4I334.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6SEDGO5G.mjs +0 -44
- package/dist/lib/node-esm/chunk-6SEDGO5G.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-7SPN7XYA.mjs.map → chunk-5QBQW62M.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-LZYVKHCU.mjs.map → react-surface-QW2WGAAJ.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-WKOWLRXP.cjs.map → chunk-R6JAL3RE.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-JWVHHTQU.cjs.map → react-surface-7G7NV4FY.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-YFCRXSGH.mjs.map → chunk-KHMDMPR2.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-TQKBCMJU.mjs.map → react-surface-Y54QUEUA.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2077,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2700,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":3051,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-chess/src/types/index.ts":{"bytes":586,"imports":[{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytes":18514,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytes":2748,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytes":4522,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytes":8761,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3257,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx","kind":"import-statement","original":"./PlayerSelector"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/index.ts":{"bytes":908,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","kind":"dynamic-import","original":"./ChessContainer"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytes":3926,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"../components/ChessComponent"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytes":1365,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","kind":"dynamic-import","original":"./artifact-definition"},{"path":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-chess/src/translations.ts":{"bytes":1694,"imports":[{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytes":7388,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/index.ts":{"bytes":790,"imports":[{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-chess/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4838},"packages/plugins/plugin-chess/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-CSY4I334.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-TQKBCMJU.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["ArtifactDefinition","CHESS_PLUGIN","ChessComponent","ChessContainer","ChessPlugin","IntentResolver","ReactSurface","meta"],"entryPoint":"packages/plugins/plugin-chess/src/index.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytesInOutput":273},"packages/plugins/plugin-chess/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytesInOutput":1500},"packages/plugins/plugin-chess/src/translations.ts":{"bytesInOutput":282}},"bytes":2751},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":286},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-CSY4I334.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8003},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-CSY4I334.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytesInOutput":5798}},"bytes":6150},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1375},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytesInOutput":511}},"bytes":843},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6151},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","inputs":{"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytesInOutput":791},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2299}},"bytes":3544},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-TQKBCMJU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1851},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-TQKBCMJU.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytesInOutput":745}},"bytes":1199},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":404},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":328},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3761},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","ChessAction","ChessType","MoveSchema","isObject","meta"],"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytesInOutput":501},"packages/plugins/plugin-chess/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/types/types.ts":{"bytesInOutput":613},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":513}},"bytes":2059},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2438},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs":{"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["ChessComponent"],"inputs":{"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytesInOutput":990}},"bytes":1224}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2033,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2921,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":3132,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-chess/src/types/index.ts":{"bytes":554,"imports":[{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytes":19066,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytes":2680,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytes":5508,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytes":9084,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3431,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx","kind":"import-statement","original":"./PlayerSelector"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/index.ts":{"bytes":872,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","kind":"dynamic-import","original":"./ChessContainer"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytes":3858,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"../components/ChessComponent"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytes":1329,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","kind":"dynamic-import","original":"./artifact-definition"},{"path":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-chess/src/translations.ts":{"bytes":1642,"imports":[{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytes":7256,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/index.ts":{"bytes":754,"imports":[{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-chess/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4838},"packages/plugins/plugin-chess/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-KHMDMPR2.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-WPCT7LRN.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-MVMMCPHE.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-YKVCYZQ7.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-VK3EDUMM.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-Y54QUEUA.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["ArtifactDefinition","CHESS_PLUGIN","ChessComponent","ChessContainer","ChessPlugin","IntentResolver","ReactSurface","meta"],"entryPoint":"packages/plugins/plugin-chess/src/index.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytesInOutput":273},"packages/plugins/plugin-chess/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytesInOutput":1500},"packages/plugins/plugin-chess/src/translations.ts":{"bytesInOutput":282}},"bytes":2751},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-WPCT7LRN.mjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":286},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-YKVCYZQ7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8483},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-YKVCYZQ7.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-WPCT7LRN.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytesInOutput":5964}},"bytes":6316},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-VK3EDUMM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1367},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-VK3EDUMM.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-WPCT7LRN.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytesInOutput":507}},"bytes":839},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-KSLGJHPW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6168},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-KSLGJHPW.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-MVMMCPHE.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","inputs":{"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytesInOutput":978},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2608}},"bytes":4040},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-Y54QUEUA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1851},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-Y54QUEUA.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-KHMDMPR2.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-WPCT7LRN.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-MVMMCPHE.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytesInOutput":745}},"bytes":1199},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-KHMDMPR2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":404},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-KHMDMPR2.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-KSLGJHPW.mjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":328},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-WPCT7LRN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3968},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-WPCT7LRN.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","ChessAction","ChessType","MoveSchema","isObject","meta"],"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytesInOutput":606},"packages/plugins/plugin-chess/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/types/types.ts":{"bytesInOutput":675},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":513}},"bytes":2226},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-MVMMCPHE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2590},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-MVMMCPHE.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["ChessComponent"],"inputs":{"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytesInOutput":1601}},"bytes":1835}}}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ChessContainer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KHMDMPR2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
CHESS_PLUGIN,
|
|
7
7
|
ChessType,
|
|
8
8
|
isObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WPCT7LRN.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ChessComponent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MVMMCPHE.mjs";
|
|
13
13
|
|
|
14
14
|
// packages/plugins/plugin-chess/src/capabilities/react-surface.tsx
|
|
15
15
|
import React from "react";
|
|
@@ -40,4 +40,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
|
40
40
|
export {
|
|
41
41
|
react_surface_default as default
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=react-surface-
|
|
43
|
+
//# sourceMappingURL=react-surface-Y54QUEUA.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAQA,OAAO,EAAkD,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAMnH,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAM7D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,wBA+FE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChessComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/ChessComponent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChessComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/ChessComponent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,cAAc,GAAI,UAAU;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,6BAwC3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChessContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ChessContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"ChessContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ChessContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,QAAA,MAAM,cAAc,GAAI,UAAU;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,6BAmBnE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/PlayerSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAc,KAAK,KAAK,EAAoB,MAAM,yBAAyB,CAAC;AAInF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"PlayerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/PlayerSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAc,KAAK,KAAK,EAAoB,MAAM,yBAAyB,CAAC;AAInF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,cAAc,GAAI,iBAAiB;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAAE,sBAuBhF,CAAC"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
+
import { ChessType } from './types';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
'en-US': {
|
|
3
|
-
[
|
|
4
|
+
[ChessType.typename]: {
|
|
4
5
|
'typename label': string;
|
|
5
6
|
'object name placeholder': string;
|
|
6
|
-
'plugin name'?: undefined;
|
|
7
|
-
'delete game label'?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
'plugin name': string;
|
|
10
|
-
'delete game label': string;
|
|
11
|
-
'typename label'?: undefined;
|
|
12
|
-
'object name placeholder'?: undefined;
|
|
13
7
|
};
|
|
14
8
|
"dxos.org/plugin/chess": {
|
|
15
9
|
'plugin name': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;;QAK9B,CAAC,SAAS,CAAC,QAAQ,CAAC;;;UAGnB;;;;;;;AANP,wBAaE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MoveSchema:
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const MoveSchema: Schema.mutable<Schema.SchemaClass<{
|
|
3
3
|
readonly source?: string | undefined;
|
|
4
4
|
readonly target?: string | undefined;
|
|
5
5
|
readonly piece?: string | undefined;
|
|
@@ -9,21 +9,21 @@ export declare const MoveSchema: S.mutable<S.SchemaClass<{
|
|
|
9
9
|
readonly piece?: string | undefined;
|
|
10
10
|
}, never>>;
|
|
11
11
|
declare const ChessType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
12
|
-
name:
|
|
13
|
-
playerWhite: typeof
|
|
14
|
-
playerBlack: typeof
|
|
15
|
-
moves:
|
|
16
|
-
pgn: typeof
|
|
17
|
-
fen: typeof
|
|
12
|
+
name: Schema.optional<typeof Schema.String>;
|
|
13
|
+
playerWhite: typeof Schema.String;
|
|
14
|
+
playerBlack: typeof Schema.String;
|
|
15
|
+
moves: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
16
|
+
pgn: typeof Schema.String;
|
|
17
|
+
fen: typeof Schema.String;
|
|
18
18
|
}, {
|
|
19
19
|
partial: true;
|
|
20
|
-
}>,
|
|
21
|
-
name:
|
|
22
|
-
playerWhite: typeof
|
|
23
|
-
playerBlack: typeof
|
|
24
|
-
moves:
|
|
25
|
-
pgn: typeof
|
|
26
|
-
fen: typeof
|
|
20
|
+
}>, Schema.Struct.Encoded<{
|
|
21
|
+
name: Schema.optional<typeof Schema.String>;
|
|
22
|
+
playerWhite: typeof Schema.String;
|
|
23
|
+
playerBlack: typeof Schema.String;
|
|
24
|
+
moves: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
25
|
+
pgn: typeof Schema.String;
|
|
26
|
+
fen: typeof Schema.String;
|
|
27
27
|
}>>;
|
|
28
28
|
export declare class ChessType extends ChessType_base {
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,UAAU;;;;;;;;UAQtB,CAAC;;;;;;;;;;;;;;;;;;AAEF,qBAAa,SAAU,SAAQ,cAW9B;CAAG"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
2
|
import { ChessType } from './schema';
|
|
3
3
|
export declare namespace ChessAction {
|
|
4
|
-
const Create_base:
|
|
5
|
-
readonly _tag:
|
|
4
|
+
const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/chess/action/create", {
|
|
5
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/chess/action/create">;
|
|
6
6
|
} & {
|
|
7
|
-
input:
|
|
8
|
-
name:
|
|
9
|
-
fen:
|
|
7
|
+
input: Schema.Struct<{
|
|
8
|
+
name: Schema.optional<typeof Schema.String>;
|
|
9
|
+
fen: Schema.optional<typeof Schema.String>;
|
|
10
10
|
}>;
|
|
11
|
-
output:
|
|
11
|
+
output: Schema.Struct<{
|
|
12
12
|
object: typeof ChessType;
|
|
13
13
|
}>;
|
|
14
14
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,yBAAiB,WAAW,CAAC;;;;;;;;;;;;IAG3B,MAAM,OAAO,MAAO,SAAQ,WAQ1B;KAAG;;CACN;AAED,eAAO,MAAM,QAAQ,GAAI,QAAQ,OAAO,KAAG,MAAM,IAAI,OAAO,SAE3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.
|
|
1
|
+
{"version":"5.8.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-chess",
|
|
3
|
-
"version": "0.8.2
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Chess for new plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,23 +33,27 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@preact/
|
|
36
|
+
"@preact-signals/safe-react": "^0.9.0",
|
|
37
|
+
"@preact/signals-core": "^1.9.0",
|
|
37
38
|
"chess.js": "^1.0.0",
|
|
38
|
-
"effect": "3.
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/echo-schema": "0.8.2
|
|
45
|
-
"@dxos/invariant": "0.8.2
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
39
|
+
"effect": "3.14.21",
|
|
40
|
+
"@dxos/ai": "0.8.2",
|
|
41
|
+
"@dxos/app-framework": "0.8.2",
|
|
42
|
+
"@dxos/artifact": "0.8.2",
|
|
43
|
+
"@dxos/async": "0.8.2",
|
|
44
|
+
"@dxos/display-name": "0.8.2",
|
|
45
|
+
"@dxos/echo-schema": "0.8.2",
|
|
46
|
+
"@dxos/invariant": "0.8.2",
|
|
47
|
+
"@dxos/assistant": "0.8.2",
|
|
48
|
+
"@dxos/echo": "0.8.2",
|
|
49
|
+
"@dxos/live-object": "0.8.2",
|
|
50
|
+
"@dxos/log": "0.8.2",
|
|
51
|
+
"@dxos/plugin-client": "0.8.2",
|
|
52
|
+
"@dxos/plugin-graph": "0.8.2",
|
|
53
|
+
"@dxos/plugin-space": "0.8.2",
|
|
54
|
+
"@dxos/react-ui-gameboard": "0.8.2",
|
|
55
|
+
"@dxos/react-ui-stack": "0.8.2",
|
|
56
|
+
"@dxos/react-client": "0.8.2"
|
|
53
57
|
},
|
|
54
58
|
"devDependencies": {
|
|
55
59
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -58,16 +62,16 @@
|
|
|
58
62
|
"react": "~18.2.0",
|
|
59
63
|
"react-dom": "~18.2.0",
|
|
60
64
|
"vite": "5.4.7",
|
|
61
|
-
"@dxos/react-ui": "0.8.2
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
65
|
+
"@dxos/react-ui": "0.8.2",
|
|
66
|
+
"@dxos/react-ui-theme": "0.8.2",
|
|
67
|
+
"@dxos/storybook-utils": "0.8.2"
|
|
64
68
|
},
|
|
65
69
|
"peerDependencies": {
|
|
66
70
|
"@phosphor-icons/react": "^2.1.5",
|
|
67
71
|
"react": "~18.2.0",
|
|
68
72
|
"react-dom": "~18.2.0",
|
|
69
|
-
"@dxos/react-ui": "0.8.2
|
|
70
|
-
"@dxos/react-ui-theme": "0.8.2
|
|
73
|
+
"@dxos/react-ui": "0.8.2",
|
|
74
|
+
"@dxos/react-ui-theme": "0.8.2"
|
|
71
75
|
},
|
|
72
76
|
"publishConfig": {
|
|
73
77
|
"access": "public"
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Chess } from 'chess.js';
|
|
6
|
-
import { pipe } from 'effect';
|
|
6
|
+
import { pipe, Schema } from 'effect';
|
|
7
7
|
|
|
8
|
+
import { createTool, ToolResult } from '@dxos/ai';
|
|
8
9
|
import { Capabilities, chain, contributes, createIntent, type PromiseIntentDispatcher } from '@dxos/app-framework';
|
|
9
|
-
import { ArtifactId, defineArtifact
|
|
10
|
-
import { createArtifactElement } from '@dxos/assistant';
|
|
11
|
-
import { isInstanceOf
|
|
10
|
+
import { ArtifactId, defineArtifact } from '@dxos/artifact';
|
|
11
|
+
import { createArtifactElement, VersionPin } from '@dxos/assistant';
|
|
12
|
+
import { isInstanceOf } from '@dxos/echo-schema';
|
|
12
13
|
import { invariant } from '@dxos/invariant';
|
|
13
14
|
import { SpaceAction } from '@dxos/plugin-space/types';
|
|
14
15
|
import { Filter, type Space } from '@dxos/react-client/echo';
|
|
@@ -35,12 +36,12 @@ export default () => {
|
|
|
35
36
|
`,
|
|
36
37
|
schema: ChessType,
|
|
37
38
|
tools: [
|
|
38
|
-
|
|
39
|
+
createTool(meta.id, {
|
|
39
40
|
name: 'create',
|
|
40
41
|
description: 'Create a new chess game. Returns the artifact definition for the game.',
|
|
41
42
|
caption: 'Creating chess game...',
|
|
42
|
-
schema:
|
|
43
|
-
fen:
|
|
43
|
+
schema: Schema.Struct({
|
|
44
|
+
fen: Schema.String.annotations({ description: 'The state of the chess game in the FEN format.' }),
|
|
44
45
|
}),
|
|
45
46
|
execute: async ({ fen }, { extensions }) => {
|
|
46
47
|
invariant(extensions?.space, 'No space');
|
|
@@ -54,48 +55,54 @@ export default () => {
|
|
|
54
55
|
return ToolResult.Error(error?.message ?? 'Failed to create chess game');
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
return ToolResult.Success(createArtifactElement(data.id)
|
|
58
|
+
return ToolResult.Success(createArtifactElement(data.id), [
|
|
59
|
+
VersionPin.createBlock(VersionPin.fromObject(data.object)),
|
|
60
|
+
]);
|
|
58
61
|
},
|
|
59
62
|
}),
|
|
60
|
-
|
|
63
|
+
createTool(meta.id, {
|
|
61
64
|
name: 'list',
|
|
62
65
|
description: 'Query all active chess games.',
|
|
63
66
|
caption: 'Getting games...',
|
|
64
|
-
schema:
|
|
67
|
+
schema: Schema.Struct({}),
|
|
65
68
|
execute: async (_, { extensions }) => {
|
|
66
69
|
invariant(extensions?.space, 'No space');
|
|
67
|
-
const { objects: games } = await extensions.space.db.query(Filter.
|
|
70
|
+
const { objects: games } = await extensions.space.db.query(Filter.type(ChessType)).run();
|
|
68
71
|
invariant(games.length > 0, 'No chess games found');
|
|
69
72
|
return ToolResult.Success(games);
|
|
70
73
|
},
|
|
71
74
|
}),
|
|
72
|
-
|
|
75
|
+
createTool(meta.id, {
|
|
73
76
|
name: 'inspect',
|
|
74
77
|
description: 'Get the current state of the chess game.',
|
|
75
78
|
caption: 'Inspecting game...',
|
|
76
|
-
schema:
|
|
79
|
+
schema: Schema.Struct({ id: ArtifactId }),
|
|
77
80
|
execute: async ({ id }, { extensions }) => {
|
|
78
81
|
invariant(extensions?.space, 'No space');
|
|
79
|
-
const game = await extensions.space.db
|
|
82
|
+
const game = await extensions.space.db
|
|
83
|
+
.query(Filter.ids(ArtifactId.toDXN(id, extensions.space.id).toString()))
|
|
84
|
+
.first();
|
|
80
85
|
invariant(isInstanceOf(ChessType, game));
|
|
81
86
|
|
|
82
87
|
return ToolResult.Success(game.fen);
|
|
83
88
|
},
|
|
84
89
|
}),
|
|
85
|
-
|
|
90
|
+
createTool(meta.id, {
|
|
86
91
|
name: 'move',
|
|
87
92
|
description: 'Make a move in the chess game.',
|
|
88
93
|
caption: 'Making chess move...',
|
|
89
|
-
schema:
|
|
94
|
+
schema: Schema.Struct({
|
|
90
95
|
id: ArtifactId,
|
|
91
|
-
move:
|
|
96
|
+
move: Schema.String.annotations({
|
|
92
97
|
description: 'The move to make in the chess game.',
|
|
93
98
|
examples: ['e4', 'Bf3'],
|
|
94
99
|
}),
|
|
95
100
|
}),
|
|
96
101
|
execute: async ({ id, move }, { extensions }) => {
|
|
97
102
|
invariant(extensions?.space, 'No space');
|
|
98
|
-
const game = await extensions.space.db
|
|
103
|
+
const game = await extensions.space.db
|
|
104
|
+
.query(Filter.ids(ArtifactId.toDXN(id, extensions.space.id).toString()))
|
|
105
|
+
.first();
|
|
99
106
|
invariant(isInstanceOf(ChessType, game));
|
|
100
107
|
|
|
101
108
|
const board = new Chess(game.fen);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Chess } from 'chess.js';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, contributes, createResolver } from '@dxos/app-framework';
|
|
8
|
-
import {
|
|
8
|
+
import { live } from '@dxos/live-object';
|
|
9
9
|
|
|
10
10
|
import { ChessAction, ChessType } from '../types';
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ export default () =>
|
|
|
18
18
|
const pgn = fen ? new Chess(fen).pgn() : undefined;
|
|
19
19
|
return {
|
|
20
20
|
data: {
|
|
21
|
-
object:
|
|
21
|
+
object: live(ChessType, { name, fen, pgn }),
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
24
|
},
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Chess } from 'chess.js';
|
|
6
6
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
7
7
|
|
|
8
|
+
import { log } from '@dxos/log';
|
|
8
9
|
import { getSpace } from '@dxos/react-client/echo';
|
|
9
10
|
import { ChessModel, Board, Chessboard, type BoardRootProps } from '@dxos/react-ui-gameboard';
|
|
10
11
|
|
|
@@ -16,7 +17,11 @@ export const ChessComponent = ({ game }: { game: ChessType }) => {
|
|
|
16
17
|
if (!model || game.pgn !== model?.game.pgn()) {
|
|
17
18
|
const chess = new Chess();
|
|
18
19
|
if (game.pgn) {
|
|
19
|
-
|
|
20
|
+
try {
|
|
21
|
+
chess.loadPgn(game.pgn);
|
|
22
|
+
} catch (err) {
|
|
23
|
+
log.catch(err, { game });
|
|
24
|
+
}
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
model.initialize(chess.fen());
|
package/src/types/schema.ts
CHANGED
|
@@ -2,27 +2,29 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Schema } from 'effect';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { TypedObject } from '@dxos/echo-schema';
|
|
8
|
+
|
|
9
|
+
export const MoveSchema = Schema.mutable(
|
|
10
|
+
Schema.partial(
|
|
11
|
+
Schema.Struct({
|
|
12
|
+
source: Schema.String,
|
|
13
|
+
target: Schema.String,
|
|
14
|
+
piece: Schema.String,
|
|
13
15
|
}),
|
|
14
16
|
),
|
|
15
17
|
);
|
|
16
18
|
|
|
17
19
|
export class ChessType extends TypedObject({ typename: 'dxos.org/type/Chess', version: '0.1.0' })(
|
|
18
20
|
{
|
|
19
|
-
name:
|
|
20
|
-
playerWhite:
|
|
21
|
-
playerBlack:
|
|
22
|
-
moves:
|
|
21
|
+
name: Schema.optional(Schema.String),
|
|
22
|
+
playerWhite: Schema.String,
|
|
23
|
+
playerBlack: Schema.String,
|
|
24
|
+
moves: Schema.mutable(Schema.Array(Schema.String)),
|
|
23
25
|
// TODO(wittjosiah): Remove. Redundant with moves.
|
|
24
|
-
pgn:
|
|
25
|
-
fen:
|
|
26
|
+
pgn: Schema.String,
|
|
27
|
+
fen: Schema.String,
|
|
26
28
|
},
|
|
27
29
|
{ partial: true },
|
|
28
30
|
) {}
|
package/src/types/types.ts
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { Schema } from 'effect';
|
|
6
|
+
|
|
7
|
+
import { isInstanceOf } from '@dxos/echo-schema';
|
|
8
|
+
import { isLiveObject } from '@dxos/live-object';
|
|
7
9
|
|
|
8
10
|
import { ChessType } from './schema';
|
|
9
11
|
import { CHESS_PLUGIN } from '../meta';
|
|
@@ -11,17 +13,17 @@ import { CHESS_PLUGIN } from '../meta';
|
|
|
11
13
|
export namespace ChessAction {
|
|
12
14
|
const CHESS_ACTION = `${CHESS_PLUGIN}/action`;
|
|
13
15
|
|
|
14
|
-
export class Create extends
|
|
15
|
-
input:
|
|
16
|
-
name:
|
|
17
|
-
fen:
|
|
16
|
+
export class Create extends Schema.TaggedClass<Create>()(`${CHESS_ACTION}/create`, {
|
|
17
|
+
input: Schema.Struct({
|
|
18
|
+
name: Schema.optional(Schema.String),
|
|
19
|
+
fen: Schema.optional(Schema.String),
|
|
18
20
|
}),
|
|
19
|
-
output:
|
|
21
|
+
output: Schema.Struct({
|
|
20
22
|
object: ChessType,
|
|
21
23
|
}),
|
|
22
24
|
}) {}
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export const isObject = (object: unknown): object is typeof ChessType => {
|
|
26
|
-
return
|
|
28
|
+
return isLiveObject(object) && isInstanceOf(ChessType, object);
|
|
27
29
|
};
|