@xpert-ai/plugin-excalidraw 0.1.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/.xpertai-plugin/plugin.json +118 -0
- package/README.md +5 -0
- package/assets/composerIcon.svg +5 -0
- package/assets/logo.svg +8 -0
- package/dist/docs/excalidraw-agent-skill.md +32 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +153 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/constants.d.ts +24 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +42 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/entities/excalidraw-action-log.entity.d.ts +18 -0
- package/dist/lib/entities/excalidraw-action-log.entity.d.ts.map +1 -0
- package/dist/lib/entities/excalidraw-action-log.entity.js +69 -0
- package/dist/lib/entities/excalidraw-action-log.entity.js.map +1 -0
- package/dist/lib/entities/excalidraw-drawing-version.entity.d.ts +21 -0
- package/dist/lib/entities/excalidraw-drawing-version.entity.d.ts.map +1 -0
- package/dist/lib/entities/excalidraw-drawing-version.entity.js +82 -0
- package/dist/lib/entities/excalidraw-drawing-version.entity.js.map +1 -0
- package/dist/lib/entities/excalidraw-drawing.entity.d.ts +24 -0
- package/dist/lib/entities/excalidraw-drawing.entity.d.ts.map +1 -0
- package/dist/lib/entities/excalidraw-drawing.entity.js +94 -0
- package/dist/lib/entities/excalidraw-drawing.entity.js.map +1 -0
- package/dist/lib/entities/index.d.ts +4 -0
- package/dist/lib/entities/index.d.ts.map +1 -0
- package/dist/lib/entities/index.js +4 -0
- package/dist/lib/entities/index.js.map +1 -0
- package/dist/lib/excalidraw-view.provider.d.ts +14 -0
- package/dist/lib/excalidraw-view.provider.d.ts.map +1 -0
- package/dist/lib/excalidraw-view.provider.js +423 -0
- package/dist/lib/excalidraw-view.provider.js.map +1 -0
- package/dist/lib/excalidraw.middleware.d.ts +10 -0
- package/dist/lib/excalidraw.middleware.d.ts.map +1 -0
- package/dist/lib/excalidraw.middleware.js +173 -0
- package/dist/lib/excalidraw.middleware.js.map +1 -0
- package/dist/lib/excalidraw.plugin.d.ts +8 -0
- package/dist/lib/excalidraw.plugin.d.ts.map +1 -0
- package/dist/lib/excalidraw.plugin.js +27 -0
- package/dist/lib/excalidraw.plugin.js.map +1 -0
- package/dist/lib/excalidraw.service.d.ts +169 -0
- package/dist/lib/excalidraw.service.d.ts.map +1 -0
- package/dist/lib/excalidraw.service.js +441 -0
- package/dist/lib/excalidraw.service.js.map +1 -0
- package/dist/lib/excalidraw.templates.d.ts +3 -0
- package/dist/lib/excalidraw.templates.d.ts.map +1 -0
- package/dist/lib/excalidraw.templates.js +78 -0
- package/dist/lib/excalidraw.templates.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/app.css +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/app.js +5105 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/i18n.d.ts +3 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/i18n.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/i18n.js +103 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/i18n.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/i18n.ts +151 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/main.tsx +1411 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-client-shim.d.ts +3 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-client-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-client-shim.js +4 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-client-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-client-shim.ts +4 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-shim.d.ts +11 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-shim.js +11 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-shim.ts +11 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-jsx-runtime-shim.d.ts +5 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-jsx-runtime-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-jsx-runtime-shim.js +8 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-jsx-runtime-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-jsx-runtime-shim.ts +8 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-shim.d.ts +36 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-shim.js +36 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-shim.ts +36 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/runtime.d.ts +21 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/runtime.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/runtime.js +198 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/runtime.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/runtime.ts +228 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/styles.d.ts +2 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/styles.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/styles.js +324 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/styles.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/styles.ts +323 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/vendor.d.ts +4 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/vendor.d.ts.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/vendor.js +4 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/vendor.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/vendor.ts +3 -0
- package/dist/lib/types.d.ts +74 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +2 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/xpert-excalidraw-assistant.yaml +129 -0
- package/package.json +87 -0
- package/skills/index/SKILL.md +46 -0
- package/skills/index/agents/xpertai.yaml +6 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: index
|
|
3
|
+
description: "Use when an Agent needs to create, update, review, or manage Excalidraw drawings through the Xpert Excalidraw plugin, including Mermaid drafts, Excalidraw JSON scenes, Workbench review, versioning, import/export, and failure reporting."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Excalidraw Agent Drawing
|
|
7
|
+
|
|
8
|
+
Use this skill when a user asks to create, edit, review, convert, import, export, or manage an Excalidraw diagram in Xpert.
|
|
9
|
+
|
|
10
|
+
## Plugin Purpose
|
|
11
|
+
|
|
12
|
+
The Excalidraw plugin gives an Agent a structured drawing loop:
|
|
13
|
+
|
|
14
|
+
- Save reviewable Excalidraw drawing records.
|
|
15
|
+
- Store every meaningful change as a version.
|
|
16
|
+
- Use Mermaid for quick flow and architecture drafts.
|
|
17
|
+
- Use Excalidraw JSON elements when layout, styling, or freeform drawing needs precision.
|
|
18
|
+
- Let the user inspect, edit, convert, restore, import, export, approve, or archive the drawing in the Excalidraw Workbench.
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
1. Identify the drawing goal, audience, key nodes, relationships, and required precision.
|
|
23
|
+
2. For flows, state transitions, architecture flows, or simple dependency maps, prefer Mermaid and save it with `excalidraw_save_mermaid_draft`.
|
|
24
|
+
3. For precise styling, free layout, annotations, or updates to a user-edited canvas, use Excalidraw JSON through `excalidraw_create_drawing`, `excalidraw_save_scene_version`, or `excalidraw_patch_scene`.
|
|
25
|
+
4. Before updating an existing drawing, call `excalidraw_get_drawing` and preserve the current version unless the user asks for a replacement.
|
|
26
|
+
5. Use concise titles and `changeSummary` values so the Workbench version history stays readable.
|
|
27
|
+
6. If the request cannot be converted safely, call `excalidraw_report_failure` and explain the smallest useful next step.
|
|
28
|
+
|
|
29
|
+
## Tool Selection
|
|
30
|
+
|
|
31
|
+
- `excalidraw_create_drawing`: create a new managed drawing, optionally with an initial scene.
|
|
32
|
+
- `excalidraw_save_scene_version`: save a complete Excalidraw scene as a new version.
|
|
33
|
+
- `excalidraw_patch_scene`: save a targeted update to an existing scene.
|
|
34
|
+
- `excalidraw_save_mermaid_draft`: save Mermaid source for automatic Workbench preview and user review.
|
|
35
|
+
- `excalidraw_search_drawings`: find existing drawings.
|
|
36
|
+
- `excalidraw_get_drawing`: read the current version before edits.
|
|
37
|
+
- `excalidraw_update_drawing_status`: mark draft, reviewed, or archived after user confirmation.
|
|
38
|
+
- `excalidraw_report_failure`: record generation, conversion, or import/export failures.
|
|
39
|
+
|
|
40
|
+
## Workbench Contract
|
|
41
|
+
|
|
42
|
+
Do not claim that a drawing is finalized just because Mermaid or JSON was drafted. The Workbench is the human review surface. A user can convert Mermaid, edit the Excalidraw canvas, save versions, restore prior versions, and mark a drawing as reviewed.
|
|
43
|
+
|
|
44
|
+
## Response Style
|
|
45
|
+
|
|
46
|
+
Keep user responses concise. Say which path you used, what was saved, and what the user can review next in the Workbench.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Excalidraw Agent Drawing"
|
|
3
|
+
short_description: "Create, update, version, and review Excalidraw diagrams with Mermaid and Excalidraw JSON paths."
|
|
4
|
+
default_prompt: "Create an editable architecture diagram in Excalidraw"
|
|
5
|
+
policy:
|
|
6
|
+
allow_implicit_invocation: true
|