@dxos/plugin-chess 0.7.5-main.9d2a38b → 0.7.5-main.e94eead

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 (140) hide show
  1. package/dist/lib/browser/ChessContainer-XERPODLK.mjs +86 -0
  2. package/dist/lib/browser/ChessContainer-XERPODLK.mjs.map +7 -0
  3. package/dist/lib/browser/artifact-definition-D2SD45UX.mjs +180 -0
  4. package/dist/lib/browser/artifact-definition-D2SD45UX.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-VHSLLEH3.mjs → chunk-NNA3W3LX.mjs} +17 -11
  6. package/dist/lib/browser/chunk-NNA3W3LX.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-R26FYVUS.mjs +8 -0
  8. package/dist/lib/browser/chunk-R26FYVUS.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-VRWXC5L2.mjs +42 -0
  10. package/dist/lib/browser/chunk-VRWXC5L2.mjs.map +7 -0
  11. package/dist/lib/browser/index.mjs +38 -19
  12. package/dist/lib/browser/index.mjs.map +4 -4
  13. package/dist/lib/browser/intent-resolver-KBIH2KYC.mjs +28 -0
  14. package/dist/lib/browser/intent-resolver-KBIH2KYC.mjs.map +7 -0
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/react-surface-2PI2KNSU.mjs +42 -0
  17. package/dist/lib/browser/react-surface-2PI2KNSU.mjs.map +7 -0
  18. package/dist/lib/browser/types/index.mjs +3 -3
  19. package/dist/lib/node/ChessContainer-LEPLNICP.cjs +108 -0
  20. package/dist/lib/node/ChessContainer-LEPLNICP.cjs.map +7 -0
  21. package/dist/lib/node/artifact-definition-YDPYM4NV.cjs +194 -0
  22. package/dist/lib/node/artifact-definition-YDPYM4NV.cjs.map +7 -0
  23. package/dist/lib/node/chunk-CSRNUKOH.cjs +74 -0
  24. package/dist/lib/node/chunk-CSRNUKOH.cjs.map +7 -0
  25. package/dist/lib/node/{react-surface-PO42G64E.cjs → chunk-ITDMCBQQ.cjs} +11 -22
  26. package/dist/lib/node/chunk-ITDMCBQQ.cjs.map +7 -0
  27. package/dist/lib/node/{chunk-3BLH7NRV.cjs → chunk-VXYRI6VA.cjs} +19 -13
  28. package/dist/lib/node/chunk-VXYRI6VA.cjs.map +7 -0
  29. package/dist/lib/node/index.cjs +52 -32
  30. package/dist/lib/node/index.cjs.map +4 -4
  31. package/dist/lib/node/{intent-resolver-VTB6P3IL.cjs → intent-resolver-TZFKPQOV.cjs} +20 -11
  32. package/dist/lib/node/intent-resolver-TZFKPQOV.cjs.map +7 -0
  33. package/dist/lib/node/meta.json +1 -1
  34. package/dist/lib/node/react-surface-OHQIPHSN.cjs +62 -0
  35. package/dist/lib/node/react-surface-OHQIPHSN.cjs.map +7 -0
  36. package/dist/lib/node/types/index.cjs +6 -6
  37. package/dist/lib/node/types/index.cjs.map +1 -1
  38. package/dist/lib/node-esm/ChessContainer-S76WNBWN.mjs +87 -0
  39. package/dist/lib/node-esm/ChessContainer-S76WNBWN.mjs.map +7 -0
  40. package/dist/lib/node-esm/artifact-definition-LHQK5BBZ.mjs +181 -0
  41. package/dist/lib/node-esm/artifact-definition-LHQK5BBZ.mjs.map +7 -0
  42. package/dist/lib/node-esm/chunk-6SEDGO5G.mjs +44 -0
  43. package/dist/lib/node-esm/chunk-6SEDGO5G.mjs.map +7 -0
  44. package/dist/lib/node-esm/chunk-B72CIN6T.mjs +10 -0
  45. package/dist/lib/node-esm/chunk-B72CIN6T.mjs.map +7 -0
  46. package/dist/lib/node-esm/{chunk-M2CRYWX5.mjs → chunk-IP66EHSW.mjs} +17 -11
  47. package/dist/lib/node-esm/chunk-IP66EHSW.mjs.map +7 -0
  48. package/dist/lib/node-esm/index.mjs +38 -19
  49. package/dist/lib/node-esm/index.mjs.map +4 -4
  50. package/dist/lib/node-esm/{intent-resolver-MKEQFVZO.mjs → intent-resolver-WBUS64KC.mjs} +18 -9
  51. package/dist/lib/node-esm/intent-resolver-WBUS64KC.mjs.map +7 -0
  52. package/dist/lib/node-esm/meta.json +1 -1
  53. package/dist/lib/node-esm/react-surface-XX4VFNRS.mjs +43 -0
  54. package/dist/lib/node-esm/react-surface-XX4VFNRS.mjs.map +7 -0
  55. package/dist/lib/node-esm/types/index.mjs +3 -3
  56. package/dist/types/src/ChessPlugin.d.ts.map +1 -1
  57. package/dist/types/src/capabilities/artifact-definition.d.ts +11 -0
  58. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -0
  59. package/dist/types/src/capabilities/index.d.ts +3 -2
  60. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  61. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  62. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  63. package/dist/types/src/components/ChessComponent.d.ts +5 -0
  64. package/dist/types/src/components/ChessComponent.d.ts.map +1 -0
  65. package/dist/types/src/components/ChessContainer.d.ts +4 -4
  66. package/dist/types/src/components/ChessContainer.d.ts.map +1 -1
  67. package/dist/types/src/components/ChessPanel.d.ts +11 -0
  68. package/dist/types/src/components/ChessPanel.d.ts.map +1 -0
  69. package/dist/types/src/components/Chessboard.stories.d.ts +8 -0
  70. package/dist/types/src/components/Chessboard.stories.d.ts.map +1 -0
  71. package/dist/types/src/components/PlayerSelector.d.ts +7 -0
  72. package/dist/types/src/components/PlayerSelector.d.ts.map +1 -0
  73. package/dist/types/src/components/index.d.ts +4 -2
  74. package/dist/types/src/components/index.d.ts.map +1 -1
  75. package/dist/types/src/index.d.ts +3 -1
  76. package/dist/types/src/index.d.ts.map +1 -1
  77. package/dist/types/src/meta.d.ts +1 -0
  78. package/dist/types/src/meta.d.ts.map +1 -1
  79. package/dist/types/src/types/schema.d.ts +4 -2
  80. package/dist/types/src/types/schema.d.ts.map +1 -1
  81. package/dist/types/src/types/types.d.ts +4 -3
  82. package/dist/types/src/types/types.d.ts.map +1 -1
  83. package/package.json +23 -20
  84. package/src/ChessPlugin.tsx +25 -20
  85. package/src/capabilities/artifact-definition.ts +115 -0
  86. package/src/capabilities/index.ts +1 -0
  87. package/src/capabilities/intent-resolver.ts +13 -5
  88. package/src/capabilities/react-surface.tsx +12 -5
  89. package/src/components/ChessComponent.tsx +49 -0
  90. package/src/components/ChessContainer.tsx +14 -4
  91. package/src/components/ChessPanel.tsx +67 -0
  92. package/src/components/Chessboard.stories.tsx +39 -0
  93. package/src/components/{Chess.tsx → PlayerSelector.tsx} +3 -50
  94. package/src/components/index.ts +2 -0
  95. package/src/index.ts +4 -1
  96. package/src/meta.ts +3 -1
  97. package/src/translations.ts +2 -2
  98. package/src/types/schema.ts +3 -1
  99. package/src/types/types.ts +6 -5
  100. package/dist/lib/browser/ChessContainer-JYXOZIDK.mjs +0 -505
  101. package/dist/lib/browser/ChessContainer-JYXOZIDK.mjs.map +0 -7
  102. package/dist/lib/browser/chunk-VHSLLEH3.mjs.map +0 -7
  103. package/dist/lib/browser/intent-resolver-FUAOSHHX.mjs +0 -19
  104. package/dist/lib/browser/intent-resolver-FUAOSHHX.mjs.map +0 -7
  105. package/dist/lib/browser/react-surface-63EO2PZO.mjs +0 -30
  106. package/dist/lib/browser/react-surface-63EO2PZO.mjs.map +0 -7
  107. package/dist/lib/node/ChessContainer-XRP7D63X.cjs +0 -518
  108. package/dist/lib/node/ChessContainer-XRP7D63X.cjs.map +0 -7
  109. package/dist/lib/node/chunk-3BLH7NRV.cjs.map +0 -7
  110. package/dist/lib/node/intent-resolver-VTB6P3IL.cjs.map +0 -7
  111. package/dist/lib/node/react-surface-PO42G64E.cjs.map +0 -7
  112. package/dist/lib/node-esm/ChessContainer-37QUCUTD.mjs +0 -507
  113. package/dist/lib/node-esm/ChessContainer-37QUCUTD.mjs.map +0 -7
  114. package/dist/lib/node-esm/chunk-M2CRYWX5.mjs.map +0 -7
  115. package/dist/lib/node-esm/intent-resolver-MKEQFVZO.mjs.map +0 -7
  116. package/dist/lib/node-esm/react-surface-CXEBEDLT.mjs +0 -31
  117. package/dist/lib/node-esm/react-surface-CXEBEDLT.mjs.map +0 -7
  118. package/dist/types/src/components/Chess.d.ts +0 -9
  119. package/dist/types/src/components/Chess.d.ts.map +0 -1
  120. package/dist/types/src/components/Chessboard/Chessboard.d.ts +0 -37
  121. package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +0 -1
  122. package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts +0 -13
  123. package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts.map +0 -1
  124. package/dist/types/src/components/Chessboard/index.d.ts +0 -2
  125. package/dist/types/src/components/Chessboard/index.d.ts.map +0 -1
  126. package/dist/types/src/components/Chessboard/pieces/custom.d.ts +0 -3
  127. package/dist/types/src/components/Chessboard/pieces/custom.d.ts.map +0 -1
  128. package/dist/types/src/components/Chessboard/pieces/index.d.ts +0 -4
  129. package/dist/types/src/components/Chessboard/pieces/index.d.ts.map +0 -1
  130. package/dist/types/src/components/Chessboard/pieces/phosphor.d.ts +0 -3
  131. package/dist/types/src/components/Chessboard/pieces/phosphor.d.ts.map +0 -1
  132. package/dist/types/src/components/Chessboard/pieces/riohacha.d.ts +0 -3
  133. package/dist/types/src/components/Chessboard/pieces/riohacha.d.ts.map +0 -1
  134. package/src/components/Chessboard/Chessboard.stories.tsx +0 -43
  135. package/src/components/Chessboard/Chessboard.tsx +0 -170
  136. package/src/components/Chessboard/index.ts +0 -5
  137. package/src/components/Chessboard/pieces/custom.tsx +0 -82
  138. package/src/components/Chessboard/pieces/index.ts +0 -7
  139. package/src/components/Chessboard/pieces/phosphor.tsx +0 -71
  140. package/src/components/Chessboard/pieces/riohacha.tsx +0 -166
@@ -26,26 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var react_surface_PO42G64E_exports = {};
30
- __export(react_surface_PO42G64E_exports, {
31
- default: () => react_surface_default
29
+ var chunk_ITDMCBQQ_exports = {};
30
+ __export(chunk_ITDMCBQQ_exports, {
31
+ ChessContainer: () => ChessContainer
32
32
  });
33
- module.exports = __toCommonJS(react_surface_PO42G64E_exports);
34
- var import_chunk_3BLH7NRV = require("./chunk-3BLH7NRV.cjs");
35
- var import_react = __toESM(require("react"));
36
- var import_app_framework = require("@dxos/app-framework");
37
- var import_react2 = require("react");
38
- var ChessContainer = (0, import_react2.lazy)(() => import("./ChessContainer-XRP7D63X.cjs"));
39
- var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, (0, import_app_framework.createSurface)({
40
- id: import_chunk_3BLH7NRV.CHESS_PLUGIN,
41
- role: [
42
- "article",
43
- "section"
44
- ],
45
- filter: (data) => (0, import_chunk_3BLH7NRV.isObject)(data.subject),
46
- component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(ChessContainer, {
47
- game: data.subject,
48
- role
49
- })
50
- }));
51
- //# sourceMappingURL=react-surface-PO42G64E.cjs.map
33
+ module.exports = __toCommonJS(chunk_ITDMCBQQ_exports);
34
+ var import_react = require("react");
35
+ var ChessContainer = (0, import_react.lazy)(() => import("./ChessContainer-LEPLNICP.cjs"));
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ ChessContainer
39
+ });
40
+ //# sourceMappingURL=chunk-ITDMCBQQ.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport * from './ChessComponent';\n\nexport const ChessContainer = lazy(() => import('./ChessContainer'));\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAqB;AAId,IAAMA,qBAAiBC,mBAAK,MAAM,OAAO,+BAAA,CAAA;",
6
+ "names": ["ChessContainer", "lazy"]
7
+ }
@@ -16,16 +16,16 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_3BLH7NRV_exports = {};
20
- __export(chunk_3BLH7NRV_exports, {
19
+ var chunk_VXYRI6VA_exports = {};
20
+ __export(chunk_VXYRI6VA_exports, {
21
21
  CHESS_PLUGIN: () => CHESS_PLUGIN,
22
22
  ChessAction: () => ChessAction,
23
- GameType: () => GameType,
23
+ ChessType: () => ChessType,
24
24
  MoveSchema: () => MoveSchema,
25
25
  isObject: () => isObject,
26
26
  meta: () => meta
27
27
  });
28
- module.exports = __toCommonJS(chunk_3BLH7NRV_exports);
28
+ module.exports = __toCommonJS(chunk_VXYRI6VA_exports);
29
29
  var import_echo_schema = require("@dxos/echo-schema");
30
30
  var import_echo_schema2 = require("@dxos/echo-schema");
31
31
  var import_live_object = require("@dxos/live-object");
@@ -34,7 +34,7 @@ var MoveSchema = import_echo_schema.S.mutable(import_echo_schema.S.partial(impor
34
34
  target: import_echo_schema.S.String,
35
35
  piece: import_echo_schema.S.String
36
36
  })));
37
- var GameType = class extends (0, import_echo_schema.TypedObject)({
37
+ var ChessType = class extends (0, import_echo_schema.TypedObject)({
38
38
  typename: "dxos.org/type/Chess",
39
39
  version: "0.1.0"
40
40
  })({
@@ -42,7 +42,9 @@ var GameType = class extends (0, import_echo_schema.TypedObject)({
42
42
  playerWhite: import_echo_schema.S.String,
43
43
  playerBlack: import_echo_schema.S.String,
44
44
  moves: import_echo_schema.S.mutable(import_echo_schema.S.Array(import_echo_schema.S.String)),
45
- pgn: import_echo_schema.S.String
45
+ // TODO(wittjosiah): Remove. Redundant with moves.
46
+ pgn: import_echo_schema.S.String,
47
+ fen: import_echo_schema.S.String
46
48
  }, {
47
49
  partial: true
48
50
  }) {
@@ -51,34 +53,38 @@ var CHESS_PLUGIN = "dxos.org/plugin/chess";
51
53
  var meta = {
52
54
  id: CHESS_PLUGIN,
53
55
  name: "Chess",
54
- description: "Play chess.",
56
+ description: "Chess is a simple plugin which allows you to render an interactive chessboard inside of a plank. This chessboard can be used for collaborative chess games, or for practice experiments with the LLM. ",
55
57
  icon: "ph--shield-chevron--regular",
56
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-chess"
58
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-chess",
59
+ screenshots: [
60
+ "https://dxos.network/plugin-details-chess-dark.png"
61
+ ]
57
62
  };
58
63
  var ChessAction;
59
64
  (function(ChessAction2) {
60
65
  const CHESS_ACTION = `${CHESS_PLUGIN}/action`;
61
66
  class Create extends import_echo_schema2.S.TaggedClass()(`${CHESS_ACTION}/create`, {
62
67
  input: import_echo_schema2.S.Struct({
63
- name: import_echo_schema2.S.optional(import_echo_schema2.S.String)
68
+ name: import_echo_schema2.S.optional(import_echo_schema2.S.String),
69
+ fen: import_echo_schema2.S.optional(import_echo_schema2.S.String)
64
70
  }),
65
71
  output: import_echo_schema2.S.Struct({
66
- object: GameType
72
+ object: ChessType
67
73
  })
68
74
  }) {
69
75
  }
70
76
  ChessAction2.Create = Create;
71
77
  })(ChessAction || (ChessAction = {}));
72
78
  var isObject = (object) => {
73
- return (0, import_live_object.isReactiveObject)(object) && object instanceof GameType;
79
+ return (0, import_live_object.isReactiveObject)(object) && (0, import_echo_schema2.isInstanceOf)(ChessType, object);
74
80
  };
75
81
  // Annotate the CommonJS export names for ESM import in node:
76
82
  0 && (module.exports = {
77
83
  CHESS_PLUGIN,
78
84
  ChessAction,
79
- GameType,
85
+ ChessType,
80
86
  MoveSchema,
81
87
  isObject,
82
88
  meta
83
89
  });
84
- //# sourceMappingURL=chunk-3BLH7NRV.cjs.map
90
+ //# sourceMappingURL=chunk-VXYRI6VA.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/schema.ts", "../../../src/types/types.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { S, TypedObject } from '@dxos/echo-schema';\n\nexport const MoveSchema = S.mutable(\n S.partial(\n S.Struct({\n source: S.String,\n target: S.String,\n piece: S.String,\n }),\n ),\n);\n\nexport class ChessType extends TypedObject({ typename: 'dxos.org/type/Chess', version: '0.1.0' })(\n {\n name: S.optional(S.String),\n playerWhite: S.String,\n playerBlack: S.String,\n moves: S.mutable(S.Array(S.String)),\n // TODO(wittjosiah): Remove. Redundant with moves.\n pgn: S.String,\n fen: S.String,\n },\n { partial: true },\n) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { isInstanceOf, S } from '@dxos/echo-schema';\nimport { isReactiveObject } from '@dxos/live-object';\n\nimport { ChessType } from './schema';\nimport { CHESS_PLUGIN } from '../meta';\n\nexport namespace ChessAction {\n const CHESS_ACTION = `${CHESS_PLUGIN}/action`;\n\n export class Create extends S.TaggedClass<Create>()(`${CHESS_ACTION}/create`, {\n input: S.Struct({\n name: S.optional(S.String),\n fen: S.optional(S.String),\n }),\n output: S.Struct({\n object: ChessType,\n }),\n }) {}\n}\n\nexport const isObject = (object: unknown): object is typeof ChessType => {\n return isReactiveObject(object) && isInstanceOf(ChessType, object);\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CHESS_PLUGIN = 'dxos.org/plugin/chess';\n\nexport const meta = {\n id: CHESS_PLUGIN,\n name: 'Chess',\n description:\n 'Chess is a simple plugin which allows you to render an interactive chessboard inside of a plank. This chessboard can be used for collaborative chess games, or for practice experiments with the LLM. ',\n icon: 'ph--shield-chevron--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-chess',\n screenshots: ['https://dxos.network/plugin-details-chess-dark.png'],\n} satisfies PluginMeta;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yBAA+B;ACA/B,IAAAA,sBAAgC;AAChC,yBAAiC;ADC1B,IAAMC,aAAaC,qBAAEC,QAC1BD,qBAAEE,QACAF,qBAAEG,OAAO;EACPC,QAAQJ,qBAAEK;EACVC,QAAQN,qBAAEK;EACVE,OAAOP,qBAAEK;AACX,CAAA,CAAA,CAAA;AAIG,IAAMG,YAAN,kBAAwBC,gCAAY;EAAEC,UAAU;EAAuBC,SAAS;AAAQ,CAAA,EAC7F;EACEC,MAAMZ,qBAAEa,SAASb,qBAAEK,MAAM;EACzBS,aAAad,qBAAEK;EACfU,aAAaf,qBAAEK;EACfW,OAAOhB,qBAAEC,QAAQD,qBAAEiB,MAAMjB,qBAAEK,MAAM,CAAA;;EAEjCa,KAAKlB,qBAAEK;EACPc,KAAKnB,qBAAEK;AACT,GACA;EAAEH,SAAS;AAAK,CAAA,EAAA;AACf;AErBI,IAAMkB,eAAe;AAErB,IAAMC,OAAO;EAClBC,IAAIF;EACJR,MAAM;EACNW,aACE;EACFC,MAAM;EACNpB,QAAQ;EACRqB,aAAa;IAAC;;AAChB;;UDNiBC,cAAAA;AACf,QAAMC,eAAe,GAAGP,YAAAA;EAEjB,MAAMQ,eAAe5B,oBAAAA,EAAE6B,YAAW,EAAW,GAAGF,YAAAA,WAAuB;IAC5EG,OAAO9B,oBAAAA,EAAEG,OAAO;MACdS,MAAMZ,oBAAAA,EAAEa,SAASb,oBAAAA,EAAEK,MAAM;MACzBc,KAAKnB,oBAAAA,EAAEa,SAASb,oBAAAA,EAAEK,MAAM;IAC1B,CAAA;IACA0B,QAAQ/B,oBAAAA,EAAEG,OAAO;MACf6B,QAAQxB;IACV,CAAA;EACF,CAAA,EAAA;EAAI;eARSoB,SAAAA;AASf,GAZiBF,gBAAAA,cAAAA,CAAAA,EAAAA;AAcV,IAAMO,WAAW,CAACD,WAAAA;AACvB,aAAOE,qCAAiBF,MAAAA,SAAWG,kCAAa3B,WAAWwB,MAAAA;AAC7D;",
6
+ "names": ["import_echo_schema", "MoveSchema", "S", "mutable", "partial", "Struct", "source", "String", "target", "piece", "ChessType", "TypedObject", "typename", "version", "name", "optional", "playerWhite", "playerBlack", "moves", "Array", "pgn", "fen", "CHESS_PLUGIN", "meta", "id", "description", "icon", "screenshots", "ChessAction", "CHESS_ACTION", "Create", "TaggedClass", "input", "output", "object", "isObject", "isReactiveObject", "isInstanceOf"]
7
+ }
@@ -28,24 +28,34 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var node_exports = {};
30
30
  __export(node_exports, {
31
- CHESS_PLUGIN: () => import_chunk_3BLH7NRV.CHESS_PLUGIN,
31
+ ArtifactDefinition: () => ArtifactDefinition,
32
+ CHESS_PLUGIN: () => import_chunk_VXYRI6VA.CHESS_PLUGIN,
33
+ ChessComponent: () => import_chunk_CSRNUKOH.ChessComponent,
34
+ ChessContainer: () => import_chunk_ITDMCBQQ.ChessContainer,
32
35
  ChessPlugin: () => ChessPlugin,
33
- meta: () => import_chunk_3BLH7NRV.meta
36
+ IntentResolver: () => IntentResolver,
37
+ ReactSurface: () => ReactSurface,
38
+ meta: () => import_chunk_VXYRI6VA.meta
34
39
  });
35
40
  module.exports = __toCommonJS(node_exports);
36
- var import_chunk_3BLH7NRV = require("./chunk-3BLH7NRV.cjs");
41
+ var import_chunk_ITDMCBQQ = require("./chunk-ITDMCBQQ.cjs");
42
+ var import_chunk_VXYRI6VA = require("./chunk-VXYRI6VA.cjs");
43
+ var import_chunk_CSRNUKOH = require("./chunk-CSRNUKOH.cjs");
37
44
  var import_app_framework = require("@dxos/app-framework");
38
- var import_plugin_client = require("@dxos/plugin-client");
39
45
  var import_app_framework2 = require("@dxos/app-framework");
40
- var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-VTB6P3IL.cjs"));
41
- var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-PO42G64E.cjs"));
46
+ var import_plugin_client = require("@dxos/plugin-client");
47
+ var import_plugin_space = require("@dxos/plugin-space");
48
+ var import_types = require("@dxos/plugin-space/types");
49
+ var ArtifactDefinition = (0, import_app_framework.lazy)(() => import("./artifact-definition-YDPYM4NV.cjs"));
50
+ var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-TZFKPQOV.cjs"));
51
+ var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-OHQIPHSN.cjs"));
42
52
  var translations_default = [
43
53
  {
44
54
  "en-US": {
45
- [import_chunk_3BLH7NRV.GameType.typename]: {
55
+ [import_chunk_VXYRI6VA.ChessType.typename]: {
46
56
  "typename label": "Game"
47
57
  },
48
- [import_chunk_3BLH7NRV.CHESS_PLUGIN]: {
58
+ [import_chunk_VXYRI6VA.CHESS_PLUGIN]: {
49
59
  "plugin name": "Chess",
50
60
  "game title placeholder": "New game",
51
61
  "create game label": "Create game",
@@ -54,51 +64,61 @@ var translations_default = [
54
64
  }
55
65
  }
56
66
  ];
57
- var ChessPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_3BLH7NRV.meta, [
58
- (0, import_app_framework.defineModule)({
59
- id: `${import_chunk_3BLH7NRV.meta.id}/module/translations`,
60
- activatesOn: import_app_framework.Events.SetupTranslations,
61
- activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
67
+ var ChessPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_VXYRI6VA.meta, [
68
+ (0, import_app_framework2.defineModule)({
69
+ id: `${import_chunk_VXYRI6VA.meta.id}/module/translations`,
70
+ activatesOn: import_app_framework2.Events.SetupTranslations,
71
+ activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Translations, translations_default)
62
72
  }),
63
- (0, import_app_framework.defineModule)({
64
- id: `${import_chunk_3BLH7NRV.meta.id}/module/metadata`,
65
- activatesOn: (0, import_app_framework.oneOf)(import_app_framework.Events.Startup, import_app_framework.Events.SetupAppGraph),
66
- activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
67
- id: import_chunk_3BLH7NRV.GameType.typename,
73
+ (0, import_app_framework2.defineModule)({
74
+ id: `${import_chunk_VXYRI6VA.meta.id}/module/metadata`,
75
+ activatesOn: import_app_framework2.Events.SetupMetadata,
76
+ activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Metadata, {
77
+ id: import_chunk_VXYRI6VA.ChessType.typename,
68
78
  metadata: {
69
- createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_3BLH7NRV.ChessAction.Create, props),
70
79
  placeholder: [
71
80
  "game title placeholder",
72
81
  {
73
- ns: import_chunk_3BLH7NRV.CHESS_PLUGIN
82
+ ns: import_chunk_VXYRI6VA.CHESS_PLUGIN
74
83
  }
75
84
  ],
76
85
  icon: "ph--shield-chevron--regular"
77
86
  }
78
87
  })
79
88
  }),
80
- (0, import_app_framework.defineModule)({
81
- id: `${import_chunk_3BLH7NRV.meta.id}/module/schema`,
82
- activatesOn: import_plugin_client.ClientEvents.SetupClient,
83
- activate: () => (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
84
- import_chunk_3BLH7NRV.GameType
85
- ])
89
+ (0, import_app_framework2.defineModule)({
90
+ id: `${import_chunk_VXYRI6VA.meta.id}/module/object-form`,
91
+ activatesOn: import_plugin_client.ClientEvents.SetupSchema,
92
+ activate: () => (0, import_app_framework2.contributes)(import_plugin_space.SpaceCapabilities.ObjectForm, (0, import_types.defineObjectForm)({
93
+ objectSchema: import_chunk_VXYRI6VA.ChessType,
94
+ getIntent: () => (0, import_app_framework2.createIntent)(import_chunk_VXYRI6VA.ChessAction.Create)
95
+ }))
86
96
  }),
87
- (0, import_app_framework.defineModule)({
88
- id: `${import_chunk_3BLH7NRV.meta.id}/module/react-surface`,
89
- activatesOn: import_app_framework.Events.Startup,
97
+ (0, import_app_framework2.defineModule)({
98
+ id: `${import_chunk_VXYRI6VA.meta.id}/module/react-surface`,
99
+ activatesOn: import_app_framework2.Events.SetupReactSurface,
90
100
  activate: ReactSurface
91
101
  }),
92
- (0, import_app_framework.defineModule)({
93
- id: `${import_chunk_3BLH7NRV.meta.id}/module/intent-resolver`,
94
- activatesOn: import_app_framework.Events.Startup,
102
+ (0, import_app_framework2.defineModule)({
103
+ id: `${import_chunk_VXYRI6VA.meta.id}/module/intent-resolver`,
104
+ activatesOn: import_app_framework2.Events.SetupIntentResolver,
95
105
  activate: IntentResolver
106
+ }),
107
+ (0, import_app_framework2.defineModule)({
108
+ id: `${import_chunk_VXYRI6VA.meta.id}/module/artifact-definition`,
109
+ activatesOn: import_app_framework2.Events.SetupArtifactDefinition,
110
+ activate: ArtifactDefinition
96
111
  })
97
112
  ]);
98
113
  // Annotate the CommonJS export names for ESM import in node:
99
114
  0 && (module.exports = {
115
+ ArtifactDefinition,
100
116
  CHESS_PLUGIN,
117
+ ChessComponent,
118
+ ChessContainer,
101
119
  ChessPlugin,
120
+ IntentResolver,
121
+ ReactSurface,
102
122
  meta
103
123
  });
104
124
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/ChessPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport {\n Capabilities,\n contributes,\n createIntent,\n defineModule,\n definePlugin,\n Events,\n oneOf,\n} from '@dxos/app-framework';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { CHESS_PLUGIN, meta } from './meta';\nimport translations from './translations';\nimport { ChessAction, GameType } from './types';\n\nexport const ChessPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: oneOf(Events.Startup, Events.SetupAppGraph),\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: GameType.typename,\n metadata: {\n createObject: (props: { name?: string }) => createIntent(ChessAction.Create, props),\n placeholder: ['game title placeholder', { ns: CHESS_PLUGIN }],\n icon: 'ph--shield-chevron--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupClient,\n activate: () => contributes(ClientCapabilities.Schema, [GameType]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.Startup,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.Startup,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CHESS_PLUGIN } from './meta';\nimport { GameType } from './types';\n\nexport default [\n {\n 'en-US': {\n [GameType.typename]: {\n 'typename label': 'Game',\n },\n [CHESS_PLUGIN]: {\n 'plugin name': 'Chess',\n 'game title placeholder': 'New game',\n 'create game label': 'Create game',\n 'delete game label': 'Delete',\n },\n },\n },\n];\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAQO;AACP,2BAAiD;ACTjD,IAAAA,wBAAqB;AAEd,IAAMC,qBAAiBC,4BAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,mBAAeD,4BAAK,MAAM,OAAO,8BAAA,CAAA;ACA9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACE,+BAASC,QAAQ,GAAG;QACnB,kBAAkB;MACpB;MACA,CAACC,kCAAAA,GAAe;QACd,eAAe;QACf,0BAA0B;QAC1B,qBAAqB;QACrB,qBAAqB;MACvB;IACF;EACF;;AFAK,IAAMC,cAAc,UACzBC,mCAAaC,4BAAM;MACjBC,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOC;IACpBC,UAAU,UAAMC,kCAAYC,kCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAT,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,iBAAaQ,4BAAMP,4BAAOQ,SAASR,4BAAOS,aAAa;IACvDP,UAAU,UACRC,kCAAYC,kCAAaM,UAAU;MACjCZ,IAAIP,+BAASC;MACbmB,UAAU;QACRC,cAAc,CAACC,cAA6BC,mCAAaC,kCAAYC,QAAQH,KAAAA;QAC7EI,aAAa;UAAC;UAA0B;YAAEC,IAAIzB;UAAa;;QAC3D0B,MAAM;MACR;IACF,CAAA;EACJ,CAAA;MACAtB,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaqB,kCAAaC;IAC1BnB,UAAU,UAAMC,kCAAYmB,wCAAmBC,QAAQ;MAAChC;KAAS;EACnE,CAAA;MACAM,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOQ;IACpBN,UAAUZ;EACZ,CAAA;MACAO,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOQ;IACpBN,UAAUd;EACZ,CAAA;CACD;",
6
- "names": ["import_app_framework", "IntentResolver", "lazy", "ReactSurface", "GameType", "typename", "CHESS_PLUGIN", "ChessPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "oneOf", "Startup", "SetupAppGraph", "Metadata", "metadata", "createObject", "props", "createIntent", "ChessAction", "Create", "placeholder", "ns", "icon", "ClientEvents", "SetupClient", "ClientCapabilities", "Schema"]
3
+ "sources": ["../../../src/capabilities/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const ArtifactDefinition = lazy(() => import('./artifact-definition'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\n\nimport { ArtifactDefinition, IntentResolver, ReactSurface } from './capabilities';\nimport { CHESS_PLUGIN, meta } from './meta';\nimport translations from './translations';\nimport { ChessAction, ChessType } from './types';\n\nexport const ChessPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ChessType.typename,\n metadata: {\n placeholder: ['game title placeholder', { ns: CHESS_PLUGIN }],\n icon: 'ph--shield-chevron--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: ChessType,\n getIntent: () => createIntent(ChessAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/artifact-definition`,\n activatesOn: Events.SetupArtifactDefinition,\n activate: ArtifactDefinition,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CHESS_PLUGIN } from './meta';\nimport { ChessType } from './types';\n\nexport default [\n {\n 'en-US': {\n [ChessType.typename]: {\n 'typename label': 'Game',\n },\n [CHESS_PLUGIN]: {\n 'plugin name': 'Chess',\n 'game title placeholder': 'New game',\n 'create game label': 'Create game',\n 'delete game label': 'Delete',\n },\n },\n },\n];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAqB;ACArB,IAAAA,wBAA4F;AAC5F,2BAA6B;AAC7B,0BAAkC;AAClC,mBAAiC;ADD1B,IAAMC,yBAAqBC,2BAAK,MAAM,OAAO,oCAAA,CAAA;AAC7C,IAAMC,qBAAiBD,2BAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,mBAAeF,2BAAK,MAAM,OAAO,8BAAA,CAAA;AED9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACG,gCAAUC,QAAQ,GAAG;QACpB,kBAAkB;MACpB;MACA,CAACC,kCAAAA,GAAe;QACd,eAAe;QACf,0BAA0B;QAC1B,qBAAqB;QACrB,qBAAqB;MACvB;IACF;EACF;;ADNK,IAAMC,cAAc,UACzBC,oCAAaC,4BAAM;MACjBC,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOC;IACpBC,UAAU,UAAMC,mCAAYC,mCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAT,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOO;IACpBL,UAAU,UACRC,mCAAYC,mCAAaI,UAAU;MACjCV,IAAIP,gCAAUC;MACdiB,UAAU;QACRC,aAAa;UAAC;UAA0B;YAAEC,IAAIlB;UAAa;;QAC3DmB,MAAM;MACR;IACF,CAAA;EACJ,CAAA;MACAf,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAac,kCAAaC;IAC1BZ,UAAU,UACRC,mCACEY,sCAAkBC,gBAClBC,+BAAiB;MACfC,cAAc3B;MACd4B,WAAW,UAAMC,oCAAaC,kCAAYC,MAAM;IAClD,CAAA,CAAA;EAEN,CAAA;MACAzB,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOuB;IACpBrB,UAAUZ;EACZ,CAAA;MACAO,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOwB;IACpBtB,UAAUb;EACZ,CAAA;MACAQ,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOyB;IACpBvB,UAAUf;EACZ,CAAA;CACD;",
6
+ "names": ["import_app_framework", "ArtifactDefinition", "lazy", "IntentResolver", "ReactSurface", "ChessType", "typename", "CHESS_PLUGIN", "ChessPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "metadata", "placeholder", "ns", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ChessAction", "Create", "SetupReactSurface", "SetupIntentResolver", "SetupArtifactDefinition"]
7
7
  }
@@ -16,19 +16,28 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var intent_resolver_VTB6P3IL_exports = {};
20
- __export(intent_resolver_VTB6P3IL_exports, {
19
+ var intent_resolver_TZFKPQOV_exports = {};
20
+ __export(intent_resolver_TZFKPQOV_exports, {
21
21
  default: () => intent_resolver_default
22
22
  });
23
- module.exports = __toCommonJS(intent_resolver_VTB6P3IL_exports);
24
- var import_chunk_3BLH7NRV = require("./chunk-3BLH7NRV.cjs");
23
+ module.exports = __toCommonJS(intent_resolver_TZFKPQOV_exports);
24
+ var import_chunk_VXYRI6VA = require("./chunk-VXYRI6VA.cjs");
25
+ var import_chess = require("chess.js");
25
26
  var import_app_framework = require("@dxos/app-framework");
26
27
  var import_live_object = require("@dxos/live-object");
27
- var intent_resolver_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, (0, import_app_framework.createResolver)(import_chunk_3BLH7NRV.ChessAction.Create, ({ name }) => ({
28
- data: {
29
- object: (0, import_live_object.create)(import_chunk_3BLH7NRV.GameType, {
30
- name
31
- })
28
+ var intent_resolver_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, (0, import_app_framework.createResolver)({
29
+ intent: import_chunk_VXYRI6VA.ChessAction.Create,
30
+ resolve: ({ name, fen }) => {
31
+ const pgn = fen ? new import_chess.Chess(fen).pgn() : void 0;
32
+ return {
33
+ data: {
34
+ object: (0, import_live_object.create)(import_chunk_VXYRI6VA.ChessType, {
35
+ name,
36
+ fen,
37
+ pgn
38
+ })
39
+ }
40
+ };
32
41
  }
33
- })));
34
- //# sourceMappingURL=intent-resolver-VTB6P3IL.cjs.map
42
+ }));
43
+ //# sourceMappingURL=intent-resolver-TZFKPQOV.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/intent-resolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Chess } from 'chess.js';\n\nimport { Capabilities, contributes, createResolver } from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\n\nimport { ChessAction, ChessType } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: ChessAction.Create,\n resolve: ({ name, fen }) => {\n const pgn = fen ? new Chess(fen).pgn() : undefined;\n return {\n data: {\n object: create(ChessType, { name, fen, pgn }),\n },\n };\n },\n }),\n );\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAsB;AAEtB,2BAA0D;AAC1D,yBAAuB;AAIvB,IAAA,0BAAe,UACbA,kCACEC,kCAAaC,oBACbC,qCAAe;EACbC,QAAQC,kCAAYC;EACpBC,SAAS,CAAC,EAAEC,MAAMC,IAAG,MAAE;AACrB,UAAMC,MAAMD,MAAM,IAAIE,mBAAMF,GAAAA,EAAKC,IAAG,IAAKE;AACzC,WAAO;MACLC,MAAM;QACJC,YAAQC,2BAAOC,iCAAW;UAAER;UAAMC;UAAKC;QAAI,CAAA;MAC7C;IACF;EACF;AACF,CAAA,CAAA;",
6
+ "names": ["contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ChessAction", "Create", "resolve", "name", "fen", "pgn", "Chess", "undefined", "data", "object", "create", "ChessType"]
7
+ }
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2461,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/meta.ts":{"bytes":1411,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":2799,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-chess/src/types/index.ts":{"bytes":586,"imports":[{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytes":1974,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/custom.tsx":{"bytes":32344,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/phosphor.tsx":{"bytes":6674,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/riohacha.tsx":{"bytes":30948,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/index.ts":{"bytes":704,"imports":[{"path":"packages/plugins/plugin-chess/src/components/Chessboard/pieces/custom.tsx","kind":"import-statement","original":"./custom"},{"path":"packages/plugins/plugin-chess/src/components/Chessboard/pieces/phosphor.tsx","kind":"import-statement","original":"./phosphor"},{"path":"packages/plugins/plugin-chess/src/components/Chessboard/pieces/riohacha.tsx","kind":"import-statement","original":"./riohacha"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/Chessboard/Chessboard.tsx":{"bytes":15769,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-chessboard","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/Chessboard/pieces/index.ts","kind":"import-statement","original":"./pieces"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/Chessboard/index.ts":{"bytes":529,"imports":[{"path":"packages/plugins/plugin-chess/src/components/Chessboard/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/Chess.tsx":{"bytes":14027,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/Chessboard/index.ts","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":2405,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/Chess.tsx","kind":"import-statement","original":"./Chess"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/index.ts":{"bytes":798,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","kind":"dynamic-import","original":"./ChessContainer"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytes":2649,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytes":1080,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-chess/src/translations.ts":{"bytes":1819,"imports":[{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytes":6788,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/index.ts":{"bytes":592,"imports":[{"path":"packages/plugins/plugin-chess/src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-chess/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4360},"packages/plugins/plugin-chess/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-3BLH7NRV.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-VTB6P3IL.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/react-surface-PO42G64E.cjs","kind":"dynamic-import"}],"exports":["CHESS_PLUGIN","ChessPlugin","meta"],"entryPoint":"packages/plugins/plugin-chess/src/index.ts","inputs":{"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytesInOutput":1355},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-chess/src/translations.ts":{"bytesInOutput":324},"packages/plugins/plugin-chess/src/index.ts":{"bytesInOutput":0}},"bytes":2266},"packages/plugins/plugin-chess/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/node/types/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-3BLH7NRV.cjs","kind":"import-statement"}],"exports":["ChessAction","GameType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":192},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-VTB6P3IL.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":978},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-VTB6P3IL.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-3BLH7NRV.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytesInOutput":323}},"bytes":562},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-XRP7D63X.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":47068},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-XRP7D63X.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-chessboard","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","inputs":{"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytesInOutput":495},"packages/plugins/plugin-chess/src/components/Chess.tsx":{"bytesInOutput":3989},"packages/plugins/plugin-chess/src/components/Chessboard/Chessboard.tsx":{"bytesInOutput":2364},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/custom.tsx":{"bytesInOutput":12536},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/phosphor.tsx":{"bytesInOutput":1678},"packages/plugins/plugin-chess/src/components/Chessboard/pieces/riohacha.tsx":{"bytesInOutput":11516},"packages/plugins/plugin-chess/src/components/Chessboard/index.ts":{"bytesInOutput":0}},"bytes":33320},"packages/plugins/plugin-chess/dist/lib/node/react-surface-PO42G64E.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1559},"packages/plugins/plugin-chess/dist/lib/node/react-surface-PO42G64E.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-3BLH7NRV.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-XRP7D63X.cjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytesInOutput":434},"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":900},"packages/plugins/plugin-chess/dist/lib/node/chunk-3BLH7NRV.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3210},"packages/plugins/plugin-chess/dist/lib/node/chunk-3BLH7NRV.cjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","ChessAction","GameType","MoveSchema","isObject","meta"],"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytesInOutput":430},"packages/plugins/plugin-chess/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/types/types.ts":{"bytesInOutput":558},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":247}},"bytes":1573}}}
1
+ {"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2089,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2700,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":3051,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-chess/src/types/index.ts":{"bytes":586,"imports":[{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytes":18402,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytes":2748,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytes":4522,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytes":8761,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3335,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx","kind":"import-statement","original":"./PlayerSelector"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/index.ts":{"bytes":908,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","kind":"dynamic-import","original":"./ChessContainer"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytes":3926,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"../components/ChessComponent"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytes":1365,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","kind":"dynamic-import","original":"./artifact-definition"},{"path":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-chess/src/translations.ts":{"bytes":1825,"imports":[{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytes":7895,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/index.ts":{"bytes":790,"imports":[{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-chess/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5064},"packages/plugins/plugin-chess/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-YDPYM4NV.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TZFKPQOV.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/react-surface-OHQIPHSN.cjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["ArtifactDefinition","CHESS_PLUGIN","ChessComponent","ChessContainer","ChessPlugin","IntentResolver","ReactSurface","meta"],"entryPoint":"packages/plugins/plugin-chess/src/index.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytesInOutput":273},"packages/plugins/plugin-chess/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytesInOutput":1623},"packages/plugins/plugin-chess/src/translations.ts":{"bytesInOutput":325}},"bytes":2825},"packages/plugins/plugin-chess/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/node/types/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":194},"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-YDPYM4NV.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8015},"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-YDPYM4NV.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytesInOutput":5714}},"bytes":5974},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TZFKPQOV.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1374},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TZFKPQOV.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytesInOutput":511}},"bytes":751},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-LEPLNICP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6188},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-LEPLNICP.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","inputs":{"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytesInOutput":811},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2299}},"bytes":3472},"packages/plugins/plugin-chess/dist/lib/node/react-surface-OHQIPHSN.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1850},"packages/plugins/plugin-chess/dist/lib/node/react-surface-OHQIPHSN.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytesInOutput":745}},"bytes":1107},"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":402},"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-LEPLNICP.cjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":235},"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3767},"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","ChessAction","ChessType","MoveSchema","isObject","meta"],"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytesInOutput":501},"packages/plugins/plugin-chess/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/types/types.ts":{"bytesInOutput":613},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":513}},"bytes":1966},"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2436},"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs":{"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["ChessComponent"],"inputs":{"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytesInOutput":990}},"bytes":1131}}}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var react_surface_OHQIPHSN_exports = {};
30
+ __export(react_surface_OHQIPHSN_exports, {
31
+ default: () => react_surface_default
32
+ });
33
+ module.exports = __toCommonJS(react_surface_OHQIPHSN_exports);
34
+ var import_chunk_ITDMCBQQ = require("./chunk-ITDMCBQQ.cjs");
35
+ var import_chunk_VXYRI6VA = require("./chunk-VXYRI6VA.cjs");
36
+ var import_chunk_CSRNUKOH = require("./chunk-CSRNUKOH.cjs");
37
+ var import_react = __toESM(require("react"));
38
+ var import_app_framework = require("@dxos/app-framework");
39
+ var import_echo_schema = require("@dxos/echo-schema");
40
+ var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, [
41
+ (0, import_app_framework.createSurface)({
42
+ id: import_chunk_VXYRI6VA.CHESS_PLUGIN,
43
+ role: [
44
+ "article",
45
+ "section"
46
+ ],
47
+ filter: (data) => (0, import_chunk_VXYRI6VA.isObject)(data.subject),
48
+ component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_ITDMCBQQ.ChessContainer, {
49
+ game: data.subject,
50
+ role
51
+ })
52
+ }),
53
+ (0, import_app_framework.createSurface)({
54
+ id: "plugin-chess",
55
+ role: "canvas-node",
56
+ filter: (data) => (0, import_echo_schema.isInstanceOf)(import_chunk_VXYRI6VA.ChessType, data),
57
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_CSRNUKOH.ChessComponent, {
58
+ game: data
59
+ })
60
+ })
61
+ ]);
62
+ //# sourceMappingURL=react-surface-OHQIPHSN.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\n\nimport { ChessContainer } from '../components';\nimport { ChessComponent } from '../components/ChessComponent';\nimport { CHESS_PLUGIN } from '../meta';\nimport { ChessType, isObject } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: CHESS_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: ChessType } => isObject(data.subject),\n component: ({ data, role }) => <ChessContainer game={data.subject} role={role} />,\n }),\n createSurface({\n id: 'plugin-chess',\n role: 'canvas-node',\n filter: (data): data is any => isInstanceOf(ChessType, data),\n component: ({ data }) => <ChessComponent game={data} />,\n }),\n ]);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAAyD;AACzD,yBAA6B;AAO7B,IAAA,wBAAe,UACbA,kCAAYC,kCAAaC,cAAc;MACrCC,oCAAc;IACZC,IAAIC;IACJC,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,aAAyCC,gCAASD,KAAKE,OAAO;IACvEC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,6BAAAM,QAAA,cAACC,sCAAAA;MAAeC,MAAMN,KAAKE;MAASJ;;EACrE,CAAA;MACAH,oCAAc;IACZC,IAAI;IACJE,MAAM;IACNC,QAAQ,CAACC,aAAsBO,iCAAaC,iCAAWR,IAAAA;IACvDG,WAAW,CAAC,EAAEH,KAAI,MAAO,6BAAAI,QAAA,cAACK,sCAAAA;MAAeH,MAAMN;;EACjD,CAAA;CACD;",
6
+ "names": ["contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CHESS_PLUGIN", "role", "filter", "data", "isObject", "subject", "component", "React", "ChessContainer", "game", "isInstanceOf", "ChessType", "ChessComponent"]
7
+ }
@@ -18,17 +18,17 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var types_exports = {};
20
20
  __export(types_exports, {
21
- ChessAction: () => import_chunk_3BLH7NRV.ChessAction,
22
- GameType: () => import_chunk_3BLH7NRV.GameType,
23
- MoveSchema: () => import_chunk_3BLH7NRV.MoveSchema,
24
- isObject: () => import_chunk_3BLH7NRV.isObject
21
+ ChessAction: () => import_chunk_VXYRI6VA.ChessAction,
22
+ ChessType: () => import_chunk_VXYRI6VA.ChessType,
23
+ MoveSchema: () => import_chunk_VXYRI6VA.MoveSchema,
24
+ isObject: () => import_chunk_VXYRI6VA.isObject
25
25
  });
26
26
  module.exports = __toCommonJS(types_exports);
27
- var import_chunk_3BLH7NRV = require("../chunk-3BLH7NRV.cjs");
27
+ var import_chunk_VXYRI6VA = require("../chunk-VXYRI6VA.cjs");
28
28
  // Annotate the CommonJS export names for ESM import in node:
29
29
  0 && (module.exports = {
30
30
  ChessAction,
31
- GameType,
31
+ ChessType,
32
32
  MoveSchema,
33
33
  isObject
34
34
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.cjs"],
4
- "sourcesContent": ["import {\n ChessAction,\n GameType,\n MoveSchema,\n isObject\n} from \"../chunk-3BLH7NRV.cjs\";\nexport {\n ChessAction,\n GameType,\n MoveSchema,\n isObject\n};\n//# sourceMappingURL=index.cjs.map\n"],
4
+ "sourcesContent": ["import {\n ChessAction,\n ChessType,\n MoveSchema,\n isObject\n} from \"../chunk-VXYRI6VA.cjs\";\nexport {\n ChessAction,\n ChessType,\n MoveSchema,\n isObject\n};\n//# sourceMappingURL=index.cjs.map\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAKO;",
6
6
  "names": []
7
7
  }