@dxos/plugin-chess 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7

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 (159) hide show
  1. package/dist/lib/browser/ChessArticle-UDSL3OJ4.mjs +59 -0
  2. package/dist/lib/browser/ChessArticle-UDSL3OJ4.mjs.map +7 -0
  3. package/dist/lib/browser/ChessCard-OIRFQMOJ.mjs +21 -0
  4. package/dist/lib/browser/ChessCard-OIRFQMOJ.mjs.map +7 -0
  5. package/dist/lib/browser/blueprint-definition-LWRZPLQL.mjs +18 -0
  6. package/dist/lib/browser/blueprint-definition-LWRZPLQL.mjs.map +7 -0
  7. package/dist/lib/browser/blueprints/index.mjs +4 -4
  8. package/dist/lib/browser/{chunk-73BDP7UV.mjs → chunk-JP6G6VR6.mjs} +30 -29
  9. package/dist/lib/browser/chunk-JP6G6VR6.mjs.map +7 -0
  10. package/dist/lib/browser/{chunk-H3NUMCQ6.mjs → chunk-RGHZ5CDO.mjs} +2 -2
  11. package/dist/lib/browser/{chunk-H3NUMCQ6.mjs.map → chunk-RGHZ5CDO.mjs.map} +1 -1
  12. package/dist/lib/browser/{chunk-FO4ZNFN6.mjs → chunk-VK2W2UDJ.mjs} +44 -42
  13. package/dist/lib/browser/chunk-VK2W2UDJ.mjs.map +7 -0
  14. package/dist/lib/browser/chunk-WYUTI2K4.mjs +1 -0
  15. package/dist/lib/browser/chunk-WYUTI2K4.mjs.map +7 -0
  16. package/dist/lib/browser/{chunk-66H3V2YV.mjs → chunk-YJ2NLHEY.mjs} +3 -3
  17. package/dist/lib/browser/{chunk-66H3V2YV.mjs.map → chunk-YJ2NLHEY.mjs.map} +1 -1
  18. package/dist/lib/browser/cli/index.mjs +10 -10
  19. package/dist/lib/browser/cli/index.mjs.map +3 -3
  20. package/dist/lib/browser/index.mjs +21 -26
  21. package/dist/lib/browser/index.mjs.map +3 -3
  22. package/dist/lib/browser/meta.json +1 -1
  23. package/dist/lib/browser/react-surface-M7QMAFTB.mjs +50 -0
  24. package/dist/lib/browser/react-surface-M7QMAFTB.mjs.map +7 -0
  25. package/dist/lib/browser/types/index.mjs +1 -1
  26. package/dist/lib/node-esm/ChessArticle-76MOXLJM.mjs +60 -0
  27. package/dist/lib/node-esm/ChessArticle-76MOXLJM.mjs.map +7 -0
  28. package/dist/lib/node-esm/ChessCard-TKNQP6IO.mjs +22 -0
  29. package/dist/lib/node-esm/ChessCard-TKNQP6IO.mjs.map +7 -0
  30. package/dist/lib/node-esm/{blueprint-definition-SL4LBVV5.mjs → blueprint-definition-CJZXRDEQ.mjs} +7 -7
  31. package/dist/lib/node-esm/blueprint-definition-CJZXRDEQ.mjs.map +7 -0
  32. package/dist/lib/node-esm/blueprints/index.mjs +4 -4
  33. package/dist/lib/node-esm/chunk-7XDEO6IJ.mjs +2 -0
  34. package/dist/lib/node-esm/chunk-7XDEO6IJ.mjs.map +7 -0
  35. package/dist/lib/node-esm/{chunk-WXEPWOHT.mjs → chunk-FK7NVSOG.mjs} +30 -29
  36. package/dist/lib/node-esm/chunk-FK7NVSOG.mjs.map +7 -0
  37. package/dist/lib/node-esm/{chunk-F5OMIM4F.mjs → chunk-FYPVCMP4.mjs} +2 -2
  38. package/dist/lib/node-esm/{chunk-F5OMIM4F.mjs.map → chunk-FYPVCMP4.mjs.map} +1 -1
  39. package/dist/lib/node-esm/{chunk-C7IWIXCJ.mjs → chunk-G3QQRYZC.mjs} +44 -42
  40. package/dist/lib/node-esm/chunk-G3QQRYZC.mjs.map +7 -0
  41. package/dist/lib/node-esm/{chunk-OUNGNJFP.mjs → chunk-J6AJLY2O.mjs} +3 -3
  42. package/dist/lib/node-esm/{chunk-OUNGNJFP.mjs.map → chunk-J6AJLY2O.mjs.map} +1 -1
  43. package/dist/lib/node-esm/cli/index.mjs +10 -10
  44. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  45. package/dist/lib/node-esm/index.mjs +21 -26
  46. package/dist/lib/node-esm/index.mjs.map +3 -3
  47. package/dist/lib/node-esm/meta.json +1 -1
  48. package/dist/lib/node-esm/react-surface-DKM6ICBU.mjs +51 -0
  49. package/dist/lib/node-esm/react-surface-DKM6ICBU.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 +3 -20
  53. package/dist/types/src/blueprints/chess-blueprint.d.ts.map +1 -1
  54. package/dist/types/src/blueprints/functions/create.d.ts +1 -1
  55. package/dist/types/src/blueprints/functions/index.d.ts +55 -4
  56. package/dist/types/src/blueprints/functions/index.d.ts.map +1 -1
  57. package/dist/types/src/blueprints/functions/move.d.ts +9 -1
  58. package/dist/types/src/blueprints/functions/move.d.ts.map +1 -1
  59. package/dist/types/src/blueprints/functions/play.d.ts +9 -1
  60. package/dist/types/src/blueprints/functions/play.d.ts.map +1 -1
  61. package/dist/types/src/blueprints/index.d.ts +1 -1
  62. package/dist/types/src/blueprints/index.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts +1 -1
  64. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +3 -6
  65. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -1
  66. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +1 -1
  67. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -1
  68. package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
  69. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
  70. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
  71. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
  72. package/dist/types/src/cli/plugin.d.ts.map +1 -1
  73. package/dist/types/src/components/{Chessboard.d.ts → Chessboard/Chessboard.d.ts} +3 -8
  74. package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -0
  75. package/dist/types/src/components/{Info.d.ts → Chessboard/Info.d.ts} +1 -1
  76. package/dist/types/src/components/Chessboard/Info.d.ts.map +1 -0
  77. package/dist/types/src/components/Chessboard/index.d.ts +2 -0
  78. package/dist/types/src/components/Chessboard/index.d.ts.map +1 -0
  79. package/dist/types/src/components/Chessboard/types.d.ts +8 -0
  80. package/dist/types/src/components/Chessboard/types.d.ts.map +1 -0
  81. package/dist/types/src/components/index.d.ts +0 -1
  82. package/dist/types/src/components/index.d.ts.map +1 -1
  83. package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts +6 -0
  84. package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts.map +1 -0
  85. package/dist/types/src/{components/Chessboard.stories.d.ts → containers/ChessArticle/ChessArticle.stories.d.ts} +3 -2
  86. package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts.map +1 -0
  87. package/dist/types/src/containers/ChessArticle/index.d.ts +3 -0
  88. package/dist/types/src/containers/ChessArticle/index.d.ts.map +1 -0
  89. package/dist/types/src/containers/ChessCard/ChessCard.d.ts +6 -0
  90. package/dist/types/src/containers/ChessCard/ChessCard.d.ts.map +1 -0
  91. package/dist/types/src/{components/Card.stories.d.ts → containers/ChessCard/ChessCard.stories.d.ts} +1 -1
  92. package/dist/types/src/containers/ChessCard/ChessCard.stories.d.ts.map +1 -0
  93. package/dist/types/src/containers/ChessCard/index.d.ts +3 -0
  94. package/dist/types/src/containers/ChessCard/index.d.ts.map +1 -0
  95. package/dist/types/src/containers/index.d.ts +4 -0
  96. package/dist/types/src/containers/index.d.ts.map +1 -0
  97. package/dist/types/src/index.d.ts +1 -1
  98. package/dist/types/src/index.d.ts.map +1 -1
  99. package/dist/types/src/translations.d.ts +1 -0
  100. package/dist/types/src/translations.d.ts.map +1 -1
  101. package/dist/types/src/types/Chess.d.ts +1 -1
  102. package/dist/types/tsconfig.tsbuildinfo +1 -1
  103. package/package.json +45 -44
  104. package/src/ChessPlugin.tsx +8 -8
  105. package/src/blueprints/chess-blueprint.ts +14 -6
  106. package/src/blueprints/functions/create.ts +2 -2
  107. package/src/blueprints/functions/index.ts +13 -4
  108. package/src/blueprints/functions/move.ts +11 -12
  109. package/src/blueprints/functions/play.ts +5 -6
  110. package/src/blueprints/functions/print.ts +1 -1
  111. package/src/blueprints/index.ts +1 -1
  112. package/src/capabilities/blueprint-definition/blueprint-definition.ts +6 -12
  113. package/src/capabilities/react-surface/react-surface.tsx +13 -7
  114. package/src/cli/plugin.ts +4 -4
  115. package/src/components/{Chessboard.tsx → Chessboard/Chessboard.tsx} +24 -26
  116. package/src/components/{Info.tsx → Chessboard/Info.tsx} +12 -10
  117. package/src/components/Chessboard/index.ts +5 -0
  118. package/src/components/Chessboard/types.ts +18 -0
  119. package/src/components/index.ts +1 -5
  120. package/src/{components/Chessboard.stories.tsx → containers/ChessArticle/ChessArticle.stories.tsx} +7 -7
  121. package/src/containers/ChessArticle/ChessArticle.tsx +72 -0
  122. package/src/containers/ChessArticle/index.ts +7 -0
  123. package/src/{components/Card.stories.tsx → containers/ChessCard/ChessCard.stories.tsx} +9 -14
  124. package/src/containers/ChessCard/ChessCard.tsx +22 -0
  125. package/src/containers/ChessCard/index.ts +7 -0
  126. package/src/containers/index.ts +8 -0
  127. package/src/index.ts +1 -1
  128. package/src/meta.ts +1 -1
  129. package/src/translations.ts +1 -0
  130. package/src/types/Chess.ts +2 -2
  131. package/dist/lib/browser/ChessboardContainer-JZ4ANG4O.mjs +0 -81
  132. package/dist/lib/browser/ChessboardContainer-JZ4ANG4O.mjs.map +0 -7
  133. package/dist/lib/browser/blueprint-definition-P7TYXWMF.mjs +0 -18
  134. package/dist/lib/browser/blueprint-definition-P7TYXWMF.mjs.map +0 -7
  135. package/dist/lib/browser/chunk-73BDP7UV.mjs.map +0 -7
  136. package/dist/lib/browser/chunk-FO4ZNFN6.mjs.map +0 -7
  137. package/dist/lib/browser/chunk-OW6S2SRG.mjs +0 -8
  138. package/dist/lib/browser/chunk-OW6S2SRG.mjs.map +0 -7
  139. package/dist/lib/browser/react-surface-VNOWFKC6.mjs +0 -37
  140. package/dist/lib/browser/react-surface-VNOWFKC6.mjs.map +0 -7
  141. package/dist/lib/node-esm/ChessboardContainer-7ONFYN7L.mjs +0 -82
  142. package/dist/lib/node-esm/ChessboardContainer-7ONFYN7L.mjs.map +0 -7
  143. package/dist/lib/node-esm/blueprint-definition-SL4LBVV5.mjs.map +0 -7
  144. package/dist/lib/node-esm/chunk-24GJHLHM.mjs +0 -10
  145. package/dist/lib/node-esm/chunk-24GJHLHM.mjs.map +0 -7
  146. package/dist/lib/node-esm/chunk-C7IWIXCJ.mjs.map +0 -7
  147. package/dist/lib/node-esm/chunk-WXEPWOHT.mjs.map +0 -7
  148. package/dist/lib/node-esm/react-surface-HSHCIOAS.mjs +0 -38
  149. package/dist/lib/node-esm/react-surface-HSHCIOAS.mjs.map +0 -7
  150. package/dist/types/src/components/Card.stories.d.ts.map +0 -1
  151. package/dist/types/src/components/Chessboard.d.ts.map +0 -1
  152. package/dist/types/src/components/Chessboard.stories.d.ts.map +0 -1
  153. package/dist/types/src/components/ChessboardArticle.d.ts +0 -6
  154. package/dist/types/src/components/ChessboardArticle.d.ts.map +0 -1
  155. package/dist/types/src/components/ChessboardContainer.d.ts +0 -7
  156. package/dist/types/src/components/ChessboardContainer.d.ts.map +0 -1
  157. package/dist/types/src/components/Info.d.ts.map +0 -1
  158. package/src/components/ChessboardArticle.tsx +0 -71
  159. package/src/components/ChessboardContainer.tsx +0 -40
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types/Chess.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Chess as ChessJS } from 'chess.js';\nimport * as Schema from 'effect/Schema';\n\nimport { 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: 'dxos.org/type/Chess',\n version: '0.2.0',\n }),\n LabelAnnotation.set(['name']),\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"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Chess as ChessJS } from 'chess.js';\nimport * as Schema from 'effect/Schema';\n\nimport { 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);\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
5
  "mappings": ";;;;;;AAAA;;;;;AAIA,SAASA,SAASC,eAAe;AACjC,YAAYC,YAAY;AAExB,SAASC,KAAKC,YAAY;AAC1B,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,CAAA;AAKvB,IAAMM,OAAO,CAAC,EAAEf,MAAMU,KAAKC,IAAG,IAAoD,CAAC,MAAC;AACzF,QAAMK,QAAQ,IAAIzB,QAAAA;AAClB,MAAImB,KAAK;AACP,QAAI;AACFM,YAAMC,QAAQP,GAAAA;IAChB,QAAQ;AACNb,UAAIqB,KAAKR,KAAAA,QAAAA;;;;;;IACX;EACF;AAEA,SAAOjB,IAAIsB,KAAKjB,MAAM;IACpBE;IACAU;IACAC;IACAR,SAAS,CAAC;EACZ,CAAA;AACF;",
6
6
  "names": ["Chess", "ChessJS", "Schema", "Obj", "Type", "FormInputAnnotation", "LabelAnnotation", "log", "Game", "Struct", "name", "optional", "String", "players", "white", "annotations", "description", "black", "pipe", "set", "pgn", "fen", "object", "typename", "version", "make", "chess", "loadPgn", "warn"]
7
7
  }
@@ -1,27 +1,27 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  Chess_exports
4
- } from "../chunk-OUNGNJFP.mjs";
4
+ } from "../chunk-J6AJLY2O.mjs";
5
5
  import {
6
6
  meta
7
- } from "../chunk-F5OMIM4F.mjs";
7
+ } from "../chunk-FYPVCMP4.mjs";
8
8
  import "../chunk-HSLMI22Q.mjs";
9
9
 
10
10
  // src/cli/plugin.ts
11
11
  import * as Effect from "effect/Effect";
12
- import { Common, Plugin } from "@dxos/app-framework";
13
- var ChessPlugin = Plugin.define(meta).pipe(Common.Plugin.addSchemaModule({
14
- schema: [
15
- Chess_exports.Game
16
- ]
17
- }), Common.Plugin.addMetadataModule({
12
+ import { Plugin } from "@dxos/app-framework";
13
+ import { AppPlugin } from "@dxos/app-toolkit";
14
+ var ChessPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
18
15
  metadata: {
19
16
  id: Chess_exports.Game.typename,
20
17
  metadata: {
21
- createObject: (props) => Effect.sync(() => Chess_exports.make(props)),
22
- addToCollectionOnCreate: true
18
+ createObject: (props) => Effect.sync(() => Chess_exports.make(props))
23
19
  }
24
20
  }
21
+ }), AppPlugin.addSchemaModule({
22
+ schema: [
23
+ Chess_exports.Game
24
+ ]
25
25
  }), Plugin.make);
26
26
  export {
27
27
  ChessPlugin
@@ -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 { Common, Plugin } from '@dxos/app-framework';\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 Common.Plugin.addSchemaModule({ schema: [Chess.Game] }),\n Common.Plugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n addToCollectionOnCreate: true,\n },\n },\n }),\n Plugin.make,\n);\n"],
5
- "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,QAAQC,cAAc;AAOxB,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,OAAOJ,OAAOK,gBAAgB;EAAEC,QAAQ;IAACC,cAAMC;;AAAM,CAAA,GACrDJ,OAAOJ,OAAOS,kBAAkB;EAC9BC,UAAU;IACRC,IAAIJ,cAAMC,KAAKI;IACfF,UAAU;MACRG,cAAe,CAACC,UAAiBC,YAAK,MAAMR,cAAMS,KAAKF,KAAAA,CAAAA;MACvDG,yBAAyB;IAC3B;EACF;AACF,CAAA,GACAjB,OAAOgB,IAAI;",
6
- "names": ["Effect", "Common", "Plugin", "ChessPlugin", "Plugin", "define", "meta", "pipe", "Common", "addSchemaModule", "schema", "Chess", "Game", "addMetadataModule", "metadata", "id", "typename", "createObject", "props", "sync", "make", "addToCollectionOnCreate"]
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 { 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) => Effect.sync(() => Chess.make(props))) 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;AAOnB,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,cAAMC,KAAKC;IACfJ,UAAU;MACRK,cAAe,CAACC,UAAiBC,YAAK,MAAML,cAAMM,KAAKF,KAAAA,CAAAA;IACzD;EACF;AACF,CAAA,GACAR,UAAUW,gBAAgB;EAAEC,QAAQ;IAACR,cAAMC;;AAAM,CAAA,GACjDT,OAAOc,IAAI;",
6
+ "names": ["Effect", "Plugin", "AppPlugin", "ChessPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "createObject", "props", "sync", "make", "addSchemaModule", "schema"]
7
7
  }
@@ -1,34 +1,31 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- chess_blueprint_exports,
3
+ chess_blueprint_default,
4
4
  functions_exports
5
- } from "./chunk-C7IWIXCJ.mjs";
5
+ } from "./chunk-G3QQRYZC.mjs";
6
6
  import {
7
- ChessboardContainer
8
- } from "./chunk-24GJHLHM.mjs";
7
+ Chessboard
8
+ } from "./chunk-FK7NVSOG.mjs";
9
9
  import {
10
10
  Chess_exports
11
- } from "./chunk-OUNGNJFP.mjs";
12
- import {
13
- Chessboard,
14
- ExtendedChessModel
15
- } from "./chunk-WXEPWOHT.mjs";
11
+ } from "./chunk-J6AJLY2O.mjs";
16
12
  import {
17
13
  meta
18
- } from "./chunk-F5OMIM4F.mjs";
14
+ } from "./chunk-FYPVCMP4.mjs";
19
15
  import "./chunk-HSLMI22Q.mjs";
20
16
 
21
17
  // src/capabilities/blueprint-definition/index.ts
22
18
  import { Capability } from "@dxos/app-framework";
23
- var BlueprintDefinition = Capability.lazy("BlueprintDefinition", () => import("./blueprint-definition-SL4LBVV5.mjs"));
19
+ var BlueprintDefinition = Capability.lazy("BlueprintDefinition", () => import("./blueprint-definition-CJZXRDEQ.mjs"));
24
20
 
25
21
  // src/capabilities/react-surface/index.ts
26
22
  import { Capability as Capability2 } from "@dxos/app-framework";
27
- var ReactSurface = Capability2.lazy("ReactSurface", () => import("./react-surface-HSHCIOAS.mjs"));
23
+ var ReactSurface = Capability2.lazy("ReactSurface", () => import("./react-surface-DKM6ICBU.mjs"));
28
24
 
29
25
  // src/ChessPlugin.tsx
30
26
  import * as Effect from "effect/Effect";
31
- import { Common, Plugin } from "@dxos/app-framework";
27
+ import { Plugin } from "@dxos/app-framework";
28
+ import { AppPlugin } from "@dxos/app-toolkit";
32
29
 
33
30
  // src/translations.ts
34
31
  var translations = [
@@ -40,6 +37,7 @@ var translations = [
40
37
  "typename label_one": "Game",
41
38
  "typename label_other": "Games",
42
39
  "object name placeholder": "New game",
40
+ "add object label": "Add game",
43
41
  "rename object label": "Rename game",
44
42
  "delete object label": "Delete game",
45
43
  "object deleted label": "Game deleted"
@@ -61,39 +59,36 @@ var translations = [
61
59
  ];
62
60
 
63
61
  // src/ChessPlugin.tsx
64
- var ChessPlugin = Plugin.define(meta).pipe(Common.Plugin.addTranslationsModule({
65
- translations
66
- }), Common.Plugin.addMetadataModule({
62
+ var ChessPlugin = Plugin.define(meta).pipe(AppPlugin.addBlueprintDefinitionModule({
63
+ activate: BlueprintDefinition
64
+ }), AppPlugin.addMetadataModule({
67
65
  metadata: {
68
66
  id: Chess_exports.Game.typename,
69
67
  metadata: {
70
68
  icon: "ph--shield-chevron--regular",
71
69
  iconHue: "amber",
72
70
  blueprints: [
73
- chess_blueprint_exports.Key
71
+ chess_blueprint_default.key
74
72
  ],
75
- createObject: (props) => Effect.sync(() => Chess_exports.make(props)),
76
- addToCollectionOnCreate: true
73
+ createObject: (props) => Effect.sync(() => Chess_exports.make(props))
77
74
  }
78
75
  }
79
- }), Common.Plugin.addSchemaModule({
76
+ }), AppPlugin.addSchemaModule({
80
77
  schema: [
81
78
  Chess_exports.Game
82
79
  ]
83
- }), Common.Plugin.addSurfaceModule({
80
+ }), AppPlugin.addSurfaceModule({
84
81
  activate: ReactSurface
85
- }), Common.Plugin.addBlueprintDefinitionModule({
86
- activate: BlueprintDefinition
82
+ }), AppPlugin.addTranslationsModule({
83
+ translations
87
84
  }), Plugin.make);
88
85
  export {
89
86
  BlueprintDefinition,
90
87
  Chess_exports as Chess,
91
- chess_blueprint_exports as ChessBlueprint,
88
+ chess_blueprint_default as ChessBlueprint,
92
89
  functions_exports as ChessFunctions,
93
90
  ChessPlugin,
94
91
  Chessboard,
95
- ChessboardContainer,
96
- ExtendedChessModel,
97
92
  ReactSurface,
98
93
  meta
99
94
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/blueprint-definition/index.ts", "../../../src/capabilities/react-surface/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Common, Plugin } from '@dxos/app-framework';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { ChessBlueprint } from './blueprints';\nimport { BlueprintDefinition, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\nimport { Chess } from './types';\n\nexport const ChessPlugin = Plugin.define(meta).pipe(\n Common.Plugin.addTranslationsModule({ translations }),\n Common.Plugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n icon: 'ph--shield-chevron--regular',\n iconHue: 'amber',\n blueprints: [ChessBlueprint.Key],\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n addToCollectionOnCreate: true,\n },\n },\n }),\n Common.Plugin.addSchemaModule({ schema: [Chess.Game] }),\n Common.Plugin.addSurfaceModule({ activate: ReactSurface }),\n Common.Plugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),\n Plugin.make,\n);\n", "//\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 '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": ";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,sBAAsBC,WAAWC,KAAK,uBAAuB,MAAM,OAAO,qCAAA,CAAA;;;ACFvF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACFzE,YAAYC,YAAY;AAExB,SAASC,QAAQC,cAAc;;;ACGxB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,cAAMC,KAAKC,QAAQ,GAAG;QACrB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,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;;;;ADpBK,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,OAAOJ,OAAOK,sBAAsB;EAAEC;AAAa,CAAA,GACnDF,OAAOJ,OAAOO,kBAAkB;EAC9BC,UAAU;IACRC,IAAIC,cAAMC,KAAKC;IACfJ,UAAU;MACRK,MAAM;MACNC,SAAS;MACTC,YAAY;QAACC,wBAAeC;;MAC5BC,cAAe,CAACC,UAAiBC,YAAK,MAAMV,cAAMW,KAAKF,KAAAA,CAAAA;MACvDG,yBAAyB;IAC3B;EACF;AACF,CAAA,GACAlB,OAAOJ,OAAOuB,gBAAgB;EAAEC,QAAQ;IAACd,cAAMC;;AAAM,CAAA,GACrDP,OAAOJ,OAAOyB,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACxDvB,OAAOJ,OAAO4B,6BAA6B;EAAEF,UAAUG;AAAoB,CAAA,GAC3E7B,OAAOqB,IAAI;",
6
- "names": ["Capability", "BlueprintDefinition", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "Effect", "Common", "Plugin", "translations", "Chess", "Game", "typename", "meta", "id", "ChessPlugin", "Plugin", "define", "meta", "pipe", "Common", "addTranslationsModule", "translations", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "icon", "iconHue", "blueprints", "ChessBlueprint", "Key", "createObject", "props", "sync", "make", "addToCollectionOnCreate", "addSchemaModule", "schema", "addSurfaceModule", "activate", "ReactSurface", "addBlueprintDefinitionModule", "BlueprintDefinition"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { ChessBlueprint } from './blueprints';\nimport { BlueprintDefinition, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\nimport { Chess } from './types';\n\nexport const ChessPlugin = Plugin.define(meta).pipe(\n AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),\n AppPlugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n icon: 'ph--shield-chevron--regular',\n iconHue: 'amber',\n blueprints: [ChessBlueprint.key],\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Chess.Game] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\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": ";;;;;;;;;;;;;;;;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,sBAAsBC,WAAWC,KAAK,uBAAuB,MAAM,OAAO,qCAAA,CAAA;;;ACFvF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACFzE,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;;;ACEnB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,cAAMC,KAAKC,QAAQ,GAAG;QACrB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,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;;;;ADpBK,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,6BAA6B;EAAEC,UAAUC;AAAoB,CAAA,GACvEH,UAAUI,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,cAAMC,KAAKC;IACfJ,UAAU;MACRK,MAAM;MACNC,SAAS;MACTC,YAAY;QAACC,wBAAeC;;MAC5BC,cAAe,CAACC,UAAiBC,YAAK,MAAMV,cAAMW,KAAKF,KAAAA,CAAAA;IACzD;EACF;AACF,CAAA,GACAhB,UAAUmB,gBAAgB;EAAEC,QAAQ;IAACb,cAAMC;;AAAM,CAAA,GACjDR,UAAUqB,iBAAiB;EAAEnB,UAAUoB;AAAa,CAAA,GACpDtB,UAAUuB,sBAAsB;EAAEC;AAAa,CAAA,GAC/C5B,OAAOsB,IAAI;",
6
+ "names": ["Capability", "BlueprintDefinition", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "Effect", "Plugin", "AppPlugin", "translations", "Chess", "Game", "typename", "meta", "id", "ChessPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addBlueprintDefinitionModule", "activate", "BlueprintDefinition", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "icon", "iconHue", "blueprints", "ChessBlueprint", "key", "createObject", "props", "sync", "make", "addSchemaModule", "schema", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/types/Chess.ts":{"bytes":5679,"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/blueprints/functions/create.ts":{"bytes":3827,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/move.ts":{"bytes":5507,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/play.ts":{"bytes":7206,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/print.ts":{"bytes":4017,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"format":"esm"},"src/blueprints/functions/index.ts":{"bytes":1031,"imports":[{"path":"src/blueprints/functions/create.ts","kind":"import-statement","original":"./create"},{"path":"src/blueprints/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/blueprints/functions/play.ts","kind":"import-statement","original":"./play"},{"path":"src/blueprints/functions/print.ts","kind":"import-statement","original":"./print"}],"format":"esm"},"src/blueprints/chess-blueprint.ts":{"bytes":3090,"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/blueprints/index.ts":{"bytes":747,"imports":[{"path":"src/blueprints/chess-blueprint.ts","kind":"import-statement","original":"./chess-blueprint"},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytes":2391,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/blueprints/index.ts","kind":"import-statement","original":"../../blueprints"}],"format":"esm"},"src/capabilities/blueprint-definition/index.ts":{"bytes":977,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"}],"format":"esm"},"src/meta.ts":{"bytes":2043,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/Info.tsx":{"bytes":24587,"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":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/Chessboard.tsx":{"bytes":14269,"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","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":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/components/Info.tsx","kind":"import-statement","original":"./Info"}],"format":"esm"},"src/components/ChessboardArticle.tsx":{"bytes":7938,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/ChessboardContainer.tsx":{"bytes":3320,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardArticle.tsx","kind":"import-statement","original":"./ChessboardArticle"}],"format":"esm"},"src/components/index.ts":{"bytes":877,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardContainer.tsx","kind":"dynamic-import","original":"./ChessboardContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":3585,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":602,"imports":[{"path":"src/capabilities/blueprint-definition/index.ts","kind":"import-statement","original":"./blueprint-definition"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3591,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":4502,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":916,"imports":[{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"},"src/cli/plugin.ts":{"bytes":2783,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/cli/index.ts":{"bytes":458,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4608},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-C7IWIXCJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-24GJHLHM.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-WXEPWOHT.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/blueprint-definition-SL4LBVV5.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-surface-HSHCIOAS.mjs","kind":"dynamic-import"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["BlueprintDefinition","Chess","ChessBlueprint","ChessFunctions","ChessPlugin","Chessboard","ChessboardContainer","ExtendedChessModel","ReactSurface","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/capabilities/blueprint-definition/index.ts":{"bytesInOutput":169},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/ChessPlugin.tsx":{"bytesInOutput":787},"src/translations.ts":{"bytesInOutput":879}},"bytes":2893},"dist/lib/node-esm/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/blueprints/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-C7IWIXCJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":374},"dist/lib/node-esm/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1439},"dist/lib/node-esm/cli/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["ChessPlugin"],"entryPoint":"src/cli/index.ts","inputs":{"src/cli/plugin.ts":{"bytesInOutput":455},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":767},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["Chess"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":253},"dist/lib/node-esm/blueprint-definition-SL4LBVV5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1289},"dist/lib/node-esm/blueprint-definition-SL4LBVV5.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-C7IWIXCJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/blueprint-definition/blueprint-definition.ts","inputs":{"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytesInOutput":417}},"bytes":816},"dist/lib/node-esm/chunk-C7IWIXCJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11991},"dist/lib/node-esm/chunk-C7IWIXCJ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"exports":["chess_blueprint_exports","functions_exports"],"inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":836},"src/blueprints/functions/index.ts":{"bytesInOutput":179},"src/blueprints/functions/create.ts":{"bytesInOutput":883},"src/blueprints/functions/move.ts":{"bytesInOutput":1372},"src/blueprints/functions/play.ts":{"bytesInOutput":1829},"src/blueprints/functions/print.ts":{"bytesInOutput":956},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":6623},"dist/lib/node-esm/ChessboardContainer-7ONFYN7L.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5933},"dist/lib/node-esm/ChessboardContainer-7ONFYN7L.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-WXEPWOHT.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["ChessboardContainer","default"],"entryPoint":"src/components/ChessboardContainer.tsx","inputs":{"src/components/ChessboardContainer.tsx":{"bytesInOutput":659},"src/components/ChessboardArticle.tsx":{"bytesInOutput":1841}},"bytes":2984},"dist/lib/node-esm/react-surface-HSHCIOAS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1719},"dist/lib/node-esm/react-surface-HSHCIOAS.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-24GJHLHM.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-WXEPWOHT.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":722}},"bytes":1193},"dist/lib/node-esm/chunk-24GJHLHM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":415},"dist/lib/node-esm/chunk-24GJHLHM.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/ChessboardContainer-7ONFYN7L.mjs","kind":"dynamic-import"}],"exports":["ChessboardContainer"],"inputs":{"src/components/index.ts":{"bytesInOutput":114}},"bytes":313},"dist/lib/node-esm/chunk-OUNGNJFP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2848},"dist/lib/node-esm/chunk-OUNGNJFP.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":1523},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1762},"dist/lib/node-esm/chunk-WXEPWOHT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20951},"dist/lib/node-esm/chunk-WXEPWOHT.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F5OMIM4F.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","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":"@dxos/ui-theme","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}],"exports":["Chessboard","ExtendedChessModel"],"inputs":{"src/components/Chessboard.tsx":{"bytesInOutput":3183},"src/components/Info.tsx":{"bytesInOutput":6359}},"bytes":9869},"dist/lib/node-esm/chunk-F5OMIM4F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":977},"dist/lib/node-esm/chunk-F5OMIM4F.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":515}},"bytes":687},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
1
+ {"inputs":{"src/types/Chess.ts":{"bytes":5679,"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/blueprints/functions/create.ts":{"bytes":3779,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/move.ts":{"bytes":5210,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/play.ts":{"bytes":6943,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/print.ts":{"bytes":4017,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"format":"esm"},"src/blueprints/functions/index.ts":{"bytes":1266,"imports":[{"path":"src/blueprints/functions/create.ts","kind":"import-statement","original":"./create"},{"path":"src/blueprints/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/blueprints/functions/play.ts","kind":"import-statement","original":"./play"},{"path":"src/blueprints/functions/print.ts","kind":"import-statement","original":"./print"}],"format":"esm"},"src/blueprints/chess-blueprint.ts":{"bytes":3319,"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/blueprints/index.ts":{"bytes":785,"imports":[{"path":"src/blueprints/chess-blueprint.ts","kind":"import-statement","original":"./chess-blueprint"},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytes":1972,"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":"src/blueprints/index.ts","kind":"import-statement","original":"../../blueprints"}],"format":"esm"},"src/capabilities/blueprint-definition/index.ts":{"bytes":977,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"}],"format":"esm"},"src/meta.ts":{"bytes":2043,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Info.tsx":{"bytes":24681,"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":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/components/Chessboard/types.ts":{"bytes":1304,"imports":[{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Chessboard.tsx":{"bytes":14374,"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":"@dxos/ui-theme","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/components/index.ts":{"bytes":473,"imports":[{"path":"src/components/Chessboard/index.ts","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/containers/ChessArticle/ChessArticle.tsx":{"bytes":8127,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/containers/ChessArticle/index.ts":{"bytes":656,"imports":[{"path":"src/containers/ChessArticle/ChessArticle.tsx","kind":"import-statement","original":"./ChessArticle"}],"format":"esm"},"src/containers/ChessCard/ChessCard.tsx":{"bytes":1770,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"}],"format":"esm"},"src/containers/ChessCard/index.ts":{"bytes":624,"imports":[{"path":"src/containers/ChessCard/ChessCard.tsx","kind":"import-statement","original":"./ChessCard"}],"format":"esm"},"src/containers/index.ts":{"bytes":1043,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/ChessArticle/index.ts","kind":"dynamic-import","original":"./ChessArticle"},{"path":"src/containers/ChessCard/index.ts","kind":"dynamic-import","original":"./ChessCard"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":4497,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/containers/index.ts","kind":"import-statement","original":"../../containers"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":602,"imports":[{"path":"src/capabilities/blueprint-definition/index.ts","kind":"import-statement","original":"./blueprint-definition"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3715,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":4354,"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":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":943,"imports":[{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"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":2699,"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":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/cli/index.ts":{"bytes":458,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4588},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-G3QQRYZC.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FK7NVSOG.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-J6AJLY2O.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FYPVCMP4.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/blueprint-definition-CJZXRDEQ.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-surface-DKM6ICBU.mjs","kind":"dynamic-import"},{"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}],"exports":["BlueprintDefinition","Chess","ChessBlueprint","ChessFunctions","ChessPlugin","Chessboard","ReactSurface","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/capabilities/blueprint-definition/index.ts":{"bytesInOutput":169},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/ChessPlugin.tsx":{"bytesInOutput":769},"src/translations.ts":{"bytesInOutput":919}},"bytes":2786},"dist/lib/node-esm/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/blueprints/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-G3QQRYZC.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-J6AJLY2O.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":374},"dist/lib/node-esm/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1395},"dist/lib/node-esm/cli/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-J6AJLY2O.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FYPVCMP4.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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}],"exports":["ChessPlugin"],"entryPoint":"src/cli/index.ts","inputs":{"src/cli/plugin.ts":{"bytesInOutput":449},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":761},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-J6AJLY2O.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["Chess"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":253},"dist/lib/node-esm/blueprint-definition-CJZXRDEQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1037},"dist/lib/node-esm/blueprint-definition-CJZXRDEQ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-G3QQRYZC.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-J6AJLY2O.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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}],"exports":["default"],"entryPoint":"src/capabilities/blueprint-definition/blueprint-definition.ts","inputs":{"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytesInOutput":363}},"bytes":762},"dist/lib/node-esm/chunk-G3QQRYZC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12008},"dist/lib/node-esm/chunk-G3QQRYZC.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-J6AJLY2O.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"exports":["chess_blueprint_default","functions_exports"],"inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":779},"src/blueprints/functions/index.ts":{"bytesInOutput":338},"src/blueprints/functions/create.ts":{"bytesInOutput":875},"src/blueprints/functions/move.ts":{"bytesInOutput":1293},"src/blueprints/functions/play.ts":{"bytesInOutput":1754},"src/blueprints/functions/print.ts":{"bytesInOutput":956},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":6601},"dist/lib/node-esm/ChessArticle-76MOXLJM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4667},"dist/lib/node-esm/ChessArticle-76MOXLJM.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7XDEO6IJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FK7NVSOG.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FYPVCMP4.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessArticle/index.ts","inputs":{"src/containers/ChessArticle/ChessArticle.tsx":{"bytesInOutput":1918},"src/containers/ChessArticle/index.ts":{"bytesInOutput":41}},"bytes":2400},"dist/lib/node-esm/ChessCard-TKNQP6IO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1136},"dist/lib/node-esm/ChessCard-TKNQP6IO.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7XDEO6IJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FK7NVSOG.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FYPVCMP4.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessCard/index.ts","inputs":{"src/containers/ChessCard/ChessCard.tsx":{"bytesInOutput":274},"src/containers/ChessCard/index.ts":{"bytesInOutput":35}},"bytes":719},"dist/lib/node-esm/chunk-7XDEO6IJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-7XDEO6IJ.mjs":{"imports":[],"exports":[],"inputs":{"src/components/index.ts":{"bytesInOutput":0}},"bytes":136},"dist/lib/node-esm/chunk-FK7NVSOG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21539},"dist/lib/node-esm/chunk-FK7NVSOG.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FYPVCMP4.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":"@dxos/ui-theme","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":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["Chessboard"],"inputs":{"src/components/Chessboard/Chessboard.tsx":{"bytesInOutput":2965},"src/components/Chessboard/Info.tsx":{"bytesInOutput":6381},"src/components/Chessboard/types.ts":{"bytesInOutput":201},"src/components/Chessboard/index.ts":{"bytesInOutput":0}},"bytes":9924},"dist/lib/node-esm/react-surface-DKM6ICBU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2623},"dist/lib/node-esm/react-surface-DKM6ICBU.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-J6AJLY2O.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FYPVCMP4.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/ChessArticle-76MOXLJM.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/ChessCard-TKNQP6IO.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":930},"src/containers/index.ts":{"bytesInOutput":164}},"bytes":1553},"dist/lib/node-esm/chunk-J6AJLY2O.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2848},"dist/lib/node-esm/chunk-J6AJLY2O.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":1523},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1762},"dist/lib/node-esm/chunk-FYPVCMP4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":977},"dist/lib/node-esm/chunk-FYPVCMP4.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":515}},"bytes":687},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
@@ -0,0 +1,51 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ Chess_exports
4
+ } from "./chunk-J6AJLY2O.mjs";
5
+ import {
6
+ meta
7
+ } from "./chunk-FYPVCMP4.mjs";
8
+ import "./chunk-HSLMI22Q.mjs";
9
+
10
+ // src/capabilities/react-surface/react-surface.tsx
11
+ import * as Effect from "effect/Effect";
12
+ import React from "react";
13
+ import { Capabilities, Capability } from "@dxos/app-framework";
14
+ import { Surface } from "@dxos/app-framework/ui";
15
+ import { Obj } from "@dxos/echo";
16
+
17
+ // src/containers/index.ts
18
+ import { lazy } from "react";
19
+ var ChessArticle = lazy(() => import("./ChessArticle-76MOXLJM.mjs"));
20
+ var ChessCard = lazy(() => import("./ChessCard-TKNQP6IO.mjs"));
21
+
22
+ // src/capabilities/react-surface/react-surface.tsx
23
+ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
24
+ Surface.create({
25
+ id: meta.id,
26
+ role: [
27
+ "article",
28
+ "section"
29
+ ],
30
+ filter: (data) => Obj.instanceOf(Chess_exports.Game, data.subject),
31
+ component: ({ data, role }) => /* @__PURE__ */ React.createElement(ChessArticle, {
32
+ role,
33
+ subject: data.subject
34
+ })
35
+ }),
36
+ Surface.create({
37
+ id: meta.id,
38
+ role: [
39
+ "card--content"
40
+ ],
41
+ filter: (data) => Obj.instanceOf(Chess_exports.Game, data.subject),
42
+ component: ({ data, role }) => /* @__PURE__ */ React.createElement(ChessCard, {
43
+ role,
44
+ subject: data.subject
45
+ })
46
+ })
47
+ ])));
48
+ export {
49
+ react_surface_default as default
50
+ };
51
+ //# sourceMappingURL=react-surface-DKM6ICBU.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/containers/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Obj } from '@dxos/echo';\n\nimport { ChessArticle, ChessCard } from '../../containers';\nimport { meta } from '../../meta';\nimport { Chess } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: meta.id,\n role: ['article', 'section'],\n filter: (data): data is { subject: Chess.Game } => Obj.instanceOf(Chess.Game, data.subject),\n component: ({ data, role }) => <ChessArticle role={role} subject={data.subject} />,\n }),\n Surface.create({\n id: meta.id,\n role: ['card--content'],\n filter: (data): data is { subject: Chess.Game } => Obj.instanceOf(Chess.Game, data.subject),\n component: ({ data, role }) => <ChessCard role={role} subject={data.subject} />,\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport const ChessArticle: ComponentType<any> = lazy(() => import('./ChessArticle'));\nexport const ChessCard: ComponentType<any> = lazy(() => import('./ChessCard'));\n"],
5
+ "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,WAAW;;;ACLpB,SAA6BC,YAAY;AAElC,IAAMC,eAAmCC,KAAK,MAAM,OAAO,6BAAA,CAAA;AAC3D,IAAMC,YAAgCD,KAAK,MAAM,OAAO,0BAAA,CAAA;;;ADQ/D,IAAA,wBAAeE,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAIC,KAAKD;IACTE,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SAA0CC,IAAIC,WAAWC,cAAMC,MAAMJ,KAAKK,OAAO;IAC1FC,WAAW,CAAC,EAAEN,MAAMF,KAAI,MAAO,sBAAA,cAACS,cAAAA;MAAaT;MAAYO,SAASL,KAAKK;;EACzE,CAAA;EACAX,QAAQC,OAAO;IACbC,IAAIC,KAAKD;IACTE,MAAM;MAAC;;IACPC,QAAQ,CAACC,SAA0CC,IAAIC,WAAWC,cAAMC,MAAMJ,KAAKK,OAAO;IAC1FC,WAAW,CAAC,EAAEN,MAAMF,KAAI,MAAO,sBAAA,cAACU,WAAAA;MAAUV;MAAYO,SAASL,KAAKK;;EACtE,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "Obj", "lazy", "ChessArticle", "lazy", "ChessCard", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "Chess", "Game", "subject", "component", "ChessArticle", "ChessCard"]
7
+ }
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  Chess_exports
4
- } from "../chunk-OUNGNJFP.mjs";
4
+ } from "../chunk-J6AJLY2O.mjs";
5
5
  import "../chunk-HSLMI22Q.mjs";
6
6
  export {
7
7
  Chess_exports as Chess
@@ -1 +1 @@
1
- {"version":3,"file":"ChessPlugin.d.ts","sourceRoot":"","sources":["../../../src/ChessPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAU,MAAM,EAAE,MAAM,qBAAqB,CAAC;AASrD,eAAO,MAAM,WAAW,4BAkBvB,CAAC"}
1
+ {"version":3,"file":"ChessPlugin.d.ts","sourceRoot":"","sources":["../../../src/ChessPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAU7C,eAAO,MAAM,WAAW,4BAiBvB,CAAC"}
@@ -1,21 +1,4 @@
1
- import { type FunctionDefinition } from '@dxos/functions';
2
- export declare const Key = "dxos.org/blueprint/chess";
3
- export declare const functions: FunctionDefinition[];
4
- export declare const make: () => import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
5
- readonly description?: string | undefined;
6
- readonly name: string;
7
- readonly key: string;
8
- readonly instructions: {
9
- readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
10
- readonly content: string;
11
- }>;
12
- readonly inputs?: readonly {
13
- readonly function?: string | undefined;
14
- readonly name: string;
15
- readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
16
- readonly default?: any;
17
- }[] | undefined;
18
- };
19
- readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
20
- }>;
1
+ import { type AppCapabilities } from '@dxos/app-toolkit';
2
+ declare const blueprint: AppCapabilities.BlueprintDefinition;
3
+ export default blueprint;
21
4
  //# sourceMappingURL=chess-blueprint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chess-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/chess-blueprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK1D,eAAO,MAAM,GAAG,6BAA6B,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE,kBAAkB,EAAgC,CAAC;AAE3E,eAAO,MAAM,IAAI;;;;;;;;uBAc6iC,CAAC;6BAA0C,CAAC;;yBAAkF,CAAC;4BAA6I,CAAC;;;;EADv0C,CAAC"}
1
+ {"version":3,"file":"chess-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/chess-blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAyBzD,QAAA,MAAM,SAAS,EAAE,eAAe,CAAC,mBAIhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -2,7 +2,7 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly name?: string | undefined;
3
3
  readonly pgn?: string | undefined;
4
4
  readonly fen?: string | undefined;
5
- }, import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
5
+ }, import("@dxos/echo/Obj").OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
6
6
  readonly name?: string | undefined;
7
7
  readonly players?: {
8
8
  readonly white?: string | undefined;
@@ -1,5 +1,56 @@
1
- export { default as create } from './create';
2
- export { default as move } from './move';
3
- export { default as play } from './play';
4
- export { default as print } from './print';
1
+ import Create from './create';
2
+ import Move from './move';
3
+ import Play from './play';
4
+ import Print from './print';
5
+ export { Create, Move, Play, Print };
6
+ export declare const ChessFunctions: {
7
+ Create: import("@dxos/functions").FunctionDefinition<{
8
+ readonly name?: string | undefined;
9
+ readonly pgn?: string | undefined;
10
+ readonly fen?: string | undefined;
11
+ }, import("@dxos/echo/Obj").OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
12
+ readonly name?: string | undefined;
13
+ readonly players?: {
14
+ readonly white?: string | undefined;
15
+ readonly black?: string | undefined;
16
+ } | undefined;
17
+ readonly pgn?: string | undefined;
18
+ readonly fen?: string | undefined;
19
+ }>, import("@dxos/functions").FunctionServices>;
20
+ Move: import("@dxos/functions").FunctionDefinition<{
21
+ readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
22
+ readonly name?: string | undefined;
23
+ readonly players?: {
24
+ readonly white?: string | undefined;
25
+ readonly black?: string | undefined;
26
+ } | undefined;
27
+ readonly pgn?: string | undefined;
28
+ readonly fen?: string | undefined;
29
+ }>;
30
+ readonly move: string;
31
+ }, {
32
+ readonly pgn: string;
33
+ }, import("@dxos/functions").FunctionServices>;
34
+ Play: import("@dxos/functions").FunctionDefinition<{
35
+ readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
36
+ readonly name?: string | undefined;
37
+ readonly players?: {
38
+ readonly white?: string | undefined;
39
+ readonly black?: string | undefined;
40
+ } | undefined;
41
+ readonly pgn?: string | undefined;
42
+ readonly fen?: string | undefined;
43
+ }>;
44
+ readonly side?: "white" | "black" | "any" | undefined;
45
+ }, {
46
+ readonly pgn: string;
47
+ readonly move?: string | undefined;
48
+ }, import("@dxos/functions").FunctionServices>;
49
+ Print: import("@dxos/functions").FunctionDefinition<{
50
+ readonly pgn?: string | undefined;
51
+ readonly fen?: string | undefined;
52
+ }, {
53
+ readonly ascii: string;
54
+ }, import("@dxos/functions").FunctionServices>;
55
+ };
5
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAErC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK1B,CAAC"}
@@ -1,5 +1,13 @@
1
1
  declare const _default: import("@dxos/functions").FunctionDefinition<{
2
- readonly id: string;
2
+ readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3
+ readonly name?: string | undefined;
4
+ readonly players?: {
5
+ readonly white?: string | undefined;
6
+ readonly black?: string | undefined;
7
+ } | undefined;
8
+ readonly pgn?: string | undefined;
9
+ readonly fen?: string | undefined;
10
+ }>;
3
11
  readonly move: string;
4
12
  }, {
5
13
  readonly pgn: string;
@@ -1 +1 @@
1
- {"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/move.ts"],"names":[],"mappings":";;;;;;AAcA,wBAkCG"}
1
+ {"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/move.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,wBAkCG"}