@dxos/plugin-chess 0.8.1-main.ba2dec9 → 0.8.1-staging.31c3ee1

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 (69) hide show
  1. package/dist/lib/browser/{ChessContainer-XERPODLK.mjs → ChessContainer-6JIE36JW.mjs} +2 -4
  2. package/dist/lib/browser/ChessContainer-6JIE36JW.mjs.map +7 -0
  3. package/dist/lib/browser/{artifact-definition-B4K4M4EX.mjs → artifact-definition-GHBVTO4Y.mjs} +21 -25
  4. package/dist/lib/browser/artifact-definition-GHBVTO4Y.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-NNA3W3LX.mjs → chunk-4NJ4PMPW.mjs} +1 -1
  6. package/dist/lib/browser/{chunk-NNA3W3LX.mjs.map → chunk-4NJ4PMPW.mjs.map} +2 -2
  7. package/dist/lib/browser/chunk-7SPN7XYA.mjs +8 -0
  8. package/dist/lib/browser/index.mjs +7 -14
  9. package/dist/lib/browser/index.mjs.map +3 -3
  10. package/dist/lib/browser/{intent-resolver-KBIH2KYC.mjs → intent-resolver-JVLCHAJD.mjs} +2 -2
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/{react-surface-2PI2KNSU.mjs → react-surface-LZYVKHCU.mjs} +3 -3
  13. package/dist/lib/browser/types/index.mjs +1 -1
  14. package/dist/lib/node/{ChessContainer-LEPLNICP.cjs → ChessContainer-BZMTO4FZ.cjs} +5 -7
  15. package/dist/lib/node/ChessContainer-BZMTO4FZ.cjs.map +7 -0
  16. package/dist/lib/node/{artifact-definition-DHM4H4VO.cjs → artifact-definition-JDJAOTXF.cjs} +32 -36
  17. package/dist/lib/node/artifact-definition-JDJAOTXF.cjs.map +7 -0
  18. package/dist/lib/node/{chunk-VXYRI6VA.cjs → chunk-PQ64RGCS.cjs} +4 -4
  19. package/dist/lib/node/{chunk-VXYRI6VA.cjs.map → chunk-PQ64RGCS.cjs.map} +2 -2
  20. package/dist/lib/node/{chunk-ITDMCBQQ.cjs → chunk-WKOWLRXP.cjs} +5 -5
  21. package/dist/lib/node/index.cjs +22 -29
  22. package/dist/lib/node/index.cjs.map +3 -3
  23. package/dist/lib/node/{intent-resolver-TZFKPQOV.cjs → intent-resolver-IJXRCQA5.cjs} +7 -7
  24. package/dist/lib/node/meta.json +1 -1
  25. package/dist/lib/node/{react-surface-OHQIPHSN.cjs → react-surface-JWVHHTQU.cjs} +10 -10
  26. package/dist/lib/node/types/index.cjs +5 -5
  27. package/dist/lib/node/types/index.cjs.map +1 -1
  28. package/dist/lib/node-esm/{ChessContainer-S76WNBWN.mjs → ChessContainer-MAXLUGKY.mjs} +2 -4
  29. package/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs.map +7 -0
  30. package/dist/lib/node-esm/{artifact-definition-KOK5BODD.mjs → artifact-definition-CSY4I334.mjs} +21 -25
  31. package/dist/lib/node-esm/artifact-definition-CSY4I334.mjs.map +7 -0
  32. package/dist/lib/node-esm/{chunk-IP66EHSW.mjs → chunk-GLBZ7ZZD.mjs} +1 -1
  33. package/dist/lib/node-esm/{chunk-IP66EHSW.mjs.map → chunk-GLBZ7ZZD.mjs.map} +2 -2
  34. package/dist/lib/node-esm/{chunk-B72CIN6T.mjs → chunk-YFCRXSGH.mjs} +2 -2
  35. package/dist/lib/node-esm/index.mjs +7 -14
  36. package/dist/lib/node-esm/index.mjs.map +3 -3
  37. package/dist/lib/node-esm/{intent-resolver-WBUS64KC.mjs → intent-resolver-AWNZCS56.mjs} +2 -2
  38. package/dist/lib/node-esm/meta.json +1 -1
  39. package/dist/lib/node-esm/{react-surface-XX4VFNRS.mjs → react-surface-TQKBCMJU.mjs} +3 -3
  40. package/dist/lib/node-esm/types/index.mjs +1 -1
  41. package/dist/types/src/ChessPlugin.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  43. package/dist/types/src/meta.d.ts +2 -8
  44. package/dist/types/src/meta.d.ts.map +1 -1
  45. package/dist/types/src/translations.d.ts +2 -6
  46. package/dist/types/src/translations.d.ts.map +1 -1
  47. package/package.json +20 -20
  48. package/src/ChessPlugin.tsx +1 -2
  49. package/src/capabilities/artifact-definition.ts +9 -16
  50. package/src/components/ChessContainer.tsx +1 -1
  51. package/src/components/Chessboard.stories.tsx +2 -2
  52. package/src/meta.ts +2 -2
  53. package/src/translations.ts +1 -2
  54. package/dist/lib/browser/ChessContainer-XERPODLK.mjs.map +0 -7
  55. package/dist/lib/browser/artifact-definition-B4K4M4EX.mjs.map +0 -7
  56. package/dist/lib/browser/chunk-R26FYVUS.mjs +0 -8
  57. package/dist/lib/node/ChessContainer-LEPLNICP.cjs.map +0 -7
  58. package/dist/lib/node/artifact-definition-DHM4H4VO.cjs.map +0 -7
  59. package/dist/lib/node-esm/ChessContainer-S76WNBWN.mjs.map +0 -7
  60. package/dist/lib/node-esm/artifact-definition-KOK5BODD.mjs.map +0 -7
  61. /package/dist/lib/browser/{chunk-R26FYVUS.mjs.map → chunk-7SPN7XYA.mjs.map} +0 -0
  62. /package/dist/lib/browser/{intent-resolver-KBIH2KYC.mjs.map → intent-resolver-JVLCHAJD.mjs.map} +0 -0
  63. /package/dist/lib/browser/{react-surface-2PI2KNSU.mjs.map → react-surface-LZYVKHCU.mjs.map} +0 -0
  64. /package/dist/lib/node/{chunk-ITDMCBQQ.cjs.map → chunk-WKOWLRXP.cjs.map} +0 -0
  65. /package/dist/lib/node/{intent-resolver-TZFKPQOV.cjs.map → intent-resolver-IJXRCQA5.cjs.map} +0 -0
  66. /package/dist/lib/node/{react-surface-OHQIPHSN.cjs.map → react-surface-JWVHHTQU.cjs.map} +0 -0
  67. /package/dist/lib/node-esm/{chunk-B72CIN6T.mjs.map → chunk-YFCRXSGH.mjs.map} +0 -0
  68. /package/dist/lib/node-esm/{intent-resolver-WBUS64KC.mjs.map → intent-resolver-AWNZCS56.mjs.map} +0 -0
  69. /package/dist/lib/node-esm/{react-surface-XX4VFNRS.mjs.map → react-surface-TQKBCMJU.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_DHM4H4VO_exports = {};
20
- __export(artifact_definition_DHM4H4VO_exports, {
19
+ var artifact_definition_JDJAOTXF_exports = {};
20
+ __export(artifact_definition_JDJAOTXF_exports, {
21
21
  default: () => artifact_definition_default
22
22
  });
23
- module.exports = __toCommonJS(artifact_definition_DHM4H4VO_exports);
24
- var import_chunk_VXYRI6VA = require("./chunk-VXYRI6VA.cjs");
23
+ module.exports = __toCommonJS(artifact_definition_JDJAOTXF_exports);
24
+ var import_chunk_PQ64RGCS = require("./chunk-PQ64RGCS.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");
@@ -32,22 +32,18 @@ var import_invariant = require("@dxos/invariant");
32
32
  var import_types = require("@dxos/plugin-space/types");
33
33
  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
- var ArtifacftId = class extends import_echo_schema.S.String.annotations({
36
- description: "ID of the artifact in <spaceid>:<artifactid> format"
37
- }) {
38
- };
39
35
  var artifact_definition_default = () => {
40
36
  const definition = (0, import_artifact.defineArtifact)({
41
- id: import_chunk_VXYRI6VA.meta.id,
42
- name: import_chunk_VXYRI6VA.meta.name,
37
+ id: `artifact:${import_chunk_PQ64RGCS.meta.id}`,
38
+ name: import_chunk_PQ64RGCS.meta.name,
43
39
  description: "Provides a simple chess engine.",
44
40
  instructions: `
45
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.
46
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.
47
43
  `,
48
- schema: import_chunk_VXYRI6VA.ChessType,
44
+ schema: import_chunk_PQ64RGCS.ChessType,
49
45
  tools: [
50
- (0, import_artifact.defineTool)(import_chunk_VXYRI6VA.meta.id, {
46
+ (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
51
47
  name: "create",
52
48
  description: "Create a new chess game. Returns the artifact definition for the game.",
53
49
  caption: "Creating chess game...",
@@ -59,7 +55,7 @@ var artifact_definition_default = () => {
59
55
  execute: async ({ fen }, { extensions }) => {
60
56
  (0, import_invariant.invariant)(extensions?.space, "No space", {
61
57
  F: __dxlog_file,
62
- L: 51,
58
+ L: 46,
63
59
  S: void 0,
64
60
  A: [
65
61
  "extensions?.space",
@@ -68,14 +64,14 @@ var artifact_definition_default = () => {
68
64
  });
69
65
  (0, import_invariant.invariant)(extensions?.dispatch, "No intent dispatcher", {
70
66
  F: __dxlog_file,
71
- L: 52,
67
+ L: 47,
72
68
  S: void 0,
73
69
  A: [
74
70
  "extensions?.dispatch",
75
71
  "'No intent dispatcher'"
76
72
  ]
77
73
  });
78
- const intent = (0, import_effect.pipe)((0, import_app_framework.createIntent)(import_chunk_VXYRI6VA.ChessAction.Create, {
74
+ const intent = (0, import_effect.pipe)((0, import_app_framework.createIntent)(import_chunk_PQ64RGCS.ChessAction.Create, {
79
75
  fen
80
76
  }), (0, import_app_framework.chain)(import_types.SpaceAction.AddObject, {
81
77
  target: extensions.space
@@ -87,7 +83,7 @@ var artifact_definition_default = () => {
87
83
  return import_artifact.ToolResult.Success((0, import_assistant.createArtifactElement)(data.id));
88
84
  }
89
85
  }),
90
- (0, import_artifact.defineTool)(import_chunk_VXYRI6VA.meta.id, {
86
+ (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
91
87
  name: "list",
92
88
  description: "Query all active chess games.",
93
89
  caption: "Getting games...",
@@ -95,17 +91,17 @@ var artifact_definition_default = () => {
95
91
  execute: async (_, { extensions }) => {
96
92
  (0, import_invariant.invariant)(extensions?.space, "No space", {
97
93
  F: __dxlog_file,
98
- L: 71,
94
+ L: 66,
99
95
  S: void 0,
100
96
  A: [
101
97
  "extensions?.space",
102
98
  "'No space'"
103
99
  ]
104
100
  });
105
- const { objects: games } = await extensions.space.db.query(import_echo.Filter.schema(import_chunk_VXYRI6VA.ChessType)).run();
101
+ const { objects: games } = await extensions.space.db.query(import_echo.Filter.schema(import_chunk_PQ64RGCS.ChessType)).run();
106
102
  (0, import_invariant.invariant)(games.length > 0, "No chess games found", {
107
103
  F: __dxlog_file,
108
- L: 73,
104
+ L: 68,
109
105
  S: void 0,
110
106
  A: [
111
107
  "games.length > 0",
@@ -115,29 +111,29 @@ var artifact_definition_default = () => {
115
111
  return import_artifact.ToolResult.Success(games);
116
112
  }
117
113
  }),
118
- (0, import_artifact.defineTool)(import_chunk_VXYRI6VA.meta.id, {
114
+ (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
119
115
  name: "inspect",
120
116
  description: "Get the current state of the chess game.",
121
117
  caption: "Inspecting game...",
122
118
  schema: import_echo_schema.S.Struct({
123
- id: ArtifacftId
119
+ id: import_artifact.ArtifactId
124
120
  }),
125
121
  execute: async ({ id }, { extensions }) => {
126
122
  (0, import_invariant.invariant)(extensions?.space, "No space", {
127
123
  F: __dxlog_file,
128
- L: 83,
124
+ L: 78,
129
125
  S: void 0,
130
126
  A: [
131
127
  "extensions?.space",
132
128
  "'No space'"
133
129
  ]
134
130
  });
135
- const { objects: games } = await extensions.space.db.query(import_echo.Filter.schema(import_chunk_VXYRI6VA.ChessType)).run();
136
- const { objectId } = (0, import_echo.parseId)(id);
137
- const game = games.find((game2) => game2.id === objectId);
138
- (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_VXYRI6VA.ChessType, game), void 0, {
131
+ const game = await extensions.space.db.query({
132
+ id: import_artifact.ArtifactId.toDXN(id).toString()
133
+ }).first();
134
+ (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_PQ64RGCS.ChessType, game), void 0, {
139
135
  F: __dxlog_file,
140
- L: 87,
136
+ L: 80,
141
137
  S: void 0,
142
138
  A: [
143
139
  "isInstanceOf(ChessType, game)",
@@ -147,12 +143,12 @@ var artifact_definition_default = () => {
147
143
  return import_artifact.ToolResult.Success(game.fen);
148
144
  }
149
145
  }),
150
- (0, import_artifact.defineTool)(import_chunk_VXYRI6VA.meta.id, {
146
+ (0, import_artifact.defineTool)(import_chunk_PQ64RGCS.meta.id, {
151
147
  name: "move",
152
148
  description: "Make a move in the chess game.",
153
149
  caption: "Making chess move...",
154
150
  schema: import_echo_schema.S.Struct({
155
- id: ArtifacftId,
151
+ id: import_artifact.ArtifactId,
156
152
  move: import_echo_schema.S.String.annotations({
157
153
  description: "The move to make in the chess game.",
158
154
  examples: [
@@ -164,19 +160,19 @@ var artifact_definition_default = () => {
164
160
  execute: async ({ id, move }, { extensions }) => {
165
161
  (0, import_invariant.invariant)(extensions?.space, "No space", {
166
162
  F: __dxlog_file,
167
- L: 103,
163
+ L: 97,
168
164
  S: void 0,
169
165
  A: [
170
166
  "extensions?.space",
171
167
  "'No space'"
172
168
  ]
173
169
  });
174
- const { objects: games } = await extensions.space.db.query(import_echo.Filter.schema(import_chunk_VXYRI6VA.ChessType)).run();
175
- const { objectId } = (0, import_echo.parseId)(id);
176
- const game = games.find((game2) => game2.id === objectId);
177
- (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_VXYRI6VA.ChessType, game), void 0, {
170
+ const game = await extensions.space.db.query({
171
+ id: import_artifact.ArtifactId.toDXN(id).toString()
172
+ }).first();
173
+ (0, import_invariant.invariant)((0, import_echo_schema.isInstanceOf)(import_chunk_PQ64RGCS.ChessType, game), void 0, {
178
174
  F: __dxlog_file,
179
- L: 107,
175
+ L: 99,
180
176
  S: void 0,
181
177
  A: [
182
178
  "isInstanceOf(ChessType, game)",
@@ -198,4 +194,4 @@ var artifact_definition_default = () => {
198
194
  });
199
195
  return (0, import_app_framework.contributes)(import_app_framework.Capabilities.ArtifactDefinition, definition);
200
196
  };
201
- //# sourceMappingURL=artifact-definition-DHM4H4VO.cjs.map
197
+ //# sourceMappingURL=artifact-definition-JDJAOTXF.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 } from 'effect';\n\nimport { Capabilities, chain, contributes, createIntent, type PromiseIntentDispatcher } from '@dxos/app-framework';\nimport { ArtifactId, defineArtifact, defineTool, ToolResult } from '@dxos/artifact';\nimport { createArtifactElement } from '@dxos/assistant';\nimport { isInstanceOf, S } 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: S.Struct({\n fen: S.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 },\n }),\n defineTool(meta.id, {\n name: 'list',\n description: 'Query all active chess games.',\n caption: 'Getting games...',\n schema: S.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: S.Struct({ id: ArtifactId }),\n execute: async ({ id }, { extensions }) => {\n invariant(extensions?.space, 'No space');\n const game = await extensions.space.db.query({ id: ArtifactId.toDXN(id).toString() }).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: S.Struct({\n id: ArtifactId,\n move: S.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.query({ id: ArtifactId.toDXN(id).toString() }).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,oBAAqB;AAErB,2BAA6F;AAC7F,sBAAmE;AACnE,uBAAsC;AACtC,yBAAgC;AAChC,uBAA0B;AAC1B,mBAA4B;AAC5B,kBAAmC;;AAanC,IAAA,8BAAe,MAAA;AACb,QAAMA,iBAAaC,gCAAe;IAChCC,IAAI,YAAYC,2BAAKD,EAAE;IACvBE,MAAMD,2BAAKC;IACXC,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BAAWG,QAAQW,KAAKjC,GAAG;QACpC;MACF,CAAA;;EAEJ,CAAA;AAEA,aAAO2C,kCAAYC,kCAAaC,oBAAoB3D,UAAAA;AACtD;",
6
+ "names": ["definition", "defineArtifact", "id", "meta", "name", "description", "instructions", "schema", "ChessType", "tools", "defineTool", "caption", "S", "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", "_", "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_VXYRI6VA_exports = {};
20
- __export(chunk_VXYRI6VA_exports, {
19
+ var chunk_PQ64RGCS_exports = {};
20
+ __export(chunk_PQ64RGCS_exports, {
21
21
  CHESS_PLUGIN: () => CHESS_PLUGIN,
22
22
  ChessAction: () => ChessAction,
23
23
  ChessType: () => ChessType,
@@ -25,7 +25,7 @@ __export(chunk_VXYRI6VA_exports, {
25
25
  isObject: () => isObject,
26
26
  meta: () => meta
27
27
  });
28
- module.exports = __toCommonJS(chunk_VXYRI6VA_exports);
28
+ module.exports = __toCommonJS(chunk_PQ64RGCS_exports);
29
29
  var import_echo_schema = require("@dxos/echo-schema");
30
30
  var import_echo_schema2 = require("@dxos/echo-schema");
31
31
  var import_live_object = require("@dxos/live-object");
@@ -87,4 +87,4 @@ var isObject = (object) => {
87
87
  isObject,
88
88
  meta
89
89
  });
90
- //# sourceMappingURL=chunk-VXYRI6VA.cjs.map
90
+ //# sourceMappingURL=chunk-PQ64RGCS.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types/schema.ts", "../../../src/types/types.ts", "../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { S, TypedObject } from '@dxos/echo-schema';\n\nexport const MoveSchema = S.mutable(\n S.partial(\n S.Struct({\n source: S.String,\n target: S.String,\n piece: S.String,\n }),\n ),\n);\n\nexport class ChessType extends TypedObject({ typename: 'dxos.org/type/Chess', version: '0.1.0' })(\n {\n name: S.optional(S.String),\n playerWhite: S.String,\n playerBlack: S.String,\n moves: S.mutable(S.Array(S.String)),\n // TODO(wittjosiah): Remove. Redundant with moves.\n pgn: S.String,\n fen: S.String,\n },\n { partial: true },\n) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { isInstanceOf, S } from '@dxos/echo-schema';\nimport { isReactiveObject } from '@dxos/live-object';\n\nimport { ChessType } from './schema';\nimport { CHESS_PLUGIN } from '../meta';\n\nexport namespace ChessAction {\n const CHESS_ACTION = `${CHESS_PLUGIN}/action`;\n\n export class Create extends S.TaggedClass<Create>()(`${CHESS_ACTION}/create`, {\n input: S.Struct({\n name: S.optional(S.String),\n fen: S.optional(S.String),\n }),\n output: S.Struct({\n object: ChessType,\n }),\n }) {}\n}\n\nexport const isObject = (object: unknown): object is typeof ChessType => {\n return isReactiveObject(object) && isInstanceOf(ChessType, object);\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CHESS_PLUGIN = 'dxos.org/plugin/chess';\n\nexport const meta = {\n id: CHESS_PLUGIN,\n name: 'Chess',\n description:\n 'Chess is a simple plugin which allows you to render an interactive chessboard inside of a plank. This chessboard can be used for collaborative chess games, or for practice experiments with the LLM. ',\n icon: 'ph--shield-chevron--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-chess',\n screenshots: ['https://dxos.network/plugin-details-chess-dark.png'],\n} satisfies PluginMeta;\n"],
5
- "mappings": ";;;;;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;AAC7D;",
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { S, TypedObject } from '@dxos/echo-schema';\n\nexport const MoveSchema = S.mutable(\n S.partial(\n S.Struct({\n source: S.String,\n target: S.String,\n piece: S.String,\n }),\n ),\n);\n\nexport class ChessType extends TypedObject({ typename: 'dxos.org/type/Chess', version: '0.1.0' })(\n {\n name: S.optional(S.String),\n playerWhite: S.String,\n playerBlack: S.String,\n moves: S.mutable(S.Array(S.String)),\n // TODO(wittjosiah): Remove. Redundant with moves.\n pgn: S.String,\n fen: S.String,\n },\n { partial: true },\n) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { isInstanceOf, S } from '@dxos/echo-schema';\nimport { isReactiveObject } from '@dxos/live-object';\n\nimport { ChessType } from './schema';\nimport { CHESS_PLUGIN } from '../meta';\n\nexport namespace ChessAction {\n const CHESS_ACTION = `${CHESS_PLUGIN}/action`;\n\n export class Create extends S.TaggedClass<Create>()(`${CHESS_ACTION}/create`, {\n input: S.Struct({\n name: S.optional(S.String),\n fen: S.optional(S.String),\n }),\n output: S.Struct({\n object: ChessType,\n }),\n }) {}\n}\n\nexport const isObject = (object: unknown): object is typeof ChessType => {\n return isReactiveObject(object) && isInstanceOf(ChessType, object);\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CHESS_PLUGIN = 'dxos.org/plugin/chess';\n\nexport const meta: 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,yBAA+B;ACA/B,IAAAA,sBAAgC;AA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", "String", "target", "piece", "ChessType", "TypedObject", "typename", "version", "name", "optional", "playerWhite", "playerBlack", "moves", "Array", "pgn", "fen", "CHESS_PLUGIN", "meta", "id", "description", "icon", "screenshots", "ChessAction", "CHESS_ACTION", "Create", "TaggedClass", "input", "output", "object", "isObject", "isReactiveObject", "isInstanceOf"]
7
7
  }
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_ITDMCBQQ_exports = {};
30
- __export(chunk_ITDMCBQQ_exports, {
29
+ var chunk_WKOWLRXP_exports = {};
30
+ __export(chunk_WKOWLRXP_exports, {
31
31
  ChessContainer: () => ChessContainer
32
32
  });
33
- module.exports = __toCommonJS(chunk_ITDMCBQQ_exports);
33
+ module.exports = __toCommonJS(chunk_WKOWLRXP_exports);
34
34
  var import_react = require("react");
35
- var ChessContainer = (0, import_react.lazy)(() => import("./ChessContainer-LEPLNICP.cjs"));
35
+ var ChessContainer = (0, import_react.lazy)(() => import("./ChessContainer-BZMTO4FZ.cjs"));
36
36
  // Annotate the CommonJS export names for ESM import in node:
37
37
  0 && (module.exports = {
38
38
  ChessContainer
39
39
  });
40
- //# sourceMappingURL=chunk-ITDMCBQQ.cjs.map
40
+ //# sourceMappingURL=chunk-WKOWLRXP.cjs.map
@@ -29,83 +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_VXYRI6VA.CHESS_PLUGIN,
32
+ CHESS_PLUGIN: () => import_chunk_PQ64RGCS.CHESS_PLUGIN,
33
33
  ChessComponent: () => import_chunk_CSRNUKOH.ChessComponent,
34
- ChessContainer: () => import_chunk_ITDMCBQQ.ChessContainer,
34
+ ChessContainer: () => import_chunk_WKOWLRXP.ChessContainer,
35
35
  ChessPlugin: () => ChessPlugin,
36
36
  IntentResolver: () => IntentResolver,
37
37
  ReactSurface: () => ReactSurface,
38
- meta: () => import_chunk_VXYRI6VA.meta
38
+ meta: () => import_chunk_PQ64RGCS.meta
39
39
  });
40
40
  module.exports = __toCommonJS(node_exports);
41
- var import_chunk_ITDMCBQQ = require("./chunk-ITDMCBQQ.cjs");
42
- var import_chunk_VXYRI6VA = require("./chunk-VXYRI6VA.cjs");
41
+ var import_chunk_WKOWLRXP = require("./chunk-WKOWLRXP.cjs");
42
+ var import_chunk_PQ64RGCS = require("./chunk-PQ64RGCS.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-DHM4H4VO.cjs"));
50
- var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-TZFKPQOV.cjs"));
51
- var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-OHQIPHSN.cjs"));
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"));
52
52
  var translations_default = [
53
53
  {
54
54
  "en-US": {
55
- [import_chunk_VXYRI6VA.ChessType.typename]: {
56
- "typename label": "Game"
55
+ [import_chunk_PQ64RGCS.ChessType.typename]: {
56
+ "typename label": "Game",
57
+ "object name placeholder": "New game"
57
58
  },
58
- [import_chunk_VXYRI6VA.CHESS_PLUGIN]: {
59
+ [import_chunk_PQ64RGCS.CHESS_PLUGIN]: {
59
60
  "plugin name": "Chess",
60
- "game title placeholder": "New game",
61
- "create game label": "Create game",
62
61
  "delete game label": "Delete"
63
62
  }
64
63
  }
65
64
  }
66
65
  ];
67
- var ChessPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_VXYRI6VA.meta, [
66
+ var ChessPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_PQ64RGCS.meta, [
68
67
  (0, import_app_framework2.defineModule)({
69
- id: `${import_chunk_VXYRI6VA.meta.id}/module/translations`,
68
+ id: `${import_chunk_PQ64RGCS.meta.id}/module/translations`,
70
69
  activatesOn: import_app_framework2.Events.SetupTranslations,
71
70
  activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Translations, translations_default)
72
71
  }),
73
72
  (0, import_app_framework2.defineModule)({
74
- id: `${import_chunk_VXYRI6VA.meta.id}/module/metadata`,
73
+ id: `${import_chunk_PQ64RGCS.meta.id}/module/metadata`,
75
74
  activatesOn: import_app_framework2.Events.SetupMetadata,
76
75
  activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Metadata, {
77
- id: import_chunk_VXYRI6VA.ChessType.typename,
76
+ id: import_chunk_PQ64RGCS.ChessType.typename,
78
77
  metadata: {
79
- placeholder: [
80
- "game title placeholder",
81
- {
82
- ns: import_chunk_VXYRI6VA.CHESS_PLUGIN
83
- }
84
- ],
85
78
  icon: "ph--shield-chevron--regular"
86
79
  }
87
80
  })
88
81
  }),
89
82
  (0, import_app_framework2.defineModule)({
90
- id: `${import_chunk_VXYRI6VA.meta.id}/module/object-form`,
83
+ id: `${import_chunk_PQ64RGCS.meta.id}/module/object-form`,
91
84
  activatesOn: import_plugin_client.ClientEvents.SetupSchema,
92
85
  activate: () => (0, import_app_framework2.contributes)(import_plugin_space.SpaceCapabilities.ObjectForm, (0, import_types.defineObjectForm)({
93
- objectSchema: import_chunk_VXYRI6VA.ChessType,
94
- getIntent: () => (0, import_app_framework2.createIntent)(import_chunk_VXYRI6VA.ChessAction.Create)
86
+ objectSchema: import_chunk_PQ64RGCS.ChessType,
87
+ getIntent: () => (0, import_app_framework2.createIntent)(import_chunk_PQ64RGCS.ChessAction.Create)
95
88
  }))
96
89
  }),
97
90
  (0, import_app_framework2.defineModule)({
98
- id: `${import_chunk_VXYRI6VA.meta.id}/module/react-surface`,
91
+ id: `${import_chunk_PQ64RGCS.meta.id}/module/react-surface`,
99
92
  activatesOn: import_app_framework2.Events.SetupReactSurface,
100
93
  activate: ReactSurface
101
94
  }),
102
95
  (0, import_app_framework2.defineModule)({
103
- id: `${import_chunk_VXYRI6VA.meta.id}/module/intent-resolver`,
96
+ id: `${import_chunk_PQ64RGCS.meta.id}/module/intent-resolver`,
104
97
  activatesOn: import_app_framework2.Events.SetupIntentResolver,
105
98
  activate: IntentResolver
106
99
  }),
107
100
  (0, import_app_framework2.defineModule)({
108
- id: `${import_chunk_VXYRI6VA.meta.id}/module/artifact-definition`,
101
+ id: `${import_chunk_PQ64RGCS.meta.id}/module/artifact-definition`,
109
102
  activatesOn: import_app_framework2.Events.SetupArtifactDefinition,
110
103
  activate: ArtifactDefinition
111
104
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const ArtifactDefinition = lazy(() => import('./artifact-definition'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\n\nimport { ArtifactDefinition, IntentResolver, ReactSurface } from './capabilities';\nimport { CHESS_PLUGIN, meta } from './meta';\nimport translations from './translations';\nimport { ChessAction, ChessType } from './types';\n\nexport const ChessPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ChessType.typename,\n metadata: {\n placeholder: ['game title placeholder', { ns: CHESS_PLUGIN }],\n icon: 'ph--shield-chevron--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: ChessType,\n getIntent: () => createIntent(ChessAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/artifact-definition`,\n activatesOn: Events.SetupArtifactDefinition,\n activate: ArtifactDefinition,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CHESS_PLUGIN } from './meta';\nimport { ChessType } from './types';\n\nexport default [\n {\n 'en-US': {\n [ChessType.typename]: {\n 'typename label': 'Game',\n },\n [CHESS_PLUGIN]: {\n 'plugin name': 'Chess',\n 'game title placeholder': 'New game',\n 'create game label': 'Create game',\n 'delete game label': 'Delete',\n },\n },\n },\n];\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAqB;ACArB,IAAAA,wBAA4F;AAC5F,2BAA6B;AAC7B,0BAAkC;AAClC,mBAAiC;ADD1B,IAAMC,yBAAqBC,2BAAK,MAAM,OAAO,oCAAA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- "names": ["import_app_framework", "ArtifactDefinition", "lazy", "IntentResolver", "ReactSurface", "ChessType", "typename", "CHESS_PLUGIN", "ChessPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "metadata", "placeholder", "ns", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ChessAction", "Create", "SetupReactSurface", "SetupIntentResolver", "SetupArtifactDefinition"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const ArtifactDefinition = lazy(() => import('./artifact-definition'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\n\nimport { ArtifactDefinition, IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ChessAction, ChessType } from './types';\n\nexport const ChessPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ChessType.typename,\n metadata: {\n icon: 'ph--shield-chevron--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: ChessType,\n getIntent: () => createIntent(ChessAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/artifact-definition`,\n activatesOn: Events.SetupArtifactDefinition,\n activate: ArtifactDefinition,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CHESS_PLUGIN } from './meta';\nimport { ChessType } from './types';\n\nexport default [\n {\n 'en-US': {\n [ChessType.typename]: {\n 'typename label': 'Game',\n 'object name placeholder': 'New game',\n },\n [CHESS_PLUGIN]: {\n 'plugin name': 'Chess',\n 'delete game label': 'Delete',\n },\n },\n },\n];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAqB;ACArB,IAAAA,wBAA4F;AAC5F,2BAA6B;AAC7B,0BAAkC;AAClC,mBAAiC;ADD1B,IAAMC,yBAAqBC,2BAAK,MAAM,OAAO,oCAAA,CAAA;AAC7C,IAAMC,qBAAiBD,2BAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,mBAAeF,2BAAK,MAAM,OAAO,8BAAA,CAAA;AED9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACG,gCAAUC,QAAQ,GAAG;QACpB,kBAAkB;QAClB,2BAA2B;MAC7B;MACA,CAACC,kCAAAA,GAAe;QACd,eAAe;QACf,qBAAqB;MACvB;IACF;EACF;;ADLK,IAAMC,cAAc,UACzBC,oCAAaC,4BAAM;MACjBC,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOC;IACpBC,UAAU,UAAMC,mCAAYC,mCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAT,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOO;IACpBL,UAAU,UACRC,mCAAYC,mCAAaI,UAAU;MACjCV,IAAIP,gCAAUC;MACdiB,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;MACAb,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaY,kCAAaC;IAC1BV,UAAU,UACRC,mCACEU,sCAAkBC,gBAClBC,+BAAiB;MACfC,cAAczB;MACd0B,WAAW,UAAMC,oCAAaC,kCAAYC,MAAM;IAClD,CAAA,CAAA;EAEN,CAAA;MACAvB,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOqB;IACpBnB,UAAUZ;EACZ,CAAA;MACAO,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOsB;IACpBpB,UAAUb;EACZ,CAAA;MACAQ,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOuB;IACpBrB,UAAUf;EACZ,CAAA;CACD;",
6
+ "names": ["import_app_framework", "ArtifactDefinition", "lazy", "IntentResolver", "ReactSurface", "ChessType", "typename", "CHESS_PLUGIN", "ChessPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ChessAction", "Create", "SetupReactSurface", "SetupIntentResolver", "SetupArtifactDefinition"]
7
7
  }
@@ -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_TZFKPQOV_exports = {};
20
- __export(intent_resolver_TZFKPQOV_exports, {
19
+ var intent_resolver_IJXRCQA5_exports = {};
20
+ __export(intent_resolver_IJXRCQA5_exports, {
21
21
  default: () => intent_resolver_default
22
22
  });
23
- module.exports = __toCommonJS(intent_resolver_TZFKPQOV_exports);
24
- var import_chunk_VXYRI6VA = require("./chunk-VXYRI6VA.cjs");
23
+ module.exports = __toCommonJS(intent_resolver_IJXRCQA5_exports);
24
+ var import_chunk_PQ64RGCS = require("./chunk-PQ64RGCS.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_VXYRI6VA.ChessAction.Create,
29
+ intent: import_chunk_PQ64RGCS.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_VXYRI6VA.ChessType, {
34
+ object: (0, import_live_object.create)(import_chunk_PQ64RGCS.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-TZFKPQOV.cjs.map
43
+ //# sourceMappingURL=intent-resolver-IJXRCQA5.cjs.map
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2089,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2700,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":3051,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-chess/src/types/index.ts":{"bytes":586,"imports":[{"path":"packages/plugins/plugin-chess/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-chess/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytes":19661,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytes":2748,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytes":4522,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytes":8761,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3335,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx","kind":"import-statement","original":"./PlayerSelector"}],"format":"esm"},"packages/plugins/plugin-chess/src/components/index.ts":{"bytes":908,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"./ChessComponent"},{"path":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","kind":"dynamic-import","original":"./ChessContainer"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytes":3926,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-chess/src/components/ChessComponent.tsx","kind":"import-statement","original":"../components/ChessComponent"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytes":1365,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","kind":"dynamic-import","original":"./artifact-definition"},{"path":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-chess/src/translations.ts":{"bytes":1825,"imports":[{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytes":7895,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-chess/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-chess/src/index.ts":{"bytes":790,"imports":[{"path":"packages/plugins/plugin-chess/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-chess/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-chess/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-chess/src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-chess/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5064},"packages/plugins/plugin-chess/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-DHM4H4VO.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TZFKPQOV.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node/react-surface-OHQIPHSN.cjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["ArtifactDefinition","CHESS_PLUGIN","ChessComponent","ChessContainer","ChessPlugin","IntentResolver","ReactSurface","meta"],"entryPoint":"packages/plugins/plugin-chess/src/index.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/index.ts":{"bytesInOutput":273},"packages/plugins/plugin-chess/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/ChessPlugin.tsx":{"bytesInOutput":1623},"packages/plugins/plugin-chess/src/translations.ts":{"bytesInOutput":325}},"bytes":2825},"packages/plugins/plugin-chess/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/node/types/index.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":194},"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-DHM4H4VO.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8641},"packages/plugins/plugin-chess/dist/lib/node/artifact-definition-DHM4H4VO.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/artifact","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts":{"bytesInOutput":6093}},"bytes":6353},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TZFKPQOV.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1374},"packages/plugins/plugin-chess/dist/lib/node/intent-resolver-TZFKPQOV.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytesInOutput":511}},"bytes":751},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-LEPLNICP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6188},"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-LEPLNICP.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/components/ChessContainer.tsx","inputs":{"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytesInOutput":811},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2299}},"bytes":3472},"packages/plugins/plugin-chess/dist/lib/node/react-surface-OHQIPHSN.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1850},"packages/plugins/plugin-chess/dist/lib/node/react-surface-OHQIPHSN.cjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytesInOutput":745}},"bytes":1107},"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":402},"packages/plugins/plugin-chess/dist/lib/node/chunk-ITDMCBQQ.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node/ChessContainer-LEPLNICP.cjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":235},"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3767},"packages/plugins/plugin-chess/dist/lib/node/chunk-VXYRI6VA.cjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","ChessAction","ChessType","MoveSchema","isObject","meta"],"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytesInOutput":501},"packages/plugins/plugin-chess/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/types/types.ts":{"bytesInOutput":613},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":513}},"bytes":1966},"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2436},"packages/plugins/plugin-chess/dist/lib/node/chunk-CSRNUKOH.cjs":{"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["ChessComponent"],"inputs":{"packages/plugins/plugin-chess/src/components/ChessComponent.tsx":{"bytesInOutput":990}},"bytes":1131}}}
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}}}