@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,382 @@
|
|
|
1
|
+
export function injectStyles() {
|
|
2
|
+
if (document.getElementById('lucidchart-workbench-styles')) {
|
|
3
|
+
return
|
|
4
|
+
}
|
|
5
|
+
const style = document.createElement('style')
|
|
6
|
+
style.id = 'lucidchart-workbench-styles'
|
|
7
|
+
style.textContent = `
|
|
8
|
+
html, body, #root {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
min-height: 100%;
|
|
12
|
+
margin: 0;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
background: var(--xps-background);
|
|
15
|
+
color: var(--xps-foreground);
|
|
16
|
+
font-family: var(--xps-font-sans);
|
|
17
|
+
}
|
|
18
|
+
* { box-sizing: border-box; }
|
|
19
|
+
button, input, textarea { font: inherit; }
|
|
20
|
+
.lw-shell {
|
|
21
|
+
--lw-rail-width: var(--xps-sidebar-rail-width, 44px);
|
|
22
|
+
--lw-panel-header-height: 2.5rem;
|
|
23
|
+
--lw-left-width: minmax(var(--lw-rail-width), clamp(240px, 20vw, 300px));
|
|
24
|
+
--lw-right-width: var(--lw-rail-width);
|
|
25
|
+
--lw-right-panel-width: min(360px, calc(100vw - var(--lw-rail-width) - 96px));
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100vh;
|
|
28
|
+
min-height: 720px;
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-template-columns: var(--lw-left-width) minmax(0, 1fr) var(--lw-right-width);
|
|
31
|
+
background: var(--xps-background);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
transition: grid-template-columns 160ms ease;
|
|
34
|
+
}
|
|
35
|
+
.lw-shell.left-collapsed { --lw-left-width: var(--lw-rail-width); }
|
|
36
|
+
.lw-shell.right-collapsed { --lw-right-width: var(--lw-rail-width); }
|
|
37
|
+
.lw-sidebar, .lw-inspector {
|
|
38
|
+
min-width: 0;
|
|
39
|
+
height: 100vh;
|
|
40
|
+
min-height: 720px;
|
|
41
|
+
}
|
|
42
|
+
.lw-inspector.xps-sidebar {
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 30;
|
|
45
|
+
overflow: visible;
|
|
46
|
+
}
|
|
47
|
+
.lw-inspector[aria-expanded="true"] > .xps-sidebar-header,
|
|
48
|
+
.lw-inspector[aria-expanded="true"] > .xps-sidebar-content {
|
|
49
|
+
position: absolute;
|
|
50
|
+
right: 0;
|
|
51
|
+
width: var(--lw-right-panel-width);
|
|
52
|
+
max-width: calc(100vw - 16px);
|
|
53
|
+
z-index: 31;
|
|
54
|
+
background: var(--xps-card);
|
|
55
|
+
border-left: 1px solid var(--xps-border);
|
|
56
|
+
border-right: 1px solid var(--xps-border);
|
|
57
|
+
box-shadow: -12px 0 28px color-mix(in srgb, var(--xps-foreground) 14%, transparent);
|
|
58
|
+
}
|
|
59
|
+
.lw-inspector[aria-expanded="true"] > .xps-sidebar-header {
|
|
60
|
+
top: 0;
|
|
61
|
+
min-height: var(--lw-panel-header-height);
|
|
62
|
+
border-bottom: 1px solid var(--xps-border);
|
|
63
|
+
}
|
|
64
|
+
.lw-inspector[aria-expanded="true"] > .xps-sidebar-content {
|
|
65
|
+
top: var(--lw-panel-header-height);
|
|
66
|
+
bottom: 0;
|
|
67
|
+
min-height: 0;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
}
|
|
70
|
+
.lw-main {
|
|
71
|
+
min-width: 0;
|
|
72
|
+
height: 100vh;
|
|
73
|
+
min-height: 720px;
|
|
74
|
+
display: grid;
|
|
75
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
76
|
+
background: var(--xps-background);
|
|
77
|
+
}
|
|
78
|
+
.lw-toolbar {
|
|
79
|
+
display: grid;
|
|
80
|
+
grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: 8px 10px;
|
|
83
|
+
min-height: 48px;
|
|
84
|
+
padding: 8px 12px;
|
|
85
|
+
background: var(--xps-card);
|
|
86
|
+
border-bottom: 1px solid var(--xps-border);
|
|
87
|
+
min-width: 0;
|
|
88
|
+
overflow: visible;
|
|
89
|
+
}
|
|
90
|
+
.lw-toolbar-title { min-width: 0; }
|
|
91
|
+
.lw-toolbar-actions {
|
|
92
|
+
min-width: 0;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: 8px;
|
|
97
|
+
}
|
|
98
|
+
.lw-toolbar-actions .xps-button,
|
|
99
|
+
.lw-toolbar-actions .xps-badge { flex: 0 0 auto; }
|
|
100
|
+
.lw-title-input { width: 100%; }
|
|
101
|
+
.lw-button-icon {
|
|
102
|
+
width: 1rem;
|
|
103
|
+
height: 1rem;
|
|
104
|
+
flex: 0 0 auto;
|
|
105
|
+
stroke-width: 2;
|
|
106
|
+
}
|
|
107
|
+
.lw-list {
|
|
108
|
+
flex: 1 1 auto;
|
|
109
|
+
min-height: 0;
|
|
110
|
+
padding: 6px;
|
|
111
|
+
}
|
|
112
|
+
.lw-item-title {
|
|
113
|
+
display: block;
|
|
114
|
+
width: 100%;
|
|
115
|
+
color: var(--xps-foreground);
|
|
116
|
+
font-weight: 650;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
text-overflow: ellipsis;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
}
|
|
121
|
+
.lw-item-meta, .lw-muted {
|
|
122
|
+
color: var(--xps-muted-foreground);
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
text-overflow: ellipsis;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
}
|
|
129
|
+
.lw-sidebar-controls {
|
|
130
|
+
padding: 8px;
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
gap: 8px;
|
|
134
|
+
border-bottom: 1px solid var(--xps-border);
|
|
135
|
+
}
|
|
136
|
+
.lw-stage {
|
|
137
|
+
min-height: 0;
|
|
138
|
+
height: 100%;
|
|
139
|
+
display: grid;
|
|
140
|
+
grid-template-rows: minmax(0, 1fr);
|
|
141
|
+
background: var(--xps-background);
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
}
|
|
144
|
+
.lw-editor-pane {
|
|
145
|
+
min-height: 0;
|
|
146
|
+
height: 100%;
|
|
147
|
+
display: grid;
|
|
148
|
+
grid-template-rows: auto minmax(160px, 34vh) minmax(0, 1fr);
|
|
149
|
+
gap: 10px;
|
|
150
|
+
padding: 12px;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
}
|
|
153
|
+
.lw-editor-header {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
gap: 8px;
|
|
157
|
+
min-width: 0;
|
|
158
|
+
}
|
|
159
|
+
.lw-editor-header .xps-badge:last-child {
|
|
160
|
+
margin-left: auto;
|
|
161
|
+
}
|
|
162
|
+
.lw-visual-frame {
|
|
163
|
+
min-height: 0;
|
|
164
|
+
border: 1px solid var(--xps-border);
|
|
165
|
+
border-radius: var(--xps-radius);
|
|
166
|
+
background: var(--xps-card);
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
position: relative;
|
|
169
|
+
}
|
|
170
|
+
.lw-visual-frame iframe,
|
|
171
|
+
.lw-visual-frame img {
|
|
172
|
+
width: 100%;
|
|
173
|
+
height: 100%;
|
|
174
|
+
border: 0;
|
|
175
|
+
display: block;
|
|
176
|
+
background: #fff;
|
|
177
|
+
}
|
|
178
|
+
.lw-visual-frame img {
|
|
179
|
+
object-fit: contain;
|
|
180
|
+
background: var(--xps-background);
|
|
181
|
+
}
|
|
182
|
+
.lw-embed-empty {
|
|
183
|
+
height: 100%;
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
justify-content: center;
|
|
187
|
+
padding: 16px;
|
|
188
|
+
color: var(--xps-muted-foreground);
|
|
189
|
+
text-align: center;
|
|
190
|
+
}
|
|
191
|
+
.lw-standard-preview {
|
|
192
|
+
width: 100%;
|
|
193
|
+
height: 100%;
|
|
194
|
+
min-height: 0;
|
|
195
|
+
overflow: auto;
|
|
196
|
+
background:
|
|
197
|
+
linear-gradient(color-mix(in srgb, var(--xps-border) 36%, transparent) 1px, transparent 1px),
|
|
198
|
+
linear-gradient(90deg, color-mix(in srgb, var(--xps-border) 36%, transparent) 1px, transparent 1px),
|
|
199
|
+
var(--xps-background);
|
|
200
|
+
background-size: 24px 24px;
|
|
201
|
+
}
|
|
202
|
+
.lw-standard-preview svg {
|
|
203
|
+
display: block;
|
|
204
|
+
width: 100%;
|
|
205
|
+
min-width: 680px;
|
|
206
|
+
height: 100%;
|
|
207
|
+
min-height: 260px;
|
|
208
|
+
}
|
|
209
|
+
.lw-preview-shape {
|
|
210
|
+
filter: drop-shadow(0 5px 14px color-mix(in srgb, var(--xps-foreground) 10%, transparent));
|
|
211
|
+
}
|
|
212
|
+
.lw-preview-label {
|
|
213
|
+
fill: var(--xps-foreground);
|
|
214
|
+
font-family: var(--xps-font-sans);
|
|
215
|
+
font-size: 12px;
|
|
216
|
+
font-weight: 600;
|
|
217
|
+
pointer-events: none;
|
|
218
|
+
}
|
|
219
|
+
.lw-preview-line-label {
|
|
220
|
+
fill: var(--xps-muted-foreground);
|
|
221
|
+
font-family: var(--xps-font-sans);
|
|
222
|
+
font-size: 11px;
|
|
223
|
+
font-weight: 600;
|
|
224
|
+
paint-order: stroke;
|
|
225
|
+
stroke: var(--xps-background);
|
|
226
|
+
stroke-width: 4px;
|
|
227
|
+
stroke-linejoin: round;
|
|
228
|
+
pointer-events: none;
|
|
229
|
+
}
|
|
230
|
+
.lw-json-editor.xps-textarea {
|
|
231
|
+
min-height: 0;
|
|
232
|
+
height: 100%;
|
|
233
|
+
resize: none;
|
|
234
|
+
font-family: var(--xps-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
|
|
235
|
+
font-size: 12px;
|
|
236
|
+
line-height: 1.55;
|
|
237
|
+
tab-size: 2;
|
|
238
|
+
white-space: pre;
|
|
239
|
+
overflow: auto;
|
|
240
|
+
}
|
|
241
|
+
.lw-status {
|
|
242
|
+
margin-left: auto;
|
|
243
|
+
flex: 0 0 auto;
|
|
244
|
+
}
|
|
245
|
+
.lw-sidebar-title-truncate {
|
|
246
|
+
flex: 1 1 auto;
|
|
247
|
+
overflow: hidden;
|
|
248
|
+
text-overflow: ellipsis;
|
|
249
|
+
white-space: nowrap;
|
|
250
|
+
}
|
|
251
|
+
.lw-sidebar-trigger-right { margin-left: auto; }
|
|
252
|
+
.lw-inspector-actions {
|
|
253
|
+
min-width: 0;
|
|
254
|
+
flex: 0 0 auto;
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
gap: 6px;
|
|
258
|
+
}
|
|
259
|
+
.lw-inspector-actions .xps-button,
|
|
260
|
+
.lw-inspector-actions .xps-badge {
|
|
261
|
+
flex: 0 0 auto;
|
|
262
|
+
white-space: nowrap;
|
|
263
|
+
}
|
|
264
|
+
.lw-inspector-scroll {
|
|
265
|
+
min-height: 0;
|
|
266
|
+
height: 100%;
|
|
267
|
+
flex: 1 1 auto;
|
|
268
|
+
}
|
|
269
|
+
.lw-inspector-stack {
|
|
270
|
+
padding: 10px 12px 10px 10px;
|
|
271
|
+
display: flex;
|
|
272
|
+
flex-direction: column;
|
|
273
|
+
gap: 10px;
|
|
274
|
+
min-width: 0;
|
|
275
|
+
max-width: 100%;
|
|
276
|
+
}
|
|
277
|
+
.lw-section {
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
gap: 8px;
|
|
281
|
+
min-width: 0;
|
|
282
|
+
max-width: 100%;
|
|
283
|
+
}
|
|
284
|
+
.lw-section-title {
|
|
285
|
+
font-size: 13px;
|
|
286
|
+
font-weight: 700;
|
|
287
|
+
color: var(--xps-foreground);
|
|
288
|
+
}
|
|
289
|
+
.lw-inline-actions {
|
|
290
|
+
display: flex;
|
|
291
|
+
flex-wrap: wrap;
|
|
292
|
+
gap: 8px;
|
|
293
|
+
}
|
|
294
|
+
.lw-version {
|
|
295
|
+
border: 1px solid var(--xps-border);
|
|
296
|
+
border-radius: var(--xps-radius);
|
|
297
|
+
background: color-mix(in srgb, var(--xps-card) 94%, var(--xps-muted) 6%);
|
|
298
|
+
padding: 8px;
|
|
299
|
+
display: grid;
|
|
300
|
+
grid-template-columns: minmax(0, 1fr) var(--xps-control-height);
|
|
301
|
+
align-items: center;
|
|
302
|
+
gap: 8px;
|
|
303
|
+
width: 100%;
|
|
304
|
+
min-width: 0;
|
|
305
|
+
overflow: hidden;
|
|
306
|
+
}
|
|
307
|
+
.lw-version > div {
|
|
308
|
+
min-width: 0;
|
|
309
|
+
overflow: hidden;
|
|
310
|
+
}
|
|
311
|
+
.lw-version > div > div {
|
|
312
|
+
min-width: 0;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
text-overflow: ellipsis;
|
|
315
|
+
white-space: nowrap;
|
|
316
|
+
}
|
|
317
|
+
.lw-version-action.xps-button {
|
|
318
|
+
width: var(--xps-control-height);
|
|
319
|
+
height: var(--xps-control-height);
|
|
320
|
+
padding: 0;
|
|
321
|
+
justify-self: end;
|
|
322
|
+
}
|
|
323
|
+
.lw-inspector .xps-input,
|
|
324
|
+
.lw-inspector .xps-textarea,
|
|
325
|
+
.lw-inspector .xps-scroll-area,
|
|
326
|
+
.lw-inspector .xps-scroll-area-viewport {
|
|
327
|
+
min-width: 0;
|
|
328
|
+
max-width: 100%;
|
|
329
|
+
}
|
|
330
|
+
.lw-inspector .xps-textarea {
|
|
331
|
+
overflow-x: hidden;
|
|
332
|
+
overflow-wrap: anywhere;
|
|
333
|
+
word-break: break-word;
|
|
334
|
+
}
|
|
335
|
+
.lw-inspector .lw-muted {
|
|
336
|
+
overflow: visible;
|
|
337
|
+
text-overflow: clip;
|
|
338
|
+
white-space: normal;
|
|
339
|
+
overflow-wrap: anywhere;
|
|
340
|
+
}
|
|
341
|
+
.lw-empty {
|
|
342
|
+
height: 100%;
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
justify-content: center;
|
|
346
|
+
color: var(--xps-muted-foreground);
|
|
347
|
+
}
|
|
348
|
+
.lw-hidden-file { display: none; }
|
|
349
|
+
@media (max-width: 1040px) {
|
|
350
|
+
.lw-shell,
|
|
351
|
+
.lw-shell.left-collapsed,
|
|
352
|
+
.lw-shell.right-collapsed {
|
|
353
|
+
--lw-left-width: var(--lw-rail-width);
|
|
354
|
+
--lw-right-width: var(--lw-rail-width);
|
|
355
|
+
--lw-right-panel-width: min(320px, calc(100vw - var(--lw-rail-width) - 32px));
|
|
356
|
+
grid-template-columns: var(--lw-left-width) minmax(0, 1fr) var(--lw-right-width);
|
|
357
|
+
}
|
|
358
|
+
.lw-sidebar .xps-sidebar-content,
|
|
359
|
+
.lw-inspector-scroll { display: none; }
|
|
360
|
+
.lw-inspector[aria-expanded="true"] .lw-inspector-scroll { display: block; }
|
|
361
|
+
.lw-sidebar .xps-sidebar-header .xps-sidebar-title,
|
|
362
|
+
.lw-sidebar .xps-sidebar-header .xps-badge,
|
|
363
|
+
.lw-sidebar .xps-sidebar-header .xps-button:not(.xps-sidebar-trigger),
|
|
364
|
+
.lw-inspector[aria-expanded="false"] .xps-sidebar-header .xps-sidebar-title,
|
|
365
|
+
.lw-inspector[aria-expanded="false"] .xps-sidebar-header .xps-badge,
|
|
366
|
+
.lw-inspector[aria-expanded="false"] .xps-sidebar-header .xps-button:not(.xps-sidebar-trigger) {
|
|
367
|
+
display: none;
|
|
368
|
+
}
|
|
369
|
+
.xps-sidebar-rail { display: flex; }
|
|
370
|
+
}
|
|
371
|
+
@media (max-width: 920px) {
|
|
372
|
+
.lw-toolbar {
|
|
373
|
+
grid-template-columns: minmax(0, 1fr);
|
|
374
|
+
}
|
|
375
|
+
.lw-editor-pane {
|
|
376
|
+
grid-template-rows: auto minmax(120px, 28vh) minmax(0, 1fr);
|
|
377
|
+
}
|
|
378
|
+
.lw-status { margin-left: 0; }
|
|
379
|
+
}
|
|
380
|
+
`
|
|
381
|
+
document.head.appendChild(style)
|
|
382
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.d.ts","sourceRoot":"","sources":["../../../../../src/lib/remote-components/lucidchart-workbench/src/vendor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,KAAwB,CAAA;AAC1C,eAAO,MAAM,QAAQ,KAA2B,CAAA;AAChD,eAAO,MAAM,CAAC,KAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.js","sourceRoot":"","sources":["../../../../../src/lib/remote-components/lucidchart-workbench/src/vendor.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAI,MAAc,CAAC,KAAK,CAAA;AAC1C,MAAM,CAAC,MAAM,QAAQ,GAAI,MAAc,CAAC,QAAQ,CAAA;AAChD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export type LucidchartDocumentStatus = 'draft' | 'reviewed' | 'archived';
|
|
2
|
+
export type LucidchartDocumentKind = 'diagram' | 'flowchart' | 'architecture' | 'process' | 'wireframe' | 'orgchart' | 'network' | 'other';
|
|
3
|
+
export type LucidchartProduct = 'lucidchart' | 'lucidspark';
|
|
4
|
+
export type LucidchartVersionSource = 'agent_standard_import' | 'agent_patch' | 'agent_mermaid' | 'workbench' | 'workbench_mermaid' | 'import' | 'external_lucid' | 'restore';
|
|
5
|
+
export type LucidchartActorType = 'agent' | 'user' | 'system';
|
|
6
|
+
export type LucidchartActionType = 'document_created' | 'version_saved' | 'standard_import_patched' | 'mermaid_draft_saved' | 'external_document_registered' | 'status_updated' | 'version_restored' | 'document_archived' | 'failure_reported';
|
|
7
|
+
export interface LucidchartScope {
|
|
8
|
+
tenantId: string;
|
|
9
|
+
organizationId?: string | null;
|
|
10
|
+
workspaceId?: string | null;
|
|
11
|
+
projectId?: string | null;
|
|
12
|
+
userId?: string | null;
|
|
13
|
+
assistantId?: string | null;
|
|
14
|
+
conversationId?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface LucidchartDocumentContentInput {
|
|
17
|
+
standardImport?: Record<string, unknown> | null;
|
|
18
|
+
mermaidSource?: string | null;
|
|
19
|
+
lucidDocumentId?: string | null;
|
|
20
|
+
lucidDocumentUrl?: string | null;
|
|
21
|
+
embedUrl?: string | null;
|
|
22
|
+
embedId?: string | null;
|
|
23
|
+
previewUrl?: string | null;
|
|
24
|
+
product?: LucidchartProduct;
|
|
25
|
+
importFileName?: string | null;
|
|
26
|
+
}
|
|
27
|
+
export interface CreateLucidchartDocumentInput extends LucidchartDocumentContentInput {
|
|
28
|
+
title: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
kind?: LucidchartDocumentKind;
|
|
31
|
+
tags?: string[];
|
|
32
|
+
source?: string;
|
|
33
|
+
changeSummary?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SaveLucidchartStandardImportVersionInput extends LucidchartDocumentContentInput {
|
|
36
|
+
documentId: string;
|
|
37
|
+
sourceType?: LucidchartVersionSource;
|
|
38
|
+
changeSummary?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PatchLucidchartStandardImportInput extends LucidchartDocumentContentInput {
|
|
41
|
+
documentId: string;
|
|
42
|
+
standardImportPatch?: Record<string, unknown> | null;
|
|
43
|
+
merge?: boolean;
|
|
44
|
+
changeSummary?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface SaveLucidchartMermaidDraftInput {
|
|
47
|
+
documentId?: string;
|
|
48
|
+
title?: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
kind?: LucidchartDocumentKind;
|
|
51
|
+
mermaidSource: string;
|
|
52
|
+
changeSummary?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface RegisterLucidchartExternalDocumentInput {
|
|
55
|
+
documentId?: string;
|
|
56
|
+
title?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
kind?: LucidchartDocumentKind;
|
|
59
|
+
lucidDocumentId?: string;
|
|
60
|
+
lucidDocumentUrl?: string;
|
|
61
|
+
embedUrl?: string;
|
|
62
|
+
embedId?: string;
|
|
63
|
+
previewUrl?: string;
|
|
64
|
+
product?: LucidchartProduct;
|
|
65
|
+
changeSummary?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface SearchLucidchartDocumentsInput {
|
|
68
|
+
status?: LucidchartDocumentStatus;
|
|
69
|
+
kind?: LucidchartDocumentKind;
|
|
70
|
+
search?: string;
|
|
71
|
+
page?: number;
|
|
72
|
+
pageSize?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface UpdateLucidchartDocumentStatusInput {
|
|
75
|
+
documentId: string;
|
|
76
|
+
status: LucidchartDocumentStatus;
|
|
77
|
+
reason?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface ReportLucidchartFailureInput {
|
|
80
|
+
documentId?: string;
|
|
81
|
+
versionId?: string;
|
|
82
|
+
operation: string;
|
|
83
|
+
errorMessage: string;
|
|
84
|
+
recoverable?: boolean;
|
|
85
|
+
evidence?: unknown;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAA;AACxE,MAAM,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,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,wBAAwB,CAAA;IACjC,IAAI,CAAC,EAAE,sBAAsB,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,mCAAmC;IAClD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,wBAAwB,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
team:
|
|
2
|
+
name: lucidchart-assistant
|
|
3
|
+
type: agent
|
|
4
|
+
title: Lucidchart 绘图助手
|
|
5
|
+
description: 面向 Lucidchart Standard Import 草稿、Mermaid 草稿和外部 Lucid 文档登记的 Agentic Drawing 助手
|
|
6
|
+
avatar:
|
|
7
|
+
emoji:
|
|
8
|
+
id: art
|
|
9
|
+
background: rgb(219, 234, 254)
|
|
10
|
+
options:
|
|
11
|
+
templateKey: lucidchart-assistant
|
|
12
|
+
dataXpert:
|
|
13
|
+
managedBy: data-xpert
|
|
14
|
+
templateKey: lucidchart-assistant
|
|
15
|
+
assistantKind: business-assistant
|
|
16
|
+
businessDomain: lucidchart
|
|
17
|
+
requiredPlugin: '@xpert-ai/plugin-lucidchart'
|
|
18
|
+
requiredPlugins:
|
|
19
|
+
- '@xpert-ai/plugin-lucidchart'
|
|
20
|
+
requiredCapabilities:
|
|
21
|
+
- lucidchart
|
|
22
|
+
- lucidchart-workbench
|
|
23
|
+
- lucidchart-agent-drawing
|
|
24
|
+
agentConfig:
|
|
25
|
+
stateVariables:
|
|
26
|
+
- name: currentDocumentId
|
|
27
|
+
type: string
|
|
28
|
+
default: ""
|
|
29
|
+
description: Current Lucidchart plugin document id selected in the workbench
|
|
30
|
+
operation: null
|
|
31
|
+
- name: currentVersionId
|
|
32
|
+
type: string
|
|
33
|
+
default: ""
|
|
34
|
+
description: Current Lucidchart version id selected in the workbench
|
|
35
|
+
operation: null
|
|
36
|
+
recursionLimit: 10000
|
|
37
|
+
features:
|
|
38
|
+
sandbox:
|
|
39
|
+
enabled: true
|
|
40
|
+
provider: docker-sandbox
|
|
41
|
+
version: "1"
|
|
42
|
+
agent:
|
|
43
|
+
key: Agent_Lucidchart
|
|
44
|
+
copilotModel:
|
|
45
|
+
referencedId: null
|
|
46
|
+
modelType: llm
|
|
47
|
+
model: qwen3.6-plus
|
|
48
|
+
options:
|
|
49
|
+
context_size: 1000000
|
|
50
|
+
temperature: 0.2
|
|
51
|
+
maxRetries: 6
|
|
52
|
+
max_tokens: 8192
|
|
53
|
+
top_p: 0.95
|
|
54
|
+
knowledgebases: []
|
|
55
|
+
toolsets: []
|
|
56
|
+
tags: []
|
|
57
|
+
nodes:
|
|
58
|
+
- type: agent
|
|
59
|
+
key: Agent_Lucidchart
|
|
60
|
+
position:
|
|
61
|
+
x: 860
|
|
62
|
+
y: 20
|
|
63
|
+
entity:
|
|
64
|
+
key: Agent_Lucidchart
|
|
65
|
+
name: lucidchart-assistant
|
|
66
|
+
title: Lucidchart 绘图助手
|
|
67
|
+
description: 面向 Lucidchart Standard Import 草稿、Mermaid 草稿和外部 Lucid 文档登记的 Agentic Drawing 助手
|
|
68
|
+
avatar:
|
|
69
|
+
emoji:
|
|
70
|
+
id: art
|
|
71
|
+
background: rgb(219, 234, 254)
|
|
72
|
+
prompt: >
|
|
73
|
+
You are Lucidchart Drawing Assistant, a data-xpert business assistant for
|
|
74
|
+
creating and managing reviewable Lucidchart document drafts.
|
|
75
|
+
|
|
76
|
+
Use Lucidchart middleware tools as the system of record. Do not claim that a
|
|
77
|
+
real Lucid document was created unless you have a real Lucid document URL,
|
|
78
|
+
Lucid document id, or Lucid Embed URL and saved it with
|
|
79
|
+
lucidchart_register_external_document. The plugin stores reviewable drafts,
|
|
80
|
+
Standard Import JSON, Mermaid source, external Lucid links, and version
|
|
81
|
+
history.
|
|
82
|
+
|
|
83
|
+
Drawing workflow:
|
|
84
|
+
1. Clarify the drawing goal, audience, key nodes, relationships, and any visual
|
|
85
|
+
constraints when the request is ambiguous.
|
|
86
|
+
2. Prefer Lucid Standard Import document.json when the user needs a draft that
|
|
87
|
+
can be imported into Lucidchart through Lucid's Standard Import REST flow.
|
|
88
|
+
Save it with lucidchart_create_document or
|
|
89
|
+
lucidchart_save_standard_import_version.
|
|
90
|
+
3. Use lucidchart_save_mermaid_draft when the drawing is still a flow/structure
|
|
91
|
+
sketch or when Mermaid is the clearest intermediate representation.
|
|
92
|
+
4. If the user provides an existing Lucid URL, embed URL, or imported Lucid
|
|
93
|
+
document id, call lucidchart_register_external_document.
|
|
94
|
+
5. When updating an existing plugin document, call lucidchart_get_document first,
|
|
95
|
+
preserve user edits, then call lucidchart_patch_standard_import for small
|
|
96
|
+
JSON updates or lucidchart_save_standard_import_version for a full
|
|
97
|
+
replacement.
|
|
98
|
+
6. Use clear titles, short change summaries, and tags when useful.
|
|
99
|
+
7. If source material cannot be represented safely, call
|
|
100
|
+
lucidchart_report_failure and explain the smallest useful next step.
|
|
101
|
+
|
|
102
|
+
Standard Import rules:
|
|
103
|
+
- Store serializable JSON intended to be used as Lucid Standard Import
|
|
104
|
+
document.json content.
|
|
105
|
+
- Prefer simple pages, shapes, lines, labels, and stable ids.
|
|
106
|
+
- Keep diagrams readable and avoid inventing missing domain facts.
|
|
107
|
+
- Mention that the Workbench exports document.json; .lucid ZIP packaging and
|
|
108
|
+
real Lucid document creation require an external Lucid REST import flow or
|
|
109
|
+
manual Lucid import.
|
|
110
|
+
|
|
111
|
+
Mermaid rules:
|
|
112
|
+
- Keep Mermaid concise, syntactically valid, and readable.
|
|
113
|
+
- Use Mermaid as an intermediate draft, not as proof that a real Lucidchart
|
|
114
|
+
document exists.
|
|
115
|
+
|
|
116
|
+
Prefer concise Chinese responses for end users unless they ask otherwise.
|
|
117
|
+
collaboratorNames: []
|
|
118
|
+
toolsetIds: []
|
|
119
|
+
knowledgebaseIds: []
|
|
120
|
+
hash: lucidchart-agent-v1
|
|
121
|
+
- type: workflow
|
|
122
|
+
key: Middleware_Lucidchart
|
|
123
|
+
position:
|
|
124
|
+
x: 1160
|
|
125
|
+
y: 332
|
|
126
|
+
entity:
|
|
127
|
+
type: middleware
|
|
128
|
+
key: Middleware_Lucidchart
|
|
129
|
+
title: Lucidchart Agent Tools
|
|
130
|
+
provider: LucidchartMiddleware
|
|
131
|
+
required: true
|
|
132
|
+
hash: lucidchart-middleware-v1
|
|
133
|
+
connections:
|
|
134
|
+
- type: workflow
|
|
135
|
+
key: Agent_Lucidchart/Middleware_Lucidchart
|
|
136
|
+
from: Agent_Lucidchart
|
|
137
|
+
to: Middleware_Lucidchart
|