@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.
- package/.xpertai-plugin/plugin.json +118 -0
- package/README.md +5 -0
- package/assets/composerIcon.svg +5 -0
- package/assets/logo.svg +10 -0
- package/dist/docs/lucidchart-agent-skill.md +46 -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 +25 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +44 -0
- package/dist/lib/constants.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/entities/lucidchart-action-log.entity.d.ts +18 -0
- package/dist/lib/entities/lucidchart-action-log.entity.d.ts.map +1 -0
- package/dist/lib/entities/lucidchart-action-log.entity.js +69 -0
- package/dist/lib/entities/lucidchart-action-log.entity.js.map +1 -0
- package/dist/lib/entities/lucidchart-document-version.entity.d.ts +26 -0
- package/dist/lib/entities/lucidchart-document-version.entity.d.ts.map +1 -0
- package/dist/lib/entities/lucidchart-document-version.entity.js +102 -0
- package/dist/lib/entities/lucidchart-document-version.entity.js.map +1 -0
- package/dist/lib/entities/lucidchart-document.entity.d.ts +30 -0
- package/dist/lib/entities/lucidchart-document.entity.d.ts.map +1 -0
- package/dist/lib/entities/lucidchart-document.entity.js +118 -0
- package/dist/lib/entities/lucidchart-document.entity.js.map +1 -0
- package/dist/lib/lucidchart-view.provider.d.ts +14 -0
- package/dist/lib/lucidchart-view.provider.d.ts.map +1 -0
- package/dist/lib/lucidchart-view.provider.js +460 -0
- package/dist/lib/lucidchart-view.provider.js.map +1 -0
- package/dist/lib/lucidchart.middleware.d.ts +10 -0
- package/dist/lib/lucidchart.middleware.d.ts.map +1 -0
- package/dist/lib/lucidchart.middleware.js +193 -0
- package/dist/lib/lucidchart.middleware.js.map +1 -0
- package/dist/lib/lucidchart.plugin.d.ts +8 -0
- package/dist/lib/lucidchart.plugin.d.ts.map +1 -0
- package/dist/lib/lucidchart.plugin.js +27 -0
- package/dist/lib/lucidchart.plugin.js.map +1 -0
- package/dist/lib/lucidchart.service.d.ts +208 -0
- package/dist/lib/lucidchart.service.d.ts.map +1 -0
- package/dist/lib/lucidchart.service.js +548 -0
- package/dist/lib/lucidchart.service.js.map +1 -0
- package/dist/lib/lucidchart.templates.d.ts +3 -0
- package/dist/lib/lucidchart.templates.d.ts.map +1 -0
- package/dist/lib/lucidchart.templates.js +78 -0
- package/dist/lib/lucidchart.templates.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/app.css +0 -0
- package/dist/lib/remote-components/lucidchart-workbench/app.js +1245 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/i18n.d.ts +3 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/i18n.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/i18n.js +115 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/i18n.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/i18n.ts +169 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/main.tsx +1514 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.d.ts +3 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.js +4 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-client-shim.ts +4 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.d.ts +11 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.js +11 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-dom-shim.ts +11 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.d.ts +5 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.js +8 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-jsx-runtime-shim.ts +8 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.d.ts +36 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.js +36 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/react-shim.ts +36 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/runtime.d.ts +21 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/runtime.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/runtime.js +198 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/runtime.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/runtime.ts +228 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/styles.d.ts +2 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/styles.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/styles.js +383 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/styles.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/styles.ts +382 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/vendor.d.ts +4 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/vendor.d.ts.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/vendor.js +4 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/vendor.js.map +1 -0
- package/dist/lib/remote-components/lucidchart-workbench/src/vendor.ts +3 -0
- package/dist/lib/types.d.ts +87 -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-lucidchart-assistant.yaml +137 -0
- package/package.json +85 -0
- package/skills/index/SKILL.md +46 -0
- package/skills/index/agents/xpertai.yaml +6 -0
|
@@ -0,0 +1,118 @@
|
|
|
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": "XpertAI",
|
|
6
|
+
"homepage": "https://github.com/xpert-ai/xpert-plugins/tree/main/community/apps/lucidchart",
|
|
7
|
+
"repository": "https://github.com/xpert-ai/xpert-plugins/tree/main/community/apps/lucidchart",
|
|
8
|
+
"license": "AGPL-3.0",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"lucidchart",
|
|
11
|
+
"standard-import",
|
|
12
|
+
"diagram",
|
|
13
|
+
"mermaid",
|
|
14
|
+
"agent-drawing",
|
|
15
|
+
"workbench"
|
|
16
|
+
],
|
|
17
|
+
"skills": "./skills/",
|
|
18
|
+
"interface": {
|
|
19
|
+
"displayName": "Lucidchart",
|
|
20
|
+
"shortDescription": "Agent-managed Lucidchart drafts",
|
|
21
|
+
"longDescription": "Create, update, version, review, import, export, and register Agent-generated Lucidchart Standard Import drafts and external Lucid links. The plugin includes an installable Xpert skill, Assistant template, middleware tools, and a Lucidchart Workbench for human review.",
|
|
22
|
+
"developerName": "XpertAI",
|
|
23
|
+
"category": "Productivity",
|
|
24
|
+
"capabilities": [
|
|
25
|
+
"Interactive",
|
|
26
|
+
"Read",
|
|
27
|
+
"Write"
|
|
28
|
+
],
|
|
29
|
+
"websiteURL": "https://xpertai.cn",
|
|
30
|
+
"privacyPolicyURL": "https://xpertai.cn",
|
|
31
|
+
"termsOfServiceURL": "https://xpertai.cn",
|
|
32
|
+
"defaultPrompt": [
|
|
33
|
+
"Create a Lucidchart Standard Import architecture draft",
|
|
34
|
+
"Turn this flow into a Lucidchart draft",
|
|
35
|
+
"Register this Lucid document link for review"
|
|
36
|
+
],
|
|
37
|
+
"composerIcon": "./assets/composerIcon.svg",
|
|
38
|
+
"logo": "./assets/logo.svg",
|
|
39
|
+
"brandColor": "#2563EB",
|
|
40
|
+
"screenshots": []
|
|
41
|
+
},
|
|
42
|
+
"policy": {
|
|
43
|
+
"installation": "AVAILABLE",
|
|
44
|
+
"authentication": "ON_FIRST_USE",
|
|
45
|
+
"pluginSharing": true
|
|
46
|
+
},
|
|
47
|
+
"source": {
|
|
48
|
+
"source": "local",
|
|
49
|
+
"path": ".",
|
|
50
|
+
"url": "https://github.com/xpert-ai/xpert-plugins",
|
|
51
|
+
"sparsePath": "community/apps/lucidchart"
|
|
52
|
+
},
|
|
53
|
+
"assets": {
|
|
54
|
+
"composerIcon": "./assets/composerIcon.svg",
|
|
55
|
+
"logo": "./assets/logo.svg",
|
|
56
|
+
"screenshots": []
|
|
57
|
+
},
|
|
58
|
+
"targetApps": [
|
|
59
|
+
"data-xpert",
|
|
60
|
+
"xpert"
|
|
61
|
+
],
|
|
62
|
+
"targetAppMeta": {
|
|
63
|
+
"xpert": {
|
|
64
|
+
"types": [
|
|
65
|
+
"assistant-template",
|
|
66
|
+
"skill",
|
|
67
|
+
"app",
|
|
68
|
+
"xpertai-bundle"
|
|
69
|
+
],
|
|
70
|
+
"capabilities": [
|
|
71
|
+
"lucidchart",
|
|
72
|
+
"lucidchart-workbench",
|
|
73
|
+
"lucidchart-agent-drawing",
|
|
74
|
+
"lucidchart-assistant-template"
|
|
75
|
+
],
|
|
76
|
+
"marketplace": {
|
|
77
|
+
"contents": [
|
|
78
|
+
{
|
|
79
|
+
"type": "skill",
|
|
80
|
+
"name": "index",
|
|
81
|
+
"displayName": "Lucidchart Agent Drawing",
|
|
82
|
+
"description": "Workflow skill for Agent-managed Lucidchart Standard Import drafts, Mermaid drafts, Lucid links, and Workbench review.",
|
|
83
|
+
"tags": [
|
|
84
|
+
"skill",
|
|
85
|
+
"lucidchart",
|
|
86
|
+
"agent-drawing"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "assistant-template",
|
|
91
|
+
"name": "lucidchart-assistant",
|
|
92
|
+
"displayName": "Lucidchart Drawing Assistant",
|
|
93
|
+
"description": "Assistant template for Lucidchart draft workflows."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "app",
|
|
97
|
+
"name": "lucidchart",
|
|
98
|
+
"displayName": "Lucidchart",
|
|
99
|
+
"description": "Workbench and Agent middleware tools for Lucidchart drafts."
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"data-xpert": {
|
|
105
|
+
"types": [
|
|
106
|
+
"workbench-view",
|
|
107
|
+
"assistant-tool",
|
|
108
|
+
"business-app"
|
|
109
|
+
],
|
|
110
|
+
"capabilities": [
|
|
111
|
+
"lucidchart",
|
|
112
|
+
"lucidchart-workbench",
|
|
113
|
+
"lucidchart-agent-drawing",
|
|
114
|
+
"lucidchart-assistant-template"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Lucidchart Plugin
|
|
2
|
+
|
|
3
|
+
Agentic Lucidchart plugin for Xpert and data-xpert. It provides Agent middleware tools, a Lucidchart Workbench, Assistant templates, and an installable Xpert skill for managing Standard Import drafts, Mermaid drafts, and external Lucid links.
|
|
4
|
+
|
|
5
|
+
Installable skills live under `skills/` and are advertised through `.xpertai-plugin/plugin.json`.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<rect x="4" y="5" width="16" height="12" rx="2.5" stroke="currentColor" stroke-width="1.8"/>
|
|
3
|
+
<path d="M7.5 9h5M7.5 12h3.5M15 8.5l2.5 2.5-2.5 2.5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M7 20c2-2 4.5-2.6 7-1.4 1.4.7 2.6.5 4-.7" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
|
|
5
|
+
</svg>
|
package/assets/logo.svg
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" fill="none">
|
|
2
|
+
<rect width="256" height="256" rx="48" fill="#F8FAFC"/>
|
|
3
|
+
<rect x="44" y="52" width="168" height="124" rx="18" fill="#FFFFFF" stroke="#2563EB" stroke-width="9"/>
|
|
4
|
+
<path d="M76 92H132" stroke="#0F172A" stroke-width="10" stroke-linecap="round"/>
|
|
5
|
+
<path d="M76 124H112" stroke="#64748B" stroke-width="8" stroke-linecap="round"/>
|
|
6
|
+
<path d="M154 86L184 116L154 146" stroke="#14B8A6" stroke-width="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
<path d="M74 202C96 178 124 172 158 185C170 190 184 190 196 180" stroke="#2563EB" stroke-width="10" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="68" cy="202" r="10" fill="#14B8A6"/>
|
|
9
|
+
<circle cx="202" cy="178" r="10" fill="#14B8A6"/>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Lucidchart Agent Drawing Skill
|
|
2
|
+
|
|
3
|
+
Use this skill when an Agent needs to create, update, or manage reviewable Lucidchart document drafts.
|
|
4
|
+
|
|
5
|
+
## Core Boundary
|
|
6
|
+
|
|
7
|
+
- The plugin stores Lucid Standard Import `document.json` drafts, Mermaid drafts, version history, and external Lucid document/embed references.
|
|
8
|
+
- The plugin does not create a real Lucid document unless an external Lucid REST import/manual Lucid action has happened and a real Lucid document id or URL is registered.
|
|
9
|
+
- A `.lucid` import file is a ZIP package containing `document.json`; the Workbench exports/imports the `document.json` content for review.
|
|
10
|
+
|
|
11
|
+
## Planning
|
|
12
|
+
|
|
13
|
+
1. Identify the diagram type, audience, key nodes, relationships, and review criteria.
|
|
14
|
+
2. Use Lucid Standard Import JSON for diagrams that need to become Lucidchart documents.
|
|
15
|
+
3. Use Mermaid when the structure is still being drafted or the user supplied Mermaid source.
|
|
16
|
+
4. Register external Lucid document URLs or Embed URLs when the user provides a real Lucid document.
|
|
17
|
+
5. Read the current document before updating an existing user-edited draft.
|
|
18
|
+
|
|
19
|
+
## Standard Import Path
|
|
20
|
+
|
|
21
|
+
- Create a document with `lucidchart_create_document` or save a version with `lucidchart_save_standard_import_version`.
|
|
22
|
+
- Store serializable Standard Import `document.json` content in `standardImport`.
|
|
23
|
+
- Prefer stable page ids, shape ids, readable labels, and simple lines.
|
|
24
|
+
- Use `lucidchart_patch_standard_import` for small shallow updates after reading the current version.
|
|
25
|
+
|
|
26
|
+
## Mermaid Path
|
|
27
|
+
|
|
28
|
+
- Save Mermaid with `lucidchart_save_mermaid_draft`.
|
|
29
|
+
- Mermaid is an intermediate draft for review; it is not proof that a real Lucidchart document exists.
|
|
30
|
+
- Keep Mermaid concise and valid.
|
|
31
|
+
|
|
32
|
+
## External Lucid Path
|
|
33
|
+
|
|
34
|
+
- Use `lucidchart_register_external_document` when a real Lucid document id, Lucid document URL, or Lucid Embed URL is available.
|
|
35
|
+
- Explain that viewing/editing depends on Lucid permissions, cookies, or token-based embed configuration.
|
|
36
|
+
|
|
37
|
+
## Versioning
|
|
38
|
+
|
|
39
|
+
- Every meaningful Agent or Workbench change should become a version with a short `changeSummary`.
|
|
40
|
+
- `draft` means still being prepared or reviewed.
|
|
41
|
+
- `reviewed` means a human accepted the current version.
|
|
42
|
+
- `archived` means it is removed from the active workbench.
|
|
43
|
+
|
|
44
|
+
## Failure Reporting
|
|
45
|
+
|
|
46
|
+
Call `lucidchart_report_failure` when source material cannot be represented safely as Standard Import JSON, Mermaid, or an external Lucid reference.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { XpertPlugin } from '@xpert-ai/plugin-sdk';
|
|
3
|
+
declare const ConfigSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4
|
+
declare const plugin: XpertPlugin<z.infer<typeof ConfigSchema>>;
|
|
5
|
+
export default plugin;
|
|
6
|
+
export * from './lib/constants.js';
|
|
7
|
+
export * from './lib/types.js';
|
|
8
|
+
export * from './lib/entities/index.js';
|
|
9
|
+
export * from './lib/lucidchart.plugin.js';
|
|
10
|
+
export * from './lib/lucidchart.service.js';
|
|
11
|
+
export * from './lib/lucidchart.middleware.js';
|
|
12
|
+
export * from './lib/lucidchart-view.provider.js';
|
|
13
|
+
export * from './lib/lucidchart.templates.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAuBvD,QAAA,MAAM,YAAY,gDAAe,CAAA;AAEjC,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAuIrD,CAAA;AAED,eAAe,MAAM,CAAA;AACrB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { LUCIDCHART_AGENT_DRAWING_CAPABILITY, LUCIDCHART_FEATURE, LUCIDCHART_ICON, LUCIDCHART_MIDDLEWARE_NAME, LUCIDCHART_PROVIDER_KEY, LUCIDCHART_TEMPLATE_CAPABILITY, LUCIDCHART_TEMPLATE_PROVIDER_KEY, LUCIDCHART_WORKBENCH_CAPABILITY, LUCIDCHART_WORKBENCH_VIEW_KEY } from './lib/constants.js';
|
|
6
|
+
import { LucidchartPlugin } from './lib/lucidchart.plugin.js';
|
|
7
|
+
import { lucidchartTemplates } from './lib/lucidchart.templates.js';
|
|
8
|
+
const moduleDir = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const packageJson = JSON.parse(readFileSync(join(moduleDir, '../package.json'), 'utf8'));
|
|
10
|
+
const ConfigSchema = z.object({});
|
|
11
|
+
const plugin = {
|
|
12
|
+
meta: {
|
|
13
|
+
name: packageJson.name,
|
|
14
|
+
version: packageJson.version,
|
|
15
|
+
level: 'system',
|
|
16
|
+
targetApps: ['data-xpert', 'xpert'],
|
|
17
|
+
targetAppMeta: {
|
|
18
|
+
'data-xpert': {
|
|
19
|
+
types: ['workbench-view', 'assistant-tool', 'business-app'],
|
|
20
|
+
capabilities: [
|
|
21
|
+
LUCIDCHART_FEATURE,
|
|
22
|
+
LUCIDCHART_WORKBENCH_CAPABILITY,
|
|
23
|
+
LUCIDCHART_AGENT_DRAWING_CAPABILITY,
|
|
24
|
+
LUCIDCHART_TEMPLATE_CAPABILITY
|
|
25
|
+
],
|
|
26
|
+
marketplace: {
|
|
27
|
+
contents: [
|
|
28
|
+
{
|
|
29
|
+
type: 'app',
|
|
30
|
+
name: 'lucidchart',
|
|
31
|
+
displayName: 'Lucidchart',
|
|
32
|
+
description: 'Create, version, review, import, export, and register Agent-generated Lucidchart Standard Import drafts.',
|
|
33
|
+
icon: {
|
|
34
|
+
type: 'svg',
|
|
35
|
+
value: LUCIDCHART_ICON,
|
|
36
|
+
color: '#2563eb'
|
|
37
|
+
},
|
|
38
|
+
operations: [
|
|
39
|
+
{
|
|
40
|
+
name: 'create-lucidchart-drawings',
|
|
41
|
+
displayName: 'Create Lucidchart documents',
|
|
42
|
+
description: 'Create reviewable documents from Agent-generated Lucid Standard Import JSON, Mermaid drafts, or external Lucid links.',
|
|
43
|
+
access: 'write'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'save-lucidchart-versions',
|
|
47
|
+
displayName: 'Save document versions',
|
|
48
|
+
description: 'Persist Standard Import drafts, Mermaid sources, and Lucid document references as versioned records.',
|
|
49
|
+
access: 'write'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'review-lucidchart-workbench',
|
|
53
|
+
displayName: 'Review Lucidchart workbench',
|
|
54
|
+
description: 'Open the Workbench to inspect, restore, import, export, and register Lucidchart documents.',
|
|
55
|
+
access: 'read'
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'view',
|
|
61
|
+
name: LUCIDCHART_WORKBENCH_VIEW_KEY,
|
|
62
|
+
displayName: 'Lucidchart Workbench',
|
|
63
|
+
description: 'Workbench view for Standard Import drafts, Mermaid sources, Lucid embeds, and version history.'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: 'tool',
|
|
67
|
+
name: LUCIDCHART_MIDDLEWARE_NAME,
|
|
68
|
+
displayName: 'Lucidchart Agent Tools',
|
|
69
|
+
description: 'Assistant middleware tools for creating documents, saving Standard Import versions, saving Mermaid drafts, registering Lucid links, searching documents, and reporting failures.'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: 'assistant-template',
|
|
73
|
+
name: 'lucidchart-assistant',
|
|
74
|
+
displayName: 'Lucidchart Drawing Assistant Template',
|
|
75
|
+
description: 'Prebuilt assistant template for Agent-managed Lucidchart draft creation and review workflows.'
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
runtime: {
|
|
80
|
+
middlewareProviders: [LUCIDCHART_MIDDLEWARE_NAME],
|
|
81
|
+
viewProviders: [LUCIDCHART_PROVIDER_KEY],
|
|
82
|
+
templateProviders: [LUCIDCHART_TEMPLATE_PROVIDER_KEY]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
xpert: {
|
|
86
|
+
types: ['assistant-template', 'skill', 'app', 'xpertai-bundle'],
|
|
87
|
+
capabilities: [
|
|
88
|
+
LUCIDCHART_FEATURE,
|
|
89
|
+
LUCIDCHART_WORKBENCH_CAPABILITY,
|
|
90
|
+
LUCIDCHART_AGENT_DRAWING_CAPABILITY,
|
|
91
|
+
LUCIDCHART_TEMPLATE_CAPABILITY
|
|
92
|
+
],
|
|
93
|
+
marketplace: {
|
|
94
|
+
contents: [
|
|
95
|
+
{
|
|
96
|
+
type: 'skill',
|
|
97
|
+
name: 'index',
|
|
98
|
+
displayName: 'Lucidchart Agent Drawing',
|
|
99
|
+
description: 'Workflow skill for Agent-managed Lucidchart Standard Import drafts, Mermaid drafts, Lucid links, and Workbench review.',
|
|
100
|
+
tags: ['skill', 'lucidchart', 'agent-drawing']
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'assistant-template',
|
|
104
|
+
name: 'lucidchart-assistant',
|
|
105
|
+
displayName: 'Lucidchart Drawing Assistant',
|
|
106
|
+
description: 'Assistant template for Lucidchart draft workflows.'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
type: 'app',
|
|
110
|
+
name: 'lucidchart',
|
|
111
|
+
displayName: 'Lucidchart',
|
|
112
|
+
description: 'Workbench and Agent middleware tools for Lucidchart drafts.'
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
category: 'middleware',
|
|
119
|
+
icon: {
|
|
120
|
+
type: 'svg',
|
|
121
|
+
value: LUCIDCHART_ICON,
|
|
122
|
+
color: '#2563eb'
|
|
123
|
+
},
|
|
124
|
+
displayName: 'Lucidchart',
|
|
125
|
+
description: 'Agentic Lucidchart plugin for Standard Import draft generation, versioning, review, and Lucid document registration.',
|
|
126
|
+
keywords: ['lucidchart', 'diagram', 'whiteboard', 'mermaid', 'middleware', 'view-extension', 'assistant-template'],
|
|
127
|
+
author: 'XpertAI Team'
|
|
128
|
+
},
|
|
129
|
+
config: {
|
|
130
|
+
schema: ConfigSchema
|
|
131
|
+
},
|
|
132
|
+
templates: lucidchartTemplates,
|
|
133
|
+
register(ctx) {
|
|
134
|
+
ctx.logger.log('register lucidchart plugin');
|
|
135
|
+
return { module: LucidchartPlugin, global: true };
|
|
136
|
+
},
|
|
137
|
+
async onStart(ctx) {
|
|
138
|
+
ctx.logger.log('lucidchart plugin started');
|
|
139
|
+
},
|
|
140
|
+
async onStop(ctx) {
|
|
141
|
+
ctx.logger.log('lucidchart plugin stopped');
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
export default plugin;
|
|
145
|
+
export * from './lib/constants.js';
|
|
146
|
+
export * from './lib/types.js';
|
|
147
|
+
export * from './lib/entities/index.js';
|
|
148
|
+
export * from './lib/lucidchart.plugin.js';
|
|
149
|
+
export * from './lib/lucidchart.service.js';
|
|
150
|
+
export * from './lib/lucidchart.middleware.js';
|
|
151
|
+
export * from './lib/lucidchart-view.provider.js';
|
|
152
|
+
export * from './lib/lucidchart.templates.js';
|
|
153
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,S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CAAC,2BAA2B,CAAC,CAAA;IAC7C,CAAC;CACF,CAAA;AAED,eAAe,MAAM,CAAA;AACrB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const LUCIDCHART_PLUGIN_NAME = "@xpert-ai/plugin-lucidchart";
|
|
2
|
+
export declare const LUCIDCHART_PROVIDER_KEY = "lucidchart";
|
|
3
|
+
export declare const LUCIDCHART_MIDDLEWARE_NAME = "LucidchartMiddleware";
|
|
4
|
+
export declare const LUCIDCHART_TEMPLATE_PROVIDER_KEY = "lucidchartTemplates";
|
|
5
|
+
export declare const LUCIDCHART_FEATURE = "lucidchart";
|
|
6
|
+
export declare const LUCIDCHART_AGENT_DRAWING_CAPABILITY = "lucidchart-agent-drawing";
|
|
7
|
+
export declare const LUCIDCHART_WORKBENCH_CAPABILITY = "lucidchart-workbench";
|
|
8
|
+
export declare const LUCIDCHART_TEMPLATE_CAPABILITY = "lucidchart-assistant-template";
|
|
9
|
+
export declare const LUCIDCHART_WORKBENCH_VIEW_KEY = "lucidchart_workbench";
|
|
10
|
+
export declare const LUCIDCHART_REMOTE_ENTRY_KEY = "lucidchart-workbench";
|
|
11
|
+
export declare const AGENT_WORKBENCH_MAIN_SLOT = "agent.workbench.main";
|
|
12
|
+
export declare const AGENT_WORKBENCH_FIXED_SLOT = "agent.workbench.fixed";
|
|
13
|
+
export declare const ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
|
|
14
|
+
export declare const LUCIDCHART_CREATE_DOCUMENT_TOOL_NAME = "lucidchart_create_document";
|
|
15
|
+
export declare const LUCIDCHART_SAVE_STANDARD_IMPORT_VERSION_TOOL_NAME = "lucidchart_save_standard_import_version";
|
|
16
|
+
export declare const LUCIDCHART_PATCH_STANDARD_IMPORT_TOOL_NAME = "lucidchart_patch_standard_import";
|
|
17
|
+
export declare const LUCIDCHART_SAVE_MERMAID_DRAFT_TOOL_NAME = "lucidchart_save_mermaid_draft";
|
|
18
|
+
export declare const LUCIDCHART_REGISTER_EXTERNAL_DOCUMENT_TOOL_NAME = "lucidchart_register_external_document";
|
|
19
|
+
export declare const LUCIDCHART_SEARCH_DOCUMENTS_TOOL_NAME = "lucidchart_search_documents";
|
|
20
|
+
export declare const LUCIDCHART_GET_DOCUMENT_TOOL_NAME = "lucidchart_get_document";
|
|
21
|
+
export declare const LUCIDCHART_UPDATE_DOCUMENT_STATUS_TOOL_NAME = "lucidchart_update_document_status";
|
|
22
|
+
export declare const LUCIDCHART_REPORT_FAILURE_TOOL_NAME = "lucidchart_report_failure";
|
|
23
|
+
export declare const LUCIDCHART_MIDDLEWARE_TOOL_NAMES: readonly ["lucidchart_create_document", "lucidchart_save_standard_import_version", "lucidchart_patch_standard_import", "lucidchart_save_mermaid_draft", "lucidchart_register_external_document", "lucidchart_search_documents", "lucidchart_get_document", "lucidchart_update_document_status", "lucidchart_report_failure"];
|
|
24
|
+
export declare const LUCIDCHART_ICON = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"256\" height=\"256\" viewBox=\"0 0 256 256\" fill=\"none\">\n <rect width=\"256\" height=\"256\" rx=\"40\" fill=\"#F8FAFC\"/>\n <rect x=\"44\" y=\"52\" width=\"168\" height=\"124\" rx=\"18\" fill=\"#FFFFFF\" stroke=\"#2563EB\" stroke-width=\"9\"/>\n <path d=\"M76 92H132\" stroke=\"#0F172A\" stroke-width=\"10\" stroke-linecap=\"round\"/>\n <path d=\"M76 124H112\" stroke=\"#64748B\" stroke-width=\"8\" stroke-linecap=\"round\"/>\n <path d=\"M154 86L184 116L154 146\" stroke=\"#14B8A6\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M74 202C96 178 124 172 158 185C170 190 184 190 196 180\" stroke=\"#2563EB\" stroke-width=\"10\" stroke-linecap=\"round\"/>\n <circle cx=\"68\" cy=\"202\" r=\"10\" fill=\"#14B8A6\"/>\n <circle cx=\"202\" cy=\"178\" r=\"10\" fill=\"#14B8A6\"/>\n</svg>";
|
|
25
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,gCAAgC,CAAA;AACnE,eAAO,MAAM,uBAAuB,eAAe,CAAA;AACnD,eAAO,MAAM,0BAA0B,yBAAyB,CAAA;AAChE,eAAO,MAAM,gCAAgC,wBAAwB,CAAA;AACrE,eAAO,MAAM,kBAAkB,eAAe,CAAA;AAC9C,eAAO,MAAM,mCAAmC,6BAA6B,CAAA;AAC7E,eAAO,MAAM,+BAA+B,yBAAyB,CAAA;AACrE,eAAO,MAAM,8BAA8B,kCAAkC,CAAA;AAC7E,eAAO,MAAM,6BAA6B,yBAAyB,CAAA;AACnE,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,yBAAyB,yBAAyB,CAAA;AAC/D,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AACjE,eAAO,MAAM,mCAAmC,gCAAgC,CAAA;AAEhF,eAAO,MAAM,oCAAoC,+BAA+B,CAAA;AAChF,eAAO,MAAM,iDAAiD,4CAA4C,CAAA;AAC1G,eAAO,MAAM,0CAA0C,qCAAqC,CAAA;AAC5F,eAAO,MAAM,uCAAuC,kCAAkC,CAAA;AACtF,eAAO,MAAM,+CAA+C,0CAA0C,CAAA;AACtG,eAAO,MAAM,qCAAqC,gCAAgC,CAAA;AAClF,eAAO,MAAM,iCAAiC,4BAA4B,CAAA;AAC1E,eAAO,MAAM,2CAA2C,sCAAsC,CAAA;AAC9F,eAAO,MAAM,mCAAmC,8BAA8B,CAAA;AAE9E,eAAO,MAAM,gCAAgC,8TAUnC,CAAA;AAEV,eAAO,MAAM,eAAe,o3BASrB,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const LUCIDCHART_PLUGIN_NAME = '@xpert-ai/plugin-lucidchart';
|
|
2
|
+
export const LUCIDCHART_PROVIDER_KEY = 'lucidchart';
|
|
3
|
+
export const LUCIDCHART_MIDDLEWARE_NAME = 'LucidchartMiddleware';
|
|
4
|
+
export const LUCIDCHART_TEMPLATE_PROVIDER_KEY = 'lucidchartTemplates';
|
|
5
|
+
export const LUCIDCHART_FEATURE = 'lucidchart';
|
|
6
|
+
export const LUCIDCHART_AGENT_DRAWING_CAPABILITY = 'lucidchart-agent-drawing';
|
|
7
|
+
export const LUCIDCHART_WORKBENCH_CAPABILITY = 'lucidchart-workbench';
|
|
8
|
+
export const LUCIDCHART_TEMPLATE_CAPABILITY = 'lucidchart-assistant-template';
|
|
9
|
+
export const LUCIDCHART_WORKBENCH_VIEW_KEY = 'lucidchart_workbench';
|
|
10
|
+
export const LUCIDCHART_REMOTE_ENTRY_KEY = 'lucidchart-workbench';
|
|
11
|
+
export const AGENT_WORKBENCH_MAIN_SLOT = 'agent.workbench.main';
|
|
12
|
+
export const AGENT_WORKBENCH_FIXED_SLOT = 'agent.workbench.fixed';
|
|
13
|
+
export const ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = 'assistant.chat.send_message';
|
|
14
|
+
export const LUCIDCHART_CREATE_DOCUMENT_TOOL_NAME = 'lucidchart_create_document';
|
|
15
|
+
export const LUCIDCHART_SAVE_STANDARD_IMPORT_VERSION_TOOL_NAME = 'lucidchart_save_standard_import_version';
|
|
16
|
+
export const LUCIDCHART_PATCH_STANDARD_IMPORT_TOOL_NAME = 'lucidchart_patch_standard_import';
|
|
17
|
+
export const LUCIDCHART_SAVE_MERMAID_DRAFT_TOOL_NAME = 'lucidchart_save_mermaid_draft';
|
|
18
|
+
export const LUCIDCHART_REGISTER_EXTERNAL_DOCUMENT_TOOL_NAME = 'lucidchart_register_external_document';
|
|
19
|
+
export const LUCIDCHART_SEARCH_DOCUMENTS_TOOL_NAME = 'lucidchart_search_documents';
|
|
20
|
+
export const LUCIDCHART_GET_DOCUMENT_TOOL_NAME = 'lucidchart_get_document';
|
|
21
|
+
export const LUCIDCHART_UPDATE_DOCUMENT_STATUS_TOOL_NAME = 'lucidchart_update_document_status';
|
|
22
|
+
export const LUCIDCHART_REPORT_FAILURE_TOOL_NAME = 'lucidchart_report_failure';
|
|
23
|
+
export const LUCIDCHART_MIDDLEWARE_TOOL_NAMES = [
|
|
24
|
+
LUCIDCHART_CREATE_DOCUMENT_TOOL_NAME,
|
|
25
|
+
LUCIDCHART_SAVE_STANDARD_IMPORT_VERSION_TOOL_NAME,
|
|
26
|
+
LUCIDCHART_PATCH_STANDARD_IMPORT_TOOL_NAME,
|
|
27
|
+
LUCIDCHART_SAVE_MERMAID_DRAFT_TOOL_NAME,
|
|
28
|
+
LUCIDCHART_REGISTER_EXTERNAL_DOCUMENT_TOOL_NAME,
|
|
29
|
+
LUCIDCHART_SEARCH_DOCUMENTS_TOOL_NAME,
|
|
30
|
+
LUCIDCHART_GET_DOCUMENT_TOOL_NAME,
|
|
31
|
+
LUCIDCHART_UPDATE_DOCUMENT_STATUS_TOOL_NAME,
|
|
32
|
+
LUCIDCHART_REPORT_FAILURE_TOOL_NAME
|
|
33
|
+
];
|
|
34
|
+
export const LUCIDCHART_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" fill="none">
|
|
35
|
+
<rect width="256" height="256" rx="40" fill="#F8FAFC"/>
|
|
36
|
+
<rect x="44" y="52" width="168" height="124" rx="18" fill="#FFFFFF" stroke="#2563EB" stroke-width="9"/>
|
|
37
|
+
<path d="M76 92H132" stroke="#0F172A" stroke-width="10" stroke-linecap="round"/>
|
|
38
|
+
<path d="M76 124H112" stroke="#64748B" stroke-width="8" stroke-linecap="round"/>
|
|
39
|
+
<path d="M154 86L184 116L154 146" stroke="#14B8A6" stroke-width="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
40
|
+
<path d="M74 202C96 178 124 172 158 185C170 190 184 190 196 180" stroke="#2563EB" stroke-width="10" stroke-linecap="round"/>
|
|
41
|
+
<circle cx="68" cy="202" r="10" fill="#14B8A6"/>
|
|
42
|
+
<circle cx="202" cy="178" r="10" fill="#14B8A6"/>
|
|
43
|
+
</svg>`;
|
|
44
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,6BAA6B,CAAA;AACnE,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAA;AACnD,MAAM,CAAC,MAAM,0BAA0B,GAAG,sBAAsB,CAAA;AAChE,MAAM,CAAC,MAAM,gCAAgC,GAAG,qBAAqB,CAAA;AACrE,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAA;AAC9C,MAAM,CAAC,MAAM,mCAAmC,GAAG,0BAA0B,CAAA;AAC7E,MAAM,CAAC,MAAM,+BAA+B,GAAG,sBAAsB,CAAA;AACrE,MAAM,CAAC,MAAM,8BAA8B,GAAG,+BAA+B,CAAA;AAC7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,sBAAsB,CAAA;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAA;AACjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAA;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AACjE,MAAM,CAAC,MAAM,mCAAmC,GAAG,6BAA6B,CAAA;AAEhF,MAAM,CAAC,MAAM,oCAAoC,GAAG,4BAA4B,CAAA;AAChF,MAAM,CAAC,MAAM,iDAAiD,GAAG,yCAAyC,CAAA;AAC1G,MAAM,CAAC,MAAM,0CAA0C,GAAG,kCAAkC,CAAA;AAC5F,MAAM,CAAC,MAAM,uCAAuC,GAAG,+BAA+B,CAAA;AACtF,MAAM,CAAC,MAAM,+CAA+C,GAAG,uCAAuC,CAAA;AACtG,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAA;AAClF,MAAM,CAAC,MAAM,iCAAiC,GAAG,yBAAyB,CAAA;AAC1E,MAAM,CAAC,MAAM,2CAA2C,GAAG,mCAAmC,CAAA;AAC9F,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAA;AAE9E,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,oCAAoC;IACpC,iDAAiD;IACjD,0CAA0C;IAC1C,uCAAuC;IACvC,+CAA+C;IAC/C,qCAAqC;IACrC,iCAAiC;IACjC,2CAA2C;IAC3C,mCAAmC;CAC3B,CAAA;AAEV,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;OASxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { LucidchartActionType, LucidchartActorType } from '../types.js';
|
|
2
|
+
export declare class LucidchartActionLog {
|
|
3
|
+
id?: string;
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
organizationId?: string;
|
|
6
|
+
workspaceId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
documentId?: string;
|
|
9
|
+
versionId?: string;
|
|
10
|
+
action: LucidchartActionType;
|
|
11
|
+
actorType?: LucidchartActorType;
|
|
12
|
+
actorId?: string;
|
|
13
|
+
message?: string;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
snapshot?: unknown;
|
|
16
|
+
createdAt?: Date;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=lucidchart-action-log.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lucidchart-action-log.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/lucidchart-action-log.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAE5E,qBAGa,mBAAmB;IAE9B,EAAE,CAAC,EAAE,MAAM,CAAA;IAIX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,MAAM,EAAG,oBAAoB,CAAA;IAG7B,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAG/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,YAAY,CAAC,EAAE,MAAM,CAAA;IAGrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAGlB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
|
+
let LucidchartActionLog = class LucidchartActionLog {
|
|
4
|
+
};
|
|
5
|
+
__decorate([
|
|
6
|
+
PrimaryGeneratedColumn('uuid'),
|
|
7
|
+
__metadata("design:type", String)
|
|
8
|
+
], LucidchartActionLog.prototype, "id", void 0);
|
|
9
|
+
__decorate([
|
|
10
|
+
Index(),
|
|
11
|
+
Column({ type: 'varchar', nullable: true }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], LucidchartActionLog.prototype, "tenantId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Index(),
|
|
16
|
+
Column({ type: 'varchar', nullable: true }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], LucidchartActionLog.prototype, "organizationId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], LucidchartActionLog.prototype, "workspaceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'varchar', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], LucidchartActionLog.prototype, "projectId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ type: 'varchar', nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], LucidchartActionLog.prototype, "documentId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'varchar', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], LucidchartActionLog.prototype, "versionId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ type: 'varchar' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], LucidchartActionLog.prototype, "action", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'varchar', default: 'system' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], LucidchartActionLog.prototype, "actorType", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'varchar', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], LucidchartActionLog.prototype, "actorId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'text', nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], LucidchartActionLog.prototype, "message", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Column({ type: 'text', nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], LucidchartActionLog.prototype, "errorMessage", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], LucidchartActionLog.prototype, "snapshot", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
CreateDateColumn({ type: 'timestamptz' }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], LucidchartActionLog.prototype, "createdAt", void 0);
|
|
63
|
+
LucidchartActionLog = __decorate([
|
|
64
|
+
Entity('plugin_lucidchart_action_log'),
|
|
65
|
+
Index(['tenantId', 'organizationId', 'documentId', 'createdAt']),
|
|
66
|
+
Index(['tenantId', 'organizationId', 'projectId', 'createdAt'])
|
|
67
|
+
], LucidchartActionLog);
|
|
68
|
+
export { LucidchartActionLog };
|
|
69
|
+
//# sourceMappingURL=lucidchart-action-log.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lucidchart-action-log.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/lucidchart-action-log.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAMlF,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CA4C/B,CAAA;AA1CC;IADC,sBAAsB,CAAC,MAAM,CAAC;;+CACpB;AAIX;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC3B;AAIjB;IAFC,KAAK,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K,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;GACnD,mBAAmB,CA4C/B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LucidchartProduct, LucidchartVersionSource } from '../types.js';
|
|
2
|
+
export declare class LucidchartDocumentVersion {
|
|
3
|
+
id?: string;
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
organizationId?: string;
|
|
6
|
+
workspaceId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
versionNumber: number;
|
|
10
|
+
sourceType?: LucidchartVersionSource;
|
|
11
|
+
standardImport?: Record<string, unknown> | null;
|
|
12
|
+
mermaidSource?: string | null;
|
|
13
|
+
product?: LucidchartProduct;
|
|
14
|
+
lucidDocumentId?: string | null;
|
|
15
|
+
lucidDocumentUrl?: string | null;
|
|
16
|
+
embedUrl?: string | null;
|
|
17
|
+
embedId?: string | null;
|
|
18
|
+
previewUrl?: string | null;
|
|
19
|
+
importFileName?: string | null;
|
|
20
|
+
changeSummary?: string;
|
|
21
|
+
createdById?: string;
|
|
22
|
+
assistantId?: string;
|
|
23
|
+
conversationId?: string;
|
|
24
|
+
createdAt?: Date;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=lucidchart-document-version.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lucidchart-document-version.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/lucidchart-document-version.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAE7E,qBAGa,yBAAyB;IAEpC,EAAE,CAAC,EAAE,MAAM,CAAA;IAIX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAIlB,UAAU,EAAG,MAAM,CAAA;IAGnB,aAAa,EAAG,MAAM,CAAA;IAGtB,UAAU,CAAC,EAAE,uBAAuB,CAAA;IAGpC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAG/C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG7B,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAG3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAGhC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAGxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAGvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG1B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG9B,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
|