@dxos/plugin-chess 0.8.4-main.f5c0578 → 0.8.4-main.fcc0d83b33
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 +43 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-2DFOUJBD.mjs +28 -0
- package/dist/lib/browser/chunk-2DFOUJBD.mjs.map +7 -0
- package/dist/lib/browser/chunk-IN3LZ2OO.mjs +62 -0
- package/dist/lib/browser/chunk-IN3LZ2OO.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-OBKYFOJA.mjs +110 -0
- package/dist/lib/browser/chunk-OBKYFOJA.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-2ME3FNBX.mjs +24 -0
- package/dist/lib/browser/create-2ME3FNBX.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +330 -104
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/move-TTMIPD5J.mjs +36 -0
- package/dist/lib/browser/move-TTMIPD5J.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-GHXPV2T2.mjs +45 -0
- package/dist/lib/browser/play-GHXPV2T2.mjs.map +7 -0
- package/dist/lib/browser/print-RNAGAOM7.mjs +30 -0
- package/dist/lib/browser/print-RNAGAOM7.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +38 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +3 -5
- package/dist/lib/node-esm/blueprints/index.mjs +44 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-G2EHRXHX.mjs +111 -0
- package/dist/lib/node-esm/chunk-G2EHRXHX.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-OHBKSL2Q.mjs +63 -0
- package/dist/lib/node-esm/chunk-OHBKSL2Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-V4FN2DZR.mjs +29 -0
- package/dist/lib/node-esm/chunk-V4FN2DZR.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-CC2P7GPT.mjs +25 -0
- package/dist/lib/node-esm/create-CC2P7GPT.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +330 -104
- 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-CYHXWHHM.mjs +37 -0
- package/dist/lib/node-esm/move-CYHXWHHM.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-KTNK2PBL.mjs +46 -0
- package/dist/lib/node-esm/play-KTNK2PBL.mjs.map +7 -0
- package/dist/lib/node-esm/print-P23VKVNU.mjs +31 -0
- package/dist/lib/node-esm/print-P23VKVNU.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +39 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +3 -5
- 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 +4 -2
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- 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 +38 -0
- package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts +65 -0
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/Info.d.ts +20 -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 +0 -1
- 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 +64 -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 +1 -4
- 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 +40 -20
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Chess.d.ts +20 -17
- package/dist/types/src/types/Chess.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +80 -43
- package/src/ChessPlugin.test.ts +51 -0
- package/src/ChessPlugin.tsx +42 -54
- package/src/blueprints/chess-blueprint.ts +34 -0
- package/src/blueprints/index.ts +6 -0
- package/src/capabilities/artifact-definition.ts +100 -93
- package/src/capabilities/blueprint-definition.ts +10 -27
- package/src/capabilities/index.ts +8 -4
- package/src/capabilities/operation-handler.ts +14 -0
- package/src/capabilities/react-surface.tsx +27 -15
- 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 +1 -5
- 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 +1 -4
- package/src/meta.ts +6 -6
- 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 +21 -17
- package/src/types/Chess.ts +29 -23
- package/src/types/index.ts +0 -1
- package/dist/lib/browser/ChessboardContainer-NNIOQIRP.mjs +0 -90
- package/dist/lib/browser/ChessboardContainer-NNIOQIRP.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-OJQYAZGZ.mjs +0 -38
- package/dist/lib/browser/blueprint-definition-OJQYAZGZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-2W3S5N6C.mjs +0 -257
- package/dist/lib/browser/chunk-2W3S5N6C.mjs.map +0 -7
- package/dist/lib/browser/chunk-EJMPHRSR.mjs +0 -94
- package/dist/lib/browser/chunk-EJMPHRSR.mjs.map +0 -7
- package/dist/lib/browser/chunk-OBJAHY6H.mjs +0 -79
- package/dist/lib/browser/chunk-OBJAHY6H.mjs.map +0 -7
- package/dist/lib/browser/chunk-PE3IWOFR.mjs +0 -28
- package/dist/lib/browser/chunk-PE3IWOFR.mjs.map +0 -7
- package/dist/lib/browser/chunk-PPBBLHAC.mjs +0 -8
- package/dist/lib/browser/chunk-PPBBLHAC.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-JWKKRNGG.mjs +0 -25
- package/dist/lib/browser/intent-resolver-JWKKRNGG.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RIXD6RTS.mjs +0 -38
- package/dist/lib/browser/react-surface-RIXD6RTS.mjs.map +0 -7
- package/dist/lib/node-esm/ChessboardContainer-FCPUV2T2.mjs +0 -91
- package/dist/lib/node-esm/ChessboardContainer-FCPUV2T2.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-F5SGHCDA.mjs +0 -39
- package/dist/lib/node-esm/blueprint-definition-F5SGHCDA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-42EKKMOO.mjs +0 -10
- package/dist/lib/node-esm/chunk-42EKKMOO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5APYXPBX.mjs +0 -95
- package/dist/lib/node-esm/chunk-5APYXPBX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6OWCPDUA.mjs +0 -29
- package/dist/lib/node-esm/chunk-6OWCPDUA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LCCUF5X5.mjs +0 -80
- package/dist/lib/node-esm/chunk-LCCUF5X5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QAGOXJGH.mjs +0 -258
- package/dist/lib/node-esm/chunk-QAGOXJGH.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-G6XJAW6C.mjs +0 -26
- package/dist/lib/node-esm/intent-resolver-G6XJAW6C.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-GGRDWZJT.mjs +0 -39
- package/dist/lib/node-esm/react-surface-GGRDWZJT.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/Card.stories.d.ts +0 -49
- package/dist/types/src/components/Card.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chessboard.d.ts +0 -32
- package/dist/types/src/components/Chessboard.d.ts.map +0 -1
- package/dist/types/src/components/Chessboard.stories.d.ts +0 -42
- package/dist/types/src/components/Chessboard.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChessboardArticle.d.ts +0 -6
- package/dist/types/src/components/ChessboardArticle.d.ts.map +0 -1
- package/dist/types/src/components/ChessboardContainer.d.ts +0 -9
- package/dist/types/src/components/ChessboardContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChessboardInfo.d.ts +0 -20
- package/dist/types/src/components/ChessboardInfo.d.ts.map +0 -1
- package/dist/types/src/components/ChessboardPlayers.d.ts +0 -8
- package/dist/types/src/components/ChessboardPlayers.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -3
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/functions/move.d.ts +0 -6
- package/dist/types/src/functions/move.d.ts.map +0 -1
- package/dist/types/src/functions/play.d.ts +0 -8
- package/dist/types/src/functions/play.d.ts.map +0 -1
- package/dist/types/src/types/ChessAction.d.ts +0 -23
- package/dist/types/src/types/ChessAction.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -22
- package/src/components/Card.stories.tsx +0 -68
- package/src/components/Chessboard.stories.tsx +0 -50
- package/src/components/Chessboard.tsx +0 -101
- package/src/components/ChessboardArticle.tsx +0 -57
- package/src/components/ChessboardContainer.tsx +0 -44
- package/src/components/ChessboardInfo.tsx +0 -140
- package/src/components/ChessboardPlayers.tsx +0 -97
- package/src/functions/index.ts +0 -6
- package/src/functions/move.ts +0 -43
- package/src/functions/play.ts +0 -45
- package/src/types/ChessAction.ts +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/types/Chess.ts":{"bytes":4862,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":1853,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/ChessAction.ts":{"bytes":1848,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/types/index.ts":{"bytes":682,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"},{"path":"src/types/ChessAction.ts","kind":"import-statement","original":"./ChessAction"}],"format":"esm"},"src/functions/move.ts":{"bytes":5095,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/functions/play.ts":{"bytes":5488,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/functions/index.ts":{"bytes":698,"imports":[{"path":"src/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/functions/play.ts","kind":"import-statement","original":"./play"}],"format":"esm"},"src/capabilities/blueprint-definition.ts":{"bytes":3613,"imports":[{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/functions/index.ts","kind":"import-statement","original":"../functions"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":2113,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/components/ChessboardInfo.tsx":{"bytes":15500,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/ChessboardPlayers.tsx":{"bytes":10855,"imports":[{"path":"@preact-signals/safe-react/tracking","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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard.tsx":{"bytes":7781,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/components/ChessboardInfo.tsx","kind":"import-statement","original":"./ChessboardInfo"},{"path":"src/components/ChessboardPlayers.tsx","kind":"import-statement","original":"./ChessboardPlayers"}],"format":"esm"},"src/components/ChessboardArticle.tsx":{"bytes":6795,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/ChessboardContainer.tsx":{"bytes":3657,"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":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardArticle.tsx","kind":"import-statement","original":"./ChessboardArticle"}],"format":"esm"},"src/components/index.ts":{"bytes":877,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardContainer.tsx","kind":"dynamic-import","original":"./ChessboardContainer"}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":3392,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1322,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3101,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":7277,"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":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":911,"imports":[{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5549},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EJMPHRSR.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PPBBLHAC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-OBJAHY6H.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2W3S5N6C.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PE3IWOFR.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/blueprint-definition-OJQYAZGZ.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/intent-resolver-JWKKRNGG.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/react-surface-RIXD6RTS.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":["BlueprintDefinition","CHESS_PLUGIN","Chess","ChessAction","ChessPlugin","Chessboard","ChessboardContainer","ExtendedChessModel","IntentResolver","ReactSurface","meta","move","play"],"entryPoint":"src/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":275},"src/index.ts":{"bytesInOutput":0},"src/ChessPlugin.tsx":{"bytesInOutput":1509},"src/translations.ts":{"bytesInOutput":709}},"bytes":3258},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBJAHY6H.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PE3IWOFR.mjs","kind":"import-statement"}],"exports":["Chess","ChessAction"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":222},"dist/lib/browser/blueprint-definition-OJQYAZGZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1825},"dist/lib/browser/blueprint-definition-OJQYAZGZ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EJMPHRSR.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-OBJAHY6H.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PE3IWOFR.mjs","kind":"import-statement"},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/blueprint-definition.ts","inputs":{"src/capabilities/blueprint-definition.ts":{"bytesInOutput":904}},"bytes":1195},"dist/lib/browser/chunk-EJMPHRSR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5350},"dist/lib/browser/chunk-EJMPHRSR.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBJAHY6H.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["move_default","play_default"],"inputs":{"src/functions/move.ts":{"bytesInOutput":1102},"src/functions/play.ts":{"bytesInOutput":1505},"src/functions/index.ts":{"bytesInOutput":0}},"bytes":2803},"dist/lib/browser/intent-resolver-JWKKRNGG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1073},"dist/lib/browser/intent-resolver-JWKKRNGG.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBJAHY6H.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PE3IWOFR.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":378}},"bytes":631},"dist/lib/browser/ChessboardContainer-NNIOQIRP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5056},"dist/lib/browser/ChessboardContainer-NNIOQIRP.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2W3S5N6C.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PE3IWOFR.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":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["ChessboardContainer","default"],"entryPoint":"src/components/ChessboardContainer.tsx","inputs":{"src/components/ChessboardContainer.tsx":{"bytesInOutput":915},"src/components/ChessboardArticle.tsx":{"bytesInOutput":1870}},"bytes":3146},"dist/lib/browser/react-surface-RIXD6RTS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1589},"dist/lib/browser/react-surface-RIXD6RTS.mjs":{"imports":[{"path":"dist/lib/browser/chunk-PPBBLHAC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-OBJAHY6H.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2W3S5N6C.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-PE3IWOFR.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":716}},"bytes":1050},"dist/lib/browser/chunk-PPBBLHAC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":413},"dist/lib/browser/chunk-PPBBLHAC.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/browser/ChessboardContainer-NNIOQIRP.mjs","kind":"dynamic-import"}],"exports":["ChessboardContainer"],"inputs":{"src/components/index.ts":{"bytesInOutput":114}},"bytes":220},"dist/lib/browser/chunk-OBJAHY6H.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3387},"dist/lib/browser/chunk-OBJAHY6H.mjs":{"imports":[{"path":"dist/lib/browser/chunk-PE3IWOFR.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true}],"exports":["ChessAction_exports","Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1290},"src/types/index.ts":{"bytesInOutput":0},"src/types/ChessAction.ts":{"bytesInOutput":387}},"bytes":1884},"dist/lib/browser/chunk-2W3S5N6C.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17636},"dist/lib/browser/chunk-2W3S5N6C.mjs":{"imports":[{"path":"dist/lib/browser/chunk-PE3IWOFR.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["Chessboard","ExtendedChessModel"],"inputs":{"src/components/Chessboard.tsx":{"bytesInOutput":1928},"src/components/ChessboardInfo.tsx":{"bytesInOutput":4365},"src/components/ChessboardPlayers.tsx":{"bytesInOutput":3113}},"bytes":9692},"dist/lib/browser/chunk-PE3IWOFR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":900},"dist/lib/browser/chunk-PE3IWOFR.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","__export","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":410}},"bytes":685}}}
|
|
1
|
+
{"inputs":{"src/components/Chessboard/Info.tsx":{"bytes":24798,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/types.ts":{"bytes":1194,"imports":[{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Chessboard.tsx":{"bytes":13866,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"src/components/Chessboard/Info.tsx","kind":"import-statement","original":"./Info"},{"path":"src/components/Chessboard/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/components/Chessboard/index.ts":{"bytes":382,"imports":[{"path":"src/components/Chessboard/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/meta.ts":{"bytes":1964,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":6872,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#blueprints","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":588,"imports":[{"path":"src/components/Chessboard/index.ts","kind":"import-statement","original":"./components/Chessboard"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"},"src/blueprints/chess-blueprint.ts":{"bytes":3169,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/types/Chess.ts":{"bytes":6005,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":422,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/operations/definitions.ts":{"bytes":9761,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/create.ts":{"bytes":1931,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/move.ts":{"bytes":3339,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/play.ts":{"bytes":4640,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/print.ts":{"bytes":2286,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1425,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/create.ts","kind":"dynamic-import","original":"./create"},{"path":"src/operations/move.ts","kind":"dynamic-import","original":"./move"},{"path":"src/operations/play.ts","kind":"dynamic-import","original":"./play"},{"path":"src/operations/print.ts","kind":"dynamic-import","original":"./print"}],"format":"esm"},"src/blueprints/index.ts":{"bytes":700,"imports":[{"path":"src/blueprints/chess-blueprint.ts","kind":"import-statement","original":"./chess-blueprint"},{"path":"src/operations/index.ts","kind":"import-statement","original":"../operations"}],"format":"esm"},"src/cli/plugin.ts":{"bytes":4033,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/cli/index.ts":{"bytes":370,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"},"src/translations.ts":{"bytes":3622,"imports":[{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/browser/play-GHXPV2T2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2572},"dist/lib/browser/play-GHXPV2T2.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBKYFOJA.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/play.ts","inputs":{"src/operations/play.ts":{"bytesInOutput":970}},"bytes":1187},"dist/lib/browser/print-RNAGAOM7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1248},"dist/lib/browser/print-RNAGAOM7.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBKYFOJA.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/print.ts","inputs":{"src/operations/print.ts":{"bytesInOutput":438}},"bytes":659},"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":25650},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#blueprints","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin","Chessboard","meta"],"entryPoint":"src/index.ts","inputs":{"src/components/Chessboard/Chessboard.tsx":{"bytesInOutput":2837},"src/components/Chessboard/Info.tsx":{"bytesInOutput":6441},"src/components/Chessboard/types.ts":{"bytesInOutput":201},"src/components/Chessboard/index.ts":{"bytesInOutput":0},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":516},"src/ChessPlugin.tsx":{"bytesInOutput":1608}},"bytes":11934},"dist/lib/browser/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1616},"dist/lib/browser/blueprints/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2DFOUJBD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-OBKYFOJA.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":830},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":1157},"dist/lib/browser/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2089},"dist/lib/browser/cli/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin"],"entryPoint":"src/cli/index.ts","inputs":{"src/cli/plugin.ts":{"bytesInOutput":843},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":958},"dist/lib/browser/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/operations/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2DFOUJBD.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-OBKYFOJA.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessHandlers","Create","Move","Play","Print"],"entryPoint":"src/operations/index.ts","inputs":{},"bytes":294},"dist/lib/browser/chunk-2DFOUJBD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":720},"dist/lib/browser/chunk-2DFOUJBD.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBKYFOJA.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/browser/create-2ME3FNBX.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/move-TTMIPD5J.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/play-GHXPV2T2.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/print-RNAGAOM7.mjs","kind":"dynamic-import"}],"exports":["ChessHandlers","operations_exports"],"inputs":{"src/operations/index.ts":{"bytesInOutput":462}},"bytes":710},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1715},"dist/lib/browser/translations.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":973}},"bytes":1097},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Chess"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":161},"dist/lib/browser/create-2ME3FNBX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1041},"dist/lib/browser/create-2ME3FNBX.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBKYFOJA.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create.ts","inputs":{"src/operations/create.ts":{"bytesInOutput":334}},"bytes":584},"dist/lib/browser/move-TTMIPD5J.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1879},"dist/lib/browser/move-TTMIPD5J.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OBKYFOJA.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/move.ts","inputs":{"src/operations/move.ts":{"bytesInOutput":652}},"bytes":869},"dist/lib/browser/chunk-OBKYFOJA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4772},"dist/lib/browser/chunk-OBKYFOJA.mjs":{"imports":[{"path":"dist/lib/browser/chunk-IN3LZ2OO.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["Create","Move","Play","Print"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":2575}},"bytes":2756},"dist/lib/browser/chunk-IN3LZ2OO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2864},"dist/lib/browser/chunk-IN3LZ2OO.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1589},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1736},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Move
|
|
3
|
+
} from "./chunk-OBKYFOJA.mjs";
|
|
4
|
+
import "./chunk-IN3LZ2OO.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/move.ts
|
|
8
|
+
import { Chess as ChessJS } from "chess.js";
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import { Operation } from "@dxos/compute";
|
|
11
|
+
import { Database, Obj } from "@dxos/echo";
|
|
12
|
+
var handler = Move.pipe(Operation.withHandler(Effect.fn(function* ({ game, move }) {
|
|
13
|
+
const obj = yield* Database.load(game);
|
|
14
|
+
const chess = new ChessJS();
|
|
15
|
+
if (obj.pgn) {
|
|
16
|
+
chess.loadPgn(obj.pgn);
|
|
17
|
+
} else if (obj.fen) {
|
|
18
|
+
chess.load(obj.fen);
|
|
19
|
+
}
|
|
20
|
+
chess.move(move, {
|
|
21
|
+
strict: false
|
|
22
|
+
});
|
|
23
|
+
const pgn = chess.pgn();
|
|
24
|
+
Obj.update(obj, (obj2) => {
|
|
25
|
+
const mutableGame = obj2;
|
|
26
|
+
mutableGame.pgn = pgn;
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
pgn
|
|
30
|
+
};
|
|
31
|
+
})));
|
|
32
|
+
var move_default = handler;
|
|
33
|
+
export {
|
|
34
|
+
move_default as default
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=move-TTMIPD5J.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/move.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Chess as ChessJS } from 'chess.js';\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Obj } from '@dxos/echo';\n\nimport { type Chess } from '../types';\nimport { Move } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Move> = Move.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ game, move }) {\n const obj = (yield* Database.load(game)) as Chess.Game;\n const chess = new ChessJS();\n if (obj.pgn) {\n chess.loadPgn(obj.pgn);\n } else if (obj.fen) {\n chess.load(obj.fen);\n }\n\n chess.move(move, { strict: false });\n const pgn = chess.pgn();\n Obj.update(obj, (obj) => {\n const mutableGame = obj as Obj.Mutable<typeof obj>;\n mutableGame.pgn = pgn;\n });\n return { pgn };\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SAASA,SAASC,eAAe;AACjC,YAAYC,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,WAAW;AAK9B,IAAMC,UAA8CC,KAAKC,KACvDC,UAAUC,YACDC,UAAG,WAAW,EAAEC,MAAMC,KAAI,GAAE;AACjC,QAAMC,MAAO,OAAOC,SAASC,KAAKJ,IAAAA;AAClC,QAAMK,QAAQ,IAAIC,QAAAA;AAClB,MAAIJ,IAAIK,KAAK;AACXF,UAAMG,QAAQN,IAAIK,GAAG;EACvB,WAAWL,IAAIO,KAAK;AAClBJ,UAAMD,KAAKF,IAAIO,GAAG;EACpB;AAEAJ,QAAMJ,KAAKA,MAAM;IAAES,QAAQ;EAAM,CAAA;AACjC,QAAMH,MAAMF,MAAME,IAAG;AACrBI,MAAIC,OAAOV,KAAK,CAACA,SAAAA;AACf,UAAMW,cAAcX;AACpBW,gBAAYN,MAAMA;EACpB,CAAA;AACA,SAAO;IAAEA;EAAI;AACf,CAAA,CAAA,CAAA;AAIJ,IAAA,eAAeb;",
|
|
6
|
+
"names": ["Chess", "ChessJS", "Effect", "Operation", "Database", "Obj", "handler", "Move", "pipe", "Operation", "withHandler", "fn", "game", "move", "obj", "Database", "load", "chess", "ChessJS", "pgn", "loadPgn", "fen", "strict", "Obj", "update", "mutableGame"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChessHandlers
|
|
3
|
+
} from "../chunk-2DFOUJBD.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Create,
|
|
6
|
+
Move,
|
|
7
|
+
Play,
|
|
8
|
+
Print
|
|
9
|
+
} from "../chunk-OBKYFOJA.mjs";
|
|
10
|
+
import "../chunk-IN3LZ2OO.mjs";
|
|
11
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
12
|
+
export {
|
|
13
|
+
ChessHandlers,
|
|
14
|
+
Create,
|
|
15
|
+
Move,
|
|
16
|
+
Play,
|
|
17
|
+
Print
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Play
|
|
3
|
+
} from "./chunk-OBKYFOJA.mjs";
|
|
4
|
+
import "./chunk-IN3LZ2OO.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/play.ts
|
|
8
|
+
import { Chess as ChessJS } from "chess.js";
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import { Operation } from "@dxos/compute";
|
|
11
|
+
import { Database, Obj } from "@dxos/echo";
|
|
12
|
+
var handler = Play.pipe(Operation.withHandler(Effect.fn(function* ({ game, side = "any" }) {
|
|
13
|
+
const object = yield* Database.load(game);
|
|
14
|
+
const chess = new ChessJS();
|
|
15
|
+
if (object.pgn) {
|
|
16
|
+
chess.loadPgn(object.pgn);
|
|
17
|
+
} else if (object.fen) {
|
|
18
|
+
chess.load(object.fen);
|
|
19
|
+
}
|
|
20
|
+
if (!(side === "any" || chess.turn() === "w" && side === "white" || chess.turn() === "b" && side === "black")) {
|
|
21
|
+
return {
|
|
22
|
+
move: void 0,
|
|
23
|
+
pgn: object.pgn
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const moves = chess.moves();
|
|
27
|
+
const move = moves[Math.floor(Math.random() * moves.length)];
|
|
28
|
+
chess.move(move, {
|
|
29
|
+
strict: false
|
|
30
|
+
});
|
|
31
|
+
const pgn = chess.pgn();
|
|
32
|
+
Obj.update(object, (object2) => {
|
|
33
|
+
const mutableGame = object2;
|
|
34
|
+
mutableGame.pgn = pgn;
|
|
35
|
+
});
|
|
36
|
+
return {
|
|
37
|
+
move,
|
|
38
|
+
pgn
|
|
39
|
+
};
|
|
40
|
+
})));
|
|
41
|
+
var play_default = handler;
|
|
42
|
+
export {
|
|
43
|
+
play_default as default
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=play-GHXPV2T2.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/play.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Chess as ChessJS } from 'chess.js';\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Obj } from '@dxos/echo';\n\nimport { type Chess } from '../types';\nimport { Play } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Play> = Play.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ game, side = 'any' }) {\n const object = (yield* Database.load(game)) as Chess.Game;\n const chess = new ChessJS();\n if (object.pgn) {\n chess.loadPgn(object.pgn);\n } else if (object.fen) {\n chess.load(object.fen);\n }\n\n if (\n !(side === 'any' || (chess.turn() === 'w' && side === 'white') || (chess.turn() === 'b' && side === 'black'))\n ) {\n return { move: undefined, pgn: object.pgn! };\n }\n\n const moves = chess.moves();\n const move = moves[Math.floor(Math.random() * moves.length)];\n\n chess.move(move, { strict: false });\n const pgn = chess.pgn();\n Obj.update(object, (object) => {\n const mutableGame = object as Obj.Mutable<typeof object>;\n mutableGame.pgn = pgn;\n });\n return { move, pgn };\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SAASA,SAASC,eAAe;AACjC,YAAYC,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,WAAW;AAK9B,IAAMC,UAA8CC,KAAKC,KACvDC,UAAUC,YACDC,UAAG,WAAW,EAAEC,MAAMC,OAAO,MAAK,GAAE;AACzC,QAAMC,SAAU,OAAOC,SAASC,KAAKJ,IAAAA;AACrC,QAAMK,QAAQ,IAAIC,QAAAA;AAClB,MAAIJ,OAAOK,KAAK;AACdF,UAAMG,QAAQN,OAAOK,GAAG;EAC1B,WAAWL,OAAOO,KAAK;AACrBJ,UAAMD,KAAKF,OAAOO,GAAG;EACvB;AAEA,MACE,EAAER,SAAS,SAAUI,MAAMK,KAAI,MAAO,OAAOT,SAAS,WAAaI,MAAMK,KAAI,MAAO,OAAOT,SAAS,UACpG;AACA,WAAO;MAAEU,MAAMC;MAAWL,KAAKL,OAAOK;IAAK;EAC7C;AAEA,QAAMM,QAAQR,MAAMQ,MAAK;AACzB,QAAMF,OAAOE,MAAMC,KAAKC,MAAMD,KAAKE,OAAM,IAAKH,MAAMI,MAAM,CAAA;AAE1DZ,QAAMM,KAAKA,MAAM;IAAEO,QAAQ;EAAM,CAAA;AACjC,QAAMX,MAAMF,MAAME,IAAG;AACrBY,MAAIC,OAAOlB,QAAQ,CAACA,YAAAA;AAClB,UAAMmB,cAAcnB;AACpBmB,gBAAYd,MAAMA;EACpB,CAAA;AACA,SAAO;IAAEI;IAAMJ;EAAI;AACrB,CAAA,CAAA,CAAA;AAIJ,IAAA,eAAeb;",
|
|
6
|
+
"names": ["Chess", "ChessJS", "Effect", "Operation", "Database", "Obj", "handler", "Play", "pipe", "Operation", "withHandler", "fn", "game", "side", "object", "Database", "load", "chess", "ChessJS", "pgn", "loadPgn", "fen", "turn", "move", "undefined", "moves", "Math", "floor", "random", "length", "strict", "Obj", "update", "mutableGame"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Print
|
|
3
|
+
} from "./chunk-OBKYFOJA.mjs";
|
|
4
|
+
import "./chunk-IN3LZ2OO.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/print.ts
|
|
8
|
+
import { Chess as ChessJS } from "chess.js";
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import { Operation } from "@dxos/compute";
|
|
11
|
+
var handler = Print.pipe(Operation.withHandler(Effect.fn(function* ({ pgn, fen }) {
|
|
12
|
+
try {
|
|
13
|
+
const chess = new ChessJS(fen);
|
|
14
|
+
if (pgn) {
|
|
15
|
+
chess.loadPgn(pgn);
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
ascii: chess.ascii()
|
|
19
|
+
};
|
|
20
|
+
} catch {
|
|
21
|
+
return {
|
|
22
|
+
ascii: ""
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
})));
|
|
26
|
+
var print_default = handler;
|
|
27
|
+
export {
|
|
28
|
+
print_default as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=print-RNAGAOM7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/print.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Chess as ChessJS } from 'chess.js';\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\n\nimport { Print } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Print> = Print.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ pgn, fen }) {\n try {\n const chess = new ChessJS(fen);\n if (pgn) {\n chess.loadPgn(pgn);\n }\n return { ascii: chess.ascii() };\n } catch {\n return { ascii: '' };\n }\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SAASA,SAASC,eAAe;AACjC,YAAYC,YAAY;AAExB,SAASC,iBAAiB;AAI1B,IAAMC,UAA+CC,MAAMC,KACzDC,UAAUC,YACDC,UAAG,WAAW,EAAEC,KAAKC,IAAG,GAAE;AAC/B,MAAI;AACF,UAAMC,QAAQ,IAAIC,QAAQF,GAAAA;AAC1B,QAAID,KAAK;AACPE,YAAME,QAAQJ,GAAAA;IAChB;AACA,WAAO;MAAEK,OAAOH,MAAMG,MAAK;IAAG;EAChC,QAAQ;AACN,WAAO;MAAEA,OAAO;IAAG;EACrB;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,gBAAeX;",
|
|
6
|
+
"names": ["Chess", "ChessJS", "Effect", "Operation", "handler", "Print", "pipe", "Operation", "withHandler", "fn", "pgn", "fen", "chess", "ChessJS", "loadPgn", "ascii"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { meta } from "#meta";
|
|
5
|
+
import { Chess } from "#types";
|
|
6
|
+
var translations = [
|
|
7
|
+
{
|
|
8
|
+
"en-US": {
|
|
9
|
+
[Chess.Game.typename]: {
|
|
10
|
+
"typename.label": "Game",
|
|
11
|
+
"typename.label_zero": "Games",
|
|
12
|
+
"typename.label_one": "Game",
|
|
13
|
+
"typename.label_other": "Games",
|
|
14
|
+
"object-name.placeholder": "New game",
|
|
15
|
+
"add-object.label": "Add game",
|
|
16
|
+
"rename-object.label": "Rename game",
|
|
17
|
+
"delete-object.label": "Delete game",
|
|
18
|
+
"object-deleted.label": "Game deleted"
|
|
19
|
+
},
|
|
20
|
+
[meta.id]: {
|
|
21
|
+
"plugin.name": "Chess",
|
|
22
|
+
"delete-game.label": "Delete",
|
|
23
|
+
"game.checkmate.label": "Checkmate",
|
|
24
|
+
"game.stalemate.label": "Stalemate",
|
|
25
|
+
"game.draw.label": "Draw",
|
|
26
|
+
"game.check.label": "Check",
|
|
27
|
+
"select-player.button": "Select player",
|
|
28
|
+
"toggle-info.button": "Toggle info",
|
|
29
|
+
"close-info.button": "Close info",
|
|
30
|
+
"flip-board.button": "Flip board"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
export {
|
|
36
|
+
translations
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Chess } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Chess.Game.typename]: {\n 'typename.label': 'Game',\n 'typename.label_zero': 'Games',\n 'typename.label_one': 'Game',\n 'typename.label_other': 'Games',\n 'object-name.placeholder': 'New game',\n 'add-object.label': 'Add game',\n 'rename-object.label': 'Rename game',\n 'delete-object.label': 'Delete game',\n 'object-deleted.label': 'Game deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Chess',\n 'delete-game.label': 'Delete',\n 'game.checkmate.label': 'Checkmate',\n 'game.stalemate.label': 'Stalemate',\n 'game.draw.label': 'Draw',\n 'game.check.label': 'Check',\n 'select-player.button': 'Select player',\n 'toggle-info.button': 'Toggle info',\n 'close-info.button': 'Close info',\n 'flip-board.button': 'Flip board',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAMA,SAASA,YAAY;AACrB,SAASC,aAAa;AAEf,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,MAAME,KAAKC,QAAQ,GAAG;QACrB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACJ,KAAKK,EAAE,GAAG;QACT,eAAe;QACf,qBAAqB;QACrB,wBAAwB;QACxB,wBAAwB;QACxB,mBAAmB;QACnB,oBAAoB;QACpB,wBAAwB;QACxB,sBAAsB;QACtB,qBAAqB;QACrB,qBAAqB;MACvB;IACF;EACF;;",
|
|
6
|
+
"names": ["meta", "Chess", "translations", "Game", "typename", "id"]
|
|
7
|
+
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ChessAction_exports,
|
|
3
2
|
Chess_exports
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IN3LZ2OO.mjs";
|
|
4
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
6
5
|
export {
|
|
7
|
-
Chess_exports as Chess
|
|
8
|
-
ChessAction_exports as ChessAction
|
|
6
|
+
Chess_exports as Chess
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
operations_exports
|
|
4
|
+
} from "../chunk-V4FN2DZR.mjs";
|
|
5
|
+
import "../chunk-G2EHRXHX.mjs";
|
|
6
|
+
import "../chunk-OHBKSL2Q.mjs";
|
|
7
|
+
import "../chunk-HSLMI22Q.mjs";
|
|
8
|
+
|
|
9
|
+
// src/blueprints/chess-blueprint.ts
|
|
10
|
+
import { Blueprint, Template } from "@dxos/compute";
|
|
11
|
+
import { trim } from "@dxos/util";
|
|
12
|
+
import { Create, Move, Play, Print } from "#operations";
|
|
13
|
+
var BLUEPRINT_KEY = "org.dxos.blueprint.chess";
|
|
14
|
+
var operations = [
|
|
15
|
+
Create,
|
|
16
|
+
Move,
|
|
17
|
+
Play,
|
|
18
|
+
Print
|
|
19
|
+
];
|
|
20
|
+
var make = () => Blueprint.make({
|
|
21
|
+
key: BLUEPRINT_KEY,
|
|
22
|
+
name: "Chess",
|
|
23
|
+
tools: Blueprint.toolDefinitions({
|
|
24
|
+
operations
|
|
25
|
+
}),
|
|
26
|
+
instructions: Template.make({
|
|
27
|
+
source: trim`
|
|
28
|
+
You are an expert chess player.
|
|
29
|
+
To analyze a game you can access the "pgn" property by loading the context object that represents the current game.
|
|
30
|
+
You could suggest a good next move or offer to play a move.
|
|
31
|
+
Don't actually make a move unless you are asked to.
|
|
32
|
+
`
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
var blueprint = {
|
|
36
|
+
key: BLUEPRINT_KEY,
|
|
37
|
+
make
|
|
38
|
+
};
|
|
39
|
+
var chess_blueprint_default = blueprint;
|
|
40
|
+
export {
|
|
41
|
+
chess_blueprint_default as ChessBlueprint,
|
|
42
|
+
operations_exports as ChessFunctions
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/blueprints/chess-blueprint.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Blueprint, Template } from '@dxos/compute';\nimport { trim } from '@dxos/util';\n\nimport { Create, Move, Play, Print } from '#operations';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.chess';\n\nconst operations = [Create, Move, Play, Print];\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Chess',\n tools: Blueprint.toolDefinitions({ operations }),\n instructions: Template.make({\n source: trim`\n You are an expert chess player.\n To analyze a game you can access the \"pgn\" property by loading the context object that represents the current game.\n You could suggest a good next move or offer to play a move.\n Don't actually make a move unless you are asked to.\n `,\n }),\n });\n\nconst blueprint: Blueprint.Definition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,WAAWC,gBAAgB;AACpC,SAASC,YAAY;AAErB,SAASC,QAAQC,MAAMC,MAAMC,aAAa;AAE1C,IAAMC,gBAAgB;AAEtB,IAAMC,aAAa;EAACL;EAAQC;EAAMC;EAAMC;;AAExC,IAAMG,OAAO,MACXT,UAAUS,KAAK;EACbC,KAAKH;EACLI,MAAM;EACNC,OAAOZ,UAAUa,gBAAgB;IAAEL;EAAW,CAAA;EAC9CM,cAAcb,SAASQ,KAAK;IAC1BM,QAAQb;;;;;;EAMV,CAAA;AACF,CAAA;AAEF,IAAMc,YAAkC;EACtCN,KAAKH;EACLE;AACF;AAEA,IAAA,0BAAeO;",
|
|
6
|
+
"names": ["Blueprint", "Template", "trim", "Create", "Move", "Play", "Print", "BLUEPRINT_KEY", "operations", "make", "key", "name", "tools", "toolDefinitions", "instructions", "source", "blueprint"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
Chess_exports
|
|
4
|
+
} from "./chunk-OHBKSL2Q.mjs";
|
|
5
|
+
|
|
6
|
+
// src/operations/definitions.ts
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
|
+
import { Operation } from "@dxos/compute";
|
|
9
|
+
import { Database, Ref } from "@dxos/echo";
|
|
10
|
+
var Create = Operation.make({
|
|
11
|
+
meta: {
|
|
12
|
+
key: "org.dxos.function.chess.create",
|
|
13
|
+
name: "Create Chess",
|
|
14
|
+
description: "Creates a new chess game."
|
|
15
|
+
},
|
|
16
|
+
input: Schema.Struct({
|
|
17
|
+
name: Schema.optional(Schema.String.annotations({
|
|
18
|
+
description: "Name of the game."
|
|
19
|
+
})),
|
|
20
|
+
pgn: Schema.optional(Schema.String.annotations({
|
|
21
|
+
description: "Portable Game Notation."
|
|
22
|
+
})),
|
|
23
|
+
fen: Schema.optional(Schema.String.annotations({
|
|
24
|
+
description: "Forsyth-Edwards Notation."
|
|
25
|
+
}))
|
|
26
|
+
}),
|
|
27
|
+
output: Chess_exports.Game,
|
|
28
|
+
services: [
|
|
29
|
+
Database.Service
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
var Move = Operation.make({
|
|
33
|
+
meta: {
|
|
34
|
+
key: "org.dxos.function.chess.move",
|
|
35
|
+
name: "Move",
|
|
36
|
+
description: "Makes a move in the given chess game."
|
|
37
|
+
},
|
|
38
|
+
input: Schema.Struct({
|
|
39
|
+
game: Ref.Ref(Chess_exports.Game).annotations({
|
|
40
|
+
description: "The ID of the chess object."
|
|
41
|
+
}),
|
|
42
|
+
move: Schema.String.annotations({
|
|
43
|
+
description: "The move to make in the chess game.",
|
|
44
|
+
examples: [
|
|
45
|
+
"e4",
|
|
46
|
+
"Bf3"
|
|
47
|
+
]
|
|
48
|
+
})
|
|
49
|
+
}),
|
|
50
|
+
output: Schema.Struct({
|
|
51
|
+
pgn: Schema.String.annotations({
|
|
52
|
+
description: "The PGN of the game after the move was played."
|
|
53
|
+
})
|
|
54
|
+
}),
|
|
55
|
+
services: [
|
|
56
|
+
Database.Service
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
var Play = Operation.make({
|
|
60
|
+
meta: {
|
|
61
|
+
key: "org.dxos.function.chess.play",
|
|
62
|
+
name: "Play",
|
|
63
|
+
description: "Uses the chess engine to play the next move."
|
|
64
|
+
},
|
|
65
|
+
input: Schema.Struct({
|
|
66
|
+
game: Ref.Ref(Chess_exports.Game).annotations({
|
|
67
|
+
description: "The ID of the chess object."
|
|
68
|
+
}),
|
|
69
|
+
side: Schema.optional(Schema.Literal("white", "black", "any")).annotations({
|
|
70
|
+
description: "The side to play.",
|
|
71
|
+
defaultValue: "any"
|
|
72
|
+
})
|
|
73
|
+
}),
|
|
74
|
+
output: Schema.Struct({
|
|
75
|
+
pgn: Schema.String.annotations({
|
|
76
|
+
description: "The PGN of the game after the move was played."
|
|
77
|
+
}),
|
|
78
|
+
move: Schema.optional(Schema.String).annotations({
|
|
79
|
+
description: "The move that was played."
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
services: [
|
|
83
|
+
Database.Service
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
var Print = Operation.make({
|
|
87
|
+
meta: {
|
|
88
|
+
key: "org.dxos.function.chess.print",
|
|
89
|
+
name: "Print game",
|
|
90
|
+
description: "Prints the chess game to ASCII."
|
|
91
|
+
},
|
|
92
|
+
input: Schema.Struct({
|
|
93
|
+
pgn: Schema.optional(Schema.String.annotations({
|
|
94
|
+
description: "Portable Game Notation."
|
|
95
|
+
})),
|
|
96
|
+
fen: Schema.optional(Schema.String.annotations({
|
|
97
|
+
description: "Forsyth-Edwards Notation."
|
|
98
|
+
}))
|
|
99
|
+
}),
|
|
100
|
+
output: Schema.Struct({
|
|
101
|
+
ascii: Schema.String
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export {
|
|
106
|
+
Create,
|
|
107
|
+
Move,
|
|
108
|
+
Play,
|
|
109
|
+
Print
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=chunk-G2EHRXHX.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Ref } from '@dxos/echo';\n\nimport { Chess } from '../types';\n\nexport const Create = Operation.make({\n meta: {\n key: 'org.dxos.function.chess.create',\n name: 'Create Chess',\n description: 'Creates a new chess game.',\n },\n input: Schema.Struct({\n name: Schema.optional(\n Schema.String.annotations({\n description: 'Name of the game.',\n }),\n ),\n pgn: Schema.optional(\n Schema.String.annotations({\n description: 'Portable Game Notation.',\n }),\n ),\n fen: Schema.optional(\n Schema.String.annotations({\n description: 'Forsyth-Edwards Notation.',\n }),\n ),\n }),\n output: Chess.Game,\n services: [Database.Service],\n});\n\nexport const Move = Operation.make({\n meta: {\n key: 'org.dxos.function.chess.move',\n name: 'Move',\n description: 'Makes a move in the given chess game.',\n },\n input: Schema.Struct({\n game: Ref.Ref(Chess.Game).annotations({\n description: 'The ID of the chess object.',\n }),\n move: Schema.String.annotations({\n description: 'The move to make in the chess game.',\n examples: ['e4', 'Bf3'],\n }),\n }),\n output: Schema.Struct({\n pgn: Schema.String.annotations({\n description: 'The PGN of the game after the move was played.',\n }),\n }),\n services: [Database.Service],\n});\n\nexport const Play = Operation.make({\n meta: {\n key: 'org.dxos.function.chess.play',\n name: 'Play',\n description: 'Uses the chess engine to play the next move.',\n },\n input: Schema.Struct({\n game: Ref.Ref(Chess.Game).annotations({\n description: 'The ID of the chess object.',\n }),\n side: Schema.optional(Schema.Literal('white', 'black', 'any')).annotations({\n description: 'The side to play.',\n defaultValue: 'any',\n }),\n }),\n output: Schema.Struct({\n pgn: Schema.String.annotations({\n description: 'The PGN of the game after the move was played.',\n }),\n move: Schema.optional(Schema.String).annotations({\n description: 'The move that was played.',\n }),\n }),\n services: [Database.Service],\n});\n\nexport const Print = Operation.make({\n meta: {\n key: 'org.dxos.function.chess.print',\n name: 'Print game',\n description: 'Prints the chess game to ASCII.',\n },\n input: Schema.Struct({\n pgn: Schema.optional(\n Schema.String.annotations({\n description: 'Portable Game Notation.',\n }),\n ),\n fen: Schema.optional(\n Schema.String.annotations({\n description: 'Forsyth-Edwards Notation.',\n }),\n ),\n }),\n output: Schema.Struct({\n ascii: Schema.String,\n }),\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,WAAW;AAIvB,IAAMC,SAASC,UAAUC,KAAK;EACnCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO;IACnBH,MAAaI,gBACJC,cAAOC,YAAY;MACxBL,aAAa;IACf,CAAA,CAAA;IAEFM,KAAYH,gBACHC,cAAOC,YAAY;MACxBL,aAAa;IACf,CAAA,CAAA;IAEFO,KAAYJ,gBACHC,cAAOC,YAAY;MACxBL,aAAa;IACf,CAAA,CAAA;EAEJ,CAAA;EACAQ,QAAQC,cAAMC;EACdC,UAAU;IAACC,SAASC;;AACtB,CAAA;AAEO,IAAMC,OAAOnB,UAAUC,KAAK;EACjCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO;IACnBa,MAAMC,IAAIA,IAAIP,cAAMC,IAAI,EAAEL,YAAY;MACpCL,aAAa;IACf,CAAA;IACAiB,MAAab,cAAOC,YAAY;MAC9BL,aAAa;MACbkB,UAAU;QAAC;QAAM;;IACnB,CAAA;EACF,CAAA;EACAV,QAAeN,cAAO;IACpBI,KAAYF,cAAOC,YAAY;MAC7BL,aAAa;IACf,CAAA;EACF,CAAA;EACAW,UAAU;IAACC,SAASC;;AACtB,CAAA;AAEO,IAAMM,OAAOxB,UAAUC,KAAK;EACjCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO;IACnBa,MAAMC,IAAIA,IAAIP,cAAMC,IAAI,EAAEL,YAAY;MACpCL,aAAa;IACf,CAAA;IACAoB,MAAajB,gBAAgBkB,eAAQ,SAAS,SAAS,KAAA,CAAA,EAAQhB,YAAY;MACzEL,aAAa;MACbsB,cAAc;IAChB,CAAA;EACF,CAAA;EACAd,QAAeN,cAAO;IACpBI,KAAYF,cAAOC,YAAY;MAC7BL,aAAa;IACf,CAAA;IACAiB,MAAad,gBAAgBC,aAAM,EAAEC,YAAY;MAC/CL,aAAa;IACf,CAAA;EACF,CAAA;EACAW,UAAU;IAACC,SAASC;;AACtB,CAAA;AAEO,IAAMU,QAAQ5B,UAAUC,KAAK;EAClCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO;IACnBI,KAAYH,gBACHC,cAAOC,YAAY;MACxBL,aAAa;IACf,CAAA,CAAA;IAEFO,KAAYJ,gBACHC,cAAOC,YAAY;MACxBL,aAAa;IACf,CAAA,CAAA;EAEJ,CAAA;EACAQ,QAAeN,cAAO;IACpBsB,OAAcpB;EAChB,CAAA;AACF,CAAA;",
|
|
6
|
+
"names": ["Schema", "Operation", "Database", "Ref", "Create", "Operation", "make", "meta", "key", "name", "description", "input", "Struct", "optional", "String", "annotations", "pgn", "fen", "output", "Chess", "Game", "services", "Database", "Service", "Move", "game", "Ref", "move", "examples", "Play", "side", "Literal", "defaultValue", "Print", "ascii"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __export = (target, all) => {
|
|
4
|
+
for (var name in all)
|
|
5
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__export
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-HSLMI22Q.mjs.map
|