@oh-just-another/mcp 0.2.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.
- package/CHANGELOG.md +23 -0
- package/LICENSE +21 -0
- package/README.md +48 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +10 -0
- package/dist/bin.js.map +1 -0
- package/dist/constants.d.ts +26 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +26 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +90 -0
- package/dist/server.js.map +1 -0
- package/dist/store.d.ts +19 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +37 -0
- package/dist/store.js.map +1 -0
- package/dist/tools.d.ts +74 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +241 -0
- package/dist/tools.js.map +1 -0
- package/package.json +73 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @oh-just-another/mcp
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7faf1d2: New package: MCP server (`oja-mcp` binary) exposing scene tools over stdio for LLM agents — create/load/get scene, add/update/remove elements, add_link, query_scene, export_svg/export_png, import_mermaid, get_scene_schema.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [783749e]
|
|
12
|
+
- Updated dependencies [c189261]
|
|
13
|
+
- Updated dependencies [c189261]
|
|
14
|
+
- Updated dependencies [bdc847e]
|
|
15
|
+
- Updated dependencies [a9558d9]
|
|
16
|
+
- Updated dependencies [1d6c289]
|
|
17
|
+
- Updated dependencies [dda2e56]
|
|
18
|
+
- Updated dependencies [672b557]
|
|
19
|
+
- Updated dependencies [cf8b735]
|
|
20
|
+
- @oh-just-another/scene@0.60.0
|
|
21
|
+
- @oh-just-another/serialization@0.59.0
|
|
22
|
+
- @oh-just-another/importers@0.59.0
|
|
23
|
+
- @oh-just-another/headless@0.58.1
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rustam Garifulin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @oh-just-another/mcp
|
|
2
|
+
|
|
3
|
+
MCP (Model Context Protocol) server for LLM agents. Exposes headless scene tools — create, edit, query, render — over stdio. No browser, no network IO.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx @oh-just-another/mcp # run directly
|
|
9
|
+
pnpm add @oh-just-another/mcp # or install; binary: oja-mcp
|
|
10
|
+
pnpm add @resvg/resvg-js # only needed for export_png
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Client config (Claude Desktop / Claude Code / any MCP client):
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"oja": { "command": "npx", "args": ["-y", "@oh-just-another/mcp"] }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Tools
|
|
24
|
+
|
|
25
|
+
| Tool | Purpose |
|
|
26
|
+
| ----------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
27
|
+
| `create_scene` | New empty scene → `sceneId`. Scenes live in process memory for the session. |
|
|
28
|
+
| `load_scene(json)` / `get_scene(sceneId)` | Serialized scene document in / out (validated, migrated). |
|
|
29
|
+
| `add_elements(sceneId, elements)` | Add elements; validated against the scene schema, missing base fields get defaults. |
|
|
30
|
+
| `update_element(sceneId, id, patch)` | Shallow-merge a patch (`style` deep-merged), revalidate. |
|
|
31
|
+
| `remove_elements(sceneId, ids)` | Delete elements by id. |
|
|
32
|
+
| `add_link(sceneId, from, to, routing?, label?)` | Connect two elements with an arrow (`straight` / `orthogonal` / `bezier`). |
|
|
33
|
+
| `query_scene(sceneId)` | Compact summary: counts, content bounds, elements with id/type/text. |
|
|
34
|
+
| `export_svg(sceneId)` | SVG string. |
|
|
35
|
+
| `export_png(sceneId, scale?)` | Base64 PNG. Requires optional peer `@resvg/resvg-js`; clear error when missing. |
|
|
36
|
+
| `import_mermaid(text)` | Mermaid flowchart → new scene → `sceneId`. |
|
|
37
|
+
| `get_scene_schema` | JSON Schema of the serialized scene document. |
|
|
38
|
+
|
|
39
|
+
## Programmatic use
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { createMcpServer, SceneStore } from "@oh-just-another/mcp";
|
|
43
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
44
|
+
|
|
45
|
+
await createMcpServer(new SceneStore()).connect(new StdioServerTransport());
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Tool handlers (`createScene`, `addElements`, `queryScene`, …) are exported and callable directly against a `SceneStore` — no transport needed, useful for tests and embedding.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/standard-schema.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/regexes.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ar.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/az.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/be.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ca.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/cs.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/de.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/en.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/eo.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/es.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fa.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fi.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fr.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fr-CA.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/he.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/hu.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/id.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/it.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ja.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/kh.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ko.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/mk.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ms.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/nl.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/no.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ota.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ps.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/pl.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/pt.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ru.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/sl.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/sv.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ta.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/th.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/tr.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ua.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ur.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/vi.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/zh-CN.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/zh-TW.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/index.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/doc.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/function.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/json-schema.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/to-json-schema.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/index.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/errors.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/checks.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/compat.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/iso.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/coerce.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/index.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/index.d.cts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.d.cts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts","../../../node_modules/.pnpm/json-schema-typed@8.0.2/node_modules/json-schema-typed/draft_2020_12.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts","../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.d.cts","../src/constants.ts","../../types/dist/vec2.d.ts","../../types/dist/bounds.d.ts","../../types/dist/transform.d.ts","../../types/dist/color.d.ts","../../types/dist/ids.d.ts","../../types/dist/assert.d.ts","../../types/dist/object.d.ts","../../types/dist/events.d.ts","../../types/dist/index.d.ts","../../scene/dist/style.d.ts","../../../node_modules/.pnpm/fractional-keys@0.1.1/node_modules/fractional-keys/dist/types.d.ts","../../../node_modules/.pnpm/fractional-keys@0.1.1/node_modules/fractional-keys/dist/generate.d.ts","../../../node_modules/.pnpm/fractional-keys@0.1.1/node_modules/fractional-keys/dist/jitter.d.ts","../../../node_modules/.pnpm/fractional-keys@0.1.1/node_modules/fractional-keys/dist/digits.d.ts","../../../node_modules/.pnpm/fractional-keys@0.1.1/node_modules/fractional-keys/dist/errors.d.ts","../../../node_modules/.pnpm/fractional-keys@0.1.1/node_modules/fractional-keys/dist/index.d.ts","../../scene/dist/edge.d.ts","../../scene/dist/shape.d.ts","../../scene/dist/text-runs.d.ts","../../scene/dist/constants.d.ts","../../scene/dist/edge-curve.d.ts","../../scene/dist/annotation.d.ts","../../scene/dist/file.d.ts","../../scene/dist/layer.d.ts","../../scene/dist/viewport.d.ts","../../scene/dist/patch.d.ts","../../scene/dist/scene.d.ts","../../scene/dist/edge-geometry.d.ts","../../scene/dist/operations.d.ts","../../scene/dist/brush-outline.d.ts","../../scene/dist/render-bounds.d.ts","../../scene/dist/text-measure.d.ts","../../scene/dist/anchors.d.ts","../../scene/dist/snap.d.ts","../../scene/dist/outline.d.ts","../../scene/dist/order.d.ts","../../scene/dist/hydrate.d.ts","../../scene/dist/annotation-geometry.d.ts","../../scene/dist/spatial.d.ts","../../scene/dist/queries.d.ts","../../scene/dist/a11y.d.ts","../../scene/dist/layout.d.ts","../../scene/dist/layout-registry.d.ts","../../scene/dist/elbow-router.d.ts","../../scene/dist/elbow-link.d.ts","../../scene/dist/heading.d.ts","../../scene/dist/diff.d.ts","../../scene/dist/three-way-merge.d.ts","../../scene/dist/shape-transform.d.ts","../../scene/dist/container.d.ts","../../scene/dist/index.d.ts","../src/store.ts","../../serialization/dist/schema.d.ts","../../serialization/dist/serialize.d.ts","../../serialization/dist/json-schema.d.ts","../../serialization/dist/migrations-builtin.d.ts","../../serialization/dist/deserialize.d.ts","../../serialization/dist/migrations.d.ts","../../serialization/dist/files.d.ts","../../serialization/dist/index.d.ts","../../renderer-core/dist/render-target.d.ts","../../renderer-core/dist/animation-adapter.d.ts","../../renderer-core/dist/shape-renderer.d.ts","../../renderer-core/dist/layers.d.ts","../../renderer-core/dist/shape-cache.d.ts","../../renderer-core/dist/layer-cache-composite.d.ts","../../renderer-core/dist/scene-renderer.d.ts","../../renderer-core/dist/edge-cache.d.ts","../../renderer-core/dist/edge-cache-bitmap.d.ts","../../renderer-core/dist/edge-renderer.d.ts","../../renderer-core/dist/grid-renderer.d.ts","../../renderer-core/dist/built-in-renderers.d.ts","../../renderer-core/dist/wasm-bytes.d.ts","../../renderer-core/dist/lru-cache.d.ts","../../renderer-core/dist/text-shaper.d.ts","../../renderer-core/dist/text-layout.d.ts","../../renderer-core/dist/text-editing.d.ts","../../renderer-core/dist/shape-cache-bitmap.d.ts","../../renderer-core/dist/rasterizer.d.ts","../../renderer-core/dist/js-rasterizer.d.ts","../../renderer-core/dist/worker-render.d.ts","../../renderer-core/dist/tile-renderer.d.ts","../../renderer-core/dist/constants.d.ts","../../renderer-core/dist/index.d.ts","../../renderer-svg/dist/svg-target.d.ts","../../renderer-svg/dist/measure-text.d.ts","../../renderer-svg/dist/render-scene-to-svg.d.ts","../../renderer-svg/dist/index.d.ts","../../headless/dist/render-to-svg.d.ts","../../headless/dist/render-to-png.d.ts","../../headless/dist/index.d.ts","../../importers/dist/graph.d.ts","../../importers/dist/layout.d.ts","../../importers/dist/mermaid.d.ts","../../importers/dist/mermaid-export.d.ts","../../importers/dist/dot.d.ts","../../importers/dist/drawio.d.ts","../../importers/dist/to-scene.d.ts","../../importers/dist/excalidraw.d.ts","../../importers/dist/excalidraw-export.d.ts","../../importers/dist/jsoncanvas.d.ts","../../importers/dist/index.d.ts","../src/tools.ts","../src/server.ts","../src/bin.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.19.19/node_modules/@types/node/index.d.ts"],"fileIdsList":[[125,141,142,145,266,315,332,333],[125,141,143,152,266,315,332,333],[125,141,144,145,149,266,315,332,333],[125,266,315,332,333],[266,315,332,333],[125,141,145,147,148,266,315,332,333],[125,126,141,143,145,149,150,151,266,315,332,333],[125,126,266,315,332,333,347],[113,140,266,315,332,333],[124,125,126,141,143,144,266,315,332,333],[123,124,266,315,332,333],[146,266,315,332,333],[266,312,313,315,332,333],[266,314,315,332,333],[315,332,333],[266,315,320,332,333,350],[266,315,316,321,326,332,333,335,347,358],[266,315,316,317,326,332,333,335],[261,262,263,266,315,332,333],[266,315,318,332,333,359],[266,315,319,320,327,332,333,336],[266,315,320,332,333,347,355],[266,315,321,323,326,332,333,335],[266,314,315,322,332,333],[266,315,323,324,332,333],[266,315,325,326,332,333],[266,314,315,326,332,333],[266,315,326,327,328,332,333,347,358],[266,315,326,327,328,332,333,342,347,350],[266,308,315,323,326,329,332,333,335,347,358],[266,315,326,327,329,330,332,333,335,347,355,358],[266,315,329,331,332,333,347,355,358],[264,265,266,267,268,269,270,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364],[266,315,326,332,333],[266,315,332,333,334,358],[266,315,323,326,332,333,335,347],[266,315,332,333,336],[266,315,332,333,337],[266,314,315,332,333,338],[266,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364],[266,315,332,333,340],[266,315,332,333,341],[266,315,326,332,333,342,343],[266,315,332,333,342,344,359,361],[266,315,327,332,333],[266,315,326,332,333,347,348,350],[266,315,332,333,349,350],[266,315,332,333,347,348],[266,315,332,333,350],[266,315,332,333,351],[266,312,315,332,333,347,352,358],[266,315,326,332,333,353,354],[266,315,332,333,353,354],[266,315,320,332,333,335,347,355],[266,315,332,333,356],[266,315,332,333,335,357],[266,315,329,332,333,341,358],[266,315,320,332,333,359],[266,315,332,333,347,360],[266,315,332,333,334,361],[266,315,332,333,362],[266,308,315,332,333],[266,308,315,326,328,332,333,338,347,350,358,360,361,363],[266,315,332,333,347,364],[165,266,315,332,333],[165,166,167,168,169,266,315,332,333],[266,280,284,315,332,333,358],[266,280,315,332,333,347,358],[266,275,315,332,333],[266,277,280,315,332,333,355,358],[266,315,332,333,335,355],[266,315,332,333,365],[266,275,315,332,333,365],[266,277,280,315,332,333,335,358],[266,272,273,276,279,315,326,332,333,347,358],[266,280,287,315,332,333],[266,272,278,315,332,333],[266,280,301,302,315,332,333],[266,276,280,315,332,333,350,358,365],[266,301,315,332,333,365],[266,274,275,315,332,333,365],[266,280,315,332,333],[266,274,275,276,277,278,279,280,281,282,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,302,303,304,305,306,307,315,332,333],[266,280,295,315,332,333],[266,280,287,288,315,332,333],[266,278,280,288,289,315,332,333],[266,279,315,332,333],[266,272,275,280,315,332,333],[266,280,284,288,289,315,332,333],[266,284,315,332,333],[266,278,280,283,315,332,333,358],[266,272,277,280,287,315,332,333],[266,315,332,333,347],[266,275,280,301,315,332,333,363,365],[139,266,315,332,333],[128,129,140,266,315,332,333],[130,131,266,315,332,333],[128,129,130,132,133,138,266,315,332,333],[129,130,266,315,332,333],[138,266,315,332,333],[130,266,315,332,333],[128,129,130,133,134,135,136,137,266,315,332,333],[113,266,315,332,333],[113,116,266,315,332,333],[106,113,114,115,116,117,118,119,120,266,315,332,333],[121,266,315,332,333],[113,114,266,315,332,333],[113,115,266,315,332,333],[59,61,62,63,64,266,315,332,333],[59,61,63,64,266,315,332,333],[59,61,63,266,315,332,333],[59,61,62,64,266,315,332,333],[59,61,64,266,315,332,333],[59,60,61,62,63,64,65,66,106,107,108,109,110,111,112,266,315,332,333],[61,64,266,315,332,333],[58,59,60,62,63,64,266,315,332,333],[61,107,111,266,315,332,333],[61,62,63,64,266,315,332,333],[122,266,315,332,333],[63,266,315,332,333],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,266,315,332,333],[243,244,266,315,332,333],[205,243,266,315,332,333],[205,242,266,315,332,333],[246,266,315,332,333],[205,266,315,332,333],[163,266,315,332,333],[205,246,247,248,249,250,251,252,253,254,255,266,315,332,333],[163,246,266,315,332,333],[205,246,266,315,332,333],[127,258,266,315,332,333],[154,206,257,258,266,315,332,333],[152,153,154,206,257,266,315,332,333],[205,266,315,320,332,333],[154,163,205,206,214,245,256,266,315,320,332,333],[221,266,315,332,333],[163,205,266,315,332,333],[163,205,215,222,223,266,315,332,333],[205,215,266,315,332,333],[215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,266,315,332,333],[233,266,315,332,333],[163,205,215,216,219,220,266,315,332,333],[205,215,216,266,315,332,333],[163,215,266,315,332,333],[215,229,266,315,332,333],[239,240,241,266,315,332,333],[205,238,240,266,315,332,333],[163,238,266,315,332,333],[172,266,315,332,333],[163,171,172,266,315,332,333],[163,176,181,266,315,332,333],[163,172,266,315,332,333],[163,172,181,266,315,332,333],[163,181,266,315,332,333],[163,171,175,181,266,315,332,333],[163,164,170,266,315,332,333],[163,171,181,266,315,332,333],[179,181,266,315,332,333],[164,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,266,315,332,333],[163,170,266,315,332,333],[163,180,181,266,315,332,333],[163,172,180,181,266,315,332,333],[163,171,172,176,178,179,180,181,266,315,332,333],[170,266,315,332,333],[163,171,172,176,177,178,179,266,315,332,333],[163,171,172,178,181,193,266,315,332,333],[163,170,171,172,176,177,178,179,180,266,315,332,333],[163,164,170,171,173,266,315,332,333],[164,172,266,315,332,333],[205,210,266,315,332,333],[207,208,209,211,212,213,266,315,332,333],[153,266,315,332,333],[205,207,266,315,332,333],[155,266,315,332,333],[155,156,157,158,159,160,161,162,266,315,332,333]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"309ebd217636d68cf8784cbc3272c16fb94fb8e969e18b6fe88c35200340aef1","impliedFormat":1},{"version":"91cf9887208be8641244827c18e620166edf7e1c53114930b54eaeaab588a5be","impliedFormat":1},{"version":"ef9b6279acc69002a779d0172916ef22e8be5de2d2469ff2f4bb019a21e89de2","impliedFormat":1},{"version":"71623b889c23a332292c85f9bf41469c3f2efa47f81f12c73e14edbcffa270d3","affectsGlobalScope":true,"impliedFormat":1},{"version":"88863d76039cc550f8b7688a213dd051ae80d94a883eb99389d6bc4ce21c8688","impliedFormat":1},{"version":"e9ce511dae7201b833936d13618dff01815a9db2e6c2cc28646e21520c452d6c","impliedFormat":1},{"version":"243649afb10d950e7e83ee4d53bd2fbd615bb579a74cf6c1ce10e64402cdf9bb","impliedFormat":1},{"version":"35575179030368798cbcd50da928a275234445c9a0df32d4a2c694b2b3d20439","impliedFormat":1},{"version":"c939cb12cb000b4ec9c3eca3fe7dee1fe373ccb801237631d9252bad10206d61","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"26384fb401f582cae1234213c3dc75fdc80e3d728a0a1c55b405be8a0c6dddbe","impliedFormat":1},{"version":"26384fb401f582cae1234213c3dc75fdc80e3d728a0a1c55b405be8a0c6dddbe","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"26384fb401f582cae1234213c3dc75fdc80e3d728a0a1c55b405be8a0c6dddbe","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"b42d3651103a532f7492e719a828647af97306b2356ae757ebb7f17f4a8c41e5","impliedFormat":1},{"version":"03268b4d02371bdf514f513797ed3c9eb0840b0724ff6778bda0ef74c35273be","impliedFormat":1},{"version":"3511847babb822e10715a18348d1cbb0dae73c4e4c0a1bcf7cbc12771b310d45","impliedFormat":1},{"version":"80e653fbbec818eecfe95d182dc65a1d107b343d970159a71922ac4491caa0af","impliedFormat":1},{"version":"53f00dc83ccceb8fad22eb3aade64e4bcdb082115f230c8ba3d40f79c835c30e","impliedFormat":1},{"version":"35475931e8b55c4d33bfe3abc79f5673924a0bd4224c7c6108a4e08f3521643c","impliedFormat":1},{"version":"9078205849121a5d37a642949d687565498da922508eacb0e5a0c3de427f0ae5","impliedFormat":1},{"version":"e8f8f095f137e96dc64b56e59556c02f3c31db4b354801d6ae3b90dceae60240","impliedFormat":1},{"version":"451abef2a26cebb6f54236e68de3c33691e3b47b548fd4c8fa05fd84ab2238ff","impliedFormat":1},{"version":"6042774c61ece4ba77b3bf375f15942eb054675b7957882a00c22c0e4fe5865c","impliedFormat":1},{"version":"41f185713d78f7af0253a339927dc04b485f46210d6bc0691cf908e3e8ded2a1","impliedFormat":1},{"version":"23ee410c645f68bd99717527de1586e3eb826f166d654b74250ad92b27311fde","impliedFormat":1},{"version":"ffc3e1064146c1cafda1b0686ae9679ba1fb706b2f415e057be01614bf918dba","impliedFormat":1},{"version":"995869b1ddf66bbcfdb417f7446f610198dcce3280a0ae5c8b332ed985c01855","impliedFormat":1},{"version":"58d65a2803c3b6629b0e18c8bf1bc883a686fcf0333230dd0151ab6e85b74307","impliedFormat":1},{"version":"e818471014c77c103330aee11f00a7a00b37b35500b53ea6f337aefacd6174c9","impliedFormat":1},{"version":"dca963a986285211cfa75b9bb57914538de29585d34217d03b538e6473ac4c44","impliedFormat":1},{"version":"d8bc0c5487582c6d887c32c92d8b4ffb23310146fcb1d82adf4b15c77f57c4ac","impliedFormat":1},{"version":"8cb31102790372bebfd78dd56d6752913b0f3e2cefbeb08375acd9f5ba737155","impliedFormat":1},{"version":"f17ed72d1b1882ab6dc66d45e699f757d15bba0807af2fc9c3ec98fe367611c1","impliedFormat":99},{"version":"b1067ccb56b38af060dc3299ea7c4c6362cad4f07d0d454325a74808204fc801","impliedFormat":99},{"version":"7bb43a0f0180ad87b0a944ef95be8615d4c1d621a93ae503a8fcdee2027243ef","impliedFormat":99},{"version":"f55b797d46c4268b2e42961be04e99ad10ccbe55f2cb87fc99b82979fb28121f","impliedFormat":99},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"0648a8c200b5544e30677f7f7059b1e384d6cab716c82659716457e3f317ebae","impliedFormat":99},{"version":"ba678532514244768286bdfdc82b33f072d5de4e9d281a75bcccdba9970788d7","impliedFormat":99},{"version":"0b79f95a79497386c50f38bafbbf59154619e51d7bbe5acf61cd376d3c9d77b9","impliedFormat":99},{"version":"5993793a23b298afd20c2e1cd2bf8468cc7e9415d314d0771e93dd8b2e389d28","impliedFormat":99},{"version":"05267740a5cff4399995b08326a2e250f229e9926f453162192b9b96b853a12b","impliedFormat":99},{"version":"104fae9b53b5eaa040d9ce626e1bf0b3e6e27d269a899a98a4a28358cdcbc155","impliedFormat":99},{"version":"50a6aa665f3a2e769a4d683f9f74cd15164d0947fb957d8016331b170ab8b643","impliedFormat":99},{"version":"6b83491ca98ce7dc82ec0c54f1456705c9ea08f5a39fa8cea17134b28e2a73d7","impliedFormat":99},{"version":"33aa2f336bb0bc598652ddd1ad3095ef7a14e4dbed9cf829fa9357e989fff31a","impliedFormat":99},{"version":"d691e546590145171d00d78b341bd3ca4844c96eb34f870be84058a1cab585c3","impliedFormat":99},{"version":"c9d12ca3f67129b3ed2b81bf54537c970673cedd05ba28fbeba70c1e8aff684b","impliedFormat":99},{"version":"6f0b69f7afb2ff04a4b73fae6b43476c14349a438881c7a8c3d34cbad2c2bf3b","impliedFormat":99},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"abb8f7583c80092687f12d198c690506bb817f4acdaebc892aa8f6cb4822b23a","signature":"86d33a8b5042574a7334aa78a7ea2d5b418772dd734f24d716457d0c851ca9c5"},"b77dd2cadf1b48a1f65438f8f77d2a7772f0d2907000b325ff4610ded5478cb7","315fc277086beaeb86e65ede761df3d13415e8f548cfc6f5e2bd4b7709521551","448f6ecbb0eff1d362682b2117a5c4c3c73e662d59332e7d965a4bd87f8a8084","38af437aa04d760f940dbd3edc06c4872a433b7d8be014e5000a2b8cd0457c03","2e8576e4cb096af4be44c353a4bc4e6e8b2fd2b681ddbeedf22cd31e9f92ad3b","27d319e57fdacb9d976e0b3956027f3f7053afeced8b89b456ea25ec9b117a47","4271e12fc8a35d0edd0cc85f0a0680ece2efa53d0c7645401d3c2499a78fe2f5","502657b9a54e290098ba4f955efa476b91648b24d5310b8c6e7aa0d4cf8945ae","ab873f5da05ba4a1658d5152a785ba3687f9c65166a2fde57796ebe4f12d860e","ea3ad4d3734c8ae6e99f826c1140af3c2e2635dd29aa20a2c5f1f620be9f1dfd",{"version":"bce89d3ef847715b91ffd525a157c779be8fafebe823671815f7ce96f27afcda","impliedFormat":99},{"version":"c67f9d85070618f586d632cf184b986eb604f426b90aa68ecdad1ac68ca3151c","impliedFormat":99},{"version":"c656cc6ded557aff87a6c823142852e3548c6a14f84bb48ee35c3e57b6ebc03b","impliedFormat":99},{"version":"0e34130243c29d8d826f868c4e00ff586b349627cb241b3d89f0459a6cdeff4d","impliedFormat":99},{"version":"d555c6cb465cc5cf8127adbbc496720d5200c9dfafa777bbf9dfdea74ebfe3a3","impliedFormat":99},{"version":"27a6936a863edf777150af3ebc65939fa34f51d68385f8a7f198d8ea53685a4d","impliedFormat":99},"c009c2e16076182ab001c8cc023aafe39e5ebe606c55f9dc12421b92e243f917","4b89ee5b0a29608545a94c55d7108367b5e2343bce421168bf05634cd56b67b9","462dd99e531ed6a79977eb1e938c1ef45a52be2cd2e4d32dada99df4f5c8c42e","e9335e8eb95ef911b4eda08e4716b8f3e06dd1930430501209f97c061ad359da","5f0ead47c721b821843fae364a37c18236b2a8d2138d0326467f28e612799fac","b85f83aa4b7fb1abc375a73cb706295a146b9f22cf9fa5ec89105fcff6ea1495","fd0cd0a179e95f7d4d5f7370209f6b413006242a045137d33ca230ae015ba760","fa716666e5bedc99e38d37def5182924b9dd9e6298c2751f8cebe0fc631ef697","187502f39e041e5da257a6cc0e328a9c616a71a549003d133580da3c47c55012","8bdcd8a58fead736e81808193884907482c8d354f13a0516e9b236a07622c727","aa11604b85745cee9f64c461928c8a51a63112d53d5269c5a560b2af51ce9e31","2009411324fa09ad6d3a7f96c754d3d76b049d12ea20fcea2aabb58dcede6bf0","dfa88df7638cc24634255691d0a3fb72a4910b73211da89fab8f2362730cb3b2","94be66b0e51483a5dd38677cc7aedf7f43cb79c0346d81f39148a68eaff3b24a","75ea946ee4d31489f494b0def56b2db669c3aac052713387d6edc51dc2ca86db","26ce9aa6f798212e39770c45142239f3a54fa63697ba90bae90c6d7ac7da825a","eceda86937454d399a4e4cd4a3e25835a4ac80ab930f399b20f53d8f1c772457","91d0b03323b92883af7fe1d2d87c4dcec3c5a798bd63f7f69169082763c6d2ec","949058dd04fa398b0202e8893074fae9217a588c36733edaa0f69a77de2d362b","1da63fb4ffc26df2d98c1e1ea94d806e2075c988a0c09b4b1304aeba85e4bc65","a4af79d0d3b126a322e88c7f8e8a7930f983058b84eece00f406fe5bd9453db0","ae557ba7a3d28e8909ac395365eb5f8ff63bc28eb2eaace61650ed51f1bc1808","95784f449b26dbdf4aadd2f99a5c2f6c419d80f993ececa6c0c3e0159b452aa5","89c0f7c64772fcb38eda1e15b26da3e53e4101c968a0eeb14954f154aee4dac1","6e7e44d7615d2899c2dd6be4e15bbb2cd0b7f4afec2379c08db14b9eac5c9b43","7106625740fe9c734f90660cfee008981ea0504c6f89c3e3ebb3b7a168d98040","d1b901b618ec72bff0fcb657edf03d83e2bcbb2687a9cddadea48a24ab23faf2","45ae4b2937091491eb8812509187bbc4832a769dfe3cf16f79e9db95ebccbad4","333a712b6dcad79ab598338b5d68835b682b7bd09061973505b83e8e4bcb7f70","c315f9aed0d119e7a6f096aa1f22beee2cf7e9a5e437ce7030c9091310cda909","60bd456f1b63861f880c386ddf1b3916098bbafbf4b5a46a5e5ebc4fcb9434c4","f2c0b5b634eed4010d9396710281a7fdc7019fe47507e8bcb706a58af985548a","b821d01bd6f96ab7c204c56ba79df472b57aa32be80ecc751f885324c7f02bfe","baeb8f9be968778478ffa26099ec4211dd28c6dea1633fd8fd1560c34fdd0269","f1cbf04f1d78ec0978b592f8a901752a2a76972e853ce14bd2c8f3b075e4eb1d",{"version":"cac40f93ddbf6ffb2ae27bdb30f3aa8001c5f480383655c38e0e892145bb47c8","signature":"9f919091de1f9bf4e908780a3518b0253cf6097d78dfc52b4446ac7fee99bfc3"},"252daabb169cd802062a88fd441c7075394591a955ee57f294ea03f1d8aeb8a8","43c88c7da4f2fa63d6c384389d800eec434c87634631234e6689f9e1b66286c7","af6e4c2f5b1e0cc2b43f4db769abb391aab0dace676aeb2aadc510bcb847899c","8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","7cba56ef830c25906646291d869da8a3e2ea128a0c10e81e44ba25612b4effdc","7db2302e2dc9d8e8946f1f3f1c95e102842074c5fd630bc1d22d57c2c5c1e2ac","1217640af9bd12e58da3db7936121c85b3f2427bd6d234907954d9fc61b09166","dac25e34c75f8b269da6da85ca7e3d3e75abcfbddf1a6fee0b95d27f2c98b7d3","1b0a885ca9655037ab9e07ed35adee575d04869014cebb569d1b93e2cf036381","ba5194ddb518cdad4f95c718e255004278d42dbf4712078ba680da1dbf821bff","d13a613341a59921b24775825a7cbbc6526387940d3b9f13c1d116463b94818b","66c6888608b17316a09ede6335f5568748a24af4090990c9cf8050ac8b318c34","e89c865ca4785f4a56fbfe95b04df807ebf6d320b174b484f3a08d54321447a7","fe2527d2cb4fe4edb23490ec232606964e44f6cac1f818e5abdac5c4d90d02fd","366cbb5b4ce12b178620175cb2c13025d3cac376deaa0742524f2eaf0eb83efc","e6a79d0cfe8e75f37a20cb36e05795fa8116c4510a4b3cfc3fa89a427f356b3c","5d75518995846128777556e6058fbfb16cc2e2c383464f0677b3a35bd3c6999b","a2ce304c9f47365f303abfca4cede9bc28cb9047dea4cc948c3e72d700cc3f30","b505287deeb59270e8d172f30f625adf6e8394c16e68f1caeff1d933fb6a239a","9f2b447dc1e2bf4792ce7de9b3c31327af7181d6c0985a2926f53c4d4abb0e64","76c46da0fec884513748a0996b155e149f0f95c07bfe6cefba889b543677869b","6ed00b42dafb3a9e2fe5d85e1f3e9ffe5e555116dfd43021a3670c8d2eded087","5f688823fc3c326fce1b4a162bc7105c039bdb3a204c388c75d87600eeb8cef1","afc9f2f2641096cdd7729a4757859b29f0d91a2296256d7fb438906d140fb534","ce4603d9290b031792e47f9dab0d524e70154d60fa50c434a323db292b2b95ad","3ea1813f7fc276ac2ad3587fa36739257f8cb05634c23ee23179338b029d72cf","6257c11ddda8274e26d5e46fb41272edddd4a8d6a9686ddd79c86b0f5484ba8f","5f442f7b5b287323065b77d9e991937bc10f974bfd65a0f36d2ccc10bb490a6c","6793e02e3c8ff26698992ac3c821bf132aac37b2ca330fd96e31ba33ddb5b79f","76b8a6af1148bafa86dd5fb33c96dc07d15245c4feb1ef39b0307ca36c09bf03","0f40c009c2babf188c6961cfbae5f20dd2f7d60df7d46604367e3a1c87ecbab1","7bcb2eff2a9f59930a780f2f294ef8c8cbe3b0469c123e7557a9a8561f53edf2","67185ddfb8417bf02bc3da9114b09780fff987c2e88b0a8bc538508512a91426","13babdca228d463f6932c6690ce95d18d437713e23ea5ef9a1df024ebf2d9e77","32ad60ecb714081eb9e5460bf65dc094e4862f43949b4e72bf7ce35ab58f2bfa","081dcd50db7b36e603affccae9b91d3430bf310a280faf82191ccd116a9811ad","82f76d0caaefa73a1036df5454cacd216bd33fe0f789adbd852e4203a7932b4e","8269f0b707166aeb3f938922d2fea7e1627d9a6313a8d9038e767781631f53c3","a62e9f4806acceba99f5a5eacf9dec98f6755655c6e65f208074c075148f5c1a","492ac75fc50da6f63737b41e1ee8dbe413961f4d7de183028f0a9b65d05d7ae9","d327aa5e0b659208f9d5fc17270e03aa8c414673da946daf445503f6d1b2d364","72beafce8bca2755fc974d15f546867e0e94699d9473f0d1404a5dd80e9ac17c","13ab2ae13ed340b26fb8d4f2b714fac96d2954b4f86e4b99f384c2ef74a0e811","07470890b851db6998785cf5bec3698b6dd0c42c5618efa141d9fb7d6c6fd9b0","8fb30cc726264f2f54d8426cae4726dc474d844e2acac42ad2c47312806ee59a","79921dc17ad040494b2b03189e49ec663db0ef933e4d8f93e7472bbb8b197a67","a95b0bb99a733c7f9c8e61377aaf9808d832824205de6d2eca8cdf3c9b4f6251","e76c0d79dd7148adef22188e334d20122a35733f2ea409f32ef3979137190079","e80be8f041fd80c1b875ab6dd06fa7c0d705239ce8886add67b12a28a2a74338","e1fcabbc8cd53c0b981782e956fcbbc3d8980f03767900af7b342a2a7ee307d9",{"version":"d7e35837d860e037104f0b302e7f52b3c84648afc9d7875bd04dae8338766df4","signature":"deccc6145a8cd12cb1c7e7f489b3d735fd6bbb5b00a846fe70acb11226014efb"},{"version":"bbee502a2eac0098012a9df2e3a36ae94718e8df361c4929308b55d09d0c02bf","signature":"cc10cca9f77c4fb9157c4a88f715c42f37094b607c1bd3bd49619e7a35ec870f"},{"version":"91aba26a20f9aa6f9b3cccfd3402d3a9ebe2bce0a9dcf8e1fabca3e510b25aef","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012"},{"version":"81a11ce2ae462e958c41d4814a32c802a2c2a8f688e67a28a40f098fda0930d1","signature":"8d5e716e7a5775090816f0ae0fd26a66779284f2cf92c013a646e3004b29743a"},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"73b5fa37db36eeac90c4d752e39586f1b57187400c4f5280fd05f16437287a45","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"80523c00b8544a2000ae0143e4a90a00b47f99823eb7926c1e03c494216fc363","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"746911b62b329587939560deb5c036aca48aece03147b021fa680223255d5183","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[154,206,[257,260]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":false,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[143,1],[151,2],[148,3],[142,4],[124,5],[149,6],[152,7],[127,8],[141,9],[145,10],[144,4],[126,4],[150,5],[125,11],[147,12],[312,13],[313,13],[314,14],[266,15],[315,16],[316,17],[317,18],[261,5],[264,19],[262,5],[263,5],[318,20],[319,21],[320,22],[321,23],[322,24],[323,25],[324,25],[325,26],[326,27],[327,28],[328,29],[267,5],[265,5],[329,30],[330,31],[331,32],[365,33],[332,34],[333,5],[334,35],[335,36],[336,37],[337,38],[338,39],[339,40],[340,41],[341,42],[342,43],[343,43],[344,44],[345,5],[346,45],[347,46],[349,47],[348,48],[350,49],[351,50],[352,51],[353,52],[354,53],[355,54],[356,55],[357,56],[358,57],[359,58],[360,59],[361,60],[362,61],[268,5],[269,5],[270,5],[309,62],[310,5],[311,5],[363,63],[364,64],[271,5],[168,5],[169,5],[166,65],[170,66],[167,65],[165,5],[146,5],[56,5],[57,5],[11,5],[10,5],[2,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[3,5],[20,5],[21,5],[4,5],[22,5],[26,5],[23,5],[24,5],[25,5],[27,5],[28,5],[29,5],[5,5],[30,5],[31,5],[32,5],[33,5],[6,5],[37,5],[34,5],[35,5],[36,5],[38,5],[7,5],[39,5],[44,5],[45,5],[40,5],[41,5],[42,5],[43,5],[8,5],[49,5],[46,5],[47,5],[48,5],[50,5],[9,5],[51,5],[52,5],[53,5],[55,5],[54,5],[1,5],[287,67],[297,68],[286,67],[307,69],[278,70],[277,71],[306,72],[300,73],[305,74],[280,75],[294,76],[279,77],[303,78],[275,79],[274,72],[304,80],[276,81],[281,82],[282,5],[285,82],[272,5],[308,83],[298,84],[289,85],[290,86],[292,87],[288,88],[291,89],[301,72],[283,90],[284,91],[293,92],[273,93],[296,84],[295,82],[299,5],[302,94],[153,95],[130,96],[132,97],[139,98],[134,5],[135,5],[133,99],[136,100],[128,5],[129,5],[140,95],[131,101],[137,5],[138,102],[117,103],[120,104],[118,104],[114,103],[121,105],[122,106],[119,104],[115,107],[116,108],[110,109],[62,110],[64,111],[108,5],[63,112],[109,113],[113,114],[111,5],[65,110],[66,5],[107,115],[61,116],[58,5],[112,117],[59,118],[60,5],[123,119],[67,120],[68,120],[69,120],[70,120],[71,120],[72,120],[73,120],[74,120],[75,120],[76,120],[77,120],[79,120],[78,120],[80,120],[81,120],[82,120],[106,121],[83,120],[84,120],[85,120],[86,120],[87,120],[88,120],[89,120],[90,120],[91,120],[93,120],[92,120],[94,120],[95,120],[96,120],[97,120],[98,120],[99,120],[100,120],[101,120],[102,120],[103,120],[104,120],[105,120],[245,122],[244,123],[243,124],[250,125],[251,125],[254,126],[253,126],[246,127],[256,128],[255,126],[247,129],[249,126],[248,125],[252,130],[259,131],[154,5],[260,132],[258,133],[206,134],[257,135],[216,5],[226,5],[237,136],[223,126],[222,137],[224,138],[225,139],[238,140],[234,141],[220,127],[218,5],[228,5],[233,137],[215,127],[221,142],[232,126],[219,137],[217,143],[231,144],[230,145],[229,5],[236,127],[227,5],[235,137],[242,146],[240,5],[241,147],[239,148],[195,149],[187,150],[192,151],[176,127],[184,152],[174,5],[204,153],[201,154],[175,127],[182,155],[171,156],[199,157],[198,127],[177,127],[200,152],[191,158],[205,159],[178,160],[197,161],[196,162],[183,163],[190,164],[189,152],[180,165],[194,166],[185,152],[181,167],[203,152],[172,168],[188,154],[193,127],[164,127],[186,5],[173,169],[202,153],[179,127],[211,170],[213,137],[214,171],[209,5],[210,5],[212,5],[207,172],[208,173],[160,5],[156,5],[158,5],[162,174],[159,5],[163,175],[161,5],[157,5],[155,5]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
+
import { createMcpServer } from "./server.js";
|
|
4
|
+
const server = createMcpServer();
|
|
5
|
+
const transport = new StdioServerTransport();
|
|
6
|
+
server.connect(transport).catch((err) => {
|
|
7
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;AACjC,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAE7C,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;IAC/C,OAAO,CAAC,KAAK,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** MCP server identity advertised during the initialize handshake. */
|
|
2
|
+
export declare const SERVER_NAME = "oja-mcp";
|
|
3
|
+
/**
|
|
4
|
+
* Server version reported to MCP clients. Kept in sync with the package
|
|
5
|
+
* version by the release process.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SERVER_VERSION = "0.1.0";
|
|
8
|
+
/**
|
|
9
|
+
* Default width/height (scene units) for elements added without explicit
|
|
10
|
+
* dimensions. Comfortable node size for auto-generated diagrams.
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_ELEMENT_WIDTH = 160;
|
|
13
|
+
export declare const DEFAULT_ELEMENT_HEIGHT = 80;
|
|
14
|
+
/** Default font size for text elements added without one. */
|
|
15
|
+
export declare const DEFAULT_FONT_SIZE = 16;
|
|
16
|
+
/** Default font family for text elements added without one. */
|
|
17
|
+
export declare const DEFAULT_FONT_FAMILY = "sans-serif";
|
|
18
|
+
/** Default stroke colour for elements/links added without a style. */
|
|
19
|
+
export declare const DEFAULT_STROKE = "#1e1e1e";
|
|
20
|
+
/**
|
|
21
|
+
* Margin (scene units) added around content when an export has to derive the
|
|
22
|
+
* viewport size from element bounds (scenes created via create_scene have a
|
|
23
|
+
* zero-sized viewport until a client sets one).
|
|
24
|
+
*/
|
|
25
|
+
export declare const EXPORT_FIT_MARGIN = 20;
|
|
26
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAEhD,sEAAsE;AACtE,eAAO,MAAM,cAAc,YAAY,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** MCP server identity advertised during the initialize handshake. */
|
|
2
|
+
export const SERVER_NAME = "oja-mcp";
|
|
3
|
+
/**
|
|
4
|
+
* Server version reported to MCP clients. Kept in sync with the package
|
|
5
|
+
* version by the release process.
|
|
6
|
+
*/
|
|
7
|
+
export const SERVER_VERSION = "0.1.0";
|
|
8
|
+
/**
|
|
9
|
+
* Default width/height (scene units) for elements added without explicit
|
|
10
|
+
* dimensions. Comfortable node size for auto-generated diagrams.
|
|
11
|
+
*/
|
|
12
|
+
export const DEFAULT_ELEMENT_WIDTH = 160;
|
|
13
|
+
export const DEFAULT_ELEMENT_HEIGHT = 80;
|
|
14
|
+
/** Default font size for text elements added without one. */
|
|
15
|
+
export const DEFAULT_FONT_SIZE = 16;
|
|
16
|
+
/** Default font family for text elements added without one. */
|
|
17
|
+
export const DEFAULT_FONT_FAMILY = "sans-serif";
|
|
18
|
+
/** Default stroke colour for elements/links added without a style. */
|
|
19
|
+
export const DEFAULT_STROKE = "#1e1e1e";
|
|
20
|
+
/**
|
|
21
|
+
* Margin (scene units) added around content when an export has to derive the
|
|
22
|
+
* viewport size from element bounds (scenes created via create_scene have a
|
|
23
|
+
* zero-sized viewport until a client sets one).
|
|
24
|
+
*/
|
|
25
|
+
export const EXPORT_FIT_MARGIN = 20;
|
|
26
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AACzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAEzC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEpC,+DAA+D;AAC/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAEhD,sEAAsE;AACtE,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createMcpServer } from "./server.js";
|
|
2
|
+
export { SceneStore, ToolError } from "./store.js";
|
|
3
|
+
export { addElements, addLinkTool, createScene, exportPng, exportSvg, getScene, getSceneSchema, importMermaid, loadScene, queryScene, removeElements, updateElementTool, type RawObject, type SceneSummary, } from "./tools.js";
|
|
4
|
+
export { SERVER_NAME, SERVER_VERSION } from "./constants.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createMcpServer } from "./server.js";
|
|
2
|
+
export { SceneStore, ToolError } from "./store.js";
|
|
3
|
+
export { addElements, addLinkTool, createScene, exportPng, exportSvg, getScene, getSceneSchema, importMermaid, loadScene, queryScene, removeElements, updateElementTool, } from "./tools.js";
|
|
4
|
+
export { SERVER_NAME, SERVER_VERSION } from "./constants.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,EACV,cAAc,EACd,iBAAiB,GAGlB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { SceneStore } from "./store.js";
|
|
3
|
+
/**
|
|
4
|
+
* Build the MCP server with all scene tools registered. The store is
|
|
5
|
+
* injectable for tests; production entry (`bin.ts`) uses a fresh one.
|
|
6
|
+
*/
|
|
7
|
+
export declare const createMcpServer: (store?: SceneStore) => McpServer;
|
|
8
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGpE,OAAO,EAAE,UAAU,EAAa,MAAM,YAAY,CAAC;AAyCnD;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,QAAO,UAA6B,KAAG,SAiItE,CAAC"}
|
package/dist/server.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { SERVER_NAME, SERVER_VERSION } from "./constants.js";
|
|
4
|
+
import { SceneStore, ToolError } from "./store.js";
|
|
5
|
+
import { addElements, addLinkTool, createScene, exportPng, exportSvg, getScene, getSceneSchema, importMermaid, loadScene, queryScene, removeElements, updateElementTool, } from "./tools.js";
|
|
6
|
+
const text = (value) => ({
|
|
7
|
+
content: [
|
|
8
|
+
{ type: "text", text: typeof value === "string" ? value : JSON.stringify(value, null, 2) },
|
|
9
|
+
],
|
|
10
|
+
});
|
|
11
|
+
/** Run a handler, converting thrown errors into MCP error results. */
|
|
12
|
+
const guard = async (fn) => {
|
|
13
|
+
try {
|
|
14
|
+
return text(await fn());
|
|
15
|
+
}
|
|
16
|
+
catch (err) {
|
|
17
|
+
const message = err instanceof ToolError || err instanceof Error ? err.message : String(err);
|
|
18
|
+
return { content: [{ type: "text", text: message }], isError: true };
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const routingSchema = z.enum(["straight", "orthogonal", "bezier"]);
|
|
22
|
+
const rawObjectSchema = z.record(z.string(), z.unknown());
|
|
23
|
+
/**
|
|
24
|
+
* Build the MCP server with all scene tools registered. The store is
|
|
25
|
+
* injectable for tests; production entry (`bin.ts`) uses a fresh one.
|
|
26
|
+
*/
|
|
27
|
+
export const createMcpServer = (store = new SceneStore()) => {
|
|
28
|
+
const server = new McpServer({ name: SERVER_NAME, version: SERVER_VERSION });
|
|
29
|
+
server.registerTool("create_scene", { description: "Create a new empty scene. Returns its sceneId." }, () => guard(() => createScene(store)));
|
|
30
|
+
server.registerTool("load_scene", {
|
|
31
|
+
description: "Load a serialized scene document (JSON string). Returns a new sceneId.",
|
|
32
|
+
inputSchema: { json: z.string().describe("Serialized scene document JSON") },
|
|
33
|
+
}, ({ json }) => guard(() => loadScene(store, json)));
|
|
34
|
+
server.registerTool("get_scene", {
|
|
35
|
+
description: "Get the full serialized scene document as JSON.",
|
|
36
|
+
inputSchema: { sceneId: z.string() },
|
|
37
|
+
}, ({ sceneId }) => guard(() => getScene(store, sceneId)));
|
|
38
|
+
server.registerTool("add_elements", {
|
|
39
|
+
description: "Add elements to a scene. Each element needs at least a `type` " +
|
|
40
|
+
"(rectangle | ellipse | polygon | path | text | image | group | brush) " +
|
|
41
|
+
"and typically `position` {x,y}; width/height/style/order default " +
|
|
42
|
+
"sensibly. Call get_scene_schema for the full element schema. " +
|
|
43
|
+
"Returns the assigned element ids.",
|
|
44
|
+
inputSchema: {
|
|
45
|
+
sceneId: z.string(),
|
|
46
|
+
elements: z.array(rawObjectSchema).describe("Elements to add (see get_scene_schema)"),
|
|
47
|
+
},
|
|
48
|
+
}, ({ sceneId, elements }) => guard(() => addElements(store, sceneId, elements)));
|
|
49
|
+
server.registerTool("update_element", {
|
|
50
|
+
description: "Update an element by id. `patch` is shallow-merged into the element " +
|
|
51
|
+
"(`style` is deep-merged); the result is validated against the scene schema.",
|
|
52
|
+
inputSchema: { sceneId: z.string(), id: z.string(), patch: rawObjectSchema },
|
|
53
|
+
}, ({ sceneId, id, patch }) => guard(() => updateElementTool(store, sceneId, id, patch)));
|
|
54
|
+
server.registerTool("remove_elements", {
|
|
55
|
+
description: "Remove elements by id.",
|
|
56
|
+
inputSchema: { sceneId: z.string(), ids: z.array(z.string()) },
|
|
57
|
+
}, ({ sceneId, ids }) => guard(() => removeElements(store, sceneId, ids)));
|
|
58
|
+
server.registerTool("add_link", {
|
|
59
|
+
description: "Connect two elements with a link (arrow). Routing: straight | " +
|
|
60
|
+
"orthogonal | bezier (default straight). Optional text label.",
|
|
61
|
+
inputSchema: {
|
|
62
|
+
sceneId: z.string(),
|
|
63
|
+
from: z.string().describe("Source element id"),
|
|
64
|
+
to: z.string().describe("Target element id"),
|
|
65
|
+
routing: routingSchema.optional(),
|
|
66
|
+
label: z.string().optional(),
|
|
67
|
+
},
|
|
68
|
+
}, ({ sceneId, from, to, routing, label }) => guard(() => addLinkTool(store, sceneId, from, to, routing, label)));
|
|
69
|
+
server.registerTool("query_scene", {
|
|
70
|
+
description: "Compact scene summary: element/link/layer counts, content bounds, " +
|
|
71
|
+
"and elements with id/type/text. Cheaper than get_scene.",
|
|
72
|
+
inputSchema: { sceneId: z.string() },
|
|
73
|
+
}, ({ sceneId }) => guard(() => queryScene(store, sceneId)));
|
|
74
|
+
server.registerTool("export_svg", {
|
|
75
|
+
description: "Render the scene to an SVG string.",
|
|
76
|
+
inputSchema: { sceneId: z.string() },
|
|
77
|
+
}, ({ sceneId }) => guard(() => exportSvg(store, sceneId)));
|
|
78
|
+
server.registerTool("export_png", {
|
|
79
|
+
description: "Render the scene to a base64-encoded PNG. Requires the optional " +
|
|
80
|
+
"peer dependency @resvg/resvg-js.",
|
|
81
|
+
inputSchema: { sceneId: z.string(), scale: z.number().positive().optional() },
|
|
82
|
+
}, ({ sceneId, scale }) => guard(() => exportPng(store, sceneId, scale)));
|
|
83
|
+
server.registerTool("import_mermaid", {
|
|
84
|
+
description: "Import a Mermaid flowchart into a new scene. Returns its sceneId.",
|
|
85
|
+
inputSchema: { text: z.string().describe("Mermaid source") },
|
|
86
|
+
}, ({ text: source }) => guard(() => importMermaid(store, source)));
|
|
87
|
+
server.registerTool("get_scene_schema", { description: "JSON Schema of the serialized scene document (elements, links, layers)." }, () => guard(() => getSceneSchema()));
|
|
88
|
+
return server;
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,EACV,cAAc,EACd,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAQpB,MAAM,IAAI,GAAG,CAAC,KAAc,EAAc,EAAE,CAAC,CAAC;IAC5C,OAAO,EAAE;QACP,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAA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AC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,CACpC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
package/dist/store.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Scene } from "@oh-just-another/scene";
|
|
2
|
+
/** Error thrown by tool handlers; its message is safe to relay to the client. */
|
|
3
|
+
export declare class ToolError extends Error {
|
|
4
|
+
constructor(message: string);
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* In-memory scene registry for one MCP server process. Scenes live for the
|
|
8
|
+
* lifetime of the stdio session — no persistence, no network.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SceneStore {
|
|
11
|
+
private readonly scenes;
|
|
12
|
+
/** Register a scene under a fresh id and return the id. */
|
|
13
|
+
add(scene: Scene): string;
|
|
14
|
+
/** Get a scene or throw a client-friendly error. */
|
|
15
|
+
get(sceneId: string): Scene;
|
|
16
|
+
/** Replace the scene stored under an existing id. */
|
|
17
|
+
set(sceneId: string, scene: Scene): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,iFAAiF;AACjF,qBAAa,SAAU,SAAQ,KAAK;gBACtB,OAAO,EAAE,MAAM;CAI5B;AAED;;;GAGG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD,2DAA2D;IAC3D,GAAG,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAMzB,oDAAoD;IACpD,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK;IAU3B,qDAAqD;IACrD,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;CAMzC"}
|
package/dist/store.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
/** Error thrown by tool handlers; its message is safe to relay to the client. */
|
|
3
|
+
export class ToolError extends Error {
|
|
4
|
+
constructor(message) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.name = "ToolError";
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* In-memory scene registry for one MCP server process. Scenes live for the
|
|
11
|
+
* lifetime of the stdio session — no persistence, no network.
|
|
12
|
+
*/
|
|
13
|
+
export class SceneStore {
|
|
14
|
+
scenes = new Map();
|
|
15
|
+
/** Register a scene under a fresh id and return the id. */
|
|
16
|
+
add(scene) {
|
|
17
|
+
const id = randomUUID();
|
|
18
|
+
this.scenes.set(id, scene);
|
|
19
|
+
return id;
|
|
20
|
+
}
|
|
21
|
+
/** Get a scene or throw a client-friendly error. */
|
|
22
|
+
get(sceneId) {
|
|
23
|
+
const scene = this.scenes.get(sceneId);
|
|
24
|
+
if (!scene) {
|
|
25
|
+
throw new ToolError(`Unknown sceneId "${sceneId}". Create one with create_scene, load_scene, or import_mermaid.`);
|
|
26
|
+
}
|
|
27
|
+
return scene;
|
|
28
|
+
}
|
|
29
|
+
/** Replace the scene stored under an existing id. */
|
|
30
|
+
set(sceneId, scene) {
|
|
31
|
+
if (!this.scenes.has(sceneId)) {
|
|
32
|
+
throw new ToolError(`Unknown sceneId "${sceneId}".`);
|
|
33
|
+
}
|
|
34
|
+
this.scenes.set(sceneId, scene);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,iFAAiF;AACjF,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,UAAU;IACJ,MAAM,GAAG,IAAI,GAAG,EAAiB,CAAC;IAEnD,2DAA2D;IAC3D,GAAG,CAAC,KAAY;QACd,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,oDAAoD;IACpD,GAAG,CAAC,OAAe;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,SAAS,CACjB,oBAAoB,OAAO,iEAAiE,CAC7F,CAAC;QACJ,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,qDAAqD;IACrD,GAAG,CAAC,OAAe,EAAE,KAAY;QAC/B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,SAAS,CAAC,oBAAoB,OAAO,IAAI,CAAC,CAAC;QACvD,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;CACF"}
|
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Bounds } from "@oh-just-another/types";
|
|
2
|
+
import type { LinkRouting } from "@oh-just-another/scene";
|
|
3
|
+
import { type SceneStore } from "./store.js";
|
|
4
|
+
/** Raw JSON object as supplied by the MCP client. */
|
|
5
|
+
export type RawObject = Record<string, unknown>;
|
|
6
|
+
/** `create_scene`: register a fresh empty scene, return its id. */
|
|
7
|
+
export declare const createScene: (store: SceneStore) => {
|
|
8
|
+
sceneId: string;
|
|
9
|
+
};
|
|
10
|
+
/** `load_scene`: parse a serialized scene document (JSON string). */
|
|
11
|
+
export declare const loadScene: (store: SceneStore, json: string) => {
|
|
12
|
+
sceneId: string;
|
|
13
|
+
};
|
|
14
|
+
/** `get_scene`: serialize the scene back to a JSON string. */
|
|
15
|
+
export declare const getScene: (store: SceneStore, sceneId: string) => string;
|
|
16
|
+
/** `import_mermaid`: parse Mermaid source into a new scene. */
|
|
17
|
+
export declare const importMermaid: (store: SceneStore, text: string) => {
|
|
18
|
+
sceneId: string;
|
|
19
|
+
};
|
|
20
|
+
/** `get_scene_schema`: JSON Schema of the serialized scene document. */
|
|
21
|
+
export declare const getSceneSchema: () => Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* `add_elements`: append elements to the scene. Each element is validated
|
|
24
|
+
* against the serialization schema; missing base fields get sensible defaults.
|
|
25
|
+
*/
|
|
26
|
+
export declare const addElements: (store: SceneStore, sceneId: string, elements: readonly RawObject[]) => {
|
|
27
|
+
ids: string[];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* `update_element`: shallow-merge a patch into an element (with `style`
|
|
31
|
+
* deep-merged) and revalidate.
|
|
32
|
+
*/
|
|
33
|
+
export declare const updateElementTool: (store: SceneStore, sceneId: string, id: string, patch: RawObject) => {
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
36
|
+
/** `remove_elements`: delete elements by id. */
|
|
37
|
+
export declare const removeElements: (store: SceneStore, sceneId: string, ids: readonly string[]) => {
|
|
38
|
+
removed: number;
|
|
39
|
+
};
|
|
40
|
+
/** `add_link`: connect two elements with a floating-endpoint link. */
|
|
41
|
+
export declare const addLinkTool: (store: SceneStore, sceneId: string, from: string, to: string, routing?: LinkRouting, label?: string) => {
|
|
42
|
+
id: string;
|
|
43
|
+
};
|
|
44
|
+
/** Compact scene summary returned by `query_scene`. */
|
|
45
|
+
export interface SceneSummary {
|
|
46
|
+
readonly counts: {
|
|
47
|
+
elements: number;
|
|
48
|
+
links: number;
|
|
49
|
+
layers: number;
|
|
50
|
+
};
|
|
51
|
+
readonly bounds: Bounds | null;
|
|
52
|
+
readonly elements: {
|
|
53
|
+
id: string;
|
|
54
|
+
type: string;
|
|
55
|
+
text?: string;
|
|
56
|
+
}[];
|
|
57
|
+
readonly links: {
|
|
58
|
+
id: string;
|
|
59
|
+
from: string;
|
|
60
|
+
to: string;
|
|
61
|
+
label?: string;
|
|
62
|
+
}[];
|
|
63
|
+
}
|
|
64
|
+
/** `query_scene`: counts, content bounds, and a compact element/link listing. */
|
|
65
|
+
export declare const queryScene: (store: SceneStore, sceneId: string) => SceneSummary;
|
|
66
|
+
/** `export_svg`: render the scene to an SVG string. */
|
|
67
|
+
export declare const exportSvg: (store: SceneStore, sceneId: string) => string;
|
|
68
|
+
/**
|
|
69
|
+
* `export_png`: render the scene to a base64-encoded PNG. Requires the
|
|
70
|
+
* optional peer dependency `@resvg/resvg-js`; a clear error is raised when it
|
|
71
|
+
* is not installed.
|
|
72
|
+
*/
|
|
73
|
+
export declare const exportPng: (store: SceneStore, sceneId: string, scale?: number) => Promise<string>;
|
|
74
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAiB,WAAW,EAAS,MAAM,wBAAwB,CAAC;AA6BhF,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAExD,qDAAqD;AACrD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAIhD,mEAAmE;AACnE,eAAO,MAAM,WAAW,GAAI,OAAO,UAAU,KAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAE/D,CAAC;AAEH,qEAAqE;AACrE,eAA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A;KAAE,CAAC;IACrE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjE,QAAQ,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC5E;AA4CD,iFAAiF;AACjF,eAAO,MAAM,UAAU,GAAI,OAAO,UAAU,EAAE,SAAS,MAAM,KAAG,YAmB/D,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,SAAS,GAAI,OAAO,UAAU,EAAE,SAAS,MAAM,KAAG,MACN,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,UAAU,EACjB,SAAS,MAAM,EACf,QAAQ,MAAM,KACb,OAAO,CAAC,MAAM,CAQhB,CAAC"}
|
package/dist/tools.js
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { Buffer } from "node:buffer";
|
|
3
|
+
import { elementId, linkId } from "@oh-just-another/types";
|
|
4
|
+
import { DEFAULT_LAYER_ID, FALLBACK_SCENE_HEIGHT, FALLBACK_SCENE_WIDTH, addLink, emptyScene, getElementRenderBounds, orderForTop, removeElement, } from "@oh-just-another/scene";
|
|
5
|
+
import { DeserializationError, deserializeScene, parseScene, sceneJsonSchema, serializeScene, stringifyScene, } from "@oh-just-another/serialization";
|
|
6
|
+
import { renderToPng, renderToSvg } from "@oh-just-another/headless";
|
|
7
|
+
import { importMermaid as importMermaidScene } from "@oh-just-another/importers";
|
|
8
|
+
import { DEFAULT_ELEMENT_HEIGHT, DEFAULT_ELEMENT_WIDTH, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_STROKE, EXPORT_FIT_MARGIN, } from "./constants.js";
|
|
9
|
+
import { ToolError } from "./store.js";
|
|
10
|
+
// --- Scene lifecycle ---
|
|
11
|
+
/** `create_scene`: register a fresh empty scene, return its id. */
|
|
12
|
+
export const createScene = (store) => ({
|
|
13
|
+
sceneId: store.add(emptyScene()),
|
|
14
|
+
});
|
|
15
|
+
/** `load_scene`: parse a serialized scene document (JSON string). */
|
|
16
|
+
export const loadScene = (store, json) => {
|
|
17
|
+
let scene;
|
|
18
|
+
try {
|
|
19
|
+
scene = parseScene(json);
|
|
20
|
+
}
|
|
21
|
+
catch (err) {
|
|
22
|
+
throw new ToolError(`Could not load scene: ${err instanceof Error ? err.message : String(err)}`);
|
|
23
|
+
}
|
|
24
|
+
return { sceneId: store.add(scene) };
|
|
25
|
+
};
|
|
26
|
+
/** `get_scene`: serialize the scene back to a JSON string. */
|
|
27
|
+
export const getScene = (store, sceneId) => stringifyScene(store.get(sceneId), 2);
|
|
28
|
+
/** `import_mermaid`: parse Mermaid source into a new scene. */
|
|
29
|
+
export const importMermaid = (store, text) => {
|
|
30
|
+
let scene;
|
|
31
|
+
try {
|
|
32
|
+
scene = importMermaidScene(text);
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
throw new ToolError(`Could not import Mermaid: ${err instanceof Error ? err.message : String(err)}`);
|
|
36
|
+
}
|
|
37
|
+
if (scene.elements.size === 0) {
|
|
38
|
+
throw new ToolError("Could not import Mermaid: no nodes recognized. Supported: flowchart/graph with one statement per line.");
|
|
39
|
+
}
|
|
40
|
+
return { sceneId: store.add(scene) };
|
|
41
|
+
};
|
|
42
|
+
/** `get_scene_schema`: JSON Schema of the serialized scene document. */
|
|
43
|
+
export const getSceneSchema = () => sceneJsonSchema();
|
|
44
|
+
// --- Element / link editing ---
|
|
45
|
+
/**
|
|
46
|
+
* Revalidate a mutated serialized document through the one true
|
|
47
|
+
* deserialization path (migrations + zod + hydration), preserving the binary
|
|
48
|
+
* file registry which is not part of the JSON document.
|
|
49
|
+
*/
|
|
50
|
+
const revalidate = (scene, doc) => {
|
|
51
|
+
try {
|
|
52
|
+
const next = deserializeScene(doc);
|
|
53
|
+
return scene.files.size > 0 ? { ...next, files: scene.files } : next;
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
if (err instanceof DeserializationError) {
|
|
57
|
+
throw new ToolError(`Invalid element data: ${err.message}`);
|
|
58
|
+
}
|
|
59
|
+
throw err;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
/** Fill LLM-friendly defaults so clients only need to supply the essentials. */
|
|
63
|
+
const withElementDefaults = (raw, order) => {
|
|
64
|
+
const el = {
|
|
65
|
+
id: randomUUID(),
|
|
66
|
+
layerId: DEFAULT_LAYER_ID,
|
|
67
|
+
position: { x: 0, y: 0 },
|
|
68
|
+
rotation: 0,
|
|
69
|
+
scale: { x: 1, y: 1 },
|
|
70
|
+
order,
|
|
71
|
+
...raw,
|
|
72
|
+
};
|
|
73
|
+
const type = el.type;
|
|
74
|
+
if (type === "rectangle" || type === "ellipse" || type === "image") {
|
|
75
|
+
el.width ??= DEFAULT_ELEMENT_WIDTH;
|
|
76
|
+
el.height ??= DEFAULT_ELEMENT_HEIGHT;
|
|
77
|
+
}
|
|
78
|
+
if (type === "text") {
|
|
79
|
+
el.fontFamily ??= DEFAULT_FONT_FAMILY;
|
|
80
|
+
el.fontSize ??= DEFAULT_FONT_SIZE;
|
|
81
|
+
}
|
|
82
|
+
if (el.style === undefined && type !== "group" && type !== "template") {
|
|
83
|
+
el.style = { stroke: DEFAULT_STROKE };
|
|
84
|
+
}
|
|
85
|
+
return el;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* `add_elements`: append elements to the scene. Each element is validated
|
|
89
|
+
* against the serialization schema; missing base fields get sensible defaults.
|
|
90
|
+
*/
|
|
91
|
+
export const addElements = (store, sceneId, elements) => {
|
|
92
|
+
const scene = store.get(sceneId);
|
|
93
|
+
const orders = [...scene.elements.values()].map((el) => el.order);
|
|
94
|
+
const prepared = [];
|
|
95
|
+
for (const raw of elements) {
|
|
96
|
+
const order = orderForTop(orders);
|
|
97
|
+
orders.push(order);
|
|
98
|
+
prepared.push(withElementDefaults(raw, order));
|
|
99
|
+
}
|
|
100
|
+
const doc = serializeScene(scene);
|
|
101
|
+
const next = revalidate(scene, { ...doc, elements: [...doc.elements, ...prepared] });
|
|
102
|
+
store.set(sceneId, next);
|
|
103
|
+
return { ids: prepared.map((el) => String(el.id)) };
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* `update_element`: shallow-merge a patch into an element (with `style`
|
|
107
|
+
* deep-merged) and revalidate.
|
|
108
|
+
*/
|
|
109
|
+
export const updateElementTool = (store, sceneId, id, patch) => {
|
|
110
|
+
const scene = store.get(sceneId);
|
|
111
|
+
if (!scene.elements.has(elementId(id))) {
|
|
112
|
+
throw new ToolError(`Element not found: ${id}`);
|
|
113
|
+
}
|
|
114
|
+
const doc = serializeScene(scene);
|
|
115
|
+
const elements = doc.elements.map((el) => {
|
|
116
|
+
if (el.id !== id)
|
|
117
|
+
return el;
|
|
118
|
+
const merged = { ...el, ...patch, id };
|
|
119
|
+
if (isObject(el.style) && isObject(patch.style)) {
|
|
120
|
+
merged.style = { ...el.style, ...patch.style };
|
|
121
|
+
}
|
|
122
|
+
return merged;
|
|
123
|
+
});
|
|
124
|
+
const next = revalidate(scene, { ...doc, elements });
|
|
125
|
+
store.set(sceneId, next);
|
|
126
|
+
return { id };
|
|
127
|
+
};
|
|
128
|
+
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
129
|
+
/** `remove_elements`: delete elements by id. */
|
|
130
|
+
export const removeElements = (store, sceneId, ids) => {
|
|
131
|
+
let scene = store.get(sceneId);
|
|
132
|
+
for (const id of ids) {
|
|
133
|
+
if (!scene.elements.has(elementId(id))) {
|
|
134
|
+
throw new ToolError(`Element not found: ${id}`);
|
|
135
|
+
}
|
|
136
|
+
({ scene } = removeElement(scene, elementId(id)));
|
|
137
|
+
}
|
|
138
|
+
store.set(sceneId, scene);
|
|
139
|
+
return { removed: ids.length };
|
|
140
|
+
};
|
|
141
|
+
/** `add_link`: connect two elements with a floating-endpoint link. */
|
|
142
|
+
export const addLinkTool = (store, sceneId, from, to, routing, label) => {
|
|
143
|
+
const scene = store.get(sceneId);
|
|
144
|
+
for (const id of [from, to]) {
|
|
145
|
+
if (!scene.elements.has(elementId(id))) {
|
|
146
|
+
throw new ToolError(`Element not found: ${id}`);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const link = {
|
|
150
|
+
id: linkId(randomUUID()),
|
|
151
|
+
layerId: DEFAULT_LAYER_ID,
|
|
152
|
+
from: { kind: "floating", elementId: elementId(from) },
|
|
153
|
+
to: { kind: "floating", elementId: elementId(to) },
|
|
154
|
+
...(routing !== undefined ? { routing } : {}),
|
|
155
|
+
...(label !== undefined ? { label: { text: label } } : {}),
|
|
156
|
+
arrowheads: { to: "arrow" },
|
|
157
|
+
order: orderForTop([...scene.links.values()].map((l) => l.order)),
|
|
158
|
+
style: { stroke: DEFAULT_STROKE },
|
|
159
|
+
};
|
|
160
|
+
const { scene: next } = addLink(scene, link);
|
|
161
|
+
store.set(sceneId, next);
|
|
162
|
+
return { id: link.id };
|
|
163
|
+
};
|
|
164
|
+
/** Union of element render bounds, or null for an empty scene. */
|
|
165
|
+
const contentBounds = (scene) => {
|
|
166
|
+
let bounds = null;
|
|
167
|
+
for (const el of scene.elements.values()) {
|
|
168
|
+
const b = getElementRenderBounds(el);
|
|
169
|
+
bounds =
|
|
170
|
+
bounds === null
|
|
171
|
+
? b
|
|
172
|
+
: {
|
|
173
|
+
x: Math.min(bounds.x, b.x),
|
|
174
|
+
y: Math.min(bounds.y, b.y),
|
|
175
|
+
width: Math.max(bounds.x + bounds.width, b.x + b.width) - Math.min(bounds.x, b.x),
|
|
176
|
+
height: Math.max(bounds.y + bounds.height, b.y + b.height) - Math.min(bounds.y, b.y),
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
return bounds;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Scenes created via `create_scene` have a zero-sized viewport (no client
|
|
183
|
+
* window exists). Renderers reject a zero-sized SVG, so exports derive the
|
|
184
|
+
* viewport from content bounds plus a margin. Scenes with an explicit
|
|
185
|
+
* viewport (loaded / imported) render as-is.
|
|
186
|
+
*/
|
|
187
|
+
const withRenderableViewport = (scene) => {
|
|
188
|
+
const { width, height } = scene.viewport.size;
|
|
189
|
+
if (width > 0 && height > 0)
|
|
190
|
+
return scene;
|
|
191
|
+
const bounds = contentBounds(scene);
|
|
192
|
+
const size = bounds
|
|
193
|
+
? {
|
|
194
|
+
width: Math.ceil(bounds.width + Math.max(0, bounds.x)) + EXPORT_FIT_MARGIN,
|
|
195
|
+
height: Math.ceil(bounds.height + Math.max(0, bounds.y)) + EXPORT_FIT_MARGIN,
|
|
196
|
+
}
|
|
197
|
+
: { width: FALLBACK_SCENE_WIDTH, height: FALLBACK_SCENE_HEIGHT };
|
|
198
|
+
return { ...scene, viewport: { ...scene.viewport, size } };
|
|
199
|
+
};
|
|
200
|
+
const endpointDescription = (endpoint) => endpoint.kind === "point"
|
|
201
|
+
? `point(${String(endpoint.position.x)},${String(endpoint.position.y)})`
|
|
202
|
+
: endpoint.elementId;
|
|
203
|
+
/** `query_scene`: counts, content bounds, and a compact element/link listing. */
|
|
204
|
+
export const queryScene = (store, sceneId) => {
|
|
205
|
+
const scene = store.get(sceneId);
|
|
206
|
+
const bounds = contentBounds(scene);
|
|
207
|
+
const elements = [...scene.elements.values()].map((el) => {
|
|
208
|
+
const text = "text" in el && typeof el.text === "string" ? el.text : undefined;
|
|
209
|
+
return { id: el.id, type: el.type, ...(text !== undefined ? { text } : {}) };
|
|
210
|
+
});
|
|
211
|
+
const links = [...scene.links.values()].map((link) => ({
|
|
212
|
+
id: link.id,
|
|
213
|
+
from: endpointDescription(link.from),
|
|
214
|
+
to: endpointDescription(link.to),
|
|
215
|
+
...(link.label ? { label: link.label.text } : {}),
|
|
216
|
+
}));
|
|
217
|
+
return {
|
|
218
|
+
counts: { elements: scene.elements.size, links: scene.links.size, layers: scene.layers.size },
|
|
219
|
+
bounds,
|
|
220
|
+
elements,
|
|
221
|
+
links,
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/** `export_svg`: render the scene to an SVG string. */
|
|
225
|
+
export const exportSvg = (store, sceneId) => renderToSvg(withRenderableViewport(store.get(sceneId)));
|
|
226
|
+
/**
|
|
227
|
+
* `export_png`: render the scene to a base64-encoded PNG. Requires the
|
|
228
|
+
* optional peer dependency `@resvg/resvg-js`; a clear error is raised when it
|
|
229
|
+
* is not installed.
|
|
230
|
+
*/
|
|
231
|
+
export const exportPng = async (store, sceneId, scale) => {
|
|
232
|
+
const scene = withRenderableViewport(store.get(sceneId));
|
|
233
|
+
try {
|
|
234
|
+
const png = await renderToPng(scene, scale !== undefined ? { scale } : {});
|
|
235
|
+
return Buffer.from(png).toString("base64");
|
|
236
|
+
}
|
|
237
|
+
catch (err) {
|
|
238
|
+
throw new ToolError(err instanceof Error ? err.message : String(err));
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,OAAO,EACP,UAAU,EACV,sBAAsB,EACtB,WAAW,EACX,aAAa,GACd,MAAM,wBAAwB,CAAC;AAChC,O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|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "MCP server exposing headless scene tools (create / edit / query / render) over stdio for LLM agents.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Rustam Garifulin <rustam@n69.in>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/oh-just-another/diagram.git",
|
|
10
|
+
"directory": "packages/mcp"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/oh-just-another/diagram#readme",
|
|
13
|
+
"bugs": "https://github.com/oh-just-another/diagram/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"diagram",
|
|
16
|
+
"mcp",
|
|
17
|
+
"model-context-protocol",
|
|
18
|
+
"llm",
|
|
19
|
+
"agent",
|
|
20
|
+
"svg",
|
|
21
|
+
"headless"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
|
+
"module": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"bin": {
|
|
34
|
+
"oja-mcp": "./dist/bin.js"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"README.md",
|
|
39
|
+
"CHANGELOG.md"
|
|
40
|
+
],
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
47
|
+
"zod": "3.25.76",
|
|
48
|
+
"@oh-just-another/headless": "0.58.1",
|
|
49
|
+
"@oh-just-another/importers": "0.59.0",
|
|
50
|
+
"@oh-just-another/scene": "0.60.0",
|
|
51
|
+
"@oh-just-another/serialization": "0.59.0",
|
|
52
|
+
"@oh-just-another/types": "0.57.0"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@resvg/resvg-js": "^2.6.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependenciesMeta": {
|
|
58
|
+
"@resvg/resvg-js": {
|
|
59
|
+
"optional": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@resvg/resvg-js": "2.6.2"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsc -b tsconfig.build.json",
|
|
67
|
+
"typecheck": "tsc --noEmit",
|
|
68
|
+
"test": "vitest run",
|
|
69
|
+
"test:watch": "vitest",
|
|
70
|
+
"lint": "eslint src tests",
|
|
71
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
72
|
+
}
|
|
73
|
+
}
|