@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.
- package/dist/lib/browser/{artifact-definition-GHBVTO4Y.mjs → artifact-definition-M2IQ5ZJO.mjs} +22 -20
- package/dist/lib/browser/artifact-definition-M2IQ5ZJO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4NJ4PMPW.mjs → chunk-FSWWNFQE.mjs} +22 -20
- package/dist/lib/browser/chunk-FSWWNFQE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +4 -4
- package/dist/lib/browser/{intent-resolver-JVLCHAJD.mjs → intent-resolver-O5FBTUC6.mjs} +4 -4
- package/dist/lib/browser/intent-resolver-O5FBTUC6.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-LZYVKHCU.mjs → react-surface-IT4WC47R.mjs} +2 -2
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/{artifact-definition-JDJAOTXF.cjs → artifact-definition-SMOVCIQH.cjs} +33 -31
- package/dist/lib/node/artifact-definition-SMOVCIQH.cjs.map +7 -0
- package/dist/lib/node/{chunk-PQ64RGCS.cjs → chunk-ZYU6LFL4.cjs} +22 -20
- package/dist/lib/node/chunk-ZYU6LFL4.cjs.map +7 -0
- package/dist/lib/node/index.cjs +18 -18
- package/dist/lib/node/{intent-resolver-IJXRCQA5.cjs → intent-resolver-TSN5O423.cjs} +7 -7
- package/dist/lib/node/intent-resolver-TSN5O423.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-JWVHHTQU.cjs → react-surface-6OYEX6SB.cjs} +8 -8
- package/dist/lib/node/types/index.cjs +5 -5
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{artifact-definition-CSY4I334.mjs → artifact-definition-HTZLNGEV.mjs} +22 -20
- package/dist/lib/node-esm/artifact-definition-HTZLNGEV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-GLBZ7ZZD.mjs → chunk-FKW7YGV5.mjs} +22 -20
- package/dist/lib/node-esm/chunk-FKW7YGV5.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +4 -4
- package/dist/lib/node-esm/{intent-resolver-AWNZCS56.mjs → intent-resolver-PXPQTYAA.mjs} +4 -4
- package/dist/lib/node-esm/intent-resolver-PXPQTYAA.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-TQKBCMJU.mjs → react-surface-G4CSGFTJ.mjs} +2 -2
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +15 -15
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +7 -7
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/package.json +21 -21
- package/src/capabilities/artifact-definition.ts +18 -12
- package/src/capabilities/intent-resolver.ts +2 -2
- package/src/types/schema.ts +15 -13
- package/src/types/types.ts +10 -8
- package/dist/lib/browser/artifact-definition-GHBVTO4Y.mjs.map +0 -7
- package/dist/lib/browser/chunk-4NJ4PMPW.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-JVLCHAJD.mjs.map +0 -7
- package/dist/lib/node/artifact-definition-JDJAOTXF.cjs.map +0 -7
- package/dist/lib/node/chunk-PQ64RGCS.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-IJXRCQA5.cjs.map +0 -7
- package/dist/lib/node-esm/artifact-definition-CSY4I334.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs.map +0 -7
- /package/dist/lib/browser/{react-surface-LZYVKHCU.mjs.map → react-surface-IT4WC47R.mjs.map} +0 -0
- /package/dist/lib/node/{react-surface-JWVHHTQU.cjs.map → react-surface-6OYEX6SB.cjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-TQKBCMJU.mjs.map → react-surface-G4CSGFTJ.mjs.map} +0 -0
|
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var types_exports = {};
|
|
20
20
|
__export(types_exports, {
|
|
21
|
-
ChessAction: () =>
|
|
22
|
-
ChessType: () =>
|
|
23
|
-
MoveSchema: () =>
|
|
24
|
-
isObject: () =>
|
|
21
|
+
ChessAction: () => import_chunk_ZYU6LFL4.ChessAction,
|
|
22
|
+
ChessType: () => import_chunk_ZYU6LFL4.ChessType,
|
|
23
|
+
MoveSchema: () => import_chunk_ZYU6LFL4.MoveSchema,
|
|
24
|
+
isObject: () => import_chunk_ZYU6LFL4.isObject
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(types_exports);
|
|
27
|
-
var
|
|
27
|
+
var import_chunk_ZYU6LFL4 = require("../chunk-ZYU6LFL4.cjs");
|
|
28
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
29
|
0 && (module.exports = {
|
|
30
30
|
ChessAction,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.cjs"],
|
|
4
|
-
"sourcesContent": ["import {\n ChessAction,\n ChessType,\n MoveSchema,\n isObject\n} from \"../chunk-
|
|
4
|
+
"sourcesContent": ["import {\n ChessAction,\n ChessType,\n MoveSchema,\n isObject\n} from \"../chunk-ZYU6LFL4.cjs\";\nexport {\n ChessAction,\n ChessType,\n MoveSchema,\n isObject\n};\n//# sourceMappingURL=index.cjs.map\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAKO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/lib/node-esm/{artifact-definition-CSY4I334.mjs → artifact-definition-HTZLNGEV.mjs}
RENAMED
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
ChessAction,
|
|
4
4
|
ChessType,
|
|
5
5
|
meta
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FKW7YGV5.mjs";
|
|
7
7
|
|
|
8
8
|
// packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts
|
|
9
9
|
import { Chess } from "chess.js";
|
|
10
|
-
import { pipe } from "effect";
|
|
10
|
+
import { pipe, Schema } from "effect";
|
|
11
11
|
import { Capabilities, chain, contributes, createIntent } from "@dxos/app-framework";
|
|
12
12
|
import { ArtifactId, defineArtifact, defineTool, ToolResult } from "@dxos/artifact";
|
|
13
|
-
import { createArtifactElement } from "@dxos/assistant";
|
|
14
|
-
import { isInstanceOf
|
|
13
|
+
import { createArtifactElement, VersionPin } from "@dxos/assistant";
|
|
14
|
+
import { isInstanceOf } from "@dxos/echo-schema";
|
|
15
15
|
import { invariant } from "@dxos/invariant";
|
|
16
16
|
import { SpaceAction } from "@dxos/plugin-space/types";
|
|
17
17
|
import { Filter } from "@dxos/react-client/echo";
|
|
@@ -31,8 +31,8 @@ var artifact_definition_default = () => {
|
|
|
31
31
|
name: "create",
|
|
32
32
|
description: "Create a new chess game. Returns the artifact definition for the game.",
|
|
33
33
|
caption: "Creating chess game...",
|
|
34
|
-
schema:
|
|
35
|
-
fen:
|
|
34
|
+
schema: Schema.Struct({
|
|
35
|
+
fen: Schema.String.annotations({
|
|
36
36
|
description: "The state of the chess game in the FEN format."
|
|
37
37
|
})
|
|
38
38
|
}),
|
|
@@ -64,18 +64,20 @@ var artifact_definition_default = () => {
|
|
|
64
64
|
if (!data || error) {
|
|
65
65
|
return ToolResult.Error(error?.message ?? "Failed to create chess game");
|
|
66
66
|
}
|
|
67
|
-
return ToolResult.Success(createArtifactElement(data.id)
|
|
67
|
+
return ToolResult.Success(createArtifactElement(data.id), [
|
|
68
|
+
VersionPin.createBlock(VersionPin.fromObject(data.object))
|
|
69
|
+
]);
|
|
68
70
|
}
|
|
69
71
|
}),
|
|
70
72
|
defineTool(meta.id, {
|
|
71
73
|
name: "list",
|
|
72
74
|
description: "Query all active chess games.",
|
|
73
75
|
caption: "Getting games...",
|
|
74
|
-
schema:
|
|
76
|
+
schema: Schema.Struct({}),
|
|
75
77
|
execute: async (_, { extensions }) => {
|
|
76
78
|
invariant(extensions?.space, "No space", {
|
|
77
79
|
F: __dxlog_file,
|
|
78
|
-
L:
|
|
80
|
+
L: 68,
|
|
79
81
|
S: void 0,
|
|
80
82
|
A: [
|
|
81
83
|
"extensions?.space",
|
|
@@ -85,7 +87,7 @@ var artifact_definition_default = () => {
|
|
|
85
87
|
const { objects: games } = await extensions.space.db.query(Filter.schema(ChessType)).run();
|
|
86
88
|
invariant(games.length > 0, "No chess games found", {
|
|
87
89
|
F: __dxlog_file,
|
|
88
|
-
L:
|
|
90
|
+
L: 70,
|
|
89
91
|
S: void 0,
|
|
90
92
|
A: [
|
|
91
93
|
"games.length > 0",
|
|
@@ -99,13 +101,13 @@ var artifact_definition_default = () => {
|
|
|
99
101
|
name: "inspect",
|
|
100
102
|
description: "Get the current state of the chess game.",
|
|
101
103
|
caption: "Inspecting game...",
|
|
102
|
-
schema:
|
|
104
|
+
schema: Schema.Struct({
|
|
103
105
|
id: ArtifactId
|
|
104
106
|
}),
|
|
105
107
|
execute: async ({ id }, { extensions }) => {
|
|
106
108
|
invariant(extensions?.space, "No space", {
|
|
107
109
|
F: __dxlog_file,
|
|
108
|
-
L:
|
|
110
|
+
L: 80,
|
|
109
111
|
S: void 0,
|
|
110
112
|
A: [
|
|
111
113
|
"extensions?.space",
|
|
@@ -113,11 +115,11 @@ var artifact_definition_default = () => {
|
|
|
113
115
|
]
|
|
114
116
|
});
|
|
115
117
|
const game = await extensions.space.db.query({
|
|
116
|
-
id: ArtifactId.toDXN(id).toString()
|
|
118
|
+
id: ArtifactId.toDXN(id, extensions.space.id).toString()
|
|
117
119
|
}).first();
|
|
118
120
|
invariant(isInstanceOf(ChessType, game), void 0, {
|
|
119
121
|
F: __dxlog_file,
|
|
120
|
-
L:
|
|
122
|
+
L: 84,
|
|
121
123
|
S: void 0,
|
|
122
124
|
A: [
|
|
123
125
|
"isInstanceOf(ChessType, game)",
|
|
@@ -131,9 +133,9 @@ var artifact_definition_default = () => {
|
|
|
131
133
|
name: "move",
|
|
132
134
|
description: "Make a move in the chess game.",
|
|
133
135
|
caption: "Making chess move...",
|
|
134
|
-
schema:
|
|
136
|
+
schema: Schema.Struct({
|
|
135
137
|
id: ArtifactId,
|
|
136
|
-
move:
|
|
138
|
+
move: Schema.String.annotations({
|
|
137
139
|
description: "The move to make in the chess game.",
|
|
138
140
|
examples: [
|
|
139
141
|
"e4",
|
|
@@ -144,7 +146,7 @@ var artifact_definition_default = () => {
|
|
|
144
146
|
execute: async ({ id, move }, { extensions }) => {
|
|
145
147
|
invariant(extensions?.space, "No space", {
|
|
146
148
|
F: __dxlog_file,
|
|
147
|
-
L:
|
|
149
|
+
L: 101,
|
|
148
150
|
S: void 0,
|
|
149
151
|
A: [
|
|
150
152
|
"extensions?.space",
|
|
@@ -152,11 +154,11 @@ var artifact_definition_default = () => {
|
|
|
152
154
|
]
|
|
153
155
|
});
|
|
154
156
|
const game = await extensions.space.db.query({
|
|
155
|
-
id: ArtifactId.toDXN(id).toString()
|
|
157
|
+
id: ArtifactId.toDXN(id, extensions.space.id).toString()
|
|
156
158
|
}).first();
|
|
157
159
|
invariant(isInstanceOf(ChessType, game), void 0, {
|
|
158
160
|
F: __dxlog_file,
|
|
159
|
-
L:
|
|
161
|
+
L: 105,
|
|
160
162
|
S: void 0,
|
|
161
163
|
A: [
|
|
162
164
|
"isInstanceOf(ChessType, game)",
|
|
@@ -181,4 +183,4 @@ var artifact_definition_default = () => {
|
|
|
181
183
|
export {
|
|
182
184
|
artifact_definition_default as default
|
|
183
185
|
};
|
|
184
|
-
//# sourceMappingURL=artifact-definition-
|
|
186
|
+
//# sourceMappingURL=artifact-definition-HTZLNGEV.mjs.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,SAASA,aAAa;AACtB,SAASC,MAAMC,cAAc;AAE7B,SAASC,cAAcC,OAAOC,aAAaC,oBAAkD;AAC7F,SAASC,YAAYC,gBAAgBC,YAAYC,kBAAkB;AACnE,SAASC,uBAAuBC,kBAAkB;AAClD,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAC1B,SAASC,mBAAmB;AAC5B,SAASC,cAA0B;;AAanC,IAAA,8BAAe,MAAA;AACb,QAAMC,aAAaC,eAAe;IAChCC,IAAI,YAAYC,KAAKD,EAAE;IACvBE,MAAMD,KAAKC;IACXC,aAAa;IACbC,cAAc;;;;IAIdC,QAAQC;IACRC,OAAO;MACLC,WAAWP,KAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,OAAOC,OAAO;UACpBC,KAAKF,OAAOG,OAAOC,YAAY;YAAEX,aAAa;UAAiD,CAAA;QACjG,CAAA;QACAY,SAAS,OAAO,EAAEH,IAAG,GAAI,EAAEI,WAAU,MAAE;AACrCC,oBAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7BD,oBAAUD,YAAYG,UAAU,wBAAA;;;;;;;;;AAChC,gBAAMC,SAASC,KACbC,aAAaC,YAAYC,QAAQ;YAAEZ;UAAI,CAAA,GACvCa,MAAMC,YAAYC,WAAW;YAAEC,QAAQZ,WAAWE;UAAM,CAAA,CAAA;AAE1D,gBAAM,EAAEW,MAAMC,MAAK,IAAK,MAAMd,WAAWG,SAASC,MAAAA;AAClD,cAAI,CAACS,QAAQC,OAAO;AAClB,mBAAOC,WAAWC,MAAMF,OAAOG,WAAW,6BAAA;UAC5C;AAEA,iBAAOF,WAAWG,QAAQC,sBAAsBN,KAAK7B,EAAE,GAAG;YACxDoC,WAAWC,YAAYD,WAAWE,WAAWT,KAAKU,MAAM,CAAA;WACzD;QACH;MACF,CAAA;MACA/B,WAAWP,KAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,OAAOC,OAAO,CAAC,CAAA;QACvBI,SAAS,OAAOyB,GAAG,EAAExB,WAAU,MAAE;AAC/BC,oBAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7B,gBAAM,EAAEuB,SAASC,MAAK,IAAK,MAAM1B,WAAWE,MAAMyB,GAAGC,MAAMC,OAAOxC,OAAOC,SAAAA,CAAAA,EAAYwC,IAAG;AACxF7B,oBAAUyB,MAAMK,SAAS,GAAG,wBAAA;;;;;;;;;AAC5B,iBAAOhB,WAAWG,QAAQQ,KAAAA;QAC5B;MACF,CAAA;MACAlC,WAAWP,KAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,OAAOC,OAAO;UAAEX,IAAIgD;QAAW,CAAA;QACvCjC,SAAS,OAAO,EAAEf,GAAE,GAAI,EAAEgB,WAAU,MAAE;AACpCC,oBAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7B,gBAAM+B,OAAO,MAAMjC,WAAWE,MAAMyB,GACjCC,MAAM;YAAE5C,IAAIgD,WAAWE,MAAMlD,IAAIgB,WAAWE,MAAMlB,EAAE,EAAEmD,SAAQ;UAAG,CAAA,EACjEC,MAAK;AACRnC,oBAAUoC,aAAa/C,WAAW2C,IAAAA,GAAAA,QAAAA;;;;;;;;;AAElC,iBAAOlB,WAAWG,QAAQe,KAAKrC,GAAG;QACpC;MACF,CAAA;MACAJ,WAAWP,KAAKD,IAAI;QAClBE,MAAM;QACNC,aAAa;QACbM,SAAS;QACTJ,QAAQK,OAAOC,OAAO;UACpBX,IAAIgD;UACJM,MAAM5C,OAAOG,OAAOC,YAAY;YAC9BX,aAAa;YACboD,UAAU;cAAC;cAAM;;UACnB,CAAA;QACF,CAAA;QACAxC,SAAS,OAAO,EAAEf,IAAIsD,KAAI,GAAI,EAAEtC,WAAU,MAAE;AAC1CC,oBAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7B,gBAAM+B,OAAO,MAAMjC,WAAWE,MAAMyB,GACjCC,MAAM;YAAE5C,IAAIgD,WAAWE,MAAMlD,IAAIgB,WAAWE,MAAMlB,EAAE,EAAEmD,SAAQ;UAAG,CAAA,EACjEC,MAAK;AACRnC,oBAAUoC,aAAa/C,WAAW2C,IAAAA,GAAAA,QAAAA;;;;;;;;;AAElC,gBAAMO,QAAQ,IAAIC,MAAMR,KAAKrC,GAAG;AAChC,cAAI;AACF4C,kBAAMF,KAAKA,IAAAA;UACb,SAASxB,OAAY;AACnB,mBAAOC,WAAWC,MAAMF,MAAMG,OAAO;UACvC;AACAgB,eAAKS,MAAMF,MAAME,IAAG;AACpBT,eAAKrC,MAAM4C,MAAM5C,IAAG;AACpB,iBAAOmB,WAAWG,QAAQe,KAAKrC,GAAG;QACpC;MACF,CAAA;;EAEJ,CAAA;AAEA,SAAO+C,YAAYC,aAAaC,oBAAoB/D,UAAAA;AACtD;",
|
|
6
|
+
"names": ["Chess", "pipe", "Schema", "Capabilities", "chain", "contributes", "createIntent", "ArtifactId", "defineArtifact", "defineTool", "ToolResult", "createArtifactElement", "VersionPin", "isInstanceOf", "invariant", "SpaceAction", "Filter", "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
|
+
}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
|
|
3
3
|
// packages/plugins/plugin-chess/src/types/schema.ts
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { Schema } from "effect";
|
|
5
|
+
import { TypedObject } from "@dxos/echo-schema";
|
|
6
|
+
var MoveSchema = Schema.mutable(Schema.partial(Schema.Struct({
|
|
7
|
+
source: Schema.String,
|
|
8
|
+
target: Schema.String,
|
|
9
|
+
piece: Schema.String
|
|
9
10
|
})));
|
|
10
11
|
var ChessType = class extends TypedObject({
|
|
11
12
|
typename: "dxos.org/type/Chess",
|
|
12
13
|
version: "0.1.0"
|
|
13
14
|
})({
|
|
14
|
-
name:
|
|
15
|
-
playerWhite:
|
|
16
|
-
playerBlack:
|
|
17
|
-
moves:
|
|
15
|
+
name: Schema.optional(Schema.String),
|
|
16
|
+
playerWhite: Schema.String,
|
|
17
|
+
playerBlack: Schema.String,
|
|
18
|
+
moves: Schema.mutable(Schema.Array(Schema.String)),
|
|
18
19
|
// TODO(wittjosiah): Remove. Redundant with moves.
|
|
19
|
-
pgn:
|
|
20
|
-
fen:
|
|
20
|
+
pgn: Schema.String,
|
|
21
|
+
fen: Schema.String
|
|
21
22
|
}, {
|
|
22
23
|
partial: true
|
|
23
24
|
}) {
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
// packages/plugins/plugin-chess/src/types/types.ts
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
28
|
+
import { Schema as Schema2 } from "effect";
|
|
29
|
+
import { isInstanceOf } from "@dxos/echo-schema";
|
|
30
|
+
import { isLiveObject } from "@dxos/live-object";
|
|
29
31
|
|
|
30
32
|
// packages/plugins/plugin-chess/src/meta.ts
|
|
31
33
|
var CHESS_PLUGIN = "dxos.org/plugin/chess";
|
|
@@ -44,12 +46,12 @@ var meta = {
|
|
|
44
46
|
var ChessAction;
|
|
45
47
|
(function(ChessAction2) {
|
|
46
48
|
const CHESS_ACTION = `${CHESS_PLUGIN}/action`;
|
|
47
|
-
class Create extends
|
|
48
|
-
input:
|
|
49
|
-
name:
|
|
50
|
-
fen:
|
|
49
|
+
class Create extends Schema2.TaggedClass()(`${CHESS_ACTION}/create`, {
|
|
50
|
+
input: Schema2.Struct({
|
|
51
|
+
name: Schema2.optional(Schema2.String),
|
|
52
|
+
fen: Schema2.optional(Schema2.String)
|
|
51
53
|
}),
|
|
52
|
-
output:
|
|
54
|
+
output: Schema2.Struct({
|
|
53
55
|
object: ChessType
|
|
54
56
|
})
|
|
55
57
|
}) {
|
|
@@ -57,7 +59,7 @@ var ChessAction;
|
|
|
57
59
|
ChessAction2.Create = Create;
|
|
58
60
|
})(ChessAction || (ChessAction = {}));
|
|
59
61
|
var isObject = (object) => {
|
|
60
|
-
return
|
|
62
|
+
return isLiveObject(object) && isInstanceOf(ChessType, object);
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
export {
|
|
@@ -68,4 +70,4 @@ export {
|
|
|
68
70
|
ChessAction,
|
|
69
71
|
isObject
|
|
70
72
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-FKW7YGV5.mjs.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,SAASA,cAAc;AAEvB,SAASC,mBAAmB;AAErB,IAAMC,aAAaC,OAAOC,QAC/BD,OAAOE,QACLF,OAAOG,OAAO;EACZC,QAAQJ,OAAOK;EACfC,QAAQN,OAAOK;EACfE,OAAOP,OAAOK;AAChB,CAAA,CAAA,CAAA;AAIG,IAAMG,YAAN,cAAwBC,YAAY;EAAEC,UAAU;EAAuBC,SAAS;AAAQ,CAAA,EAC7F;EACEC,MAAMZ,OAAOa,SAASb,OAAOK,MAAM;EACnCS,aAAad,OAAOK;EACpBU,aAAaf,OAAOK;EACpBW,OAAOhB,OAAOC,QAAQD,OAAOiB,MAAMjB,OAAOK,MAAM,CAAA;;EAEhDa,KAAKlB,OAAOK;EACZc,KAAKnB,OAAOK;AACd,GACA;EAAEH,SAAS;AAAK,CAAA,EAAA;AACf;;;ACzBH,SAASkB,UAAAA,eAAc;AAEvB,SAASC,oBAAoB;AAC7B,SAASC,oBAAoB;;;ACDtB,IAAMC,eAAe;AAErB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;;;;UDJiBC,cAAAA;AACf,QAAMC,eAAe,GAAGC,YAAAA;EAEjB,MAAMC,eAAeC,QAAOC,YAAW,EAAW,GAAGJ,YAAAA,WAAuB;IACjFK,OAAOF,QAAOG,OAAO;MACnBC,MAAMJ,QAAOK,SAASL,QAAOM,MAAM;MACnCC,KAAKP,QAAOK,SAASL,QAAOM,MAAM;IACpC,CAAA;IACAE,QAAQR,QAAOG,OAAO;MACpBM,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;eARSX,SAAAA;AASf,GAZiBH,gBAAAA,cAAAA,CAAAA,EAAAA;AAcV,IAAMe,WAAW,CAACF,WAAAA;AACvB,SAAOG,aAAaH,MAAAA,KAAWI,aAAaH,WAAWD,MAAAA;AACzD;",
|
|
6
|
+
"names": ["Schema", "TypedObject", "MoveSchema", "Schema", "mutable", "partial", "Struct", "source", "String", "target", "piece", "ChessType", "TypedObject", "typename", "version", "name", "optional", "playerWhite", "playerBlack", "moves", "Array", "pgn", "fen", "Schema", "isInstanceOf", "isLiveObject", "CHESS_PLUGIN", "meta", "id", "name", "description", "icon", "source", "screenshots", "ChessAction", "CHESS_ACTION", "CHESS_PLUGIN", "Create", "Schema", "TaggedClass", "input", "Struct", "name", "optional", "String", "fen", "output", "object", "ChessType", "isObject", "isLiveObject", "isInstanceOf"]
|
|
7
|
+
}
|
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
ChessAction,
|
|
8
8
|
ChessType,
|
|
9
9
|
meta
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FKW7YGV5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ChessComponent
|
|
13
13
|
} from "./chunk-6SEDGO5G.mjs";
|
|
14
14
|
|
|
15
15
|
// packages/plugins/plugin-chess/src/capabilities/index.ts
|
|
16
16
|
import { lazy } from "@dxos/app-framework";
|
|
17
|
-
var ArtifactDefinition = lazy(() => import("./artifact-definition-
|
|
18
|
-
var IntentResolver = lazy(() => import("./intent-resolver-
|
|
19
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
17
|
+
var ArtifactDefinition = lazy(() => import("./artifact-definition-HTZLNGEV.mjs"));
|
|
18
|
+
var IntentResolver = lazy(() => import("./intent-resolver-PXPQTYAA.mjs"));
|
|
19
|
+
var ReactSurface = lazy(() => import("./react-surface-G4CSGFTJ.mjs"));
|
|
20
20
|
|
|
21
21
|
// packages/plugins/plugin-chess/src/ChessPlugin.tsx
|
|
22
22
|
import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from "@dxos/app-framework";
|
|
@@ -2,19 +2,19 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
ChessAction,
|
|
4
4
|
ChessType
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FKW7YGV5.mjs";
|
|
6
6
|
|
|
7
7
|
// packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts
|
|
8
8
|
import { Chess } from "chess.js";
|
|
9
9
|
import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
|
|
10
|
-
import {
|
|
10
|
+
import { live } from "@dxos/live-object";
|
|
11
11
|
var intent_resolver_default = () => contributes(Capabilities.IntentResolver, createResolver({
|
|
12
12
|
intent: ChessAction.Create,
|
|
13
13
|
resolve: ({ name, fen }) => {
|
|
14
14
|
const pgn = fen ? new Chess(fen).pgn() : void 0;
|
|
15
15
|
return {
|
|
16
16
|
data: {
|
|
17
|
-
object:
|
|
17
|
+
object: live(ChessType, {
|
|
18
18
|
name,
|
|
19
19
|
fen,
|
|
20
20
|
pgn
|
|
@@ -26,4 +26,4 @@ var intent_resolver_default = () => contributes(Capabilities.IntentResolver, cre
|
|
|
26
26
|
export {
|
|
27
27
|
intent_resolver_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=intent-resolver-
|
|
29
|
+
//# sourceMappingURL=intent-resolver-PXPQTYAA.mjs.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,SAASA,aAAa;AAEtB,SAASC,cAAcC,aAAaC,sBAAsB;AAC1D,SAASC,YAAY;AAIrB,IAAA,0BAAe,MACbC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,YAAYC;EACpBC,SAAS,CAAC,EAAEC,MAAMC,IAAG,MAAE;AACrB,UAAMC,MAAMD,MAAM,IAAIE,MAAMF,GAAAA,EAAKC,IAAG,IAAKE;AACzC,WAAO;MACLC,MAAM;QACJC,QAAQC,KAAKC,WAAW;UAAER;UAAMC;UAAKC;QAAI,CAAA;MAC3C;IACF;EACF;AACF,CAAA,CAAA;",
|
|
6
|
+
"names": ["Chess", "Capabilities", "contributes", "createResolver", "live", "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-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4838},"packages/plugins/plugin-chess/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-CSY4I334.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-TQKBCMJU.mjs","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":2751},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":286},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-CSY4I334.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8003},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-CSY4I334.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","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":6150},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1375},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-AWNZCS56.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","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":843},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6151},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","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":3544},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-TQKBCMJU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1851},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-TQKBCMJU.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","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":1199},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":404},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":328},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3761},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-GLBZ7ZZD.mjs":{"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":2059},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2438},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs":{"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":1224}}}
|
|
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-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4838},"packages/plugins/plugin-chess/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-FKW7YGV5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-HTZLNGEV.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-PXPQTYAA.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-G4CSGFTJ.mjs","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":2751},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-FKW7YGV5.mjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":286},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-HTZLNGEV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8423},"packages/plugins/plugin-chess/dist/lib/node-esm/artifact-definition-HTZLNGEV.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-FKW7YGV5.mjs","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":6327},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-PXPQTYAA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1367},"packages/plugins/plugin-chess/dist/lib/node-esm/intent-resolver-PXPQTYAA.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-FKW7YGV5.mjs","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":839},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6151},"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","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":3544},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-G4CSGFTJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1851},"packages/plugins/plugin-chess/dist/lib/node-esm/react-surface-G4CSGFTJ.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-FKW7YGV5.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs","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":1199},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":404},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-YFCRXSGH.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/node-esm/ChessContainer-MAXLUGKY.mjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":328},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-FKW7YGV5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3968},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-FKW7YGV5.mjs":{"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":2226},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2438},"packages/plugins/plugin-chess/dist/lib/node-esm/chunk-6SEDGO5G.mjs":{"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":1224}}}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
CHESS_PLUGIN,
|
|
7
7
|
ChessType,
|
|
8
8
|
isObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FKW7YGV5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ChessComponent
|
|
12
12
|
} from "./chunk-6SEDGO5G.mjs";
|
|
@@ -40,4 +40,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
|
40
40
|
export {
|
|
41
41
|
react_surface_default as default
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=react-surface-
|
|
43
|
+
//# sourceMappingURL=react-surface-G4CSGFTJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAOA,OAAO,EAAkD,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAMnH,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAM7D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,
|
|
1
|
+
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAOA,OAAO,EAAkD,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAMnH,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAM7D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,wBA+FE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MoveSchema:
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const MoveSchema: Schema.mutable<Schema.SchemaClass<{
|
|
3
3
|
readonly source?: string | undefined;
|
|
4
4
|
readonly target?: string | undefined;
|
|
5
5
|
readonly piece?: string | undefined;
|
|
@@ -9,21 +9,21 @@ export declare const MoveSchema: S.mutable<S.SchemaClass<{
|
|
|
9
9
|
readonly piece?: string | undefined;
|
|
10
10
|
}, never>>;
|
|
11
11
|
declare const ChessType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
12
|
-
name:
|
|
13
|
-
playerWhite: typeof
|
|
14
|
-
playerBlack: typeof
|
|
15
|
-
moves:
|
|
16
|
-
pgn: typeof
|
|
17
|
-
fen: typeof
|
|
12
|
+
name: Schema.optional<typeof Schema.String>;
|
|
13
|
+
playerWhite: typeof Schema.String;
|
|
14
|
+
playerBlack: typeof Schema.String;
|
|
15
|
+
moves: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
16
|
+
pgn: typeof Schema.String;
|
|
17
|
+
fen: typeof Schema.String;
|
|
18
18
|
}, {
|
|
19
19
|
partial: true;
|
|
20
|
-
}>,
|
|
21
|
-
name:
|
|
22
|
-
playerWhite: typeof
|
|
23
|
-
playerBlack: typeof
|
|
24
|
-
moves:
|
|
25
|
-
pgn: typeof
|
|
26
|
-
fen: typeof
|
|
20
|
+
}>, Schema.Struct.Encoded<{
|
|
21
|
+
name: Schema.optional<typeof Schema.String>;
|
|
22
|
+
playerWhite: typeof Schema.String;
|
|
23
|
+
playerBlack: typeof Schema.String;
|
|
24
|
+
moves: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
25
|
+
pgn: typeof Schema.String;
|
|
26
|
+
fen: typeof Schema.String;
|
|
27
27
|
}>>;
|
|
28
28
|
export declare class ChessType extends ChessType_base {
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,UAAU;;;;;;;;UAQtB,CAAC;;;;;;;;;;;;;;;;;;AAEF,qBAAa,SAAU,SAAQ,cAW9B;CAAG"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
2
|
import { ChessType } from './schema';
|
|
3
3
|
export declare namespace ChessAction {
|
|
4
|
-
const Create_base:
|
|
5
|
-
readonly _tag:
|
|
4
|
+
const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/chess/action/create", {
|
|
5
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/chess/action/create">;
|
|
6
6
|
} & {
|
|
7
|
-
input:
|
|
8
|
-
name:
|
|
9
|
-
fen:
|
|
7
|
+
input: Schema.Struct<{
|
|
8
|
+
name: Schema.optional<typeof Schema.String>;
|
|
9
|
+
fen: Schema.optional<typeof Schema.String>;
|
|
10
10
|
}>;
|
|
11
|
-
output:
|
|
11
|
+
output: Schema.Struct<{
|
|
12
12
|
object: typeof ChessType;
|
|
13
13
|
}>;
|
|
14
14
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,yBAAiB,WAAW,CAAC;;;;;;;;;;;;IAG3B,MAAM,OAAO,MAAO,SAAQ,WAQ1B;KAAG;;CACN;AAED,eAAO,MAAM,QAAQ,WAAY,OAAO,KAAG,MAAM,IAAI,OAAO,SAE3D,CAAC"}
|