@dxos/plugin-chess 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51

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.
Files changed (122) hide show
  1. package/dist/lib/browser/blueprints/index.mjs +35 -6
  2. package/dist/lib/browser/blueprints/index.mjs.map +4 -4
  3. package/dist/lib/browser/{chunk-JZMN24DY.mjs → chunk-2DFOUJBD.mjs} +4 -4
  4. package/dist/lib/browser/chunk-2DFOUJBD.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-2TJN26DN.mjs → chunk-IN3LZ2OO.mjs} +2 -7
  6. package/dist/lib/browser/{chunk-2TJN26DN.mjs.map → chunk-IN3LZ2OO.mjs.map} +2 -2
  7. package/dist/lib/browser/{chunk-XAJZK6Z2.mjs → chunk-OBKYFOJA.mjs} +3 -3
  8. package/dist/lib/browser/chunk-OBKYFOJA.mjs.map +7 -0
  9. package/dist/lib/browser/cli/index.mjs +1 -1
  10. package/dist/lib/browser/cli/index.mjs.map +3 -3
  11. package/dist/lib/browser/{create-AJHN4QT4.mjs → create-2ME3FNBX.mjs} +4 -4
  12. package/dist/lib/browser/create-2ME3FNBX.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +10 -57
  14. package/dist/lib/browser/index.mjs.map +4 -4
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/{move-T2NLRBR4.mjs → move-TTMIPD5J.mjs} +5 -5
  17. package/dist/lib/browser/move-TTMIPD5J.mjs.map +7 -0
  18. package/dist/lib/browser/operations/index.mjs +3 -3
  19. package/dist/lib/browser/{play-7VTMD3SJ.mjs → play-GHXPV2T2.mjs} +5 -5
  20. package/dist/lib/browser/play-GHXPV2T2.mjs.map +7 -0
  21. package/dist/lib/browser/{print-EW7LPW4D.mjs → print-RNAGAOM7.mjs} +4 -4
  22. package/dist/lib/browser/{print-EW7LPW4D.mjs.map → print-RNAGAOM7.mjs.map} +1 -1
  23. package/dist/lib/browser/translations.mjs +38 -0
  24. package/dist/lib/browser/translations.mjs.map +7 -0
  25. package/dist/lib/browser/types/index.mjs +1 -1
  26. package/dist/lib/node-esm/blueprints/index.mjs +35 -6
  27. package/dist/lib/node-esm/blueprints/index.mjs.map +4 -4
  28. package/dist/lib/node-esm/{chunk-NYU5JVXP.mjs → chunk-G2EHRXHX.mjs} +3 -3
  29. package/dist/lib/node-esm/chunk-G2EHRXHX.mjs.map +7 -0
  30. package/dist/lib/node-esm/{chunk-OIRJVY2R.mjs → chunk-OHBKSL2Q.mjs} +2 -7
  31. package/dist/lib/node-esm/{chunk-OIRJVY2R.mjs.map → chunk-OHBKSL2Q.mjs.map} +2 -2
  32. package/dist/lib/node-esm/{chunk-LQEDIKCV.mjs → chunk-V4FN2DZR.mjs} +4 -4
  33. package/dist/lib/node-esm/chunk-V4FN2DZR.mjs.map +7 -0
  34. package/dist/lib/node-esm/cli/index.mjs +1 -1
  35. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  36. package/dist/lib/node-esm/{create-QSETDT4N.mjs → create-CC2P7GPT.mjs} +4 -4
  37. package/dist/lib/node-esm/create-CC2P7GPT.mjs.map +7 -0
  38. package/dist/lib/node-esm/index.mjs +10 -57
  39. package/dist/lib/node-esm/index.mjs.map +4 -4
  40. package/dist/lib/node-esm/meta.json +1 -1
  41. package/dist/lib/node-esm/{move-5F2ANDTE.mjs → move-CYHXWHHM.mjs} +5 -5
  42. package/dist/lib/node-esm/move-CYHXWHHM.mjs.map +7 -0
  43. package/dist/lib/node-esm/operations/index.mjs +3 -3
  44. package/dist/lib/node-esm/{play-W4DQCQRX.mjs → play-KTNK2PBL.mjs} +5 -5
  45. package/dist/lib/node-esm/play-KTNK2PBL.mjs.map +7 -0
  46. package/dist/lib/node-esm/{print-UJHXAXMS.mjs → print-P23VKVNU.mjs} +4 -4
  47. package/dist/lib/node-esm/{print-UJHXAXMS.mjs.map → print-P23VKVNU.mjs.map} +1 -1
  48. package/dist/lib/node-esm/translations.mjs +39 -0
  49. package/dist/lib/node-esm/translations.mjs.map +7 -0
  50. package/dist/lib/node-esm/types/index.mjs +1 -1
  51. package/dist/types/src/ChessPlugin.d.ts.map +1 -1
  52. package/dist/types/src/blueprints/chess-blueprint.d.ts +2 -2
  53. package/dist/types/src/blueprints/chess-blueprint.d.ts.map +1 -1
  54. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  55. package/dist/types/src/capabilities/blueprint-definition.d.ts +1 -2
  56. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
  57. package/dist/types/src/capabilities/index.d.ts +2 -2
  58. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  59. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  60. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  61. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  62. package/dist/types/src/components/Chessboard/Chessboard.d.ts +4 -0
  63. package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -1
  64. package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts +40 -23
  65. package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts.map +1 -1
  66. package/dist/types/src/components/Chessboard/Info.d.ts +4 -5
  67. package/dist/types/src/components/Chessboard/Info.d.ts.map +1 -1
  68. package/dist/types/src/components/Chessboard/types.d.ts.map +1 -1
  69. package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts.map +1 -1
  70. package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts +40 -23
  71. package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts.map +1 -1
  72. package/dist/types/src/containers/ChessCard/ChessCard.d.ts.map +1 -1
  73. package/dist/types/src/containers/ChessCard/ChessCard.stories.d.ts.map +1 -1
  74. package/dist/types/src/index.d.ts +0 -2
  75. package/dist/types/src/index.d.ts.map +1 -1
  76. package/dist/types/src/operations/create.d.ts +1 -1
  77. package/dist/types/src/operations/create.d.ts.map +1 -1
  78. package/dist/types/src/operations/definitions.d.ts +2 -2
  79. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  80. package/dist/types/src/operations/index.d.ts +1 -1
  81. package/dist/types/src/operations/index.d.ts.map +1 -1
  82. package/dist/types/src/operations/move.d.ts +1 -1
  83. package/dist/types/src/operations/move.d.ts.map +1 -1
  84. package/dist/types/src/operations/play.d.ts +1 -1
  85. package/dist/types/src/operations/play.d.ts.map +1 -1
  86. package/dist/types/src/operations/print.d.ts +1 -1
  87. package/dist/types/src/operations/print.d.ts.map +1 -1
  88. package/dist/types/src/translations.d.ts +40 -24
  89. package/dist/types/src/translations.d.ts.map +1 -1
  90. package/dist/types/src/types/Chess.d.ts.map +1 -1
  91. package/dist/types/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +40 -35
  93. package/src/ChessPlugin.tsx +2 -3
  94. package/src/blueprints/chess-blueprint.ts +2 -3
  95. package/src/capabilities/artifact-definition.ts +2 -2
  96. package/src/capabilities/index.ts +1 -1
  97. package/src/capabilities/operation-handler.ts +1 -1
  98. package/src/cli/plugin.ts +1 -1
  99. package/src/components/Chessboard/Chessboard.stories.tsx +1 -1
  100. package/src/components/Chessboard/Info.tsx +2 -2
  101. package/src/containers/ChessArticle/ChessArticle.stories.tsx +1 -1
  102. package/src/index.ts +0 -2
  103. package/src/operations/create.ts +1 -1
  104. package/src/operations/definitions.ts +1 -1
  105. package/src/operations/index.ts +1 -1
  106. package/src/operations/move.ts +2 -2
  107. package/src/operations/play.ts +2 -2
  108. package/src/operations/print.ts +1 -1
  109. package/dist/lib/browser/chunk-JZMN24DY.mjs.map +0 -7
  110. package/dist/lib/browser/chunk-MC7L6JNC.mjs +0 -36
  111. package/dist/lib/browser/chunk-MC7L6JNC.mjs.map +0 -7
  112. package/dist/lib/browser/chunk-XAJZK6Z2.mjs.map +0 -7
  113. package/dist/lib/browser/create-AJHN4QT4.mjs.map +0 -7
  114. package/dist/lib/browser/move-T2NLRBR4.mjs.map +0 -7
  115. package/dist/lib/browser/play-7VTMD3SJ.mjs.map +0 -7
  116. package/dist/lib/node-esm/chunk-4HZWCKMR.mjs +0 -38
  117. package/dist/lib/node-esm/chunk-4HZWCKMR.mjs.map +0 -7
  118. package/dist/lib/node-esm/chunk-LQEDIKCV.mjs.map +0 -7
  119. package/dist/lib/node-esm/chunk-NYU5JVXP.mjs.map +0 -7
  120. package/dist/lib/node-esm/create-QSETDT4N.mjs.map +0 -7
  121. package/dist/lib/node-esm/move-5F2ANDTE.mjs.map +0 -7
  122. package/dist/lib/node-esm/play-W4DQCQRX.mjs.map +0 -7
@@ -1 +1 @@
1
- {"inputs":{"src/blueprints/chess-blueprint.ts":{"bytes":3377,"imports":[{"path":"@dxos/blueprints","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":6097,"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":508,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/operations/definitions.ts":{"bytes":9864,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/create.ts":{"bytes":2029,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","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":3439,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/play.ts":{"bytes":4736,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/print.ts":{"bytes":2383,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1522,"imports":[{"path":"@dxos/operation","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":795,"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/components/Chessboard/Info.tsx":{"bytes":24900,"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":1296,"imports":[{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Chessboard.tsx":{"bytes":13978,"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":484,"imports":[{"path":"src/components/Chessboard/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/meta.ts":{"bytes":2043,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":3709,"imports":[{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":6970,"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/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","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":"#types","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":843,"imports":[{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/components/Chessboard/index.ts","kind":"import-statement","original":"./components/Chessboard"},{"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"},"src/cli/plugin.ts":{"bytes":4124,"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/operation","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":458,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/print-EW7LPW4D.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1250},"dist/lib/browser/print-EW7LPW4D.mjs":{"imports":[{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/print.ts","inputs":{"src/operations/print.ts":{"bytesInOutput":440}},"bytes":661},"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":27654},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-MC7L6JNC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-JZMN24DY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"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/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","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":"#types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["Chess","ChessBlueprint","ChessFunctions","ChessPlugin","Chessboard","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"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/meta.ts":{"bytesInOutput":516},"src/ChessPlugin.tsx":{"bytesInOutput":1579},"src/translations.ts":{"bytesInOutput":983}},"bytes":13261},"dist/lib/browser/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/blueprints/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-MC7L6JNC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-JZMN24DY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":356},"dist/lib/browser/chunk-MC7L6JNC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1751},"dist/lib/browser/chunk-MC7L6JNC.mjs":{"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["chess_blueprint_default"],"inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":833},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":953},"dist/lib/browser/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2159},"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/operation","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":845},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":960},"dist/lib/browser/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/operations/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-JZMN24DY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.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-JZMN24DY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":745},"dist/lib/browser/chunk-JZMN24DY.mjs":{"imports":[{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"dist/lib/browser/create-AJHN4QT4.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/move-T2NLRBR4.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/play-7VTMD3SJ.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/print-EW7LPW4D.mjs","kind":"dynamic-import"}],"exports":["ChessHandlers","operations_exports"],"inputs":{"src/operations/index.ts":{"bytesInOutput":464}},"bytes":712},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2TJN26DN.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-AJHN4QT4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1043},"dist/lib/browser/create-AJHN4QT4.mjs":{"imports":[{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create.ts","inputs":{"src/operations/create.ts":{"bytesInOutput":336}},"bytes":586},"dist/lib/browser/move-T2NLRBR4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1881},"dist/lib/browser/move-T2NLRBR4.mjs":{"imports":[{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.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/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/move.ts","inputs":{"src/operations/move.ts":{"bytesInOutput":654}},"bytes":871},"dist/lib/browser/play-7VTMD3SJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2574},"dist/lib/browser/play-7VTMD3SJ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-XAJZK6Z2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.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/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/play.ts","inputs":{"src/operations/play.ts":{"bytesInOutput":972}},"bytes":1189},"dist/lib/browser/chunk-XAJZK6Z2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4774},"dist/lib/browser/chunk-XAJZK6Z2.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["Create","Move","Play","Print"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":2577}},"bytes":2758},"dist/lib/browser/chunk-2TJN26DN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3074},"dist/lib/browser/chunk-2TJN26DN.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":1625},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1772},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
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}}}
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  Move
3
- } from "./chunk-XAJZK6Z2.mjs";
4
- import "./chunk-2TJN26DN.mjs";
3
+ } from "./chunk-OBKYFOJA.mjs";
4
+ import "./chunk-IN3LZ2OO.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/move.ts
8
8
  import { Chess as ChessJS } from "chess.js";
9
9
  import * as Effect from "effect/Effect";
10
+ import { Operation } from "@dxos/compute";
10
11
  import { Database, Obj } from "@dxos/echo";
11
- import { Operation } from "@dxos/operation";
12
12
  var handler = Move.pipe(Operation.withHandler(Effect.fn(function* ({ game, move }) {
13
13
  const obj = yield* Database.load(game);
14
14
  const chess = new ChessJS();
@@ -21,7 +21,7 @@ var handler = Move.pipe(Operation.withHandler(Effect.fn(function* ({ game, move
21
21
  strict: false
22
22
  });
23
23
  const pgn = chess.pgn();
24
- Obj.change(obj, (obj2) => {
24
+ Obj.update(obj, (obj2) => {
25
25
  const mutableGame = obj2;
26
26
  mutableGame.pgn = pgn;
27
27
  });
@@ -33,4 +33,4 @@ var move_default = handler;
33
33
  export {
34
34
  move_default as default
35
35
  };
36
- //# sourceMappingURL=move-T2NLRBR4.mjs.map
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
+ }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ChessHandlers
3
- } from "../chunk-JZMN24DY.mjs";
3
+ } from "../chunk-2DFOUJBD.mjs";
4
4
  import {
5
5
  Create,
6
6
  Move,
7
7
  Play,
8
8
  Print
9
- } from "../chunk-XAJZK6Z2.mjs";
10
- import "../chunk-2TJN26DN.mjs";
9
+ } from "../chunk-OBKYFOJA.mjs";
10
+ import "../chunk-IN3LZ2OO.mjs";
11
11
  import "../chunk-J5LGTIGS.mjs";
12
12
  export {
13
13
  ChessHandlers,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  Play
3
- } from "./chunk-XAJZK6Z2.mjs";
4
- import "./chunk-2TJN26DN.mjs";
3
+ } from "./chunk-OBKYFOJA.mjs";
4
+ import "./chunk-IN3LZ2OO.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/play.ts
8
8
  import { Chess as ChessJS } from "chess.js";
9
9
  import * as Effect from "effect/Effect";
10
+ import { Operation } from "@dxos/compute";
10
11
  import { Database, Obj } from "@dxos/echo";
11
- import { Operation } from "@dxos/operation";
12
12
  var handler = Play.pipe(Operation.withHandler(Effect.fn(function* ({ game, side = "any" }) {
13
13
  const object = yield* Database.load(game);
14
14
  const chess = new ChessJS();
@@ -29,7 +29,7 @@ var handler = Play.pipe(Operation.withHandler(Effect.fn(function* ({ game, side
29
29
  strict: false
30
30
  });
31
31
  const pgn = chess.pgn();
32
- Obj.change(object, (object2) => {
32
+ Obj.update(object, (object2) => {
33
33
  const mutableGame = object2;
34
34
  mutableGame.pgn = pgn;
35
35
  });
@@ -42,4 +42,4 @@ var play_default = handler;
42
42
  export {
43
43
  play_default as default
44
44
  };
45
- //# sourceMappingURL=play-7VTMD3SJ.mjs.map
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
+ }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Print
3
- } from "./chunk-XAJZK6Z2.mjs";
4
- import "./chunk-2TJN26DN.mjs";
3
+ } from "./chunk-OBKYFOJA.mjs";
4
+ import "./chunk-IN3LZ2OO.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/print.ts
8
8
  import { Chess as ChessJS } from "chess.js";
9
9
  import * as Effect from "effect/Effect";
10
- import { Operation } from "@dxos/operation";
10
+ import { Operation } from "@dxos/compute";
11
11
  var handler = Print.pipe(Operation.withHandler(Effect.fn(function* ({ pgn, fen }) {
12
12
  try {
13
13
  const chess = new ChessJS(fen);
@@ -27,4 +27,4 @@ var print_default = handler;
27
27
  export {
28
28
  print_default as default
29
29
  };
30
- //# sourceMappingURL=print-EW7LPW4D.mjs.map
30
+ //# sourceMappingURL=print-RNAGAOM7.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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/operation';\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"],
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
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
6
  "names": ["Chess", "ChessJS", "Effect", "Operation", "handler", "Print", "pipe", "Operation", "withHandler", "fn", "pgn", "fen", "chess", "ChessJS", "loadPgn", "ascii"]
7
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,6 +1,6 @@
1
1
  import {
2
2
  Chess_exports
3
- } from "../chunk-2TJN26DN.mjs";
3
+ } from "../chunk-IN3LZ2OO.mjs";
4
4
  import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  Chess_exports as Chess
@@ -1,13 +1,42 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- chess_blueprint_default
4
- } from "../chunk-4HZWCKMR.mjs";
5
2
  import {
6
3
  operations_exports
7
- } from "../chunk-LQEDIKCV.mjs";
8
- import "../chunk-NYU5JVXP.mjs";
9
- import "../chunk-OIRJVY2R.mjs";
4
+ } from "../chunk-V4FN2DZR.mjs";
5
+ import "../chunk-G2EHRXHX.mjs";
6
+ import "../chunk-OHBKSL2Q.mjs";
10
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;
11
40
  export {
12
41
  chess_blueprint_default as ChessBlueprint,
13
42
  operations_exports as ChessFunctions
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
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
7
  }
@@ -1,12 +1,12 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  Chess_exports
4
- } from "./chunk-OIRJVY2R.mjs";
4
+ } from "./chunk-OHBKSL2Q.mjs";
5
5
 
6
6
  // src/operations/definitions.ts
7
7
  import * as Schema from "effect/Schema";
8
+ import { Operation } from "@dxos/compute";
8
9
  import { Database, Ref } from "@dxos/echo";
9
- import { Operation } from "@dxos/operation";
10
10
  var Create = Operation.make({
11
11
  meta: {
12
12
  key: "org.dxos.function.chess.create",
@@ -108,4 +108,4 @@ export {
108
108
  Play,
109
109
  Print
110
110
  };
111
- //# sourceMappingURL=chunk-NYU5JVXP.mjs.map
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
+ }
@@ -46,12 +46,7 @@ var make = ({ name, pgn, fen } = {}) => {
46
46
  try {
47
47
  chess.loadPgn(pgn);
48
48
  } catch {
49
- log.warn(pgn, void 0, {
50
- F: __dxlog_file,
51
- L: 52,
52
- S: void 0,
53
- C: (f, a) => f(...a)
54
- });
49
+ log.warn(pgn, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 40, S: void 0 });
55
50
  }
56
51
  }
57
52
  return Obj.make(Game, {
@@ -65,4 +60,4 @@ var make = ({ name, pgn, fen } = {}) => {
65
60
  export {
66
61
  Chess_exports
67
62
  };
68
- //# sourceMappingURL=chunk-OIRJVY2R.mjs.map
63
+ //# sourceMappingURL=chunk-OHBKSL2Q.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types/Chess.ts"],
4
4
  "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Chess as ChessJS } from 'chess.js';\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, Obj, Type } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/internal';\nimport { log } from '@dxos/log';\n\nexport const Game = Schema.Struct({\n name: Schema.optional(Schema.String),\n players: Schema.Struct({\n white: Schema.optional(\n Schema.String.annotations({\n description: 'DID of white player',\n }),\n ),\n black: Schema.optional(\n Schema.String.annotations({\n description: 'DID of black player',\n }),\n ),\n }).pipe(FormInputAnnotation.set(false), Schema.optional),\n pgn: Schema.String.annotations({\n description: 'Portable Game Notation.',\n }).pipe(FormInputAnnotation.set(false), Schema.optional),\n fen: Schema.String.annotations({\n description: 'Forsyth-Edwards Notation.',\n }).pipe(FormInputAnnotation.set(false), Schema.optional),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.chess',\n version: '0.1.0',\n }),\n LabelAnnotation.set(['name']),\n Annotation.IconAnnotation.set({\n icon: 'ph--shield-chevron--regular',\n hue: 'amber',\n }),\n);\n\nexport interface Game extends Schema.Schema.Type<typeof Game> {}\n\nexport const make = ({ name, pgn, fen }: { name?: string; pgn?: string; fen?: string } = {}) => {\n const chess = new ChessJS();\n if (pgn) {\n try {\n chess.loadPgn(pgn);\n } catch {\n log.warn(pgn);\n }\n }\n\n return Obj.make(Game, {\n name,\n pgn,\n fen,\n players: {},\n });\n};\n"],
5
- "mappings": ";;;;;;AAAA;;;;;AAIA,SAASA,SAASC,eAAe;AACjC,YAAYC,YAAY;AAExB,SAASC,YAAYC,KAAKC,YAAY;AACtC,SAASC,qBAAqBC,uBAAuB;AACrD,SAASC,WAAW;;AAEb,IAAMC,OAAcC,cAAO;EAChCC,MAAaC,gBAAgBC,aAAM;EACnCC,SAAgBJ,cAAO;IACrBK,OAAcH,gBACLC,cAAOG,YAAY;MACxBC,aAAa;IACf,CAAA,CAAA;IAEFC,OAAcN,gBACLC,cAAOG,YAAY;MACxBC,aAAa;IACf,CAAA,CAAA;EAEJ,CAAA,EAAGE,KAAKb,oBAAoBc,IAAI,KAAA,GAAeR,eAAQ;EACvDS,KAAYR,cAAOG,YAAY;IAC7BC,aAAa;EACf,CAAA,EAAGE,KAAKb,oBAAoBc,IAAI,KAAA,GAAeR,eAAQ;EACvDU,KAAYT,cAAOG,YAAY;IAC7BC,aAAa;EACf,CAAA,EAAGE,KAAKb,oBAAoBc,IAAI,KAAA,GAAeR,eAAQ;AACzD,CAAA,EAAGO,KACDd,KAAKkB,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACAlB,gBAAgBa,IAAI;EAAC;CAAO,GAC5BjB,WAAWuB,eAAeN,IAAI;EAC5BO,MAAM;EACNC,KAAK;AACP,CAAA,CAAA;AAKK,IAAMC,OAAO,CAAC,EAAElB,MAAMU,KAAKC,IAAG,IAAoD,CAAC,MAAC;AACzF,QAAMQ,QAAQ,IAAI7B,QAAAA;AAClB,MAAIoB,KAAK;AACP,QAAI;AACFS,YAAMC,QAAQV,GAAAA;IAChB,QAAQ;AACNb,UAAIwB,KAAKX,KAAAA,QAAAA;;;;;;IACX;EACF;AAEA,SAAOjB,IAAIyB,KAAKpB,MAAM;IACpBE;IACAU;IACAC;IACAR,SAAS,CAAC;EACZ,CAAA;AACF;",
6
- "names": ["Chess", "ChessJS", "Schema", "Annotation", "Obj", "Type", "FormInputAnnotation", "LabelAnnotation", "log", "Game", "Struct", "name", "optional", "String", "players", "white", "annotations", "description", "black", "pipe", "set", "pgn", "fen", "object", "typename", "version", "IconAnnotation", "icon", "hue", "make", "chess", "loadPgn", "warn"]
5
+ "mappings": ";;;;;;AAAA;;;;;AAIA,SAASA,SAASC,eAAe;AACjC,YAAYC,YAAY;AAExB,SAASC,YAAYC,KAAKC,YAAY;AACtC,SAASC,qBAAqBC,uBAAuB;AACrD,SAASC,WAAW;AAEpB,IAAA,eAAaC;AAEXC,IAASR,OAAc,cAAA;QACdA,gBACLA,aAAOS;WACLC,cAAa;IACf,OAAA,gBAAA,cAAA,YAAA;MAEFC,aAAcC;;IAGZ,OAAA,gBAAA,cAAA,YAAA;MAEIR,aAAAA;IACRS,CAAKb,CAAAA;UACHU,oBAAa,IAAA,KAAA,GAAA,eAAA;EACf,KAAQN,cAAAA,YAAuB;IAC/BU,aAAYL;UACVC,oBAAa,IAAA,KAAA,GAAA,eAAA;EACf,KAAQN,cAAAA,YAAuB;IAE/BD,aAAY;EACVY,CAAAA,EAAAA,KAAAA,oBAAU,IAAA,KAAA,GAAA,eAAA;QACVC,KAAS,OAAA;EAEXX,UAAAA;EAAqB,SAAA;CAAO,GAC5BJ,gBAAWgB,IAAAA;EACTC;IACAC,WAAK,eAAA,IAAA;EAEP,MAAA;EAIF,KAAO;;AAEL,IAAS,OAAA,CAAA,EAAA,MAAA,KAAA,IAAA,IAAA,CAAA,MAAA;QACP,QAAI,IAAA,QAAA;WACFC;AACF,QAAE;AACAd,YAAIe,QAAKR,GAAAA;IACX,QAAA;AACF,UAAA,KAAA,KAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,OAAA,CAAA;IAEA;;SAEEA,IAAAA,KAAAA,MAAAA;IACAC;IACAN;IACF;IACA,SAAA,CAAA;;;",
6
+ "names": ["Chess", "ChessJS", "Schema", "Annotation", "Obj", "Type", "FormInputAnnotation", "LabelAnnotation", "log", "Game", "players", "String", "description", "black", "optional", "pgn", "fen", "typename", "version", "IconAnnotation", "icon", "hue", "chess", "warn"]
7
7
  }
@@ -4,7 +4,7 @@ import {
4
4
  Move,
5
5
  Play,
6
6
  Print
7
- } from "./chunk-NYU5JVXP.mjs";
7
+ } from "./chunk-G2EHRXHX.mjs";
8
8
  import {
9
9
  __export
10
10
  } from "./chunk-HSLMI22Q.mjs";
@@ -18,12 +18,12 @@ __export(operations_exports, {
18
18
  Play: () => Play,
19
19
  Print: () => Print
20
20
  });
21
- import { OperationHandlerSet } from "@dxos/operation";
22
- var Handlers = OperationHandlerSet.lazy(() => import("./create-QSETDT4N.mjs"), () => import("./move-5F2ANDTE.mjs"), () => import("./play-W4DQCQRX.mjs"), () => import("./print-UJHXAXMS.mjs"));
21
+ import { OperationHandlerSet } from "@dxos/compute";
22
+ var Handlers = OperationHandlerSet.lazy(() => import("./create-CC2P7GPT.mjs"), () => import("./move-CYHXWHHM.mjs"), () => import("./play-KTNK2PBL.mjs"), () => import("./print-P23VKVNU.mjs"));
23
23
  var ChessHandlers = Handlers;
24
24
 
25
25
  export {
26
26
  ChessHandlers,
27
27
  operations_exports
28
28
  };
29
- //# sourceMappingURL=chunk-LQEDIKCV.mjs.map
29
+ //# sourceMappingURL=chunk-V4FN2DZR.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nconst Handlers = OperationHandlerSet.lazy(\n () => import('./create'),\n () => import('./move'),\n () => import('./play'),\n () => import('./print'),\n);\n\nexport { Create, Move, Play, Print } from './definitions';\n\nexport const ChessHandlers = Handlers;\n"],
5
+ "mappings": ";;;;;;;;;;;;AAAA;;;;;;;;AAIA,SAASA,2BAA2B;AAEpC,IAAMC,WAAWD,oBAAoBE,KACnC,MAAM,OAAO,uBAAA,GACb,MAAM,OAAO,qBAAA,GACb,MAAM,OAAO,qBAAA,GACb,MAAM,OAAO,sBAAA,CAAA;AAKR,IAAMC,gBAAgBF;",
6
+ "names": ["OperationHandlerSet", "Handlers", "lazy", "ChessHandlers"]
7
+ }
@@ -5,7 +5,7 @@ import "../chunk-HSLMI22Q.mjs";
5
5
  import * as Effect from "effect/Effect";
6
6
  import { Plugin } from "@dxos/app-framework";
7
7
  import { AppPlugin } from "@dxos/app-toolkit";
8
- import { Operation } from "@dxos/operation";
8
+ import { Operation } from "@dxos/compute";
9
9
  import { SpaceOperation } from "@dxos/plugin-space/operations";
10
10
  import { meta } from "#meta";
11
11
  import { Chess } from "#types";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/cli/plugin.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { meta } from '#meta';\nimport { Chess } from '#types';\n\n// TODO(wittjosiah): Factor out shared modules.\nexport const ChessPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n createObject: ((props, options) =>\n Effect.gen(function* () {\n const object = Chess.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n })) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Chess.Game] }),\n Plugin.make,\n);\n"],
5
- "mappings": ";;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,sBAAsB;AAG/B,SAASC,YAAY;AACrB,SAASC,aAAa;AAGf,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,MAAMC,KAAKC;IACfJ,UAAU;MACRK,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASP,MAAMQ,KAAKJ,KAAAA;AAC1B,eAAO,OAAOK,UAAUC,OAAOC,eAAeC,WAAW;UACvDL;UACAM,QAAQR,QAAQQ;UAChBC,QAAQ;UACRC,cAAcV,QAAQU;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACAnB,UAAUoB,gBAAgB;EAAEC,QAAQ;IAACjB,MAAMC;;AAAM,CAAA,GACjDT,OAAOgB,IAAI;",
6
- "names": ["Effect", "Plugin", "AppPlugin", "Operation", "SpaceOperation", "meta", "Chess", "ChessPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "createObject", "props", "options", "gen", "object", "make", "Operation", "invoke", "SpaceOperation", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { meta } from '#meta';\nimport { Chess } from '#types';\n\n// TODO(wittjosiah): Factor out shared modules.\nexport const ChessPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n createObject: ((props, options) =>\n Effect.gen(function* () {\n const object = Chess.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n })) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Chess.Game] }),\n Plugin.make,\n);\n"],
5
+ "mappings": ";;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,sBAAsB;AAG/B,SAASC,YAAY;AACrB,SAASC,aAAa;AAGf,IAAMC,cAAcN,OAAOO,OAAOH,IAAAA,EAAMI,KAC7CP,UAAUQ,kBAAkB;EAC1BC,UAAU;IACRC,IAAIN,MAAMO,KAAKC;IACfH,UAAU;MACRI,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASb,MAAMc,KAAKJ,KAAAA;AAC1B,eAAO,OAAOb,UAAUkB,OAAOjB,eAAekB,WAAW;UACvDH;UACAI,QAAQN,QAAQM;UAChBC,QAAQ;UACRC,cAAcR,QAAQQ;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACAvB,UAAUwB,gBAAgB;EAAEC,QAAQ;IAACrB,MAAMO;;AAAM,CAAA,GACjDZ,OAAOmB,IAAI;",
6
+ "names": ["Effect", "Plugin", "AppPlugin", "Operation", "SpaceOperation", "meta", "Chess", "ChessPlugin", "define", "pipe", "addMetadataModule", "metadata", "id", "Game", "typename", "createObject", "props", "options", "gen", "object", "make", "invoke", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema"]
7
7
  }
@@ -1,16 +1,16 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  Create
4
- } from "./chunk-NYU5JVXP.mjs";
4
+ } from "./chunk-G2EHRXHX.mjs";
5
5
  import {
6
6
  Chess_exports
7
- } from "./chunk-OIRJVY2R.mjs";
7
+ } from "./chunk-OHBKSL2Q.mjs";
8
8
  import "./chunk-HSLMI22Q.mjs";
9
9
 
10
10
  // src/operations/create.ts
11
11
  import * as Effect from "effect/Effect";
12
+ import { Operation } from "@dxos/compute";
12
13
  import { Database } from "@dxos/echo";
13
- import { Operation } from "@dxos/operation";
14
14
  var handler = Create.pipe(Operation.withHandler(Effect.fn(function* ({ name, pgn, fen }) {
15
15
  return yield* Database.add(Chess_exports.make({
16
16
  name,
@@ -22,4 +22,4 @@ var create_default = handler;
22
22
  export {
23
23
  create_default as default
24
24
  };
25
- //# sourceMappingURL=create-QSETDT4N.mjs.map
25
+ //# sourceMappingURL=create-CC2P7GPT.mjs.map