@dxos/plugin-illustrator 0.10.0

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 (172) hide show
  1. package/LICENSE +105 -0
  2. package/PLUGIN.mdl +55 -0
  3. package/dist/lib/IllustratorPlugin.mjs +18 -0
  4. package/dist/lib/IllustratorPlugin.mjs.map +1 -0
  5. package/dist/lib/IllustratorPlugin.node.mjs +18 -0
  6. package/dist/lib/IllustratorPlugin.node.mjs.map +1 -0
  7. package/dist/lib/IllustratorPlugin.workerd.mjs +10 -0
  8. package/dist/lib/IllustratorPlugin.workerd.mjs.map +1 -0
  9. package/dist/lib/capabilities.mjs +11 -0
  10. package/dist/lib/capabilities.mjs.map +1 -0
  11. package/dist/lib/chunk-IllustratorCapabilities.mjs +16 -0
  12. package/dist/lib/chunk-IllustratorCapabilities.mjs.map +1 -0
  13. package/dist/lib/chunk-comment-config.mjs +16 -0
  14. package/dist/lib/chunk-comment-config.mjs.map +1 -0
  15. package/dist/lib/chunk-create-object.mjs +46 -0
  16. package/dist/lib/chunk-create-object.mjs.map +1 -0
  17. package/dist/lib/chunk-create.mjs +20 -0
  18. package/dist/lib/chunk-create.mjs.map +1 -0
  19. package/dist/lib/chunk-edit.mjs +20 -0
  20. package/dist/lib/chunk-edit.mjs.map +1 -0
  21. package/dist/lib/chunk-load-sketch.mjs +64 -0
  22. package/dist/lib/chunk-load-sketch.mjs.map +1 -0
  23. package/dist/lib/chunk-meta.mjs +40 -0
  24. package/dist/lib/chunk-meta.mjs.map +1 -0
  25. package/dist/lib/chunk-model.mjs +202 -0
  26. package/dist/lib/chunk-model.mjs.map +1 -0
  27. package/dist/lib/chunk-operation-handler.mjs +11 -0
  28. package/dist/lib/chunk-operation-handler.mjs.map +1 -0
  29. package/dist/lib/chunk-react-surface.mjs +31 -0
  30. package/dist/lib/chunk-react-surface.mjs.map +1 -0
  31. package/dist/lib/chunk-read.mjs +13 -0
  32. package/dist/lib/chunk-read.mjs.map +1 -0
  33. package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
  34. package/dist/lib/chunk-skill-definition.mjs +10 -0
  35. package/dist/lib/chunk-skill-definition.mjs.map +1 -0
  36. package/dist/lib/chunk-skills.mjs +65 -0
  37. package/dist/lib/chunk-skills.mjs.map +1 -0
  38. package/dist/lib/chunk-types.mjs +108 -0
  39. package/dist/lib/chunk-types.mjs.map +1 -0
  40. package/dist/lib/components.mjs +45 -0
  41. package/dist/lib/components.mjs.map +1 -0
  42. package/dist/lib/containers.mjs +58 -0
  43. package/dist/lib/containers.mjs.map +1 -0
  44. package/dist/lib/index.mjs +9 -0
  45. package/dist/lib/meta.mjs +2 -0
  46. package/dist/lib/model.mjs +2 -0
  47. package/dist/lib/operations.mjs +7 -0
  48. package/dist/lib/operations.mjs.map +1 -0
  49. package/dist/lib/plugin.mjs +9 -0
  50. package/dist/lib/plugin.mjs.map +1 -0
  51. package/dist/lib/skills.mjs +2 -0
  52. package/dist/lib/translations.mjs +27 -0
  53. package/dist/lib/translations.mjs.map +1 -0
  54. package/dist/lib/types.mjs +3 -0
  55. package/dist/lib/util.mjs +2 -0
  56. package/dist/types/dx.config.d.ts +28 -0
  57. package/dist/types/dx.config.d.ts.map +1 -0
  58. package/dist/types/src/IllustratorPlugin.d.ts +4 -0
  59. package/dist/types/src/IllustratorPlugin.d.ts.map +1 -0
  60. package/dist/types/src/IllustratorPlugin.node.d.ts +10 -0
  61. package/dist/types/src/IllustratorPlugin.node.d.ts.map +1 -0
  62. package/dist/types/src/IllustratorPlugin.workerd.d.ts +4 -0
  63. package/dist/types/src/IllustratorPlugin.workerd.d.ts.map +1 -0
  64. package/dist/types/src/capabilities/comment-config.d.ts +5 -0
  65. package/dist/types/src/capabilities/comment-config.d.ts.map +1 -0
  66. package/dist/types/src/capabilities/create-object.d.ts +5 -0
  67. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  68. package/dist/types/src/capabilities/index.d.ts +8 -0
  69. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  70. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  71. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  72. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  73. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  74. package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
  75. package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
  76. package/dist/types/src/components/CreateSketchPanel.d.ts +15 -0
  77. package/dist/types/src/components/CreateSketchPanel.d.ts.map +1 -0
  78. package/dist/types/src/components/index.d.ts +2 -0
  79. package/dist/types/src/components/index.d.ts.map +1 -0
  80. package/dist/types/src/containers/SketchArticle/SketchArticle.d.ts +11 -0
  81. package/dist/types/src/containers/SketchArticle/SketchArticle.d.ts.map +1 -0
  82. package/dist/types/src/containers/SketchArticle/index.d.ts +2 -0
  83. package/dist/types/src/containers/SketchArticle/index.d.ts.map +1 -0
  84. package/dist/types/src/containers/SketchCard/SketchCard.d.ts +10 -0
  85. package/dist/types/src/containers/SketchCard/SketchCard.d.ts.map +1 -0
  86. package/dist/types/src/containers/SketchCard/index.d.ts +2 -0
  87. package/dist/types/src/containers/SketchCard/index.d.ts.map +1 -0
  88. package/dist/types/src/containers/index.d.ts +3 -0
  89. package/dist/types/src/containers/index.d.ts.map +1 -0
  90. package/dist/types/src/index.d.ts +7 -0
  91. package/dist/types/src/index.d.ts.map +1 -0
  92. package/dist/types/src/meta.d.ts +33 -0
  93. package/dist/types/src/meta.d.ts.map +1 -0
  94. package/dist/types/src/model/builder.d.ts +32 -0
  95. package/dist/types/src/model/builder.d.ts.map +1 -0
  96. package/dist/types/src/model/dialect.d.ts +19 -0
  97. package/dist/types/src/model/dialect.d.ts.map +1 -0
  98. package/dist/types/src/model/index.d.ts +4 -0
  99. package/dist/types/src/model/index.d.ts.map +1 -0
  100. package/dist/types/src/model/scene.d.ts +843 -0
  101. package/dist/types/src/model/scene.d.ts.map +1 -0
  102. package/dist/types/src/operations/create.d.ts +5 -0
  103. package/dist/types/src/operations/create.d.ts.map +1 -0
  104. package/dist/types/src/operations/edit.d.ts +5 -0
  105. package/dist/types/src/operations/edit.d.ts.map +1 -0
  106. package/dist/types/src/operations/index.d.ts +3 -0
  107. package/dist/types/src/operations/index.d.ts.map +1 -0
  108. package/dist/types/src/operations/read.d.ts +5 -0
  109. package/dist/types/src/operations/read.d.ts.map +1 -0
  110. package/dist/types/src/plugin.d.ts +4 -0
  111. package/dist/types/src/plugin.d.ts.map +1 -0
  112. package/dist/types/src/skills/index.d.ts +2 -0
  113. package/dist/types/src/skills/index.d.ts.map +1 -0
  114. package/dist/types/src/skills/sketch-skill.d.ts +4 -0
  115. package/dist/types/src/skills/sketch-skill.d.ts.map +1 -0
  116. package/dist/types/src/translations.d.ts +34 -0
  117. package/dist/types/src/translations.d.ts.map +1 -0
  118. package/dist/types/src/types/IllustratorCapabilities.d.ts +10 -0
  119. package/dist/types/src/types/IllustratorCapabilities.d.ts.map +1 -0
  120. package/dist/types/src/types/Sketch.d.ts +50 -0
  121. package/dist/types/src/types/Sketch.d.ts.map +1 -0
  122. package/dist/types/src/types/SketchOperation.d.ts +427 -0
  123. package/dist/types/src/types/SketchOperation.d.ts.map +1 -0
  124. package/dist/types/src/types/index.d.ts +5 -0
  125. package/dist/types/src/types/index.d.ts.map +1 -0
  126. package/dist/types/src/types/types.d.ts +45 -0
  127. package/dist/types/src/types/types.d.ts.map +1 -0
  128. package/dist/types/src/util/index.d.ts +2 -0
  129. package/dist/types/src/util/index.d.ts.map +1 -0
  130. package/dist/types/src/util/load-sketch.d.ts +37 -0
  131. package/dist/types/src/util/load-sketch.d.ts.map +1 -0
  132. package/dist/types/tsconfig.tsbuildinfo +1 -0
  133. package/dx.config.ts +35 -0
  134. package/package.json +144 -0
  135. package/src/IllustratorPlugin.node.tsx +27 -0
  136. package/src/IllustratorPlugin.tsx +30 -0
  137. package/src/IllustratorPlugin.workerd.tsx +16 -0
  138. package/src/capabilities/comment-config.ts +20 -0
  139. package/src/capabilities/create-object.ts +66 -0
  140. package/src/capabilities/index.ts +15 -0
  141. package/src/capabilities/operation-handler.ts +16 -0
  142. package/src/capabilities/react-surface.tsx +37 -0
  143. package/src/capabilities/skill-definition.ts +14 -0
  144. package/src/components/CreateSketchPanel.tsx +68 -0
  145. package/src/components/index.ts +5 -0
  146. package/src/containers/SketchArticle/SketchArticle.tsx +48 -0
  147. package/src/containers/SketchArticle/index.ts +5 -0
  148. package/src/containers/SketchCard/SketchCard.tsx +41 -0
  149. package/src/containers/SketchCard/index.ts +5 -0
  150. package/src/containers/index.ts +6 -0
  151. package/src/index.ts +10 -0
  152. package/src/meta.ts +9 -0
  153. package/src/model/builder.ts +41 -0
  154. package/src/model/dialect.ts +53 -0
  155. package/src/model/index.ts +7 -0
  156. package/src/model/scene.ts +208 -0
  157. package/src/operations/create.ts +27 -0
  158. package/src/operations/edit.ts +23 -0
  159. package/src/operations/index.ts +11 -0
  160. package/src/operations/read.ts +21 -0
  161. package/src/plugin.ts +11 -0
  162. package/src/skills/index.ts +5 -0
  163. package/src/skills/sketch-skill.ts +70 -0
  164. package/src/translations.ts +33 -0
  165. package/src/types/IllustratorCapabilities.ts +19 -0
  166. package/src/types/Sketch.ts +69 -0
  167. package/src/types/SketchOperation.ts +76 -0
  168. package/src/types/index.ts +9 -0
  169. package/src/types/types.ts +53 -0
  170. package/src/util/index.ts +5 -0
  171. package/src/util/load-sketch.ts +74 -0
  172. package/src/vite-env.d.ts +10 -0
@@ -0,0 +1,58 @@
1
+ import { IllustratorCapabilities } from "#types";
2
+ import { meta } from "#meta";
3
+ import { Obj } from "@dxos/echo";
4
+ import "react";
5
+ import { useCapabilities } from "@dxos/app-framework/ui";
6
+ import { useTranslation } from "@dxos/react-ui";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import { useObject } from "@dxos/echo-react";
9
+ //#region src/containers/SketchArticle/SketchArticle.tsx
10
+ /** Resolves the sketch's canvas and delegates rendering to the matching variant's article. */
11
+ var SketchArticle = ({ role, attendableId, subject: sketch, extrinsic }) => {
12
+ const { t } = useTranslation(meta.profile.key);
13
+ const variants = useCapabilities(IllustratorCapabilities.VariantProvider);
14
+ const ref = sketch.canvas;
15
+ const [snapshot] = useObject(ref);
16
+ const canvas = snapshot ? ref.target : void 0;
17
+ if (!canvas) return null;
18
+ const typename = Obj.getTypename(canvas);
19
+ const match = variants.find((variant) => variant.id === typename);
20
+ if (!match?.article) return /* @__PURE__ */ jsx("div", {
21
+ className: "p-4 text-sm",
22
+ children: t("unsupported-variant.label", { defaultValue: "Unsupported sketch variant" })
23
+ });
24
+ const Component = match.article;
25
+ return /* @__PURE__ */ jsx(Component, {
26
+ sketch,
27
+ canvas,
28
+ role,
29
+ attendableId,
30
+ extrinsic
31
+ });
32
+ };
33
+ SketchArticle.displayName = "SketchArticle";
34
+ //#endregion
35
+ //#region src/containers/SketchCard/SketchCard.tsx
36
+ /** Resolves the sketch's canvas and delegates rendering to the matching variant's card. */
37
+ var SketchCard = ({ role, subject: sketch, editable }) => {
38
+ const variants = useCapabilities(IllustratorCapabilities.VariantProvider);
39
+ const ref = sketch.canvas;
40
+ const [snapshot] = useObject(ref);
41
+ const canvas = snapshot ? ref.target : void 0;
42
+ if (!canvas) return null;
43
+ const typename = Obj.getTypename(canvas);
44
+ const match = variants.find((variant) => variant.id === typename);
45
+ if (!match?.card) return null;
46
+ const Component = match.card;
47
+ return /* @__PURE__ */ jsx(Component, {
48
+ sketch,
49
+ canvas,
50
+ role,
51
+ editable
52
+ });
53
+ };
54
+ SketchCard.displayName = "SketchCard";
55
+ //#endregion
56
+ export { SketchArticle, SketchCard };
57
+
58
+ //# sourceMappingURL=containers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containers.mjs","names":[],"sources":["../../src/containers/SketchArticle/SketchArticle.tsx","../../src/containers/SketchCard/SketchCard.tsx"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useCapabilities } from '@dxos/app-framework/ui';\nimport { type AppSurface } from '@dxos/app-toolkit/ui';\nimport { Obj, type Ref } from '@dxos/echo';\nimport { useObject } from '@dxos/echo-react';\nimport { useTranslation } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { IllustratorCapabilities, type Sketch } from '#types';\n\nexport type SketchArticleProps = AppSurface.ObjectArticleProps<Sketch.Sketch> & {\n extrinsic?: boolean;\n};\n\n/** Resolves the sketch's canvas and delegates rendering to the matching variant's article. */\nexport const SketchArticle = ({ role, attendableId, subject: sketch, extrinsic }: SketchArticleProps) => {\n const { t } = useTranslation(meta.profile.key);\n const variants = useCapabilities(IllustratorCapabilities.VariantProvider);\n const ref = sketch.canvas as Ref.Ref<Obj.Unknown>;\n // Subscribe via the snapshot for load/re-render, but hand variants the LIVE object —\n // their store adapters need `Doc.createAccessor`, which rejects snapshots.\n const [snapshot] = useObject(ref);\n const canvas = snapshot ? ref.target : undefined;\n\n if (!canvas) {\n return null;\n }\n\n const typename = Obj.getTypename(canvas);\n const match = variants.find((variant) => variant.id === typename);\n if (!match?.article) {\n return (\n <div className='p-4 text-sm'>\n {t('unsupported-variant.label', { defaultValue: 'Unsupported sketch variant' })}\n </div>\n );\n }\n\n const Component = match.article;\n return <Component sketch={sketch} canvas={canvas} role={role} attendableId={attendableId} extrinsic={extrinsic} />;\n};\n\nSketchArticle.displayName = 'SketchArticle';\n","//\n// Copyright 2026 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useCapabilities } from '@dxos/app-framework/ui';\nimport { type AppSurface } from '@dxos/app-toolkit/ui';\nimport { Obj, type Ref } from '@dxos/echo';\nimport { useObject } from '@dxos/echo-react';\n\nimport { IllustratorCapabilities, type Sketch } from '#types';\n\nexport type SketchCardProps = AppSurface.ObjectCardProps<Sketch.Sketch>;\n\n/** Resolves the sketch's canvas and delegates rendering to the matching variant's card. */\nexport const SketchCard = ({ role, subject: sketch, editable }: SketchCardProps) => {\n const variants = useCapabilities(IllustratorCapabilities.VariantProvider);\n const ref = sketch.canvas as Ref.Ref<Obj.Unknown>;\n // Subscribe via the snapshot for load/re-render, but hand variants the LIVE object —\n // their store adapters need `Doc.createAccessor`, which rejects snapshots.\n const [snapshot] = useObject(ref);\n const canvas = snapshot ? ref.target : undefined;\n\n if (!canvas) {\n return null;\n }\n\n const typename = Obj.getTypename(canvas);\n const match = variants.find((variant) => variant.id === typename);\n if (!match?.card) {\n return null;\n }\n\n const Component = match.card;\n return <Component sketch={sketch} canvas={canvas} role={role} editable={editable} />;\n};\n\nSketchCard.displayName = 'SketchCard';\n\nexport default SketchCard;\n"],"mappings":";;;;;;;;;;AAoBA,IAAa,iBAAiB,EAAE,MAAM,cAAc,SAAS,QAAQ,gBAAoC;CACvG,MAAM,EAAE,MAAM,eAAe,KAAK,QAAQ,GAAG;CAC7C,MAAM,WAAW,gBAAgB,wBAAwB,eAAe;CACxE,MAAM,MAAM,OAAO;CAGnB,MAAM,CAAC,YAAY,UAAU,GAAG;CAChC,MAAM,SAAS,WAAW,IAAI,SAAS,KAAA;CAEvC,IAAI,CAAC,QACH,OAAO;CAGT,MAAM,WAAW,IAAI,YAAY,MAAM;CACvC,MAAM,QAAQ,SAAS,MAAM,YAAY,QAAQ,OAAO,QAAQ;CAChE,IAAI,CAAC,OAAO,SACV,OACE,oBAAC,OAAD;EAAK,WAAU;YACZ,EAAE,6BAA6B,EAAE,cAAc,6BAA6B,CAAC;CAC3E,CAAA;CAIT,MAAM,YAAY,MAAM;CACxB,OAAO,oBAAC,WAAD;EAAmB;EAAgB;EAAc;EAAoB;EAAyB;CAAY,CAAA;AACnH;AAEA,cAAc,cAAc;;;;AC/B5B,IAAa,cAAc,EAAE,MAAM,SAAS,QAAQ,eAAgC;CAClF,MAAM,WAAW,gBAAgB,wBAAwB,eAAe;CACxE,MAAM,MAAM,OAAO;CAGnB,MAAM,CAAC,YAAY,UAAU,GAAG;CAChC,MAAM,SAAS,WAAW,IAAI,SAAS,KAAA;CAEvC,IAAI,CAAC,QACH,OAAO;CAGT,MAAM,WAAW,IAAI,YAAY,MAAM;CACvC,MAAM,QAAQ,SAAS,MAAM,YAAY,QAAQ,OAAO,QAAQ;CAChE,IAAI,CAAC,OAAO,MACV,OAAO;CAGT,MAAM,YAAY,MAAM;CACxB,OAAO,oBAAC,WAAD;EAAmB;EAAgB;EAAc;EAAgB;CAAW,CAAA;AACrF;AAEA,WAAW,cAAc"}
@@ -0,0 +1,9 @@
1
+ import { t as meta } from "./chunk-meta.mjs";
2
+ import { t as model_exports } from "./chunk-model.mjs";
3
+ import { IllustratorOperationHandlerSet } from "./operations.mjs";
4
+ import { t as skill } from "./chunk-skills.mjs";
5
+ import { t as IllustratorCapabilities_exports } from "./chunk-IllustratorCapabilities.mjs";
6
+ import { i as SketchOperation_exports, o as Sketch_exports } from "./chunk-types.mjs";
7
+ import { i as resolveVariant, n as UnknownSketchVariantError, r as loadSketch, t as SketchVariantMismatchError } from "./chunk-load-sketch.mjs";
8
+ import "./util.mjs";
9
+ export { IllustratorCapabilities_exports as IllustratorCapabilities, model_exports as IllustratorModel, IllustratorOperationHandlerSet, Sketch_exports as Sketch, SketchOperation_exports as SketchOperation, skill as SketchSkill, SketchVariantMismatchError, UnknownSketchVariantError, loadSketch, meta, resolveVariant };
@@ -0,0 +1,2 @@
1
+ import { t as meta } from "./chunk-meta.mjs";
2
+ export { meta };
@@ -0,0 +1,2 @@
1
+ import { i as scene_exports, n as DialectRegistry, r as sceneDialect } from "./chunk-model.mjs";
2
+ export { DialectRegistry, scene_exports as Scene, sceneDialect };
@@ -0,0 +1,7 @@
1
+ import { OperationHandlerSet } from "@dxos/compute";
2
+ //#region src/operations/index.ts
3
+ var IllustratorOperationHandlerSet = OperationHandlerSet.lazy(() => import("./chunk-create.mjs"), () => import("./chunk-edit.mjs"), () => import("./chunk-read.mjs"));
4
+ //#endregion
5
+ export { IllustratorOperationHandlerSet };
6
+
7
+ //# sourceMappingURL=operations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.mjs","names":[],"sources":["../../src/operations/index.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport const IllustratorOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./create'),\n () => import('./edit'),\n () => import('./read'),\n);\n"],"mappings":";;AAMA,IAAa,iCAAiC,oBAAoB,WAC1D,OAAO,6BACP,OAAO,2BACP,OAAO,mBACf"}
@@ -0,0 +1,9 @@
1
+ import { t as meta } from "./chunk-meta.mjs";
2
+ import { IllustratorOperationHandlerSet } from "./operations.mjs";
3
+ import { Plugin } from "@dxos/app-framework";
4
+ //#region src/plugin.ts
5
+ var IllustratorPlugin = Plugin.lazy(meta, () => import("#plugin"));
6
+ //#endregion
7
+ export { IllustratorOperationHandlerSet, IllustratorPlugin };
8
+
9
+ //# sourceMappingURL=plugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/plugin.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const IllustratorPlugin = Plugin.lazy(meta, () => import('#plugin'));\n\nexport { IllustratorOperationHandlerSet } from './operations';\n"],"mappings":";;;;AAQA,IAAa,oBAAoB,OAAO,KAAK,YAAY,OAAO,UAAU"}
@@ -0,0 +1,2 @@
1
+ import { t as skill } from "./chunk-skills.mjs";
2
+ export { skill as SketchSkill };
@@ -0,0 +1,27 @@
1
+ import { Sketch } from "#types";
2
+ import { meta } from "#meta";
3
+ import { Type } from "@dxos/echo";
4
+ //#region src/translations.ts
5
+ var translations = [{ "en-US": {
6
+ [Type.getTypename(Sketch.Sketch)]: {
7
+ "typename.label": "Sketch",
8
+ "typename.label_zero": "Sketches",
9
+ "typename.label_one": "Sketch",
10
+ "typename.label_other": "Sketches",
11
+ "object-name.placeholder": "New sketch",
12
+ "add-object.label": "Add sketch",
13
+ "rename-object.label": "Rename sketch",
14
+ "delete-object.label": "Delete sketch",
15
+ "object-deleted.label": "Sketch deleted"
16
+ },
17
+ [meta.profile.key]: {
18
+ "plugin.name": "Illustrator",
19
+ "create-panel.variant.label": "Select renderer",
20
+ "create-panel.variant.placeholder": "Search renderers...",
21
+ "unsupported-variant.label": "Unsupported sketch variant"
22
+ }
23
+ } }];
24
+ //#endregion
25
+ export { translations };
26
+
27
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.mjs","names":[],"sources":["../../src/translations.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Sketch } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Sketch.Sketch)]: {\n 'typename.label': 'Sketch',\n 'typename.label_zero': 'Sketches',\n 'typename.label_one': 'Sketch',\n 'typename.label_other': 'Sketches',\n 'object-name.placeholder': 'New sketch',\n 'add-object.label': 'Add sketch',\n 'rename-object.label': 'Rename sketch',\n 'delete-object.label': 'Delete sketch',\n 'object-deleted.label': 'Sketch deleted',\n },\n [meta.profile.key]: {\n 'plugin.name': 'Illustrator',\n 'create-panel.variant.label': 'Select renderer',\n 'create-panel.variant.placeholder': 'Search renderers...',\n 'unsupported-variant.label': 'Unsupported sketch variant',\n },\n },\n },\n] as const satisfies Resource[];\n"],"mappings":";;;;AAUA,IAAa,eAAe,CAC1B,EACE,SAAS;EACN,KAAK,YAAY,OAAO,MAAM,IAAI;EACjC,kBAAkB;EAClB,uBAAuB;EACvB,sBAAsB;EACtB,wBAAwB;EACxB,2BAA2B;EAC3B,oBAAoB;EACpB,uBAAuB;EACvB,uBAAuB;EACvB,wBAAwB;CAC1B;EACC,KAAK,QAAQ,MAAM;EAClB,eAAe;EACf,8BAA8B;EAC9B,oCAAoC;EACpC,6BAA6B;CAC/B;AACF,EACF,CACF"}
@@ -0,0 +1,3 @@
1
+ import { t as IllustratorCapabilities_exports } from "./chunk-IllustratorCapabilities.mjs";
2
+ import { i as SketchOperation_exports, o as Sketch_exports } from "./chunk-types.mjs";
3
+ export { IllustratorCapabilities_exports as IllustratorCapabilities, Sketch_exports as Sketch, SketchOperation_exports as SketchOperation };
@@ -0,0 +1,2 @@
1
+ import { i as resolveVariant, n as UnknownSketchVariantError, r as loadSketch, t as SketchVariantMismatchError } from "./chunk-load-sketch.mjs";
2
+ export { SketchVariantMismatchError, UnknownSketchVariantError, loadSketch, resolveVariant };
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ readonly plugin: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly author?: string | undefined;
7
+ readonly homePage?: string | undefined;
8
+ readonly source?: string | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly tags?: readonly string[] | undefined;
14
+ readonly icon?: {
15
+ readonly key: string;
16
+ readonly hue?: string | undefined;
17
+ } | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly dependsOn?: readonly string[] | undefined;
20
+ };
21
+ readonly publish?: {
22
+ readonly buildCommand?: string | undefined;
23
+ readonly outputDirectory?: string | undefined;
24
+ readonly assetBaseUrl?: string | undefined;
25
+ } | undefined;
26
+ };
27
+ export default _default;
28
+ //# sourceMappingURL=dx.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dx.config.d.ts","sourceRoot":"","sources":["../../dx.config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const IllustratorPlugin: Plugin.PluginFactory<void>;
3
+ export default IllustratorPlugin;
4
+ //# sourceMappingURL=IllustratorPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IllustratorPlugin.d.ts","sourceRoot":"","sources":["../../../src/IllustratorPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAW7C,eAAO,MAAM,iBAAiB,4BAY7B,CAAC;eAEa,iBAAiB"}
@@ -0,0 +1,10 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ /**
3
+ * Headless variant of IllustratorPlugin (no React surfaces / CreateObject panel).
4
+ * Used in node contexts (CLI, agents, tests) where rendering is unavailable —
5
+ * the full variant lazy-loads `CreateSketchPanel` from `react-ui-search` which
6
+ * downstream bundlers don't resolve cleanly under nested pnpm symlinks.
7
+ */
8
+ export declare const IllustratorPlugin: Plugin.PluginFactory<void>;
9
+ export default IllustratorPlugin;
10
+ //# sourceMappingURL=IllustratorPlugin.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IllustratorPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/IllustratorPlugin.node.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ7C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,4BAM7B,CAAC;eAEa,iBAAiB"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const IllustratorPlugin: Plugin.PluginFactory<void>;
3
+ export default IllustratorPlugin;
4
+ //# sourceMappingURL=IllustratorPlugin.workerd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IllustratorPlugin.workerd.d.ts","sourceRoot":"","sources":["../../../src/IllustratorPlugin.workerd.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,eAAO,MAAM,iBAAiB,4BAG7B,CAAC;eAEa,iBAAiB"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const activate: () => Effect.Effect<Capability.Any, never, never>;
4
+ export default activate;
5
+ //# sourceMappingURL=comment-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment-config.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/comment-config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMjD,QAAA,MAAM,QAAQ,mDAKZ,CAAC;eAEY,QAAQ"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Any, never, import("effect/Scope").Scope>;
4
+ export default _default;
5
+ //# sourceMappingURL=create-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-object.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/create-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
+ export declare const CommentConfig: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
4
+ export declare const CreateObject: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
5
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
6
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
7
+ export declare const SkillDefinition: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,aAAa,iEAAqE,CAAC;AAChG,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,eAAe,iEAAyE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
+ declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, import("effect/Scope").Scope | Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=operation-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Any, never, import("effect/Scope").Scope>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const skillDefinition: () => Effect.Effect<Capability.Any[], never, never>;
4
+ export default skillDefinition;
5
+ //# sourceMappingURL=skill-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/skill-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAKjD,QAAA,MAAM,eAAe,qDAA+F,CAAC;eAEtG,eAAe"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { type SpaceCapabilities } from '@dxos/plugin-space';
3
+ import { type SketchVariant } from '#types';
4
+ export type CreateSketchPanelProps = SpaceCapabilities.CreateObjectCustomPanelProps & {
5
+ /** Optional override (primarily for stories/tests). Defaults to IllustratorCapabilities.VariantProvider. */
6
+ variants?: SketchVariant[];
7
+ };
8
+ /**
9
+ * Variant picker for sketches (SearchList over contributed `SketchVariant[]`).
10
+ * On select, calls `onCreateObject({ variantId })`; plugin-illustrator's
11
+ * CreateObjectEntry.createObject resolves the variantId, builds the canvas via
12
+ * variant.createCanvas, then wraps it in a Sketch.
13
+ */
14
+ export declare const CreateSketchPanel: ({ onCreateObject, variants: variantsProp }: CreateSketchPanelProps) => React.JSX.Element;
15
+ //# sourceMappingURL=CreateSketchPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateSketchPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/CreateSketchPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAK5D,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,4BAA4B,GAAG;IACpF,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,+CAAgD,sBAAsB,sBA0CnG,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './CreateSketchPanel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { type Sketch } from '#types';
4
+ export type SketchArticleProps = AppSurface.ObjectArticleProps<Sketch.Sketch> & {
5
+ extrinsic?: boolean;
6
+ };
7
+ export declare function SketchArticle({ role, attendableId, subject: sketch, extrinsic }: SketchArticleProps): React.JSX.Element | null;
8
+ export declare namespace SketchArticle {
9
+ var displayName: string;
10
+ }
11
+ //# sourceMappingURL=SketchArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SketchArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SketchArticle/SketchArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAA2B,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;sCAG4B,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,kBAAkB"}
@@ -0,0 +1,2 @@
1
+ export * from './SketchArticle';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SketchArticle/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { type Sketch } from '#types';
4
+ export type SketchCardProps = AppSurface.ObjectCardProps<Sketch.Sketch>;
5
+ export declare function SketchCard({ role, subject: sketch, editable }: SketchCardProps): React.JSX.Element | null;
6
+ export declare namespace SketchCard {
7
+ var displayName: string;
8
+ }
9
+ export default SketchCard;
10
+ //# sourceMappingURL=SketchCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SketchCard.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SketchCard/SketchCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,EAA2B,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;mCAG7C,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,eAAe;;;;eAwBhE,UAAU"}
@@ -0,0 +1,2 @@
1
+ export * from './SketchCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SketchCard/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './SketchArticle';
2
+ export * from './SketchCard';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './meta';
2
+ export * as IllustratorModel from './model';
3
+ export * from './operations';
4
+ export * from './skills';
5
+ export * from './types';
6
+ export * from './util';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,OAAO,KAAK,gBAAgB,MAAM,SAAS,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,33 @@
1
+ export declare const meta: {
2
+ readonly profile: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly homePage?: string | undefined;
7
+ readonly source?: string | undefined;
8
+ readonly tags?: readonly string[] | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly icon?: {
14
+ readonly key: string;
15
+ readonly hue?: string | undefined;
16
+ } | undefined;
17
+ readonly dependsOn?: readonly string[] | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly createdAt?: string | undefined;
20
+ readonly author?: string | undefined;
21
+ };
22
+ readonly release?: {
23
+ readonly version: string;
24
+ readonly moduleUrl: string;
25
+ readonly dependencies?: {
26
+ readonly [x: string]: string;
27
+ } | undefined;
28
+ readonly pluginKey?: string | undefined;
29
+ readonly manifestHash?: string | undefined;
30
+ readonly createdAt?: string | undefined;
31
+ } | undefined;
32
+ };
33
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { type Obj } from '@dxos/echo';
2
+ import type * as Scene from './scene';
3
+ /** A world object as derived from the canvas: placement is always resolved. */
4
+ export type ReadWorldObject = Scene.WorldObject & {
5
+ origin: Scene.Point;
6
+ scale: number;
7
+ };
8
+ export type ReadResult = {
9
+ scene: {
10
+ objects: ReadWorldObject[];
11
+ };
12
+ /** Shapes on the canvas not managed by the DSL (hand-drawn by users). */
13
+ unmanaged: number;
14
+ };
15
+ export type ApplyResult = {
16
+ /** Object ids created or modified. */
17
+ upserted: string[];
18
+ /** Shape records removed. */
19
+ removed: number;
20
+ };
21
+ /**
22
+ * Maps the scene DSL onto a renderer-specific canvas object.
23
+ * Geometry is derived from the live canvas records — not a stored copy — so the model stays
24
+ * coherent after users drag or resize shapes in the renderer's UI.
25
+ */
26
+ export type SketchBuilder = {
27
+ /** Derive the neutral scene from the canvas. */
28
+ read: (canvas: Obj.Any) => ReadResult;
29
+ /** Apply a batch of edit commands atomically (implementations wrap their own `Obj.update`). */
30
+ apply: (canvas: Obj.Any, commands: readonly Scene.Command[]) => ApplyResult;
31
+ };
32
+ //# sourceMappingURL=builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../src/model/builder.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,+EAA+E;AAC/E,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,GAAG;IAAE,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE;QAAE,OAAO,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC;IACtC,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,gDAAgD;IAChD,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,UAAU,CAAC;IACtC,+FAA+F;IAC/F,KAAK,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,SAAS,KAAK,CAAC,OAAO,EAAE,KAAK,WAAW,CAAC;CAC7E,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import * as Schema from 'effect/Schema';
3
+ import * as Scene from './scene';
4
+ export type Dialect<Input = any> = {
5
+ id: string;
6
+ description: string;
7
+ input: Schema.Schema<Input, any>;
8
+ compile: (input: Input) => Effect.Effect<readonly Scene.Command[]>;
9
+ };
10
+ /** The core dialect: input is already scene edit commands (identity compile). */
11
+ export declare const sceneDialect: Dialect<readonly Scene.Command[]>;
12
+ export declare class DialectRegistry {
13
+ #private;
14
+ constructor(dialects?: Dialect[]);
15
+ register(dialect: Dialect): void;
16
+ get(id: string): Dialect | undefined;
17
+ list(): Dialect[];
18
+ }
19
+ //# sourceMappingURL=dialect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialect.d.ts","sourceRoot":"","sources":["../../../../src/model/dialect.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,MAAM,MAAM,OAAO,CAAC,KAAK,GAAG,GAAG,IAAI;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC,MAAM,CAAC,SAAS,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;CACpE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,SAAS,KAAK,CAAC,OAAO,EAAE,CAK1D,CAAC;AAEF,qBAAa,eAAe;;IAG1B,YAAY,QAAQ,GAAE,OAAO,EAAmB,EAE/C;IAED,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAG/B;IAED,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAEnC;IAED,IAAI,IAAI,OAAO,EAAE,CAEhB;CACF"}
@@ -0,0 +1,4 @@
1
+ export * from './builder';
2
+ export * from './dialect';
3
+ export * as Scene from './scene';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}