@dxos/plugin-chess 0.8.4-main.3c1ae3b → 0.8.4-main.3eb6e50203
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/ChessboardContainer-GNSIZKY7.mjs +80 -0
- package/dist/lib/browser/ChessboardContainer-GNSIZKY7.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-YUKJZPOL.mjs +19 -0
- package/dist/lib/browser/blueprint-definition-YUKJZPOL.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +11 -0
- package/dist/lib/browser/{chunk-CCF24VRU.mjs → chunk-66H3V2YV.mjs} +10 -29
- package/dist/lib/browser/chunk-66H3V2YV.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DUO4WTAM.mjs → chunk-H3NUMCQ6.mjs} +1 -8
- package/dist/lib/browser/chunk-H3NUMCQ6.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-MABHE5SS.mjs +277 -0
- package/dist/lib/browser/chunk-MABHE5SS.mjs.map +7 -0
- package/dist/lib/browser/{chunk-WYPR77TX.mjs → chunk-PBRN5Q4R.mjs} +105 -50
- package/dist/lib/browser/chunk-PBRN5Q4R.mjs.map +7 -0
- package/dist/lib/browser/{chunk-Q5TZCIH7.mjs → chunk-QGVMZ4PK.mjs} +2 -2
- package/dist/lib/browser/cli/index.mjs +29 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +45 -69
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-C52R6BRL.mjs +38 -0
- package/dist/lib/browser/react-surface-C52R6BRL.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +3 -5
- package/dist/lib/node-esm/ChessboardContainer-5OVYZMIW.mjs +81 -0
- package/dist/lib/node-esm/ChessboardContainer-5OVYZMIW.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-4HZ2HWWC.mjs +20 -0
- package/dist/lib/node-esm/blueprint-definition-4HZ2HWWC.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +12 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-NU4GSP5Y.mjs → chunk-3MAU6WHB.mjs} +105 -50
- package/dist/lib/node-esm/chunk-3MAU6WHB.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KNOOJFIR.mjs → chunk-F5OMIM4F.mjs} +1 -7
- package/dist/lib/node-esm/chunk-F5OMIM4F.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-VVXTAVIS.mjs → chunk-IFK6UAKF.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-QKXLEJNZ.mjs → chunk-OUNGNJFP.mjs} +10 -29
- package/dist/lib/node-esm/chunk-OUNGNJFP.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-V6MKXXPO.mjs +278 -0
- package/dist/lib/node-esm/chunk-V6MKXXPO.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +30 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +45 -69
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-NW33JZ6J.mjs +39 -0
- package/dist/lib/node-esm/react-surface-NW33JZ6J.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +3 -5
- package/dist/types/src/ChessPlugin.d.ts +2 -1
- package/dist/types/src/ChessPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/chess-blueprint.d.ts +21 -0
- package/dist/types/src/blueprints/chess-blueprint.d.ts.map +1 -0
- package/dist/types/src/{functions → blueprints/functions}/create.d.ts +7 -6
- package/dist/types/src/blueprints/functions/create.d.ts.map +1 -0
- package/dist/types/src/{functions → blueprints/functions}/index.d.ts +1 -0
- package/dist/types/src/blueprints/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/move.d.ts +16 -0
- package/dist/types/src/blueprints/functions/move.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/play.d.ts +17 -0
- package/dist/types/src/blueprints/functions/play.d.ts.map +1 -0
- package/dist/types/src/{functions/move.d.ts → blueprints/functions/print.d.ts} +4 -4
- package/dist/types/src/blueprints/functions/print.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +3 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts +12 -0
- package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/artifact-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +10 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +1 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +3 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/Card.stories.d.ts +1 -8
- package/dist/types/src/components/Card.stories.d.ts.map +1 -1
- package/dist/types/src/components/Chessboard.d.ts +2 -1
- package/dist/types/src/components/Chessboard.d.ts.map +1 -1
- package/dist/types/src/components/Chessboard.stories.d.ts +6 -6
- package/dist/types/src/components/Chessboard.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChessboardArticle.d.ts +3 -4
- package/dist/types/src/components/ChessboardArticle.d.ts.map +1 -1
- package/dist/types/src/components/ChessboardContainer.d.ts +3 -5
- package/dist/types/src/components/ChessboardContainer.d.ts.map +1 -1
- package/dist/types/src/components/Info.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types/Chess.d.ts +16 -16
- package/dist/types/src/types/Chess.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +58 -42
- package/src/ChessPlugin.tsx +26 -46
- package/src/blueprints/chess-blueprint.ts +28 -0
- package/src/{functions → blueprints/functions}/create.ts +8 -3
- package/src/{functions → blueprints/functions}/index.ts +1 -0
- package/src/{functions → blueprints/functions}/move.ts +10 -8
- package/src/{functions → blueprints/functions}/play.ts +10 -8
- package/src/blueprints/functions/print.ts +42 -0
- package/src/blueprints/index.ts +6 -0
- package/src/capabilities/artifact-definition/artifact-definition.ts +135 -0
- package/src/capabilities/artifact-definition/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +24 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/index.ts +1 -6
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +28 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +27 -0
- package/src/components/Card.stories.tsx +19 -38
- package/src/components/Chessboard.stories.tsx +16 -12
- package/src/components/Chessboard.tsx +26 -13
- package/src/components/ChessboardArticle.tsx +8 -6
- package/src/components/ChessboardContainer.tsx +9 -13
- package/src/components/Info.tsx +21 -11
- package/src/index.ts +1 -1
- package/src/meta.ts +2 -2
- package/src/types/Chess.ts +4 -4
- package/src/types/index.ts +0 -1
- package/dist/lib/browser/ChessboardContainer-5YXEM4VR.mjs +0 -96
- package/dist/lib/browser/ChessboardContainer-5YXEM4VR.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-EAL54B6V.mjs +0 -11
- package/dist/lib/browser/chunk-5DOZV3PW.mjs +0 -294
- package/dist/lib/browser/chunk-5DOZV3PW.mjs.map +0 -7
- package/dist/lib/browser/chunk-CCF24VRU.mjs.map +0 -7
- package/dist/lib/browser/chunk-DUO4WTAM.mjs.map +0 -7
- package/dist/lib/browser/chunk-WYPR77TX.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-KPGHK5JU.mjs +0 -25
- package/dist/lib/browser/intent-resolver-KPGHK5JU.mjs.map +0 -7
- package/dist/lib/browser/react-surface-3YST34QI.mjs +0 -38
- package/dist/lib/browser/react-surface-3YST34QI.mjs.map +0 -7
- package/dist/lib/node-esm/ChessboardContainer-7OQ6TOKB.mjs +0 -97
- package/dist/lib/node-esm/ChessboardContainer-7OQ6TOKB.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-2LWD6BR3.mjs +0 -12
- package/dist/lib/node-esm/chunk-F4C2HVZL.mjs +0 -295
- package/dist/lib/node-esm/chunk-F4C2HVZL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KNOOJFIR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NU4GSP5Y.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QKXLEJNZ.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-ZAELGF7I.mjs +0 -26
- package/dist/lib/node-esm/intent-resolver-ZAELGF7I.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-KV2KBSIU.mjs +0 -39
- package/dist/lib/node-esm/react-surface-KV2KBSIU.mjs.map +0 -7
- package/dist/types/src/capabilities/artifact-definition.d.ts +0 -11
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -6
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/functions/create.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/functions/move.d.ts.map +0 -1
- package/dist/types/src/functions/play.d.ts +0 -9
- package/dist/types/src/functions/play.d.ts.map +0 -1
- package/dist/types/src/types/ChessAction.d.ts +0 -24
- package/dist/types/src/types/ChessAction.d.ts.map +0 -1
- package/src/capabilities/artifact-definition.ts +0 -129
- package/src/capabilities/blueprint-definition.ts +0 -36
- package/src/capabilities/intent-resolver.ts +0 -22
- package/src/capabilities/react-surface.tsx +0 -23
- package/src/types/ChessAction.ts +0 -19
- /package/dist/lib/browser/{blueprint-definition-EAL54B6V.mjs.map → blueprints/index.mjs.map} +0 -0
- /package/dist/lib/{node-esm/blueprint-definition-2LWD6BR3.mjs.map → browser/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-Q5TZCIH7.mjs.map → chunk-QGVMZ4PK.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-VVXTAVIS.mjs.map → chunk-IFK6UAKF.mjs.map} +0 -0
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
play_default
|
|
7
|
-
} from "./chunk-NU4GSP5Y.mjs";
|
|
3
|
+
chess_blueprint_exports,
|
|
4
|
+
functions_exports
|
|
5
|
+
} from "./chunk-3MAU6WHB.mjs";
|
|
8
6
|
import {
|
|
9
7
|
ChessboardContainer
|
|
10
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IFK6UAKF.mjs";
|
|
11
9
|
import {
|
|
12
|
-
ChessAction_exports,
|
|
13
10
|
Chess_exports
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OUNGNJFP.mjs";
|
|
15
12
|
import {
|
|
16
13
|
Chessboard,
|
|
17
14
|
ExtendedChessModel
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-V6MKXXPO.mjs";
|
|
19
16
|
import {
|
|
20
17
|
meta
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-F5OMIM4F.mjs";
|
|
19
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
22
20
|
|
|
23
|
-
// src/capabilities/index.ts
|
|
24
|
-
import {
|
|
25
|
-
var BlueprintDefinition = lazy(() => import("./blueprint-definition-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
// src/capabilities/blueprint-definition/index.ts
|
|
22
|
+
import { Capability } from "@dxos/app-framework";
|
|
23
|
+
var BlueprintDefinition = Capability.lazy("BlueprintDefinition", () => import("./blueprint-definition-4HZ2HWWC.mjs"));
|
|
24
|
+
|
|
25
|
+
// src/capabilities/react-surface/index.ts
|
|
26
|
+
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
27
|
+
var ReactSurface = Capability2.lazy("ReactSurface", () => import("./react-surface-NW33JZ6J.mjs"));
|
|
28
28
|
|
|
29
29
|
// src/ChessPlugin.tsx
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
30
|
+
import * as Effect from "effect/Effect";
|
|
31
|
+
import { Plugin } from "@dxos/app-framework";
|
|
32
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
32
33
|
|
|
33
34
|
// src/translations.ts
|
|
34
35
|
var translations = [
|
|
@@ -61,65 +62,40 @@ var translations = [
|
|
|
61
62
|
];
|
|
62
63
|
|
|
63
64
|
// src/ChessPlugin.tsx
|
|
64
|
-
var ChessPlugin =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
89
|
-
activate: () => contributes(ClientCapabilities.Schema, [
|
|
90
|
-
Chess_exports.Game
|
|
91
|
-
])
|
|
92
|
-
}),
|
|
93
|
-
defineModule({
|
|
94
|
-
id: `${meta.id}/module/react-surface`,
|
|
95
|
-
activatesOn: Events.SetupReactSurface,
|
|
96
|
-
activate: ReactSurface
|
|
97
|
-
}),
|
|
98
|
-
defineModule({
|
|
99
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
100
|
-
activatesOn: Events.SetupIntentResolver,
|
|
101
|
-
activate: IntentResolver
|
|
102
|
-
}),
|
|
103
|
-
defineModule({
|
|
104
|
-
id: `${meta.id}/module/blueprint`,
|
|
105
|
-
activatesOn: Events.SetupArtifactDefinition,
|
|
106
|
-
activate: BlueprintDefinition
|
|
107
|
-
})
|
|
108
|
-
]);
|
|
65
|
+
var ChessPlugin = Plugin.define(meta).pipe(AppPlugin.addBlueprintDefinitionModule({
|
|
66
|
+
activate: BlueprintDefinition
|
|
67
|
+
}), AppPlugin.addMetadataModule({
|
|
68
|
+
metadata: {
|
|
69
|
+
id: Chess_exports.Game.typename,
|
|
70
|
+
metadata: {
|
|
71
|
+
icon: "ph--shield-chevron--regular",
|
|
72
|
+
iconHue: "amber",
|
|
73
|
+
blueprints: [
|
|
74
|
+
chess_blueprint_exports.Key
|
|
75
|
+
],
|
|
76
|
+
createObject: (props) => Effect.sync(() => Chess_exports.make(props)),
|
|
77
|
+
addToCollectionOnCreate: true
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}), AppPlugin.addSchemaModule({
|
|
81
|
+
schema: [
|
|
82
|
+
Chess_exports.Game
|
|
83
|
+
]
|
|
84
|
+
}), AppPlugin.addSurfaceModule({
|
|
85
|
+
activate: ReactSurface
|
|
86
|
+
}), AppPlugin.addTranslationsModule({
|
|
87
|
+
translations
|
|
88
|
+
}), Plugin.make);
|
|
109
89
|
export {
|
|
110
90
|
BlueprintDefinition,
|
|
111
|
-
CHESS_BLUEPRINT_KEY,
|
|
112
91
|
Chess_exports as Chess,
|
|
113
|
-
|
|
92
|
+
chess_blueprint_exports as ChessBlueprint,
|
|
93
|
+
functions_exports as ChessFunctions,
|
|
114
94
|
ChessPlugin,
|
|
115
95
|
Chessboard,
|
|
116
96
|
ChessboardContainer,
|
|
117
97
|
ExtendedChessModel,
|
|
118
|
-
IntentResolver,
|
|
119
98
|
ReactSurface,
|
|
120
|
-
|
|
121
|
-
meta,
|
|
122
|
-
move_default as move,
|
|
123
|
-
play_default as play
|
|
99
|
+
meta
|
|
124
100
|
};
|
|
125
101
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/capabilities/blueprint-definition/index.ts", "../../../src/capabilities/react-surface/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { ChessBlueprint } from './blueprints';\nimport { BlueprintDefinition, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\nimport { Chess } from './types';\n\nexport const ChessPlugin = Plugin.define(meta).pipe(\n AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),\n AppPlugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n icon: 'ph--shield-chevron--regular',\n iconHue: 'amber',\n blueprints: [ChessBlueprint.Key],\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n addToCollectionOnCreate: true,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Chess.Game] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\nimport { Chess } from './types';\n\nexport const translations = [\n {\n 'en-US': {\n [Chess.Game.typename]: {\n 'typename label': 'Game',\n 'typename label_zero': 'Games',\n 'typename label_one': 'Game',\n 'typename label_other': 'Games',\n 'object name placeholder': 'New game',\n 'rename object label': 'Rename game',\n 'delete object label': 'Delete game',\n 'object deleted label': 'Game deleted',\n },\n [meta.id]: {\n 'plugin name': 'Chess',\n 'delete game label': 'Delete',\n 'game.checkmate label': 'Checkmate',\n 'game.stalemate label': 'Stalemate',\n 'game.draw label': 'Draw',\n 'game.check label': 'Check',\n 'select player button': 'Select player',\n 'toggle info button': 'Toggle info',\n 'close info button': 'Close info',\n 'flip board button': 'Flip board',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,sBAAsBC,WAAWC,KAAK,uBAAuB,MAAM,OAAO,qCAAA,CAAA;;;ACFvF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACFzE,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;;;ACEnB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,cAAMC,KAAKC,QAAQ,GAAG;QACrB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,qBAAqB;QACrB,wBAAwB;QACxB,wBAAwB;QACxB,mBAAmB;QACnB,oBAAoB;QACpB,wBAAwB;QACxB,sBAAsB;QACtB,qBAAqB;QACrB,qBAAqB;MACvB;IACF;EACF;;;;ADnBK,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,6BAA6B;EAAEC,UAAUC;AAAoB,CAAA,GACvEH,UAAUI,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,cAAMC,KAAKC;IACfJ,UAAU;MACRK,MAAM;MACNC,SAAS;MACTC,YAAY;QAACC,wBAAeC;;MAC5BC,cAAe,CAACC,UAAiBC,YAAK,MAAMV,cAAMW,KAAKF,KAAAA,CAAAA;MACvDG,yBAAyB;IAC3B;EACF;AACF,CAAA,GACAnB,UAAUoB,gBAAgB;EAAEC,QAAQ;IAACd,cAAMC;;AAAM,CAAA,GACjDR,UAAUsB,iBAAiB;EAAEpB,UAAUqB;AAAa,CAAA,GACpDvB,UAAUwB,sBAAsB;EAAEC;AAAa,CAAA,GAC/C7B,OAAOsB,IAAI;",
|
|
6
|
+
"names": ["Capability", "BlueprintDefinition", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "Effect", "Plugin", "AppPlugin", "translations", "Chess", "Game", "typename", "meta", "id", "ChessPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addBlueprintDefinitionModule", "activate", "BlueprintDefinition", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "icon", "iconHue", "blueprints", "ChessBlueprint", "Key", "createObject", "props", "sync", "make", "addToCollectionOnCreate", "addSchemaModule", "schema", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/types/Chess.ts":{"bytes":5760,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":2047,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/ChessAction.ts":{"bytes":1860,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/types/index.ts":{"bytes":682,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"},{"path":"src/types/ChessAction.ts","kind":"import-statement","original":"./ChessAction"}],"format":"esm"},"src/functions/create.ts":{"bytes":3377,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/functions/move.ts":{"bytes":5258,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/functions/play.ts":{"bytes":6953,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/functions/index.ts":{"bytes":860,"imports":[{"path":"src/functions/create.ts","kind":"import-statement","original":"./create"},{"path":"src/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/functions/play.ts","kind":"import-statement","original":"./play"}],"format":"esm"},"src/capabilities/blueprint-definition.ts":{"bytes":3942,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/functions/index.ts","kind":"import-statement","original":"../functions"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":2113,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/components/Info.tsx":{"bytes":24845,"imports":[{"path":"@preact-signals/safe-react/tracking","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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/Chessboard.tsx":{"bytes":13872,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/components/Info.tsx","kind":"import-statement","original":"./Info"}],"format":"esm"},"src/components/ChessboardArticle.tsx":{"bytes":8061,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/ChessboardContainer.tsx":{"bytes":3725,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardArticle.tsx","kind":"import-statement","original":"./ChessboardArticle"}],"format":"esm"},"src/components/index.ts":{"bytes":877,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardContainer.tsx","kind":"dynamic-import","original":"./ChessboardContainer"}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":3392,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1442,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition.ts","kind":"import-statement","original":"./blueprint-definition"},{"path":"src/capabilities/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3591,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":7392,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":911,"imports":[{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5790},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NU4GSP5Y.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-VVXTAVIS.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-QKXLEJNZ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F4C2HVZL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/blueprint-definition-2LWD6BR3.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/intent-resolver-ZAELGF7I.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/react-surface-KV2KBSIU.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true}],"exports":["BlueprintDefinition","CHESS_BLUEPRINT_KEY","Chess","ChessAction","ChessPlugin","Chessboard","ChessboardContainer","ExtendedChessModel","IntentResolver","ReactSurface","create","meta","move","play"],"entryPoint":"src/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":275},"src/index.ts":{"bytesInOutput":0},"src/ChessPlugin.tsx":{"bytesInOutput":1511},"src/translations.ts":{"bytesInOutput":879}},"bytes":3582},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-QKXLEJNZ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"}],"exports":["Chess","ChessAction"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":314},"dist/lib/node-esm/blueprint-definition-2LWD6BR3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/blueprint-definition-2LWD6BR3.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NU4GSP5Y.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-QKXLEJNZ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"}],"exports":["CHESS_BLUEPRINT_KEY","default"],"entryPoint":"src/capabilities/blueprint-definition.ts","inputs":{},"bytes":384},"dist/lib/node-esm/chunk-NU4GSP5Y.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9699},"dist/lib/node-esm/chunk-NU4GSP5Y.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-QKXLEJNZ.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"exports":["CHESS_BLUEPRINT_KEY","blueprint_definition_default","create_default","move_default","play_default"],"inputs":{"src/capabilities/blueprint-definition.ts":{"bytesInOutput":980},"src/functions/create.ts":{"bytesInOutput":767},"src/functions/index.ts":{"bytesInOutput":0},"src/functions/move.ts":{"bytesInOutput":1321},"src/functions/play.ts":{"bytesInOutput":1769}},"bytes":5316},"dist/lib/node-esm/intent-resolver-ZAELGF7I.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1074},"dist/lib/node-esm/intent-resolver-ZAELGF7I.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-QKXLEJNZ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":380}},"bytes":725},"dist/lib/node-esm/ChessboardContainer-7OQ6TOKB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5813},"dist/lib/node-esm/ChessboardContainer-7OQ6TOKB.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F4C2HVZL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["ChessboardContainer","default"],"entryPoint":"src/components/ChessboardContainer.tsx","inputs":{"src/components/ChessboardContainer.tsx":{"bytesInOutput":931},"src/components/ChessboardArticle.tsx":{"bytesInOutput":2071}},"bytes":3455},"dist/lib/node-esm/react-surface-KV2KBSIU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1590},"dist/lib/node-esm/react-surface-KV2KBSIU.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-VVXTAVIS.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-QKXLEJNZ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F4C2HVZL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":718}},"bytes":1144},"dist/lib/node-esm/chunk-VVXTAVIS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":415},"dist/lib/node-esm/chunk-VVXTAVIS.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/ChessboardContainer-7OQ6TOKB.mjs","kind":"dynamic-import"}],"exports":["ChessboardContainer"],"inputs":{"src/components/index.ts":{"bytesInOutput":114}},"bytes":313},"dist/lib/node-esm/chunk-QKXLEJNZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3705},"dist/lib/node-esm/chunk-QKXLEJNZ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["ChessAction_exports","Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1548},"src/types/index.ts":{"bytesInOutput":0},"src/types/ChessAction.ts":{"bytesInOutput":385}},"bytes":2232},"dist/lib/node-esm/chunk-F4C2HVZL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":19927},"dist/lib/node-esm/chunk-F4C2HVZL.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-KNOOJFIR.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["Chessboard","ExtendedChessModel"],"inputs":{"src/components/Chessboard.tsx":{"bytesInOutput":3330},"src/components/Info.tsx":{"bytesInOutput":6801}},"bytes":10458},"dist/lib/node-esm/chunk-KNOOJFIR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":985},"dist/lib/node-esm/chunk-KNOOJFIR.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["__export","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":515}},"bytes":866}}}
|
|
1
|
+
{"inputs":{"src/types/Chess.ts":{"bytes":5679,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":508,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/blueprints/functions/create.ts":{"bytes":3779,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/move.ts":{"bytes":5270,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/play.ts":{"bytes":6961,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/print.ts":{"bytes":4017,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"format":"esm"},"src/blueprints/functions/index.ts":{"bytes":1031,"imports":[{"path":"src/blueprints/functions/create.ts","kind":"import-statement","original":"./create"},{"path":"src/blueprints/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/blueprints/functions/play.ts","kind":"import-statement","original":"./play"},{"path":"src/blueprints/functions/print.ts","kind":"import-statement","original":"./print"}],"format":"esm"},"src/blueprints/chess-blueprint.ts":{"bytes":3090,"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/blueprints/index.ts":{"bytes":747,"imports":[{"path":"src/blueprints/chess-blueprint.ts","kind":"import-statement","original":"./chess-blueprint"},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytes":2496,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"src/blueprints/index.ts","kind":"import-statement","original":"../../blueprints"}],"format":"esm"},"src/capabilities/blueprint-definition/index.ts":{"bytes":977,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"}],"format":"esm"},"src/meta.ts":{"bytes":2043,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/Info.tsx":{"bytes":24665,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/Chessboard.tsx":{"bytes":14405,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/components/Info.tsx","kind":"import-statement","original":"./Info"}],"format":"esm"},"src/components/ChessboardArticle.tsx":{"bytes":7810,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/ChessboardContainer.tsx":{"bytes":3312,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardArticle.tsx","kind":"import-statement","original":"./ChessboardArticle"}],"format":"esm"},"src/components/index.ts":{"bytes":877,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardContainer.tsx","kind":"dynamic-import","original":"./ChessboardContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":3726,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":602,"imports":[{"path":"src/capabilities/blueprint-definition/index.ts","kind":"import-statement","original":"./blueprint-definition"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3591,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":4505,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":916,"imports":[{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"},"src/cli/plugin.ts":{"bytes":2850,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/cli/index.ts":{"bytes":458,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4619},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-3MAU6WHB.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-IFK6UAKF.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-V6MKXXPO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/blueprint-definition-4HZ2HWWC.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-surface-NW33JZ6J.mjs","kind":"dynamic-import"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["BlueprintDefinition","Chess","ChessBlueprint","ChessFunctions","ChessPlugin","Chessboard","ChessboardContainer","ExtendedChessModel","ReactSurface","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/capabilities/blueprint-definition/index.ts":{"bytesInOutput":169},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/ChessPlugin.tsx":{"bytesInOutput":806},"src/translations.ts":{"bytesInOutput":879}},"bytes":2912},"dist/lib/node-esm/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/blueprints/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-3MAU6WHB.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":374},"dist/lib/node-esm/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1476},"dist/lib/node-esm/cli/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["ChessPlugin"],"entryPoint":"src/cli/index.ts","inputs":{"src/cli/plugin.ts":{"bytesInOutput":486},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":798},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["Chess"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":253},"dist/lib/node-esm/blueprint-definition-4HZ2HWWC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1352},"dist/lib/node-esm/blueprint-definition-4HZ2HWWC.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-3MAU6WHB.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/blueprint-definition/blueprint-definition.ts","inputs":{"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytesInOutput":458}},"bytes":857},"dist/lib/node-esm/chunk-3MAU6WHB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11706},"dist/lib/node-esm/chunk-3MAU6WHB.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"exports":["chess_blueprint_exports","functions_exports"],"inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":836},"src/blueprints/functions/index.ts":{"bytesInOutput":179},"src/blueprints/functions/create.ts":{"bytesInOutput":875},"src/blueprints/functions/move.ts":{"bytesInOutput":1307},"src/blueprints/functions/play.ts":{"bytesInOutput":1757},"src/blueprints/functions/print.ts":{"bytesInOutput":956},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":6478},"dist/lib/node-esm/ChessboardContainer-5OVYZMIW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5871},"dist/lib/node-esm/ChessboardContainer-5OVYZMIW.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-V6MKXXPO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["ChessboardContainer","default"],"entryPoint":"src/components/ChessboardContainer.tsx","inputs":{"src/components/ChessboardContainer.tsx":{"bytesInOutput":659},"src/components/ChessboardArticle.tsx":{"bytesInOutput":1801}},"bytes":2944},"dist/lib/node-esm/react-surface-NW33JZ6J.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1804},"dist/lib/node-esm/react-surface-NW33JZ6J.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-IFK6UAKF.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-V6MKXXPO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":767}},"bytes":1238},"dist/lib/node-esm/chunk-IFK6UAKF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":415},"dist/lib/node-esm/chunk-IFK6UAKF.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/ChessboardContainer-5OVYZMIW.mjs","kind":"dynamic-import"}],"exports":["ChessboardContainer"],"inputs":{"src/components/index.ts":{"bytesInOutput":114}},"bytes":313},"dist/lib/node-esm/chunk-OUNGNJFP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2848},"dist/lib/node-esm/chunk-OUNGNJFP.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1523},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1762},"dist/lib/node-esm/chunk-V6MKXXPO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21057},"dist/lib/node-esm/chunk-V6MKXXPO.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["Chessboard","ExtendedChessModel"],"inputs":{"src/components/Chessboard.tsx":{"bytesInOutput":3202},"src/components/Info.tsx":{"bytesInOutput":6379}},"bytes":9908},"dist/lib/node-esm/chunk-F5OMIM4F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":977},"dist/lib/node-esm/chunk-F5OMIM4F.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":515}},"bytes":687},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ChessboardContainer
|
|
4
|
+
} from "./chunk-IFK6UAKF.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Chess_exports
|
|
7
|
+
} from "./chunk-OUNGNJFP.mjs";
|
|
8
|
+
import "./chunk-V6MKXXPO.mjs";
|
|
9
|
+
import {
|
|
10
|
+
meta
|
|
11
|
+
} from "./chunk-F5OMIM4F.mjs";
|
|
12
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
13
|
+
|
|
14
|
+
// src/capabilities/react-surface/react-surface.tsx
|
|
15
|
+
import * as Effect from "effect/Effect";
|
|
16
|
+
import React from "react";
|
|
17
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
18
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
19
|
+
import { Obj } from "@dxos/echo";
|
|
20
|
+
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
21
|
+
Surface.create({
|
|
22
|
+
id: meta.id,
|
|
23
|
+
role: [
|
|
24
|
+
"article",
|
|
25
|
+
"section",
|
|
26
|
+
"card--content"
|
|
27
|
+
],
|
|
28
|
+
// TODO(burdon): Could this be standardized so that we don't require a subject property.
|
|
29
|
+
filter: (data) => Obj.instanceOf(Chess_exports.Game, data.subject),
|
|
30
|
+
component: ({ data, role }) => /* @__PURE__ */ React.createElement(ChessboardContainer, {
|
|
31
|
+
role,
|
|
32
|
+
subject: data.subject
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
])));
|
|
36
|
+
export {
|
|
37
|
+
react_surface_default as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=react-surface-NW33JZ6J.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Obj } from '@dxos/echo';\n\nimport { ChessboardContainer } from '../../components';\nimport { meta } from '../../meta';\nimport { Chess } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: meta.id,\n role: ['article', 'section', 'card--content'],\n // TODO(burdon): Could this be standardized so that we don't require a subject property.\n filter: (data): data is { subject: Chess.Game } => Obj.instanceOf(Chess.Game, data.subject),\n component: ({ data, role }) => <ChessboardContainer role={role} subject={data.subject} />,\n }),\n ]),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,WAAW;AAMpB,IAAA,wBAAeC,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAIC,KAAKD;IACTE,MAAM;MAAC;MAAW;MAAW;;;IAE7BC,QAAQ,CAACC,SAA0CC,IAAIC,WAAWC,cAAMC,MAAMJ,KAAKK,OAAO;IAC1FC,WAAW,CAAC,EAAEN,MAAMF,KAAI,MAAO,sBAAA,cAACS,qBAAAA;MAAoBT;MAAYO,SAASL,KAAKK;;EAChF,CAAA;CACD,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capabilities", "Capability", "Surface", "Obj", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "Chess", "Game", "subject", "component", "ChessboardContainer"]
|
|
7
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
ChessAction_exports,
|
|
4
3
|
Chess_exports
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OUNGNJFP.mjs";
|
|
5
|
+
import "../chunk-HSLMI22Q.mjs";
|
|
7
6
|
export {
|
|
8
|
-
Chess_exports as Chess
|
|
9
|
-
ChessAction_exports as ChessAction
|
|
7
|
+
Chess_exports as Chess
|
|
10
8
|
};
|
|
11
9
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChessPlugin.d.ts","sourceRoot":"","sources":["../../../src/ChessPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChessPlugin.d.ts","sourceRoot":"","sources":["../../../src/ChessPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAU7C,eAAO,MAAM,WAAW,4BAkBvB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FunctionDefinition } from '@dxos/functions';
|
|
2
|
+
export declare const Key = "dxos.org/blueprint/chess";
|
|
3
|
+
export declare const functions: FunctionDefinition[];
|
|
4
|
+
export declare const make: () => import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
5
|
+
readonly description?: string | undefined;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly key: string;
|
|
8
|
+
readonly instructions: {
|
|
9
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
+
readonly content: string;
|
|
11
|
+
}>;
|
|
12
|
+
readonly inputs?: readonly {
|
|
13
|
+
readonly function?: string | undefined;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
16
|
+
readonly default?: any;
|
|
17
|
+
}[] | undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=chess-blueprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chess-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/chess-blueprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK1D,eAAO,MAAM,GAAG,6BAA6B,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE,kBAAkB,EAAgC,CAAC;AAE3E,eAAO,MAAM,IAAI;;;;;;;;uBAc6iC,CAAC;6BAA0C,CAAC;;yBAAkF,CAAC;4BAA6I,CAAC;;;;EADv0C,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly name?: string | undefined;
|
|
2
3
|
readonly pgn?: string | undefined;
|
|
3
4
|
readonly fen?: string | undefined;
|
|
4
5
|
}, import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
5
|
-
name?: string | undefined;
|
|
6
|
-
players?: {
|
|
7
|
-
white?: string | undefined;
|
|
8
|
-
black?: string | undefined;
|
|
6
|
+
readonly name?: string | undefined;
|
|
7
|
+
readonly players?: {
|
|
8
|
+
readonly white?: string | undefined;
|
|
9
|
+
readonly black?: string | undefined;
|
|
9
10
|
} | undefined;
|
|
10
|
-
pgn?: string | undefined;
|
|
11
|
-
fen?: string | undefined;
|
|
11
|
+
readonly pgn?: string | undefined;
|
|
12
|
+
readonly fen?: string | undefined;
|
|
12
13
|
}>, import("@dxos/functions").FunctionServices>;
|
|
13
14
|
export default _default;
|
|
14
15
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAYA,wBAyBG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly name?: string | undefined;
|
|
4
|
+
readonly players?: {
|
|
5
|
+
readonly white?: string | undefined;
|
|
6
|
+
readonly black?: string | undefined;
|
|
7
|
+
} | undefined;
|
|
8
|
+
readonly pgn?: string | undefined;
|
|
9
|
+
readonly fen?: string | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
readonly move: string;
|
|
12
|
+
}, {
|
|
13
|
+
readonly pgn: string;
|
|
14
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=move.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/move.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,wBAkCG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly name?: string | undefined;
|
|
4
|
+
readonly players?: {
|
|
5
|
+
readonly white?: string | undefined;
|
|
6
|
+
readonly black?: string | undefined;
|
|
7
|
+
} | undefined;
|
|
8
|
+
readonly pgn?: string | undefined;
|
|
9
|
+
readonly fen?: string | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
readonly side?: "white" | "black" | "any" | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
readonly pgn: string;
|
|
14
|
+
readonly move?: string | undefined;
|
|
15
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=play.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/play.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAaA,wBA4CG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
2
|
+
readonly pgn?: string | undefined;
|
|
3
|
+
readonly fen?: string | undefined;
|
|
4
4
|
}, {
|
|
5
|
-
readonly
|
|
5
|
+
readonly ascii: string;
|
|
6
6
|
}, import("@dxos/functions").FunctionServices>;
|
|
7
7
|
export default _default;
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=print.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/print.ts"],"names":[],"mappings":";;;;;;AAUA,wBA+BG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability, type PromiseIntentDispatcher } from '@dxos/app-framework';
|
|
3
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
4
|
+
declare global {
|
|
5
|
+
interface ToolContextExtensions {
|
|
6
|
+
space?: Space;
|
|
7
|
+
dispatch?: PromiseIntentDispatcher;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<any>, never, never>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=artifact-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/artifact-definition/artifact-definition.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAgB,UAAU,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAM7F,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAO7D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,wBAsGE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/artifact-definition/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,oEAA+E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
4
|
+
export type BlueprintCapabilities = [
|
|
5
|
+
Capability.Capability<typeof AppCapabilities.Functions>,
|
|
6
|
+
Capability.Capability<typeof AppCapabilities.BlueprintDefinition>
|
|
7
|
+
];
|
|
8
|
+
declare const blueprintDefinition: (props?: [] | undefined) => Effect.Effect<BlueprintCapabilities, Error, Capability.Service>;
|
|
9
|
+
export default blueprintDefinition;
|
|
10
|
+
//# sourceMappingURL=blueprint-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/blueprint-definition/blueprint-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC;IACvD,UAAU,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,mBAAmB,CAAC;CAClE,CAAC;AAEF,QAAA,MAAM,mBAAmB,6FAKxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|