@dxos/plugin-chess 0.8.1 → 0.8.2-main.2f9c567

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 (53) hide show
  1. package/dist/lib/browser/{artifact-definition-GHBVTO4Y.mjs → artifact-definition-M2IQ5ZJO.mjs} +22 -20
  2. package/dist/lib/browser/artifact-definition-M2IQ5ZJO.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-4NJ4PMPW.mjs → chunk-FSWWNFQE.mjs} +22 -20
  4. package/dist/lib/browser/chunk-FSWWNFQE.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +4 -4
  6. package/dist/lib/browser/{intent-resolver-JVLCHAJD.mjs → intent-resolver-O5FBTUC6.mjs} +4 -4
  7. package/dist/lib/browser/intent-resolver-O5FBTUC6.mjs.map +7 -0
  8. package/dist/lib/browser/meta.json +1 -1
  9. package/dist/lib/browser/{react-surface-LZYVKHCU.mjs → react-surface-IT4WC47R.mjs} +2 -2
  10. package/dist/lib/browser/types/index.mjs +1 -1
  11. package/dist/lib/node/{artifact-definition-JDJAOTXF.cjs → artifact-definition-SMOVCIQH.cjs} +33 -31
  12. package/dist/lib/node/artifact-definition-SMOVCIQH.cjs.map +7 -0
  13. package/dist/lib/node/{chunk-PQ64RGCS.cjs → chunk-ZYU6LFL4.cjs} +22 -20
  14. package/dist/lib/node/chunk-ZYU6LFL4.cjs.map +7 -0
  15. package/dist/lib/node/index.cjs +18 -18
  16. package/dist/lib/node/{intent-resolver-IJXRCQA5.cjs → intent-resolver-TSN5O423.cjs} +7 -7
  17. package/dist/lib/node/intent-resolver-TSN5O423.cjs.map +7 -0
  18. package/dist/lib/node/meta.json +1 -1
  19. package/dist/lib/node/{react-surface-JWVHHTQU.cjs → react-surface-6OYEX6SB.cjs} +8 -8
  20. package/dist/lib/node/types/index.cjs +5 -5
  21. package/dist/lib/node/types/index.cjs.map +1 -1
  22. package/dist/lib/node-esm/{artifact-definition-CSY4I334.mjs → artifact-definition-HTZLNGEV.mjs} +22 -20
  23. package/dist/lib/node-esm/artifact-definition-HTZLNGEV.mjs.map +7 -0
  24. package/dist/lib/node-esm/{chunk-GLBZ7ZZD.mjs → chunk-FKW7YGV5.mjs} +22 -20
  25. package/dist/lib/node-esm/chunk-FKW7YGV5.mjs.map +7 -0
  26. package/dist/lib/node-esm/index.mjs +4 -4
  27. package/dist/lib/node-esm/{intent-resolver-AWNZCS56.mjs → intent-resolver-PXPQTYAA.mjs} +4 -4
  28. package/dist/lib/node-esm/intent-resolver-PXPQTYAA.mjs.map +7 -0
  29. package/dist/lib/node-esm/meta.json +1 -1
  30. package/dist/lib/node-esm/{react-surface-TQKBCMJU.mjs → react-surface-G4CSGFTJ.mjs} +2 -2
  31. package/dist/lib/node-esm/types/index.mjs +1 -1
  32. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  33. package/dist/types/src/types/schema.d.ts +15 -15
  34. package/dist/types/src/types/schema.d.ts.map +1 -1
  35. package/dist/types/src/types/types.d.ts +7 -7
  36. package/dist/types/src/types/types.d.ts.map +1 -1
  37. package/package.json +21 -21
  38. package/src/capabilities/artifact-definition.ts +18 -12
  39. package/src/capabilities/intent-resolver.ts +2 -2
  40. package/src/types/schema.ts +15 -13
  41. package/src/types/types.ts +10 -8
  42. package/dist/lib/browser/artifact-definition-GHBVTO4Y.mjs.map +0 -7
  43. package/dist/lib/browser/chunk-4NJ4PMPW.mjs.map +0 -7
  44. package/dist/lib/browser/intent-resolver-JVLCHAJD.mjs.map +0 -7
  45. package/dist/lib/node/artifact-definition-JDJAOTXF.cjs.map +0 -7
  46. package/dist/lib/node/chunk-PQ64RGCS.cjs.map +0 -7
  47. package/dist/lib/node/intent-resolver-IJXRCQA5.cjs.map +0 -7
  48. package/dist/lib/node-esm/artifact-definition-CSY4I334.mjs.map +0 -7
  49. package/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs.map +0 -7
  50. package/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs.map +0 -7
  51. /package/dist/lib/browser/{react-surface-LZYVKHCU.mjs.map → react-surface-IT4WC47R.mjs.map} +0 -0
  52. /package/dist/lib/node/{react-surface-JWVHHTQU.cjs.map → react-surface-6OYEX6SB.cjs.map} +0 -0
  53. /package/dist/lib/node-esm/{react-surface-TQKBCMJU.mjs.map → react-surface-G4CSGFTJ.mjs.map} +0 -0
@@ -16,12 +16,12 @@ 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 artifact_definition_JDJAOTXF_exports = {};
20
- __export(artifact_definition_JDJAOTXF_exports, {
19
+ var artifact_definition_SMOVCIQH_exports = {};
20
+ __export(artifact_definition_SMOVCIQH_exports, {
21
21
  default: () => artifact_definition_default
22
22
  });
23
- module.exports = __toCommonJS(artifact_definition_JDJAOTXF_exports);
24
- var import_chunk_PQ64RGCS = require("./chunk-PQ64RGCS.cjs");
23
+ module.exports = __toCommonJS(artifact_definition_SMOVCIQH_exports);
24
+ var import_chunk_ZYU6LFL4 = require("./chunk-ZYU6LFL4.cjs");
25
25
  var import_chess = require("chess.js");
26
26
  var import_effect = require("effect");
27
27
  var import_app_framework = require("@dxos/app-framework");
@@ -34,21 +34,21 @@ var import_echo = require("@dxos/react-client/echo");
34
34
  var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts";
35
35
  var artifact_definition_default = () => {
36
36
  const definition = (0, import_artifact.defineArtifact)({
37
- id: `artifact:${import_chunk_PQ64RGCS.meta.id}`,
38
- name: import_chunk_PQ64RGCS.meta.name,
37
+ id: `artifact:${import_chunk_ZYU6LFL4.meta.id}`,
38
+ name: import_chunk_ZYU6LFL4.meta.name,
39
39
  description: "Provides a simple chess engine.",
40
40
  instructions: `
41
41
  - If the user's message relates to a chess game, you must return the chess game inside the artifact tag as a valid FEN string with no additional text.
42
42
  - Always inspect the chess game at the start of every prompt realting to a chess game, as it might have changed since the interaction.
43
43
  `,
44
- schema: import_chunk_PQ64RGCS.ChessType,
44
+ schema: import_chunk_ZYU6LFL4.ChessType,
45
45
  tools: [
46
- (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
46
+ (0, import_artifact.defineTool)(import_chunk_ZYU6LFL4.meta.id, {
47
47
  name: "create",
48
48
  description: "Create a new chess game. Returns the artifact definition for the game.",
49
49
  caption: "Creating chess game...",
50
- schema: import_echo_schema.S.Struct({
51
- fen: import_echo_schema.S.String.annotations({
50
+ schema: import_effect.Schema.Struct({
51
+ fen: import_effect.Schema.String.annotations({
52
52
  description: "The state of the chess game in the FEN format."
53
53
  })
54
54
  }),
@@ -71,7 +71,7 @@ var artifact_definition_default = () => {
71
71
  "'No intent dispatcher'"
72
72
  ]
73
73
  });
74
- const intent = (0, import_effect.pipe)((0, import_app_framework.createIntent)(import_chunk_PQ64RGCS.ChessAction.Create, {
74
+ const intent = (0, import_effect.pipe)((0, import_app_framework.createIntent)(import_chunk_ZYU6LFL4.ChessAction.Create, {
75
75
  fen
76
76
  }), (0, import_app_framework.chain)(import_types.SpaceAction.AddObject, {
77
77
  target: extensions.space
@@ -80,28 +80,30 @@ var artifact_definition_default = () => {
80
80
  if (!data || error) {
81
81
  return import_artifact.ToolResult.Error(error?.message ?? "Failed to create chess game");
82
82
  }
83
- return import_artifact.ToolResult.Success((0, import_assistant.createArtifactElement)(data.id));
83
+ return import_artifact.ToolResult.Success((0, import_assistant.createArtifactElement)(data.id), [
84
+ import_assistant.VersionPin.createBlock(import_assistant.VersionPin.fromObject(data.object))
85
+ ]);
84
86
  }
85
87
  }),
86
- (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
88
+ (0, import_artifact.defineTool)(import_chunk_ZYU6LFL4.meta.id, {
87
89
  name: "list",
88
90
  description: "Query all active chess games.",
89
91
  caption: "Getting games...",
90
- schema: import_echo_schema.S.Struct({}),
92
+ schema: import_effect.Schema.Struct({}),
91
93
  execute: async (_, { extensions }) => {
92
94
  (0, import_invariant.invariant)(extensions?.space, "No space", {
93
95
  F: __dxlog_file,
94
- L: 66,
96
+ L: 68,
95
97
  S: void 0,
96
98
  A: [
97
99
  "extensions?.space",
98
100
  "'No space'"
99
101
  ]
100
102
  });
101
- const { objects: games } = await extensions.space.db.query(import_echo.Filter.schema(import_chunk_PQ64RGCS.ChessType)).run();
103
+ const { objects: games } = await extensions.space.db.query(import_echo.Filter.schema(import_chunk_ZYU6LFL4.ChessType)).run();
102
104
  (0, import_invariant.invariant)(games.length > 0, "No chess games found", {
103
105
  F: __dxlog_file,
104
- L: 68,
106
+ L: 70,
105
107
  S: void 0,
106
108
  A: [
107
109
  "games.length > 0",
@@ -111,17 +113,17 @@ var artifact_definition_default = () => {
111
113
  return import_artifact.ToolResult.Success(games);
112
114
  }
113
115
  }),
114
- (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
116
+ (0, import_artifact.defineTool)(import_chunk_ZYU6LFL4.meta.id, {
115
117
  name: "inspect",
116
118
  description: "Get the current state of the chess game.",
117
119
  caption: "Inspecting game...",
118
- schema: import_echo_schema.S.Struct({
120
+ schema: import_effect.Schema.Struct({
119
121
  id: import_artifact.ArtifactId
120
122
  }),
121
123
  execute: async ({ id }, { extensions }) => {
122
124
  (0, import_invariant.invariant)(extensions?.space, "No space", {
123
125
  F: __dxlog_file,
124
- L: 78,
126
+ L: 80,
125
127
  S: void 0,
126
128
  A: [
127
129
  "extensions?.space",
@@ -129,11 +131,11 @@ var artifact_definition_default = () => {
129
131
  ]
130
132
  });
131
133
  const game = await extensions.space.db.query({
132
- id: import_artifact.ArtifactId.toDXN(id).toString()
134
+ id: import_artifact.ArtifactId.toDXN(id, extensions.space.id).toString()
133
135
  }).first();
134
- (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_PQ64RGCS.ChessType, game), void 0, {
136
+ (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_ZYU6LFL4.ChessType, game), void 0, {
135
137
  F: __dxlog_file,
136
- L: 80,
138
+ L: 84,
137
139
  S: void 0,
138
140
  A: [
139
141
  "isInstanceOf(ChessType, game)",
@@ -143,13 +145,13 @@ var artifact_definition_default = () => {
143
145
  return import_artifact.ToolResult.Success(game.fen);
144
146
  }
145
147
  }),
146
- (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
148
+ (0, import_artifact.defineTool)(import_chunk_ZYU6LFL4.meta.id, {
147
149
  name: "move",
148
150
  description: "Make a move in the chess game.",
149
151
  caption: "Making chess move...",
150
- schema: import_echo_schema.S.Struct({
152
+ schema: import_effect.Schema.Struct({
151
153
  id: import_artifact.ArtifactId,
152
- move: import_echo_schema.S.String.annotations({
154
+ move: import_effect.Schema.String.annotations({
153
155
  description: "The move to make in the chess game.",
154
156
  examples: [
155
157
  "e4",
@@ -160,7 +162,7 @@ var artifact_definition_default = () => {
160
162
  execute: async ({ id, move }, { extensions }) => {
161
163
  (0, import_invariant.invariant)(extensions?.space, "No space", {
162
164
  F: __dxlog_file,
163
- L: 97,
165
+ L: 101,
164
166
  S: void 0,
165
167
  A: [
166
168
  "extensions?.space",
@@ -168,11 +170,11 @@ var artifact_definition_default = () => {
168
170
  ]
169
171
  });
170
172
  const game = await extensions.space.db.query({
171
- id: import_artifact.ArtifactId.toDXN(id).toString()
173
+ id: import_artifact.ArtifactId.toDXN(id, extensions.space.id).toString()
172
174
  }).first();
173
- (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_PQ64RGCS.ChessType, game), void 0, {
175
+ (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_ZYU6LFL4.ChessType, game), void 0, {
174
176
  F: __dxlog_file,
175
- L: 99,
177
+ L: 105,
176
178
  S: void 0,
177
179
  A: [
178
180
  "isInstanceOf(ChessType, game)",
@@ -194,4 +196,4 @@ var artifact_definition_default = () => {
194
196
  });
195
197
  return (0, import_app_framework.contributes)(import_app_framework.Capabilities.ArtifactDefinition, definition);
196
198
  };
197
- //# sourceMappingURL=artifact-definition-JDJAOTXF.cjs.map
199
+ //# sourceMappingURL=artifact-definition-SMOVCIQH.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/artifact-definition.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Chess } from 'chess.js';\nimport { pipe, Schema } from 'effect';\n\nimport { Capabilities, chain, contributes, createIntent, type PromiseIntentDispatcher } from '@dxos/app-framework';\nimport { ArtifactId, defineArtifact, defineTool, ToolResult } from '@dxos/artifact';\nimport { createArtifactElement, VersionPin } from '@dxos/assistant';\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { invariant } from '@dxos/invariant';\nimport { SpaceAction } from '@dxos/plugin-space/types';\nimport { Filter, type Space } from '@dxos/react-client/echo';\n\nimport { meta } from '../meta';\nimport { ChessAction, ChessType } from '../types';\n\n// TODO(burdon): Factor out.\ndeclare global {\n interface ToolContextExtensions {\n space?: Space;\n dispatch?: PromiseIntentDispatcher;\n }\n}\n\nexport default () => {\n const definition = defineArtifact({\n id: `artifact:${meta.id}`,\n name: meta.name,\n description: 'Provides a simple chess engine.',\n instructions: `\n - If the user's message relates to a chess game, you must return the chess game inside the artifact tag as a valid FEN string with no additional text.\n - Always inspect the chess game at the start of every prompt realting to a chess game, as it might have changed since the interaction.\n `,\n schema: ChessType,\n tools: [\n defineTool(meta.id, {\n name: 'create',\n description: 'Create a new chess game. Returns the artifact definition for the game.',\n caption: 'Creating chess game...',\n schema: Schema.Struct({\n fen: Schema.String.annotations({ description: 'The state of the chess game in the FEN format.' }),\n }),\n execute: async ({ fen }, { extensions }) => {\n invariant(extensions?.space, 'No space');\n invariant(extensions?.dispatch, 'No intent dispatcher');\n const intent = pipe(\n createIntent(ChessAction.Create, { fen }),\n chain(SpaceAction.AddObject, { target: extensions.space }),\n );\n const { data, error } = await extensions.dispatch(intent);\n if (!data || error) {\n return ToolResult.Error(error?.message ?? 'Failed to create chess game');\n }\n\n return ToolResult.Success(createArtifactElement(data.id), [\n VersionPin.createBlock(VersionPin.fromObject(data.object)),\n ]);\n },\n }),\n defineTool(meta.id, {\n name: 'list',\n description: 'Query all active chess games.',\n caption: 'Getting games...',\n schema: Schema.Struct({}),\n execute: async (_, { extensions }) => {\n invariant(extensions?.space, 'No space');\n const { objects: games } = await extensions.space.db.query(Filter.schema(ChessType)).run();\n invariant(games.length > 0, 'No chess games found');\n return ToolResult.Success(games);\n },\n }),\n defineTool(meta.id, {\n name: 'inspect',\n description: 'Get the current state of the chess game.',\n caption: 'Inspecting game...',\n schema: Schema.Struct({ id: ArtifactId }),\n execute: async ({ id }, { extensions }) => {\n invariant(extensions?.space, 'No space');\n const game = await extensions.space.db\n .query({ id: ArtifactId.toDXN(id, extensions.space.id).toString() })\n .first();\n invariant(isInstanceOf(ChessType, game));\n\n return ToolResult.Success(game.fen);\n },\n }),\n defineTool(meta.id, {\n name: 'move',\n description: 'Make a move in the chess game.',\n caption: 'Making chess move...',\n schema: Schema.Struct({\n id: ArtifactId,\n move: Schema.String.annotations({\n description: 'The move to make in the chess game.',\n examples: ['e4', 'Bf3'],\n }),\n }),\n execute: async ({ id, move }, { extensions }) => {\n invariant(extensions?.space, 'No space');\n const game = await extensions.space.db\n .query({ id: ArtifactId.toDXN(id, extensions.space.id).toString() })\n .first();\n invariant(isInstanceOf(ChessType, game));\n\n const board = new Chess(game.fen);\n try {\n board.move(move);\n } catch (error: any) {\n return ToolResult.Error(error.message);\n }\n game.pgn = board.pgn();\n game.fen = board.fen();\n return ToolResult.Success(game.fen);\n },\n }),\n ],\n });\n\n return contributes(Capabilities.ArtifactDefinition, definition);\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAsB;AACtB,oBAA6B;AAE7B,2BAA6F;AAC7F,sBAAmE;AACnE,uBAAkD;AAClD,yBAA6B;AAC7B,uBAA0B;AAC1B,mBAA4B;AAC5B,kBAAmC;;AAanC,IAAA,8BAAe,MAAA;AACb,QAAMA,iBAAaC,gCAAe;IAChCC,IAAI,YAAYC,2BAAKD,EAAE;IACvBE,MAAMD,2BAAKC;IACXC,aAAa;IACbC,cAAc;;;;IAIdC,QAAQC;IACRC,OAAO;UACLC,4BAAWP,2BAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,qBAAOC,OAAO;UACpBC,KAAKF,qBAAOG,OAAOC,YAAY;YAAEX,aAAa;UAAiD,CAAA;QACjG,CAAA;QACAY,SAAS,OAAO,EAAEH,IAAG,GAAI,EAAEI,WAAU,MAAE;AACrCC,0CAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7BD,0CAAUD,YAAYG,UAAU,wBAAA;;;;;;;;;AAChC,gBAAMC,aAASC,wBACbC,mCAAaC,kCAAYC,QAAQ;YAAEZ;UAAI,CAAA,OACvCa,4BAAMC,yBAAYC,WAAW;YAAEC,QAAQZ,WAAWE;UAAM,CAAA,CAAA;AAE1D,gBAAM,EAAEW,MAAMC,MAAK,IAAK,MAAMd,WAAWG,SAASC,MAAAA;AAClD,cAAI,CAACS,QAAQC,OAAO;AAClB,mBAAOC,2BAAWC,MAAMF,OAAOG,WAAW,6BAAA;UAC5C;AAEA,iBAAOF,2BAAWG,YAAQC,wCAAsBN,KAAK7B,EAAE,GAAG;YACxDoC,4BAAWC,YAAYD,4BAAWE,WAAWT,KAAKU,MAAM,CAAA;WACzD;QACH;MACF,CAAA;UACA/B,4BAAWP,2BAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,qBAAOC,OAAO,CAAC,CAAA;QACvBI,SAAS,OAAOyB,GAAG,EAAExB,WAAU,MAAE;AAC/BC,0CAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7B,gBAAM,EAAEuB,SAASC,MAAK,IAAK,MAAM1B,WAAWE,MAAMyB,GAAGC,MAAMC,mBAAOxC,OAAOC,+BAAAA,CAAAA,EAAYwC,IAAG;AACxF7B,0CAAUyB,MAAMK,SAAS,GAAG,wBAAA;;;;;;;;;AAC5B,iBAAOhB,2BAAWG,QAAQQ,KAAAA;QAC5B;MACF,CAAA;UACAlC,4BAAWP,2BAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,qBAAOC,OAAO;UAAEX,IAAIgD;QAAW,CAAA;QACvCjC,SAAS,OAAO,EAAEf,GAAE,GAAI,EAAEgB,WAAU,MAAE;AACpCC,0CAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7B,gBAAM+B,OAAO,MAAMjC,WAAWE,MAAMyB,GACjCC,MAAM;YAAE5C,IAAIgD,2BAAWE,MAAMlD,IAAIgB,WAAWE,MAAMlB,EAAE,EAAEmD,SAAQ;UAAG,CAAA,EACjEC,MAAK;AACRnC,8CAAUoC,iCAAa/C,iCAAW2C,IAAAA,GAAAA,QAAAA;;;;;;;;;AAElC,iBAAOlB,2BAAWG,QAAQe,KAAKrC,GAAG;QACpC;MACF,CAAA;UACAJ,4BAAWP,2BAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,qBAAOC,OAAO;UACpBX,IAAIgD;UACJM,MAAM5C,qBAAOG,OAAOC,YAAY;YAC9BX,aAAa;YACboD,UAAU;cAAC;cAAM;;UACnB,CAAA;QACF,CAAA;QACAxC,SAAS,OAAO,EAAEf,IAAIsD,KAAI,GAAI,EAAEtC,WAAU,MAAE;AAC1CC,0CAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7B,gBAAM+B,OAAO,MAAMjC,WAAWE,MAAMyB,GACjCC,MAAM;YAAE5C,IAAIgD,2BAAWE,MAAMlD,IAAIgB,WAAWE,MAAMlB,EAAE,EAAEmD,SAAQ;UAAG,CAAA,EACjEC,MAAK;AACRnC,8CAAUoC,iCAAa/C,iCAAW2C,IAAAA,GAAAA,QAAAA;;;;;;;;;AAElC,gBAAMO,QAAQ,IAAIC,mBAAMR,KAAKrC,GAAG;AAChC,cAAI;AACF4C,kBAAMF,KAAKA,IAAAA;UACb,SAASxB,OAAY;AACnB,mBAAOC,2BAAWC,MAAMF,MAAMG,OAAO;UACvC;AACAgB,eAAKS,MAAMF,MAAME,IAAG;AACpBT,eAAKrC,MAAM4C,MAAM5C,IAAG;AACpB,iBAAOmB,2BAAWG,QAAQe,KAAKrC,GAAG;QACpC;MACF,CAAA;;EAEJ,CAAA;AAEA,aAAO+C,kCAAYC,kCAAaC,oBAAoB/D,UAAAA;AACtD;",
6
+ "names": ["definition", "defineArtifact", "id", "meta", "name", "description", "instructions", "schema", "ChessType", "tools", "defineTool", "caption", "Schema", "Struct", "fen", "String", "annotations", "execute", "extensions", "invariant", "space", "dispatch", "intent", "pipe", "createIntent", "ChessAction", "Create", "chain", "SpaceAction", "AddObject", "target", "data", "error", "ToolResult", "Error", "message", "Success", "createArtifactElement", "VersionPin", "createBlock", "fromObject", "object", "_", "objects", "games", "db", "query", "Filter", "run", "length", "ArtifactId", "game", "toDXN", "toString", "first", "isInstanceOf", "move", "examples", "board", "Chess", "pgn", "contributes", "Capabilities", "ArtifactDefinition"]
7
+ }
@@ -16,8 +16,8 @@ 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_PQ64RGCS_exports = {};
20
- __export(chunk_PQ64RGCS_exports, {
19
+ var chunk_ZYU6LFL4_exports = {};
20
+ __export(chunk_ZYU6LFL4_exports, {
21
21
  CHESS_PLUGIN: () => CHESS_PLUGIN,
22
22
  ChessAction: () => ChessAction,
23
23
  ChessType: () => ChessType,
@@ -25,26 +25,28 @@ __export(chunk_PQ64RGCS_exports, {
25
25
  isObject: () => isObject,
26
26
  meta: () => meta
27
27
  });
28
- module.exports = __toCommonJS(chunk_PQ64RGCS_exports);
28
+ module.exports = __toCommonJS(chunk_ZYU6LFL4_exports);
29
+ var import_effect = require("effect");
29
30
  var import_echo_schema = require("@dxos/echo-schema");
31
+ var import_effect2 = require("effect");
30
32
  var import_echo_schema2 = require("@dxos/echo-schema");
31
33
  var import_live_object = require("@dxos/live-object");
32
- var MoveSchema = import_echo_schema.S.mutable(import_echo_schema.S.partial(import_echo_schema.S.Struct({
33
- source: import_echo_schema.S.String,
34
- target: import_echo_schema.S.String,
35
- piece: import_echo_schema.S.String
34
+ var MoveSchema = import_effect.Schema.mutable(import_effect.Schema.partial(import_effect.Schema.Struct({
35
+ source: import_effect.Schema.String,
36
+ target: import_effect.Schema.String,
37
+ piece: import_effect.Schema.String
36
38
  })));
37
39
  var ChessType = class extends (0, import_echo_schema.TypedObject)({
38
40
  typename: "dxos.org/type/Chess",
39
41
  version: "0.1.0"
40
42
  })({
41
- name: import_echo_schema.S.optional(import_echo_schema.S.String),
42
- playerWhite: import_echo_schema.S.String,
43
- playerBlack: import_echo_schema.S.String,
44
- moves: import_echo_schema.S.mutable(import_echo_schema.S.Array(import_echo_schema.S.String)),
43
+ name: import_effect.Schema.optional(import_effect.Schema.String),
44
+ playerWhite: import_effect.Schema.String,
45
+ playerBlack: import_effect.Schema.String,
46
+ moves: import_effect.Schema.mutable(import_effect.Schema.Array(import_effect.Schema.String)),
45
47
  // TODO(wittjosiah): Remove. Redundant with moves.
46
- pgn: import_echo_schema.S.String,
47
- fen: import_echo_schema.S.String
48
+ pgn: import_effect.Schema.String,
49
+ fen: import_effect.Schema.String
48
50
  }, {
49
51
  partial: true
50
52
  }) {
@@ -63,12 +65,12 @@ var meta = {
63
65
  var ChessAction;
64
66
  (function(ChessAction2) {
65
67
  const CHESS_ACTION = `${CHESS_PLUGIN}/action`;
66
- class Create extends import_echo_schema2.S.TaggedClass()(`${CHESS_ACTION}/create`, {
67
- input: import_echo_schema2.S.Struct({
68
- name: import_echo_schema2.S.optional(import_echo_schema2.S.String),
69
- fen: import_echo_schema2.S.optional(import_echo_schema2.S.String)
68
+ class Create extends import_effect2.Schema.TaggedClass()(`${CHESS_ACTION}/create`, {
69
+ input: import_effect2.Schema.Struct({
70
+ name: import_effect2.Schema.optional(import_effect2.Schema.String),
71
+ fen: import_effect2.Schema.optional(import_effect2.Schema.String)
70
72
  }),
71
- output: import_echo_schema2.S.Struct({
73
+ output: import_effect2.Schema.Struct({
72
74
  object: ChessType
73
75
  })
74
76
  }) {
@@ -76,7 +78,7 @@ var ChessAction;
76
78
  ChessAction2.Create = Create;
77
79
  })(ChessAction || (ChessAction = {}));
78
80
  var isObject = (object) => {
79
- return (0, import_live_object.isReactiveObject)(object) && (0, import_echo_schema2.isInstanceOf)(ChessType, object);
81
+ return (0, import_live_object.isLiveObject)(object) && (0, import_echo_schema2.isInstanceOf)(ChessType, object);
80
82
  };
81
83
  // Annotate the CommonJS export names for ESM import in node:
82
84
  0 && (module.exports = {
@@ -87,4 +89,4 @@ var isObject = (object) => {
87
89
  isObject,
88
90
  meta
89
91
  });
90
- //# sourceMappingURL=chunk-PQ64RGCS.cjs.map
92
+ //# sourceMappingURL=chunk-ZYU6LFL4.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 { Schema } from 'effect';\n\nimport { TypedObject } from '@dxos/echo-schema';\n\nexport const MoveSchema = Schema.mutable(\n Schema.partial(\n Schema.Struct({\n source: Schema.String,\n target: Schema.String,\n piece: Schema.String,\n }),\n ),\n);\n\nexport class ChessType extends TypedObject({ typename: 'dxos.org/type/Chess', version: '0.1.0' })(\n {\n name: Schema.optional(Schema.String),\n playerWhite: Schema.String,\n playerBlack: Schema.String,\n moves: Schema.mutable(Schema.Array(Schema.String)),\n // TODO(wittjosiah): Remove. Redundant with moves.\n pgn: Schema.String,\n fen: Schema.String,\n },\n { partial: true },\n) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { isLiveObject } 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 Schema.TaggedClass<Create>()(`${CHESS_ACTION}/create`, {\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n fen: Schema.optional(Schema.String),\n }),\n output: Schema.Struct({\n object: ChessType,\n }),\n }) {}\n}\n\nexport const isObject = (object: unknown): object is typeof ChessType => {\n return isLiveObject(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: PluginMeta = {\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};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AAEvB,yBAA4B;ACF5B,IAAAA,iBAAuB;AAEvB,IAAAC,sBAA6B;AAC7B,yBAA6B;ADCtB,IAAMC,aAAaC,qBAAOC,QAC/BD,qBAAOE,QACLF,qBAAOG,OAAO;EACZC,QAAQJ,qBAAOK;EACfC,QAAQN,qBAAOK;EACfE,OAAOP,qBAAOK;AAChB,CAAA,CAAA,CAAA;AAIG,IAAMG,YAAN,kBAAwBC,gCAAY;EAAEC,UAAU;EAAuBC,SAAS;AAAQ,CAAA,EAC7F;EACEC,MAAMZ,qBAAOa,SAASb,qBAAOK,MAAM;EACnCS,aAAad,qBAAOK;EACpBU,aAAaf,qBAAOK;EACpBW,OAAOhB,qBAAOC,QAAQD,qBAAOiB,MAAMjB,qBAAOK,MAAM,CAAA;;EAEhDa,KAAKlB,qBAAOK;EACZc,KAAKnB,qBAAOK;AACd,GACA;EAAEH,SAAS;AAAK,CAAA,EAAA;AACf;AEvBI,IAAMkB,eAAe;AAErB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJR,MAAM;EACNW,aACE;EACFC,MAAM;EACNpB,QAAQ;EACRqB,aAAa;IAAC;;AAChB;;UDJiBC,cAAAA;AACf,QAAMC,eAAe,GAAGP,YAAAA;EAEjB,MAAMQ,eAAe5B,eAAAA,OAAO6B,YAAW,EAAW,GAAGF,YAAAA,WAAuB;IACjFG,OAAO9B,eAAAA,OAAOG,OAAO;MACnBS,MAAMZ,eAAAA,OAAOa,SAASb,eAAAA,OAAOK,MAAM;MACnCc,KAAKnB,eAAAA,OAAOa,SAASb,eAAAA,OAAOK,MAAM;IACpC,CAAA;IACA0B,QAAQ/B,eAAAA,OAAOG,OAAO;MACpB6B,QAAQxB;IACV,CAAA;EACF,CAAA,EAAA;EAAI;eARSoB,SAAAA;AASf,GAZiBF,gBAAAA,cAAAA,CAAAA,EAAAA;AAcV,IAAMO,WAAW,CAACD,WAAAA;AACvB,aAAOE,iCAAaF,MAAAA,SAAWG,kCAAa3B,WAAWwB,MAAAA;AACzD;",
6
+ "names": ["import_effect", "import_echo_schema", "MoveSchema", "Schema", "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", "isLiveObject", "isInstanceOf"]
7
+ }
@@ -29,76 +29,76 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var node_exports = {};
30
30
  __export(node_exports, {
31
31
  ArtifactDefinition: () => ArtifactDefinition,
32
- CHESS_PLUGIN: () => import_chunk_PQ64RGCS.CHESS_PLUGIN,
32
+ CHESS_PLUGIN: () => import_chunk_ZYU6LFL4.CHESS_PLUGIN,
33
33
  ChessComponent: () => import_chunk_CSRNUKOH.ChessComponent,
34
34
  ChessContainer: () => import_chunk_WKOWLRXP.ChessContainer,
35
35
  ChessPlugin: () => ChessPlugin,
36
36
  IntentResolver: () => IntentResolver,
37
37
  ReactSurface: () => ReactSurface,
38
- meta: () => import_chunk_PQ64RGCS.meta
38
+ meta: () => import_chunk_ZYU6LFL4.meta
39
39
  });
40
40
  module.exports = __toCommonJS(node_exports);
41
41
  var import_chunk_WKOWLRXP = require("./chunk-WKOWLRXP.cjs");
42
- var import_chunk_PQ64RGCS = require("./chunk-PQ64RGCS.cjs");
42
+ var import_chunk_ZYU6LFL4 = require("./chunk-ZYU6LFL4.cjs");
43
43
  var import_chunk_CSRNUKOH = require("./chunk-CSRNUKOH.cjs");
44
44
  var import_app_framework = require("@dxos/app-framework");
45
45
  var import_app_framework2 = require("@dxos/app-framework");
46
46
  var import_plugin_client = require("@dxos/plugin-client");
47
47
  var import_plugin_space = require("@dxos/plugin-space");
48
48
  var import_types = require("@dxos/plugin-space/types");
49
- var ArtifactDefinition = (0, import_app_framework.lazy)(() => import("./artifact-definition-JDJAOTXF.cjs"));
50
- var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-IJXRCQA5.cjs"));
51
- var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-JWVHHTQU.cjs"));
49
+ var ArtifactDefinition = (0, import_app_framework.lazy)(() => import("./artifact-definition-SMOVCIQH.cjs"));
50
+ var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-TSN5O423.cjs"));
51
+ var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-6OYEX6SB.cjs"));
52
52
  var translations_default = [
53
53
  {
54
54
  "en-US": {
55
- [import_chunk_PQ64RGCS.ChessType.typename]: {
55
+ [import_chunk_ZYU6LFL4.ChessType.typename]: {
56
56
  "typename label": "Game",
57
57
  "object name placeholder": "New game"
58
58
  },
59
- [import_chunk_PQ64RGCS.CHESS_PLUGIN]: {
59
+ [import_chunk_ZYU6LFL4.CHESS_PLUGIN]: {
60
60
  "plugin name": "Chess",
61
61
  "delete game label": "Delete"
62
62
  }
63
63
  }
64
64
  }
65
65
  ];
66
- var ChessPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_PQ64RGCS.meta, [
66
+ var ChessPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_ZYU6LFL4.meta, [
67
67
  (0, import_app_framework2.defineModule)({
68
- id: `${import_chunk_PQ64RGCS.meta.id}/module/translations`,
68
+ id: `${import_chunk_ZYU6LFL4.meta.id}/module/translations`,
69
69
  activatesOn: import_app_framework2.Events.SetupTranslations,
70
70
  activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Translations, translations_default)
71
71
  }),
72
72
  (0, import_app_framework2.defineModule)({
73
- id: `${import_chunk_PQ64RGCS.meta.id}/module/metadata`,
73
+ id: `${import_chunk_ZYU6LFL4.meta.id}/module/metadata`,
74
74
  activatesOn: import_app_framework2.Events.SetupMetadata,
75
75
  activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Metadata, {
76
- id: import_chunk_PQ64RGCS.ChessType.typename,
76
+ id: import_chunk_ZYU6LFL4.ChessType.typename,
77
77
  metadata: {
78
78
  icon: "ph--shield-chevron--regular"
79
79
  }
80
80
  })
81
81
  }),
82
82
  (0, import_app_framework2.defineModule)({
83
- id: `${import_chunk_PQ64RGCS.meta.id}/module/object-form`,
83
+ id: `${import_chunk_ZYU6LFL4.meta.id}/module/object-form`,
84
84
  activatesOn: import_plugin_client.ClientEvents.SetupSchema,
85
85
  activate: () => (0, import_app_framework2.contributes)(import_plugin_space.SpaceCapabilities.ObjectForm, (0, import_types.defineObjectForm)({
86
- objectSchema: import_chunk_PQ64RGCS.ChessType,
87
- getIntent: () => (0, import_app_framework2.createIntent)(import_chunk_PQ64RGCS.ChessAction.Create)
86
+ objectSchema: import_chunk_ZYU6LFL4.ChessType,
87
+ getIntent: () => (0, import_app_framework2.createIntent)(import_chunk_ZYU6LFL4.ChessAction.Create)
88
88
  }))
89
89
  }),
90
90
  (0, import_app_framework2.defineModule)({
91
- id: `${import_chunk_PQ64RGCS.meta.id}/module/react-surface`,
91
+ id: `${import_chunk_ZYU6LFL4.meta.id}/module/react-surface`,
92
92
  activatesOn: import_app_framework2.Events.SetupReactSurface,
93
93
  activate: ReactSurface
94
94
  }),
95
95
  (0, import_app_framework2.defineModule)({
96
- id: `${import_chunk_PQ64RGCS.meta.id}/module/intent-resolver`,
96
+ id: `${import_chunk_ZYU6LFL4.meta.id}/module/intent-resolver`,
97
97
  activatesOn: import_app_framework2.Events.SetupIntentResolver,
98
98
  activate: IntentResolver
99
99
  }),
100
100
  (0, import_app_framework2.defineModule)({
101
- id: `${import_chunk_PQ64RGCS.meta.id}/module/artifact-definition`,
101
+ id: `${import_chunk_ZYU6LFL4.meta.id}/module/artifact-definition`,
102
102
  activatesOn: import_app_framework2.Events.SetupArtifactDefinition,
103
103
  activate: ArtifactDefinition
104
104
  })
@@ -16,22 +16,22 @@ 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_IJXRCQA5_exports = {};
20
- __export(intent_resolver_IJXRCQA5_exports, {
19
+ var intent_resolver_TSN5O423_exports = {};
20
+ __export(intent_resolver_TSN5O423_exports, {
21
21
  default: () => intent_resolver_default
22
22
  });
23
- module.exports = __toCommonJS(intent_resolver_IJXRCQA5_exports);
24
- var import_chunk_PQ64RGCS = require("./chunk-PQ64RGCS.cjs");
23
+ module.exports = __toCommonJS(intent_resolver_TSN5O423_exports);
24
+ var import_chunk_ZYU6LFL4 = require("./chunk-ZYU6LFL4.cjs");
25
25
  var import_chess = require("chess.js");
26
26
  var import_app_framework = require("@dxos/app-framework");
27
27
  var import_live_object = require("@dxos/live-object");
28
28
  var intent_resolver_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, (0, import_app_framework.createResolver)({
29
- intent: import_chunk_PQ64RGCS.ChessAction.Create,
29
+ intent: import_chunk_ZYU6LFL4.ChessAction.Create,
30
30
  resolve: ({ name, fen }) => {
31
31
  const pgn = fen ? new import_chess.Chess(fen).pgn() : void 0;
32
32
  return {
33
33
  data: {
34
- object: (0, import_live_object.create)(import_chunk_PQ64RGCS.ChessType, {
34
+ object: (0, import_live_object.live)(import_chunk_ZYU6LFL4.ChessType, {
35
35
  name,
36
36
  fen,
37
37
  pgn
@@ -40,4 +40,4 @@ var intent_resolver_default = () => (0, import_app_framework.contributes)(import
40
40
  };
41
41
  }
42
42
  }));
43
- //# sourceMappingURL=intent-resolver-IJXRCQA5.cjs.map
43
+ //# sourceMappingURL=intent-resolver-TSN5O423.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 { live } 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: live(ChessType, { name, fen, pgn }),\n },\n };\n },\n }),\n );\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAsB;AAEtB,2BAA0D;AAC1D,yBAAqB;AAIrB,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,yBAAKC,iCAAW;UAAER;UAAMC;UAAKC;QAAI,CAAA;MAC3C;IACF;EACF;AACF,CAAA,CAAA;",
6
+ "names": ["contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ChessAction", "Create", "resolve", "name", "fen", "pgn", "Chess", "undefined", "data", "object", "live", "ChessType"]
7
+ }
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2077,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2700,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":3051,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-chess/src/types/index.ts":{"bytes":586,"imports":[{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytes":18514,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytes":2748,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytes":4522,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytes":8761,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3257,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx","kind":"import-statement","original":"./PlayerSelector"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/index.ts":{"bytes":908,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","kind":"dynamic-import","original":"./ChessContainer"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytes":3926,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"../components/ChessComponent"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytes":1365,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","kind":"dynamic-import","original":"./artifact-definition"},{"path":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-chess/src/translations.ts":{"bytes":1694,"imports":[{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytes":7388,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/index.ts":{"bytes":790,"imports":[{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-chess/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4837},"packages/plugins/plugin-chess/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-WKOWLRXP.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-PQ64RGCS.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-JDJAOTXF.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-IJXRCQA5.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/react-surface-JWVHHTQU.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":1500},"packages/plugins/plugin-chess/src/translations.ts":{"bytesInOutput":282}},"bytes":2659},"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-PQ64RGCS.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-JDJAOTXF.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8002},"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-JDJAOTXF.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-PQ64RGCS.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":5798}},"bytes":6058},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-IJXRCQA5.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1374},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-IJXRCQA5.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-PQ64RGCS.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-BZMTO4FZ.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6150},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-BZMTO4FZ.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":791},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2299}},"bytes":3452},"packages/plugins/plugin-chess/dist/lib/node/react-surface-JWVHHTQU.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1850},"packages/plugins/plugin-chess/dist/lib/node/react-surface-JWVHHTQU.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-WKOWLRXP.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-PQ64RGCS.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-WKOWLRXP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":402},"packages/plugins/plugin-chess/dist/lib/node/chunk-WKOWLRXP.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-BZMTO4FZ.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-PQ64RGCS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3759},"packages/plugins/plugin-chess/dist/lib/node/chunk-PQ64RGCS.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}}}
1
+ {"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2077,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2981,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":3208,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-chess/src/types/index.ts":{"bytes":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":19301,"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":2736,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytes":4522,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytes":8761,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3257,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx","kind":"import-statement","original":"./PlayerSelector"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/index.ts":{"bytes":908,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","kind":"dynamic-import","original":"./ChessContainer"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytes":3926,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"../components/ChessComponent"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytes":1365,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","kind":"dynamic-import","original":"./artifact-definition"},{"path":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-chess/src/translations.ts":{"bytes":1694,"imports":[{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytes":7388,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/index.ts":{"bytes":790,"imports":[{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-chess/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4837},"packages/plugins/plugin-chess/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-WKOWLRXP.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ZYU6LFL4.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-SMOVCIQH.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TSN5O423.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/react-surface-6OYEX6SB.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":1500},"packages/plugins/plugin-chess/src/translations.ts":{"bytesInOutput":282}},"bytes":2659},"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-ZYU6LFL4.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-SMOVCIQH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8422},"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-SMOVCIQH.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ZYU6LFL4.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":5975}},"bytes":6235},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TSN5O423.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1366},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TSN5O423.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ZYU6LFL4.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":507}},"bytes":747},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-BZMTO4FZ.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6150},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-BZMTO4FZ.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":791},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2299}},"bytes":3452},"packages/plugins/plugin-chess/dist/lib/node/react-surface-6OYEX6SB.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1850},"packages/plugins/plugin-chess/dist/lib/node/react-surface-6OYEX6SB.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-WKOWLRXP.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ZYU6LFL4.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-WKOWLRXP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":402},"packages/plugins/plugin-chess/dist/lib/node/chunk-WKOWLRXP.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-BZMTO4FZ.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-ZYU6LFL4.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3966},"packages/plugins/plugin-chess/dist/lib/node/chunk-ZYU6LFL4.cjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","ChessAction","ChessType","MoveSchema","isObject","meta"],"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytesInOutput":606},"packages/plugins/plugin-chess/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/types/types.ts":{"bytesInOutput":675},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":513}},"bytes":2133},"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}}}
@@ -26,25 +26,25 @@ 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_JWVHHTQU_exports = {};
30
- __export(react_surface_JWVHHTQU_exports, {
29
+ var react_surface_6OYEX6SB_exports = {};
30
+ __export(react_surface_6OYEX6SB_exports, {
31
31
  default: () => react_surface_default
32
32
  });
33
- module.exports = __toCommonJS(react_surface_JWVHHTQU_exports);
33
+ module.exports = __toCommonJS(react_surface_6OYEX6SB_exports);
34
34
  var import_chunk_WKOWLRXP = require("./chunk-WKOWLRXP.cjs");
35
- var import_chunk_PQ64RGCS = require("./chunk-PQ64RGCS.cjs");
35
+ var import_chunk_ZYU6LFL4 = require("./chunk-ZYU6LFL4.cjs");
36
36
  var import_chunk_CSRNUKOH = require("./chunk-CSRNUKOH.cjs");
37
37
  var import_react = __toESM(require("react"));
38
38
  var import_app_framework = require("@dxos/app-framework");
39
39
  var import_echo_schema = require("@dxos/echo-schema");
40
40
  var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, [
41
41
  (0, import_app_framework.createSurface)({
42
- id: import_chunk_PQ64RGCS.CHESS_PLUGIN,
42
+ id: import_chunk_ZYU6LFL4.CHESS_PLUGIN,
43
43
  role: [
44
44
  "article",
45
45
  "section"
46
46
  ],
47
- filter: (data) => (0, import_chunk_PQ64RGCS.isObject)(data.subject),
47
+ filter: (data) => (0, import_chunk_ZYU6LFL4.isObject)(data.subject),
48
48
  component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_WKOWLRXP.ChessContainer, {
49
49
  game: data.subject,
50
50
  role
@@ -53,10 +53,10 @@ var react_surface_default = () => (0, import_app_framework.contributes)(import_a
53
53
  (0, import_app_framework.createSurface)({
54
54
  id: "plugin-chess",
55
55
  role: "canvas-node",
56
- filter: (data) => (0, import_echo_schema.isInstanceOf)(import_chunk_PQ64RGCS.ChessType, data),
56
+ filter: (data) => (0, import_echo_schema.isInstanceOf)(import_chunk_ZYU6LFL4.ChessType, data),
57
57
  component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_CSRNUKOH.ChessComponent, {
58
58
  game: data
59
59
  })
60
60
  })
61
61
  ]);
62
- //# sourceMappingURL=react-surface-JWVHHTQU.cjs.map
62
+ //# sourceMappingURL=react-surface-6OYEX6SB.cjs.map