@dxos/plugin-chess 0.8.3-main.7f5a14c → 0.8.3-staging.0fa589b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/lib/browser/{artifact-definition-YPUHGTNQ.mjs → artifact-definition-NLIDMZ42.mjs} +2 -2
  2. package/dist/lib/browser/{chunk-VLJW6CSJ.mjs → chunk-KA3H3Z76.mjs} +7 -10
  3. package/dist/lib/browser/chunk-KA3H3Z76.mjs.map +7 -0
  4. package/dist/lib/browser/index.mjs +9 -5
  5. package/dist/lib/browser/index.mjs.map +3 -3
  6. package/dist/lib/browser/{intent-resolver-BLCMAATK.mjs → intent-resolver-65W3KVTW.mjs} +2 -2
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/{react-surface-SXCEZFFA.mjs → react-surface-GYE5E74A.mjs} +2 -2
  9. package/dist/lib/browser/types/index.mjs +1 -1
  10. package/dist/lib/node/{artifact-definition-NB3UJZW5.cjs → artifact-definition-VHJ54X2P.cjs} +16 -16
  11. package/dist/lib/node/{chunk-WKE4BDBM.cjs → chunk-THN2FKB3.cjs} +12 -15
  12. package/dist/lib/node/chunk-THN2FKB3.cjs.map +7 -0
  13. package/dist/lib/node/index.cjs +22 -18
  14. package/dist/lib/node/index.cjs.map +3 -3
  15. package/dist/lib/node/{intent-resolver-3XW3UFRT.cjs → intent-resolver-BQGAQM27.cjs} +7 -7
  16. package/dist/lib/node/meta.json +1 -1
  17. package/dist/lib/node/{react-surface-3VDR3PZL.cjs → react-surface-TZDWBTEY.cjs} +8 -8
  18. package/dist/lib/node/types/index.cjs +5 -5
  19. package/dist/lib/node/types/index.cjs.map +1 -1
  20. package/dist/lib/node-esm/{artifact-definition-476UKUXU.mjs → artifact-definition-CZGGG56Q.mjs} +2 -2
  21. package/dist/lib/node-esm/{chunk-QSYDZOTP.mjs → chunk-4V3WNUDH.mjs} +7 -10
  22. package/dist/lib/node-esm/chunk-4V3WNUDH.mjs.map +7 -0
  23. package/dist/lib/node-esm/index.mjs +9 -5
  24. package/dist/lib/node-esm/index.mjs.map +3 -3
  25. package/dist/lib/node-esm/{intent-resolver-H5CEOC2U.mjs → intent-resolver-6TYVNVEU.mjs} +2 -2
  26. package/dist/lib/node-esm/meta.json +1 -1
  27. package/dist/lib/node-esm/{react-surface-G7U53SFD.mjs → react-surface-LRFYFOFF.mjs} +2 -2
  28. package/dist/lib/node-esm/types/index.mjs +1 -1
  29. package/dist/types/src/translations.d.ts +14 -2
  30. package/dist/types/src/translations.d.ts.map +1 -1
  31. package/dist/types/src/types/schema.d.ts +16 -18
  32. package/dist/types/src/types/schema.d.ts.map +1 -1
  33. package/dist/types/src/types/types.d.ts +23 -12
  34. package/dist/types/src/types/types.d.ts.map +1 -1
  35. package/package.json +23 -23
  36. package/src/translations.ts +6 -1
  37. package/src/types/schema.ts +17 -16
  38. package/dist/lib/browser/chunk-VLJW6CSJ.mjs.map +0 -7
  39. package/dist/lib/node/chunk-WKE4BDBM.cjs.map +0 -7
  40. package/dist/lib/node-esm/chunk-QSYDZOTP.mjs.map +0 -7
  41. /package/dist/lib/browser/{artifact-definition-YPUHGTNQ.mjs.map → artifact-definition-NLIDMZ42.mjs.map} +0 -0
  42. /package/dist/lib/browser/{intent-resolver-BLCMAATK.mjs.map → intent-resolver-65W3KVTW.mjs.map} +0 -0
  43. /package/dist/lib/browser/{react-surface-SXCEZFFA.mjs.map → react-surface-GYE5E74A.mjs.map} +0 -0
  44. /package/dist/lib/node/{artifact-definition-NB3UJZW5.cjs.map → artifact-definition-VHJ54X2P.cjs.map} +0 -0
  45. /package/dist/lib/node/{intent-resolver-3XW3UFRT.cjs.map → intent-resolver-BQGAQM27.cjs.map} +0 -0
  46. /package/dist/lib/node/{react-surface-3VDR3PZL.cjs.map → react-surface-TZDWBTEY.cjs.map} +0 -0
  47. /package/dist/lib/node-esm/{artifact-definition-476UKUXU.mjs.map → artifact-definition-CZGGG56Q.mjs.map} +0 -0
  48. /package/dist/lib/node-esm/{intent-resolver-H5CEOC2U.mjs.map → intent-resolver-6TYVNVEU.mjs.map} +0 -0
  49. /package/dist/lib/node-esm/{react-surface-G7U53SFD.mjs.map → react-surface-LRFYFOFF.mjs.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  ChessAction,
3
3
  ChessType,
4
4
  meta
5
- } from "./chunk-VLJW6CSJ.mjs";
5
+ } from "./chunk-KA3H3Z76.mjs";
6
6
 
7
7
  // packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts
8
8
  import { Chess } from "chess.js";
@@ -179,4 +179,4 @@ var artifact_definition_default = () => {
179
179
  export {
180
180
  artifact_definition_default as default
181
181
  };
182
- //# sourceMappingURL=artifact-definition-YPUHGTNQ.mjs.map
182
+ //# sourceMappingURL=artifact-definition-NLIDMZ42.mjs.map
@@ -1,15 +1,12 @@
1
1
  // packages/plugins/plugin-chess/src/types/schema.ts
2
2
  import { Schema } from "effect";
3
- import { TypedObject } from "@dxos/echo-schema";
3
+ import { Type } from "@dxos/echo";
4
4
  var MoveSchema = Schema.mutable(Schema.partial(Schema.Struct({
5
5
  source: Schema.String,
6
6
  target: Schema.String,
7
7
  piece: Schema.String
8
8
  })));
9
- var ChessType = class extends TypedObject({
10
- typename: "dxos.org/type/Chess",
11
- version: "0.1.0"
12
- })({
9
+ var ChessType = Schema.Struct({
13
10
  name: Schema.optional(Schema.String),
14
11
  playerWhite: Schema.String,
15
12
  playerBlack: Schema.String,
@@ -17,10 +14,10 @@ var ChessType = class extends TypedObject({
17
14
  // TODO(wittjosiah): Remove. Redundant with moves.
18
15
  pgn: Schema.String,
19
16
  fen: Schema.String
20
- }, {
21
- partial: true
22
- }) {
23
- };
17
+ }).pipe(Schema.partial, Type.Obj({
18
+ typename: "dxos.org/type/Chess",
19
+ version: "0.1.0"
20
+ }));
24
21
 
25
22
  // packages/plugins/plugin-chess/src/types/types.ts
26
23
  import { Schema as Schema2 } from "effect";
@@ -65,4 +62,4 @@ export {
65
62
  isObject,
66
63
  ChessAction
67
64
  };
68
- //# sourceMappingURL=chunk-VLJW6CSJ.mjs.map
65
+ //# sourceMappingURL=chunk-KA3H3Z76.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 { Type } from '@dxos/echo';\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 const ChessType = Schema.Struct({\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}).pipe(\n Schema.partial,\n Type.Obj({\n typename: 'dxos.org/type/Chess',\n version: '0.1.0',\n }),\n);\nexport interface ChessType extends Schema.Schema.Type<typeof ChessType> {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { Obj } from '@dxos/echo';\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 = Obj.instanceOf(ChessType);\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,YAAY;AAEd,IAAMC,aAAaC,OAAOC,QAC/BD,OAAOE,QACLF,OAAOG,OAAO;EACZC,QAAQJ,OAAOK;EACfC,QAAQN,OAAOK;EACfE,OAAOP,OAAOK;AAChB,CAAA,CAAA,CAAA;AAIG,IAAMG,YAAYR,OAAOG,OAAO;EACrCM,MAAMT,OAAOU,SAASV,OAAOK,MAAM;EACnCM,aAAaX,OAAOK;EACpBO,aAAaZ,OAAOK;EACpBQ,OAAOb,OAAOC,QAAQD,OAAOc,MAAMd,OAAOK,MAAM,CAAA;;EAEhDU,KAAKf,OAAOK;EACZW,KAAKhB,OAAOK;AACd,CAAA,EAAGY,KACDjB,OAAOE,SACPgB,KAAKC,IAAI;EACPC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;;;AC3BF,SAASC,UAAAA,eAAc;AAEvB,SAASC,WAAW;;;ACAb,IAAMC,eAAe;AAErB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;;;UDLiBC,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,WAAWC,IAAIC,WAAWH,SAAAA;;",
6
+ "names": ["Schema", "Type", "MoveSchema", "Schema", "mutable", "partial", "Struct", "source", "String", "target", "piece", "ChessType", "name", "optional", "playerWhite", "playerBlack", "moves", "Array", "pgn", "fen", "pipe", "Type", "Obj", "typename", "version", "Schema", "Obj", "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", "Obj", "instanceOf"]
7
+ }
@@ -6,16 +6,16 @@ import {
6
6
  ChessAction,
7
7
  ChessType,
8
8
  meta
9
- } from "./chunk-VLJW6CSJ.mjs";
9
+ } from "./chunk-KA3H3Z76.mjs";
10
10
  import {
11
11
  ChessComponent
12
12
  } from "./chunk-6XPI4FTK.mjs";
13
13
 
14
14
  // packages/plugins/plugin-chess/src/capabilities/index.ts
15
15
  import { lazy } from "@dxos/app-framework";
16
- var ArtifactDefinition = lazy(() => import("./artifact-definition-YPUHGTNQ.mjs"));
17
- var IntentResolver = lazy(() => import("./intent-resolver-BLCMAATK.mjs"));
18
- var ReactSurface = lazy(() => import("./react-surface-SXCEZFFA.mjs"));
16
+ var ArtifactDefinition = lazy(() => import("./artifact-definition-NLIDMZ42.mjs"));
17
+ var IntentResolver = lazy(() => import("./intent-resolver-65W3KVTW.mjs"));
18
+ var ReactSurface = lazy(() => import("./react-surface-GYE5E74A.mjs"));
19
19
 
20
20
  // packages/plugins/plugin-chess/src/ChessPlugin.tsx
21
21
  import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from "@dxos/app-framework";
@@ -24,11 +24,15 @@ import { SpaceCapabilities } from "@dxos/plugin-space";
24
24
  import { defineObjectForm } from "@dxos/plugin-space/types";
25
25
 
26
26
  // packages/plugins/plugin-chess/src/translations.ts
27
+ import { Type } from "@dxos/echo";
27
28
  var translations_default = [
28
29
  {
29
30
  "en-US": {
30
- [ChessType.typename]: {
31
+ [Type.getTypename(ChessType)]: {
31
32
  "typename label": "Game",
33
+ "typename label_zero": "Games",
34
+ "typename label_one": "Game",
35
+ "typename label_other": "Games",
32
36
  "object name placeholder": "New game"
33
37
  },
34
38
  [CHESS_PLUGIN]: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const ArtifactDefinition = lazy(() => import('./artifact-definition'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\n\nimport { ArtifactDefinition, IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ChessAction, ChessType } from './types';\n\nexport const ChessPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ChessType.typename,\n metadata: {\n icon: 'ph--shield-chevron--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: ChessType,\n getIntent: () => createIntent(ChessAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/artifact-definition`,\n activatesOn: Events.SetupArtifactDefinition,\n activate: ArtifactDefinition,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CHESS_PLUGIN } from './meta';\nimport { ChessType } from './types';\n\nexport default [\n {\n 'en-US': {\n [ChessType.typename]: {\n 'typename label': 'Game',\n 'object name placeholder': 'New game',\n },\n [CHESS_PLUGIN]: {\n 'plugin name': 'Chess',\n 'delete game label': 'Delete',\n },\n },\n },\n];\n"],
5
- "mappings": ";;;;;;;;;;;;;;AAIA,SAASA,YAAY;AAEd,IAAMC,qBAAqBC,KAAK,MAAM,OAAO,oCAAA,CAAA;AAC7C,IAAMC,iBAAiBD,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoB;AAC7B,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;;;ACAjC,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,UAAUC,QAAQ,GAAG;QACpB,kBAAkB;QAClB,2BAA2B;MAC7B;MACA,CAACC,YAAAA,GAAe;QACd,eAAe;QACf,qBAAqB;MACvB;IACF;EACF;;;;ADLK,IAAMC,cAAc,MACzBC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MACRC,YAAYC,aAAaI,UAAU;MACjCV,IAAIW,UAAUC;MACdC,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MACRC,YACEY,kBAAkBC,YAClBC,iBAAiB;MACfC,cAAcT;MACdU,WAAW,MAAMC,aAAaC,YAAYC,MAAM;IAClD,CAAA,CAAA;EAEN,CAAA;EACAzB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOuB;IACpBrB,UAAUsB;EACZ,CAAA;EACA3B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOyB;IACpBvB,UAAUwB;EACZ,CAAA;EACA7B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO2B;IACpBzB,UAAU0B;EACZ,CAAA;CACD;",
6
- "names": ["lazy", "ArtifactDefinition", "lazy", "IntentResolver", "ReactSurface", "Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "ChessType", "typename", "CHESS_PLUGIN", "ChessPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "ChessType", "typename", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ChessAction", "Create", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver", "SetupArtifactDefinition", "ArtifactDefinition"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const ArtifactDefinition = lazy(() => import('./artifact-definition'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\n\nimport { ArtifactDefinition, IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ChessAction, ChessType } from './types';\n\nexport const ChessPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ChessType.typename,\n metadata: {\n icon: 'ph--shield-chevron--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: ChessType,\n getIntent: () => createIntent(ChessAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/artifact-definition`,\n activatesOn: Events.SetupArtifactDefinition,\n activate: ArtifactDefinition,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\n\nimport { CHESS_PLUGIN } from './meta';\nimport { ChessType } from './types';\n\nexport default [\n {\n 'en-US': {\n [Type.getTypename(ChessType)]: {\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 },\n [CHESS_PLUGIN]: {\n 'plugin name': 'Chess',\n 'delete game label': 'Delete',\n },\n },\n },\n];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAIA,SAASA,YAAY;AAEd,IAAMC,qBAAqBC,KAAK,MAAM,OAAO,oCAAA,CAAA;AAC7C,IAAMC,iBAAiBD,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoB;AAC7B,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;;;ACHjC,SAASC,YAAY;AAKrB,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,KAAKC,YAAYC,SAAAA,CAAAA,GAAa;QAC7B,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;MAC7B;MACA,CAACC,YAAAA,GAAe;QACd,eAAe;QACf,qBAAqB;MACvB;IACF;EACF;;;;ADVK,IAAMC,cAAc,MACzBC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MACRC,YAAYC,aAAaI,UAAU;MACjCV,IAAIW,UAAUC;MACdC,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MACRC,YACEY,kBAAkBC,YAClBC,iBAAiB;MACfC,cAAcT;MACdU,WAAW,MAAMC,aAAaC,YAAYC,MAAM;IAClD,CAAA,CAAA;EAEN,CAAA;EACAzB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOuB;IACpBrB,UAAUsB;EACZ,CAAA;EACA3B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOyB;IACpBvB,UAAUwB;EACZ,CAAA;EACA7B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO2B;IACpBzB,UAAU0B;EACZ,CAAA;CACD;",
6
+ "names": ["lazy", "ArtifactDefinition", "lazy", "IntentResolver", "ReactSurface", "Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "Type", "Type", "getTypename", "ChessType", "CHESS_PLUGIN", "ChessPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "ChessType", "typename", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ChessAction", "Create", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver", "SetupArtifactDefinition", "ArtifactDefinition"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ChessAction,
3
3
  ChessType
4
- } from "./chunk-VLJW6CSJ.mjs";
4
+ } from "./chunk-KA3H3Z76.mjs";
5
5
 
6
6
  // packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts
7
7
  import { Chess } from "chess.js";
@@ -25,4 +25,4 @@ var intent_resolver_default = () => contributes(Capabilities.IntentResolver, cre
25
25
  export {
26
26
  intent_resolver_default as default
27
27
  };
28
- //# sourceMappingURL=intent-resolver-BLCMAATK.mjs.map
28
+ //# sourceMappingURL=intent-resolver-65W3KVTW.mjs.map
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2033,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":2933,"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":2702,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","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":554,"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":19082,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","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","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":2692,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","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":5508,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","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":9084,"imports":[{"path":"@preact-signals/safe-react/tracking","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}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3431,"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":"@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":872,"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":3766,"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":"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":1329,"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":1642,"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":7256,"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":754,"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/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4837},"packages/plugins/plugin-chess/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-VLJW6CSJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/browser/artifact-definition-YPUHGTNQ.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/intent-resolver-BLCMAATK.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/react-surface-SXCEZFFA.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":2659},"packages/plugins/plugin-chess/dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/browser/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-VLJW6CSJ.mjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":194},"packages/plugins/plugin-chess/dist/lib/browser/artifact-definition-YPUHGTNQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8478},"packages/plugins/plugin-chess/dist/lib/browser/artifact-definition-YPUHGTNQ.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-VLJW6CSJ.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","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","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":5956}},"bytes":6216},"packages/plugins/plugin-chess/dist/lib/browser/intent-resolver-BLCMAATK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1374},"packages/plugins/plugin-chess/dist/lib/browser/intent-resolver-BLCMAATK.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-VLJW6CSJ.mjs","kind":"import-statement"},{"path":"chess.js","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":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytesInOutput":503}},"bytes":743},"packages/plugins/plugin-chess/dist/lib/browser/ChessContainer-S72CLKGK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6167},"packages/plugins/plugin-chess/dist/lib/browser/ChessContainer-S72CLKGK.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.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":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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":978},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2608}},"bytes":3948},"packages/plugins/plugin-chess/dist/lib/browser/react-surface-SXCEZFFA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1789},"packages/plugins/plugin-chess/dist/lib/browser/react-surface-SXCEZFFA.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-VLJW6CSJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.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":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytesInOutput":715}},"bytes":1077},"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":402},"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/browser/ChessContainer-S72CLKGK.mjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":235},"packages/plugins/plugin-chess/dist/lib/browser/chunk-VLJW6CSJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3706},"packages/plugins/plugin-chess/dist/lib/browser/chunk-VLJW6CSJ.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","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":553},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":513}},"bytes":2011},"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2588},"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","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":1601}},"bytes":1742}}}
1
+ {"inputs":{"packages/plugins/plugin-chess/src/meta.ts":{"bytes":2033,"imports":[],"format":"esm"},"packages/plugins/plugin-chess/src/types/schema.ts":{"bytes":3044,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-chess/src/types/types.ts":{"bytes":2702,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","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":554,"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":19082,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","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","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":2692,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","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":5508,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","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":9084,"imports":[{"path":"@preact-signals/safe-react/tracking","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}],"format":"esm"},"packages/plugins/plugin-chess/src/components/ChessContainer.tsx":{"bytes":3431,"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":"@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":872,"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":3766,"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":"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":1329,"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":2169,"imports":[{"path":"@dxos/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/ChessPlugin.tsx":{"bytes":7256,"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":754,"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/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5094},"packages/plugins/plugin-chess/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-KA3H3Z76.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/browser/artifact-definition-NLIDMZ42.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/intent-resolver-65W3KVTW.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/react-surface-GYE5E74A.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},{"path":"@dxos/echo","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":445}},"bytes":2822},"packages/plugins/plugin-chess/dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-chess/dist/lib/browser/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-KA3H3Z76.mjs","kind":"import-statement"}],"exports":["ChessAction","ChessType","MoveSchema","isObject"],"entryPoint":"packages/plugins/plugin-chess/src/types/index.ts","inputs":{},"bytes":194},"packages/plugins/plugin-chess/dist/lib/browser/artifact-definition-NLIDMZ42.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8478},"packages/plugins/plugin-chess/dist/lib/browser/artifact-definition-NLIDMZ42.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-KA3H3Z76.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","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","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":5956}},"bytes":6216},"packages/plugins/plugin-chess/dist/lib/browser/intent-resolver-65W3KVTW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1374},"packages/plugins/plugin-chess/dist/lib/browser/intent-resolver-65W3KVTW.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-KA3H3Z76.mjs","kind":"import-statement"},{"path":"chess.js","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":"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-chess/src/capabilities/intent-resolver.ts":{"bytesInOutput":503}},"bytes":743},"packages/plugins/plugin-chess/dist/lib/browser/ChessContainer-S72CLKGK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6167},"packages/plugins/plugin-chess/dist/lib/browser/ChessContainer-S72CLKGK.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.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":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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":978},"packages/plugins/plugin-chess/src/components/PlayerSelector.tsx":{"bytesInOutput":2608}},"bytes":3948},"packages/plugins/plugin-chess/dist/lib/browser/react-surface-GYE5E74A.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1789},"packages/plugins/plugin-chess/dist/lib/browser/react-surface-GYE5E74A.mjs":{"imports":[{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-KA3H3Z76.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.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":"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-chess/src/capabilities/react-surface.tsx":{"bytesInOutput":715}},"bytes":1077},"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":402},"packages/plugins/plugin-chess/dist/lib/browser/chunk-5QBQW62M.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-chess/dist/lib/browser/ChessContainer-S72CLKGK.mjs","kind":"dynamic-import"}],"exports":["ChessContainer"],"inputs":{"packages/plugins/plugin-chess/src/components/index.ts":{"bytesInOutput":104}},"bytes":235},"packages/plugins/plugin-chess/dist/lib/browser/chunk-KA3H3Z76.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3763},"packages/plugins/plugin-chess/dist/lib/browser/chunk-KA3H3Z76.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["CHESS_PLUGIN","ChessAction","ChessType","MoveSchema","isObject","meta"],"inputs":{"packages/plugins/plugin-chess/src/types/schema.ts":{"bytesInOutput":586},"packages/plugins/plugin-chess/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-chess/src/types/types.ts":{"bytesInOutput":553},"packages/plugins/plugin-chess/src/meta.ts":{"bytesInOutput":513}},"bytes":1991},"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2588},"packages/plugins/plugin-chess/dist/lib/browser/chunk-6XPI4FTK.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","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":1601}},"bytes":1742}}}
@@ -5,7 +5,7 @@ import {
5
5
  CHESS_PLUGIN,
6
6
  ChessType,
7
7
  isObject
8
- } from "./chunk-VLJW6CSJ.mjs";
8
+ } from "./chunk-KA3H3Z76.mjs";
9
9
  import {
10
10
  ChessComponent
11
11
  } from "./chunk-6XPI4FTK.mjs";
@@ -39,4 +39,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
39
39
  export {
40
40
  react_surface_default as default
41
41
  };
42
- //# sourceMappingURL=react-surface-SXCEZFFA.mjs.map
42
+ //# sourceMappingURL=react-surface-GYE5E74A.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  ChessType,
4
4
  MoveSchema,
5
5
  isObject
6
- } from "../chunk-VLJW6CSJ.mjs";
6
+ } from "../chunk-KA3H3Z76.mjs";
7
7
  export {
8
8
  ChessAction,
9
9
  ChessType,
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var artifact_definition_NB3UJZW5_exports = {};
20
- __export(artifact_definition_NB3UJZW5_exports, {
19
+ var artifact_definition_VHJ54X2P_exports = {};
20
+ __export(artifact_definition_VHJ54X2P_exports, {
21
21
  default: () => artifact_definition_default
22
22
  });
23
- module.exports = __toCommonJS(artifact_definition_NB3UJZW5_exports);
24
- var import_chunk_WKE4BDBM = require("./chunk-WKE4BDBM.cjs");
23
+ module.exports = __toCommonJS(artifact_definition_VHJ54X2P_exports);
24
+ var import_chunk_THN2FKB3 = require("./chunk-THN2FKB3.cjs");
25
25
  var import_chess = require("chess.js");
26
26
  var import_effect = require("effect");
27
27
  var import_ai = require("@dxos/ai");
@@ -35,16 +35,16 @@ var import_echo2 = require("@dxos/react-client/echo");
35
35
  var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-chess/src/capabilities/artifact-definition.ts";
36
36
  var artifact_definition_default = () => {
37
37
  const definition = (0, import_artifact.defineArtifact)({
38
- id: `artifact:${import_chunk_WKE4BDBM.meta.id}`,
39
- name: import_chunk_WKE4BDBM.meta.name,
38
+ id: `artifact:${import_chunk_THN2FKB3.meta.id}`,
39
+ name: import_chunk_THN2FKB3.meta.name,
40
40
  description: "Provides a simple chess engine.",
41
41
  instructions: `
42
42
  - 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.
43
43
  - Always inspect the chess game at the start of every prompt realting to a chess game, as it might have changed since the interaction.
44
44
  `,
45
- schema: import_chunk_WKE4BDBM.ChessType,
45
+ schema: import_chunk_THN2FKB3.ChessType,
46
46
  tools: [
47
- (0, import_ai.createTool)(import_chunk_WKE4BDBM.meta.id, {
47
+ (0, import_ai.createTool)(import_chunk_THN2FKB3.meta.id, {
48
48
  name: "create",
49
49
  description: "Create a new chess game. Returns the artifact definition for the game.",
50
50
  caption: "Creating chess game...",
@@ -72,7 +72,7 @@ var artifact_definition_default = () => {
72
72
  "'No intent dispatcher'"
73
73
  ]
74
74
  });
75
- const intent = (0, import_effect.pipe)((0, import_app_framework.createIntent)(import_chunk_WKE4BDBM.ChessAction.Create, {
75
+ const intent = (0, import_effect.pipe)((0, import_app_framework.createIntent)(import_chunk_THN2FKB3.ChessAction.Create, {
76
76
  fen
77
77
  }), (0, import_app_framework.chain)(import_types.SpaceAction.AddObject, {
78
78
  target: extensions.space
@@ -86,7 +86,7 @@ var artifact_definition_default = () => {
86
86
  ]);
87
87
  }
88
88
  }),
89
- (0, import_ai.createTool)(import_chunk_WKE4BDBM.meta.id, {
89
+ (0, import_ai.createTool)(import_chunk_THN2FKB3.meta.id, {
90
90
  name: "list",
91
91
  description: "Query all active chess games.",
92
92
  caption: "Getting games...",
@@ -101,7 +101,7 @@ var artifact_definition_default = () => {
101
101
  "'No space'"
102
102
  ]
103
103
  });
104
- const { objects: games } = await extensions.space.db.query(import_echo2.Filter.type(import_chunk_WKE4BDBM.ChessType)).run();
104
+ const { objects: games } = await extensions.space.db.query(import_echo2.Filter.type(import_chunk_THN2FKB3.ChessType)).run();
105
105
  (0, import_invariant.invariant)(games.length > 0, "No chess games found", {
106
106
  F: __dxlog_file,
107
107
  L: 71,
@@ -114,7 +114,7 @@ var artifact_definition_default = () => {
114
114
  return import_ai.ToolResult.Success(games);
115
115
  }
116
116
  }),
117
- (0, import_ai.createTool)(import_chunk_WKE4BDBM.meta.id, {
117
+ (0, import_ai.createTool)(import_chunk_THN2FKB3.meta.id, {
118
118
  name: "inspect",
119
119
  description: "Get the current state of the chess game.",
120
120
  caption: "Inspecting game...",
@@ -132,7 +132,7 @@ var artifact_definition_default = () => {
132
132
  ]
133
133
  });
134
134
  const game = await extensions.space.db.query(import_echo2.Filter.ids(import_artifact.ArtifactId.toDXN(id, extensions.space.id).toString())).first();
135
- (0, import_invariant.invariant)(import_echo.Obj.instanceOf(import_chunk_WKE4BDBM.ChessType, game), void 0, {
135
+ (0, import_invariant.invariant)(import_echo.Obj.instanceOf(import_chunk_THN2FKB3.ChessType, game), void 0, {
136
136
  F: __dxlog_file,
137
137
  L: 86,
138
138
  S: void 0,
@@ -144,7 +144,7 @@ var artifact_definition_default = () => {
144
144
  return import_ai.ToolResult.Success(game.fen);
145
145
  }
146
146
  }),
147
- (0, import_ai.createTool)(import_chunk_WKE4BDBM.meta.id, {
147
+ (0, import_ai.createTool)(import_chunk_THN2FKB3.meta.id, {
148
148
  name: "move",
149
149
  description: "Make a move in the chess game.",
150
150
  caption: "Making chess move...",
@@ -169,7 +169,7 @@ var artifact_definition_default = () => {
169
169
  ]
170
170
  });
171
171
  const game = await extensions.space.db.query(import_echo2.Filter.ids(import_artifact.ArtifactId.toDXN(id, extensions.space.id).toString())).first();
172
- (0, import_invariant.invariant)(import_echo.Obj.instanceOf(import_chunk_WKE4BDBM.ChessType, game), void 0, {
172
+ (0, import_invariant.invariant)(import_echo.Obj.instanceOf(import_chunk_THN2FKB3.ChessType, game), void 0, {
173
173
  F: __dxlog_file,
174
174
  L: 107,
175
175
  S: void 0,
@@ -193,4 +193,4 @@ var artifact_definition_default = () => {
193
193
  });
194
194
  return (0, import_app_framework.contributes)(import_app_framework.Capabilities.ArtifactDefinition, definition);
195
195
  };
196
- //# sourceMappingURL=artifact-definition-NB3UJZW5.cjs.map
196
+ //# sourceMappingURL=artifact-definition-VHJ54X2P.cjs.map
@@ -16,8 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_WKE4BDBM_exports = {};
20
- __export(chunk_WKE4BDBM_exports, {
19
+ var chunk_THN2FKB3_exports = {};
20
+ __export(chunk_THN2FKB3_exports, {
21
21
  CHESS_PLUGIN: () => CHESS_PLUGIN,
22
22
  ChessAction: () => ChessAction,
23
23
  ChessType: () => ChessType,
@@ -25,20 +25,17 @@ __export(chunk_WKE4BDBM_exports, {
25
25
  isObject: () => isObject,
26
26
  meta: () => meta
27
27
  });
28
- module.exports = __toCommonJS(chunk_WKE4BDBM_exports);
28
+ module.exports = __toCommonJS(chunk_THN2FKB3_exports);
29
29
  var import_effect = require("effect");
30
- var import_echo_schema = require("@dxos/echo-schema");
31
- var import_effect2 = require("effect");
32
30
  var import_echo = require("@dxos/echo");
31
+ var import_effect2 = require("effect");
32
+ var import_echo2 = require("@dxos/echo");
33
33
  var MoveSchema = import_effect.Schema.mutable(import_effect.Schema.partial(import_effect.Schema.Struct({
34
34
  source: import_effect.Schema.String,
35
35
  target: import_effect.Schema.String,
36
36
  piece: import_effect.Schema.String
37
37
  })));
38
- var ChessType = class extends (0, import_echo_schema.TypedObject)({
39
- typename: "dxos.org/type/Chess",
40
- version: "0.1.0"
41
- })({
38
+ var ChessType = import_effect.Schema.Struct({
42
39
  name: import_effect.Schema.optional(import_effect.Schema.String),
43
40
  playerWhite: import_effect.Schema.String,
44
41
  playerBlack: import_effect.Schema.String,
@@ -46,10 +43,10 @@ var ChessType = class extends (0, import_echo_schema.TypedObject)({
46
43
  // TODO(wittjosiah): Remove. Redundant with moves.
47
44
  pgn: import_effect.Schema.String,
48
45
  fen: import_effect.Schema.String
49
- }, {
50
- partial: true
51
- }) {
52
- };
46
+ }).pipe(import_effect.Schema.partial, import_echo.Type.Obj({
47
+ typename: "dxos.org/type/Chess",
48
+ version: "0.1.0"
49
+ }));
53
50
  var CHESS_PLUGIN = "dxos.org/plugin/chess";
54
51
  var meta = {
55
52
  id: CHESS_PLUGIN,
@@ -75,7 +72,7 @@ var meta = {
75
72
  }
76
73
  ChessAction2.Create = Create;
77
74
  })(ChessAction || (ChessAction = {}));
78
- var isObject = import_echo.Obj.instanceOf(ChessType);
75
+ var isObject = import_echo2.Obj.instanceOf(ChessType);
79
76
  var ChessAction;
80
77
  // Annotate the CommonJS export names for ESM import in node:
81
78
  0 && (module.exports = {
@@ -86,4 +83,4 @@ var ChessAction;
86
83
  isObject,
87
84
  meta
88
85
  });
89
- //# sourceMappingURL=chunk-WKE4BDBM.cjs.map
86
+ //# sourceMappingURL=chunk-THN2FKB3.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/schema.ts", "../../../src/types/types.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { Type } from '@dxos/echo';\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 const ChessType = Schema.Struct({\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}).pipe(\n Schema.partial,\n Type.Obj({\n typename: 'dxos.org/type/Chess',\n version: '0.1.0',\n }),\n);\nexport interface ChessType extends Schema.Schema.Type<typeof ChessType> {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { Obj } from '@dxos/echo';\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 = Obj.instanceOf(ChessType);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CHESS_PLUGIN = 'dxos.org/plugin/chess';\n\nexport const meta: PluginMeta = {\n id: CHESS_PLUGIN,\n name: 'Chess',\n description:\n 'Chess is a simple plugin which allows you to render an interactive chessboard inside of a plank. This chessboard can be used for collaborative chess games, or for practice experiments with the LLM. ',\n icon: 'ph--shield-chevron--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-chess',\n screenshots: ['https://dxos.network/plugin-details-chess-dark.png'],\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AAEvB,kBAAqB;ACFrB,IAAAA,iBAAuB;AAEvB,IAAAC,eAAoB;ADEb,IAAMC,aAAaC,qBAAOC,QAC/BD,qBAAOE,QACLF,qBAAOG,OAAO;EACZC,QAAQJ,qBAAOK;EACfC,QAAQN,qBAAOK;EACfE,OAAOP,qBAAOK;AAChB,CAAA,CAAA,CAAA;AAIG,IAAMG,YAAYR,qBAAOG,OAAO;EACrCM,MAAMT,qBAAOU,SAASV,qBAAOK,MAAM;EACnCM,aAAaX,qBAAOK;EACpBO,aAAaZ,qBAAOK;EACpBQ,OAAOb,qBAAOC,QAAQD,qBAAOc,MAAMd,qBAAOK,MAAM,CAAA;;EAEhDU,KAAKf,qBAAOK;EACZW,KAAKhB,qBAAOK;AACd,CAAA,EAAGY,KACDjB,qBAAOE,SACPgB,iBAAKC,IAAI;EACPC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;AEzBK,IAAMC,eAAe;AAErB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJb,MAAM;EACNgB,aACE;EACFC,MAAM;EACNtB,QAAQ;EACRuB,aAAa;IAAC;;AAChB;UDLiBC,cAAAA;AACf,QAAMC,eAAe,GAAGP,YAAAA;EAEjB,MAAMQ,eAAe9B,eAAAA,OAAO+B,YAAW,EAAW,GAAGF,YAAAA,WAAuB;IACjFG,OAAOhC,eAAAA,OAAOG,OAAO;MACnBM,MAAMT,eAAAA,OAAOU,SAASV,eAAAA,OAAOK,MAAM;MACnCW,KAAKhB,eAAAA,OAAOU,SAASV,eAAAA,OAAOK,MAAM;IACpC,CAAA;IACA4B,QAAQjC,eAAAA,OAAOG,OAAO;MACpB+B,QAAQ1B;IACV,CAAA;EACF,CAAA,EAAA;EAAI;eARSsB,SAAAA;AASf,GAZiBF,gBAAAA,cAAAA,CAAAA,EAAAA;AAcV,IAAMO,WAAWhB,iBAAIiB,WAAW5B,SAAAA;;",
6
+ "names": ["import_effect", "import_echo", "MoveSchema", "Schema", "mutable", "partial", "Struct", "source", "String", "target", "piece", "ChessType", "name", "optional", "playerWhite", "playerBlack", "moves", "Array", "pgn", "fen", "pipe", "Type", "Obj", "typename", "version", "CHESS_PLUGIN", "meta", "id", "description", "icon", "screenshots", "ChessAction", "CHESS_ACTION", "Create", "TaggedClass", "input", "output", "object", "isObject", "instanceOf"]
7
+ }
@@ -29,76 +29,80 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var node_exports = {};
30
30
  __export(node_exports, {
31
31
  ArtifactDefinition: () => ArtifactDefinition,
32
- CHESS_PLUGIN: () => import_chunk_WKE4BDBM.CHESS_PLUGIN,
32
+ CHESS_PLUGIN: () => import_chunk_THN2FKB3.CHESS_PLUGIN,
33
33
  ChessComponent: () => import_chunk_OTMP6HPY.ChessComponent,
34
34
  ChessContainer: () => import_chunk_R6JAL3RE.ChessContainer,
35
35
  ChessPlugin: () => ChessPlugin,
36
36
  IntentResolver: () => IntentResolver,
37
37
  ReactSurface: () => ReactSurface,
38
- meta: () => import_chunk_WKE4BDBM.meta
38
+ meta: () => import_chunk_THN2FKB3.meta
39
39
  });
40
40
  module.exports = __toCommonJS(node_exports);
41
41
  var import_chunk_R6JAL3RE = require("./chunk-R6JAL3RE.cjs");
42
- var import_chunk_WKE4BDBM = require("./chunk-WKE4BDBM.cjs");
42
+ var import_chunk_THN2FKB3 = require("./chunk-THN2FKB3.cjs");
43
43
  var import_chunk_OTMP6HPY = require("./chunk-OTMP6HPY.cjs");
44
44
  var import_app_framework = require("@dxos/app-framework");
45
45
  var import_app_framework2 = require("@dxos/app-framework");
46
46
  var import_plugin_client = require("@dxos/plugin-client");
47
47
  var import_plugin_space = require("@dxos/plugin-space");
48
48
  var import_types = require("@dxos/plugin-space/types");
49
- var ArtifactDefinition = (0, import_app_framework.lazy)(() => import("./artifact-definition-NB3UJZW5.cjs"));
50
- var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-3XW3UFRT.cjs"));
51
- var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-3VDR3PZL.cjs"));
49
+ var import_echo = require("@dxos/echo");
50
+ var ArtifactDefinition = (0, import_app_framework.lazy)(() => import("./artifact-definition-VHJ54X2P.cjs"));
51
+ var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-BQGAQM27.cjs"));
52
+ var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-TZDWBTEY.cjs"));
52
53
  var translations_default = [
53
54
  {
54
55
  "en-US": {
55
- [import_chunk_WKE4BDBM.ChessType.typename]: {
56
+ [import_echo.Type.getTypename(import_chunk_THN2FKB3.ChessType)]: {
56
57
  "typename label": "Game",
58
+ "typename label_zero": "Games",
59
+ "typename label_one": "Game",
60
+ "typename label_other": "Games",
57
61
  "object name placeholder": "New game"
58
62
  },
59
- [import_chunk_WKE4BDBM.CHESS_PLUGIN]: {
63
+ [import_chunk_THN2FKB3.CHESS_PLUGIN]: {
60
64
  "plugin name": "Chess",
61
65
  "delete game label": "Delete"
62
66
  }
63
67
  }
64
68
  }
65
69
  ];
66
- var ChessPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_WKE4BDBM.meta, [
70
+ var ChessPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_THN2FKB3.meta, [
67
71
  (0, import_app_framework2.defineModule)({
68
- id: `${import_chunk_WKE4BDBM.meta.id}/module/translations`,
72
+ id: `${import_chunk_THN2FKB3.meta.id}/module/translations`,
69
73
  activatesOn: import_app_framework2.Events.SetupTranslations,
70
74
  activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Translations, translations_default)
71
75
  }),
72
76
  (0, import_app_framework2.defineModule)({
73
- id: `${import_chunk_WKE4BDBM.meta.id}/module/metadata`,
77
+ id: `${import_chunk_THN2FKB3.meta.id}/module/metadata`,
74
78
  activatesOn: import_app_framework2.Events.SetupMetadata,
75
79
  activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Metadata, {
76
- id: import_chunk_WKE4BDBM.ChessType.typename,
80
+ id: import_chunk_THN2FKB3.ChessType.typename,
77
81
  metadata: {
78
82
  icon: "ph--shield-chevron--regular"
79
83
  }
80
84
  })
81
85
  }),
82
86
  (0, import_app_framework2.defineModule)({
83
- id: `${import_chunk_WKE4BDBM.meta.id}/module/object-form`,
87
+ id: `${import_chunk_THN2FKB3.meta.id}/module/object-form`,
84
88
  activatesOn: import_plugin_client.ClientEvents.SetupSchema,
85
89
  activate: () => (0, import_app_framework2.contributes)(import_plugin_space.SpaceCapabilities.ObjectForm, (0, import_types.defineObjectForm)({
86
- objectSchema: import_chunk_WKE4BDBM.ChessType,
87
- getIntent: () => (0, import_app_framework2.createIntent)(import_chunk_WKE4BDBM.ChessAction.Create)
90
+ objectSchema: import_chunk_THN2FKB3.ChessType,
91
+ getIntent: () => (0, import_app_framework2.createIntent)(import_chunk_THN2FKB3.ChessAction.Create)
88
92
  }))
89
93
  }),
90
94
  (0, import_app_framework2.defineModule)({
91
- id: `${import_chunk_WKE4BDBM.meta.id}/module/react-surface`,
95
+ id: `${import_chunk_THN2FKB3.meta.id}/module/react-surface`,
92
96
  activatesOn: import_app_framework2.Events.SetupReactSurface,
93
97
  activate: ReactSurface
94
98
  }),
95
99
  (0, import_app_framework2.defineModule)({
96
- id: `${import_chunk_WKE4BDBM.meta.id}/module/intent-resolver`,
100
+ id: `${import_chunk_THN2FKB3.meta.id}/module/intent-resolver`,
97
101
  activatesOn: import_app_framework2.Events.SetupIntentResolver,
98
102
  activate: IntentResolver
99
103
  }),
100
104
  (0, import_app_framework2.defineModule)({
101
- id: `${import_chunk_WKE4BDBM.meta.id}/module/artifact-definition`,
105
+ id: `${import_chunk_THN2FKB3.meta.id}/module/artifact-definition`,
102
106
  activatesOn: import_app_framework2.Events.SetupArtifactDefinition,
103
107
  activate: ArtifactDefinition
104
108
  })