@xpert-ai/plugin-lucidchart 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.
Files changed (100) hide show
  1. package/.xpertai-plugin/plugin.json +118 -0
  2. package/README.md +5 -0
  3. package/assets/composerIcon.svg +5 -0
  4. package/assets/logo.svg +10 -0
  5. package/dist/docs/lucidchart-agent-skill.md +46 -0
  6. package/dist/index.d.ts +14 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +153 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/lib/constants.d.ts +25 -0
  11. package/dist/lib/constants.d.ts.map +1 -0
  12. package/dist/lib/constants.js +44 -0
  13. package/dist/lib/constants.js.map +1 -0
  14. package/dist/lib/entities/index.d.ts +4 -0
  15. package/dist/lib/entities/index.d.ts.map +1 -0
  16. package/dist/lib/entities/index.js +4 -0
  17. package/dist/lib/entities/index.js.map +1 -0
  18. package/dist/lib/entities/lucidchart-action-log.entity.d.ts +18 -0
  19. package/dist/lib/entities/lucidchart-action-log.entity.d.ts.map +1 -0
  20. package/dist/lib/entities/lucidchart-action-log.entity.js +69 -0
  21. package/dist/lib/entities/lucidchart-action-log.entity.js.map +1 -0
  22. package/dist/lib/entities/lucidchart-document-version.entity.d.ts +26 -0
  23. package/dist/lib/entities/lucidchart-document-version.entity.d.ts.map +1 -0
  24. package/dist/lib/entities/lucidchart-document-version.entity.js +102 -0
  25. package/dist/lib/entities/lucidchart-document-version.entity.js.map +1 -0
  26. package/dist/lib/entities/lucidchart-document.entity.d.ts +30 -0
  27. package/dist/lib/entities/lucidchart-document.entity.d.ts.map +1 -0
  28. package/dist/lib/entities/lucidchart-document.entity.js +118 -0
  29. package/dist/lib/entities/lucidchart-document.entity.js.map +1 -0
  30. package/dist/lib/lucidchart-view.provider.d.ts +14 -0
  31. package/dist/lib/lucidchart-view.provider.d.ts.map +1 -0
  32. package/dist/lib/lucidchart-view.provider.js +460 -0
  33. package/dist/lib/lucidchart-view.provider.js.map +1 -0
  34. package/dist/lib/lucidchart.middleware.d.ts +10 -0
  35. package/dist/lib/lucidchart.middleware.d.ts.map +1 -0
  36. package/dist/lib/lucidchart.middleware.js +193 -0
  37. package/dist/lib/lucidchart.middleware.js.map +1 -0
  38. package/dist/lib/lucidchart.plugin.d.ts +8 -0
  39. package/dist/lib/lucidchart.plugin.d.ts.map +1 -0
  40. package/dist/lib/lucidchart.plugin.js +27 -0
  41. package/dist/lib/lucidchart.plugin.js.map +1 -0
  42. package/dist/lib/lucidchart.service.d.ts +208 -0
  43. package/dist/lib/lucidchart.service.d.ts.map +1 -0
  44. package/dist/lib/lucidchart.service.js +548 -0
  45. package/dist/lib/lucidchart.service.js.map +1 -0
  46. package/dist/lib/lucidchart.templates.d.ts +3 -0
  47. package/dist/lib/lucidchart.templates.d.ts.map +1 -0
  48. package/dist/lib/lucidchart.templates.js +78 -0
  49. package/dist/lib/lucidchart.templates.js.map +1 -0
  50. package/dist/lib/remote-components/lucidchart-workbench/app.css +0 -0
  51. package/dist/lib/remote-components/lucidchart-workbench/app.js +1245 -0
  52. package/dist/lib/remote-components/lucidchart-workbench/src/i18n.d.ts +3 -0
  53. package/dist/lib/remote-components/lucidchart-workbench/src/i18n.d.ts.map +1 -0
  54. package/dist/lib/remote-components/lucidchart-workbench/src/i18n.js +115 -0
  55. package/dist/lib/remote-components/lucidchart-workbench/src/i18n.js.map +1 -0
  56. package/dist/lib/remote-components/lucidchart-workbench/src/i18n.ts +169 -0
  57. package/dist/lib/remote-components/lucidchart-workbench/src/main.tsx +1514 -0
  58. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.d.ts +3 -0
  59. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.d.ts.map +1 -0
  60. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.js +4 -0
  61. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.js.map +1 -0
  62. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.ts +4 -0
  63. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.d.ts +11 -0
  64. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.d.ts.map +1 -0
  65. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.js +11 -0
  66. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.js.map +1 -0
  67. package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.ts +11 -0
  68. package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.d.ts +5 -0
  69. package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.d.ts.map +1 -0
  70. package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.js +8 -0
  71. package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.js.map +1 -0
  72. package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.ts +8 -0
  73. package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.d.ts +36 -0
  74. package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.d.ts.map +1 -0
  75. package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.js +36 -0
  76. package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.js.map +1 -0
  77. package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.ts +36 -0
  78. package/dist/lib/remote-components/lucidchart-workbench/src/runtime.d.ts +21 -0
  79. package/dist/lib/remote-components/lucidchart-workbench/src/runtime.d.ts.map +1 -0
  80. package/dist/lib/remote-components/lucidchart-workbench/src/runtime.js +198 -0
  81. package/dist/lib/remote-components/lucidchart-workbench/src/runtime.js.map +1 -0
  82. package/dist/lib/remote-components/lucidchart-workbench/src/runtime.ts +228 -0
  83. package/dist/lib/remote-components/lucidchart-workbench/src/styles.d.ts +2 -0
  84. package/dist/lib/remote-components/lucidchart-workbench/src/styles.d.ts.map +1 -0
  85. package/dist/lib/remote-components/lucidchart-workbench/src/styles.js +383 -0
  86. package/dist/lib/remote-components/lucidchart-workbench/src/styles.js.map +1 -0
  87. package/dist/lib/remote-components/lucidchart-workbench/src/styles.ts +382 -0
  88. package/dist/lib/remote-components/lucidchart-workbench/src/vendor.d.ts +4 -0
  89. package/dist/lib/remote-components/lucidchart-workbench/src/vendor.d.ts.map +1 -0
  90. package/dist/lib/remote-components/lucidchart-workbench/src/vendor.js +4 -0
  91. package/dist/lib/remote-components/lucidchart-workbench/src/vendor.js.map +1 -0
  92. package/dist/lib/remote-components/lucidchart-workbench/src/vendor.ts +3 -0
  93. package/dist/lib/types.d.ts +87 -0
  94. package/dist/lib/types.d.ts.map +1 -0
  95. package/dist/lib/types.js +2 -0
  96. package/dist/lib/types.js.map +1 -0
  97. package/dist/xpert-lucidchart-assistant.yaml +137 -0
  98. package/package.json +85 -0
  99. package/skills/index/SKILL.md +46 -0
  100. package/skills/index/agents/xpertai.yaml +6 -0
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@xpert-ai/plugin-lucidchart",
3
+ "version": "0.1.0",
4
+ "description": "Lucidchart app plugin for agent-created Standard Import drafts, Lucid document references, reviewable versions, and a workbench.",
5
+ "author": {
6
+ "name": "XpertAI",
7
+ "url": "https://xpertai.cn"
8
+ },
9
+ "license": "AGPL-3.0",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/xpert-ai/xpert-plugins.git",
13
+ "directory": "xpertai/apps/lucidchart"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/xpert-ai/xpert-plugins/issues"
17
+ },
18
+ "type": "module",
19
+ "main": "./dist/index.js",
20
+ "module": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ "./package.json": "./package.json",
24
+ ".": {
25
+ "@xpert-plugins-starter/source": "./src/index.ts",
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js",
28
+ "default": "./dist/index.js"
29
+ }
30
+ },
31
+ "files": [
32
+ "dist",
33
+ ".xpertai-plugin",
34
+ "assets",
35
+ "skills",
36
+ "README.md",
37
+ "!**/*.tsbuildinfo"
38
+ ],
39
+ "xpert": {
40
+ "plugin": {
41
+ "level": "system"
42
+ }
43
+ },
44
+ "dependencies": {
45
+ "tslib": "^2.3.0",
46
+ "@xpert-ai/plugin-shadcn-ui": "0.1.0"
47
+ },
48
+ "peerDependencies": {
49
+ "@langchain/core": ">=0.3.0",
50
+ "@nestjs/common": "^11.1.6",
51
+ "@nestjs/core": "^11.1.6",
52
+ "@nestjs/typeorm": "^11.0.0",
53
+ "@xpert-ai/contracts": "^3.10.1",
54
+ "@xpert-ai/plugin-sdk": "^3.10.1",
55
+ "react": ">=18",
56
+ "react-dom": ">=18",
57
+ "typeorm": "^0.3.24",
58
+ "zod": "3.25.67"
59
+ },
60
+ "devDependencies": {
61
+ "@langchain/core": "0.3.72",
62
+ "@nestjs/common": "^11.1.6",
63
+ "@nestjs/core": "^11.1.6",
64
+ "@nestjs/typeorm": "^11.0.0",
65
+ "@types/node": "^20.19.9",
66
+ "@xpert-ai/contracts": "3.10.1",
67
+ "@xpert-ai/plugin-sdk": "^3.10.1",
68
+ "esbuild": "^0.27.0",
69
+ "react": "^18.3.1",
70
+ "react-dom": "^18.3.1",
71
+ "reflect-metadata": "^0.2.2",
72
+ "typeorm": "^0.3.24",
73
+ "typescript": "^5.9.2",
74
+ "zod": "3.25.67"
75
+ },
76
+ "publishConfig": {
77
+ "access": "public"
78
+ },
79
+ "scripts": {
80
+ "build": "node scripts/build-remote-components.mjs && tsc -p tsconfig.lib.json && node scripts/copy-assets.mjs",
81
+ "lint": "echo \"(todo) add lint\"",
82
+ "test": "tsc -p tsconfig.spec.json --noEmit && node scripts/build-remote-components.mjs --check",
83
+ "typecheck": "tsc -p tsconfig.spec.json --noEmit && node scripts/build-remote-components.mjs --check"
84
+ }
85
+ }
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: index
3
+ description: "Use when an Agent needs to create, update, review, or manage Lucidchart drafts through the Xpert Lucidchart plugin, including Lucid Standard Import document.json, Mermaid drafts, external Lucid links, versioning, import/export, and failure reporting."
4
+ ---
5
+
6
+ # Lucidchart Agent Drawing
7
+
8
+ Use this skill when a user asks to create, edit, review, import, export, or manage a Lucidchart-oriented diagram draft in Xpert.
9
+
10
+ ## Plugin Purpose
11
+
12
+ The Lucidchart plugin gives an Agent a reviewable draft loop without pretending to control Lucid's proprietary editor directly:
13
+
14
+ - Save Lucid Standard Import `document.json` drafts.
15
+ - Save Mermaid drafts while the structure is still being refined.
16
+ - Register real Lucid document IDs, Lucid URLs, or Embed URLs when they exist.
17
+ - Preserve versions, status, logs, and failure evidence for Workbench review.
18
+
19
+ ## Workflow
20
+
21
+ 1. Identify whether the user needs a Lucid-importable draft, a conceptual flow draft, or a reference to an existing Lucid document.
22
+ 2. Prefer Lucid Standard Import JSON when the structure is ready to become a Lucidchart document.
23
+ 3. Use Mermaid with `lucidchart_save_mermaid_draft` when the diagram is still being explored or when a flow is easier to communicate first.
24
+ 4. Use `lucidchart_register_external_document` only when a real Lucid document ID, document URL, or Embed URL is available.
25
+ 5. Before updating an existing plugin document, call `lucidchart_get_document` and preserve user-edited Standard Import content.
26
+ 6. If a requested diagram cannot be safely represented as Standard Import JSON, Mermaid, or a real Lucid reference, call `lucidchart_report_failure`.
27
+
28
+ ## Tool Selection
29
+
30
+ - `lucidchart_create_document`: create a managed Lucidchart plugin document record.
31
+ - `lucidchart_save_standard_import_version`: save complete Lucid Standard Import JSON as a version.
32
+ - `lucidchart_patch_standard_import`: patch or replace current Standard Import JSON after reading it.
33
+ - `lucidchart_save_mermaid_draft`: save Mermaid source for Workbench review.
34
+ - `lucidchart_register_external_document`: register an actual Lucid document or embed link.
35
+ - `lucidchart_search_documents`: find existing managed documents.
36
+ - `lucidchart_get_document`: read current version, links, versions, and logs before edits.
37
+ - `lucidchart_update_document_status`: mark draft, reviewed, or archived after user confirmation.
38
+ - `lucidchart_report_failure`: record Standard Import, Mermaid, link, or import/export failures.
39
+
40
+ ## Lucid Boundary
41
+
42
+ Do not claim that a real Lucidchart file exists unless a real Lucid document link or embed has been registered. Standard Import JSON is a draft artifact that can be imported into Lucid through an external Lucid import flow.
43
+
44
+ ## Response Style
45
+
46
+ Keep responses concise. Tell the user whether you saved Standard Import JSON, Mermaid, or a Lucid link, and what they can review next in the Workbench.
@@ -0,0 +1,6 @@
1
+ interface:
2
+ display_name: "Lucidchart Agent Drawing"
3
+ short_description: "Create, update, version, and review Lucidchart drafts with Standard Import JSON, Mermaid, and Lucid links."
4
+ default_prompt: "Create a Lucidchart Standard Import architecture draft"
5
+ policy:
6
+ allow_implicit_invocation: true