digipair 0.0.1
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/assets/default/avatar.png +0 -0
- package/assets/default/chat.json +18 -0
- package/assets/default/config.json +27 -0
- package/assets/default/conversation.json +26 -0
- package/assets/default/history.json +23 -0
- package/assets/digipairs/admin/avatar.png +0 -0
- package/assets/digipairs/admin/boost-add-reasoning.json +54 -0
- package/assets/digipairs/admin/boost-duplicate-reasoning.json +62 -0
- package/assets/digipairs/admin/boost-plan-reasoning.json +46 -0
- package/assets/digipairs/admin/chat.json +18 -0
- package/assets/digipairs/admin/config.json +34 -0
- package/assets/digipairs/admin/conversation.json +26 -0
- package/assets/digipairs/admin/digipair-list.json +465 -0
- package/assets/digipairs/admin/history.json +23 -0
- package/assets/digipairs/admin/json-editor.json +221 -0
- package/assets/digipairs/admin/reasoning-editor.json +225 -0
- package/assets/digipairs/admin/reasoning-list.json +762 -0
- package/assets/digipairs/common/avatar.png +0 -0
- package/assets/digipairs/common/boosts.json +18 -0
- package/assets/digipairs/common/config.json +10 -0
- package/assets/digipairs/common/metadata.json +18 -0
- package/assets/digipairs/planning.json +0 -0
- package/assets/domains.json +1 -0
- package/bin/digipair.js +3 -0
- package/package.json +43 -0
- package/src/app/app.controller.js +55 -0
- package/src/app/app.controller.js.map +1 -0
- package/src/app/app.module.js +18 -0
- package/src/app/app.module.js.map +1 -0
- package/src/app/app.service.js +63 -0
- package/src/app/app.service.js.map +1 -0
- package/src/main.js +65 -0
- package/src/main.js.map +1 -0
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Digipair list",
|
|
3
|
+
"description": "Digipair list",
|
|
4
|
+
"library": "@digipair/skill-web",
|
|
5
|
+
"element": "page",
|
|
6
|
+
"metadata": {},
|
|
7
|
+
"properties": {
|
|
8
|
+
"body": [
|
|
9
|
+
{
|
|
10
|
+
"library": "@digipair/skill-web-spectrum",
|
|
11
|
+
"element": "sp-theme",
|
|
12
|
+
"pins": [
|
|
13
|
+
{
|
|
14
|
+
"library": "web",
|
|
15
|
+
"element": "section",
|
|
16
|
+
"pins": [
|
|
17
|
+
{
|
|
18
|
+
"library": "web",
|
|
19
|
+
"element": "section",
|
|
20
|
+
"pins": [
|
|
21
|
+
{
|
|
22
|
+
"library": "@digipair/skill-web-spectrum",
|
|
23
|
+
"element": "sp-top-nav",
|
|
24
|
+
"pins": [
|
|
25
|
+
{
|
|
26
|
+
"library": "@digipair/skill-web-spectrum",
|
|
27
|
+
"element": "sp-top-nav-item",
|
|
28
|
+
"pins": [
|
|
29
|
+
{
|
|
30
|
+
"library": "web",
|
|
31
|
+
"element": "img",
|
|
32
|
+
"properties": {
|
|
33
|
+
"src": "https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1718985104/Fichier_1_lilpuw.jpg?_s=public-apps",
|
|
34
|
+
"style": "height: 20px;"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"properties": { "href": "https://www.digipair.ai" }
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"library": "@digipair/skill-web-spectrum",
|
|
42
|
+
"element": "sp-top-nav-item",
|
|
43
|
+
"properties": { "textContent": "Home" }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"library": "@digipair/skill-web-spectrum",
|
|
47
|
+
"element": "sp-action-menu",
|
|
48
|
+
"pins": [
|
|
49
|
+
{
|
|
50
|
+
"library": "@digipair/skill-web-spectrum",
|
|
51
|
+
"element": "sp-menu-item",
|
|
52
|
+
"properties": { "textContent": "Add a digipair" },
|
|
53
|
+
"events": {
|
|
54
|
+
"click": [
|
|
55
|
+
{
|
|
56
|
+
"library": "@digipair/skill-web-interact",
|
|
57
|
+
"element": "execute",
|
|
58
|
+
"properties": {
|
|
59
|
+
"name": "openResult",
|
|
60
|
+
"selector": "digipair-chatbot"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"style": "margin-inline-start: auto;",
|
|
69
|
+
"quiet": true,
|
|
70
|
+
"size": "s"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"library": "@digipair/skill-web-spectrum",
|
|
77
|
+
"element": "sp-table",
|
|
78
|
+
"pins": [
|
|
79
|
+
{
|
|
80
|
+
"library": "@digipair/skill-web-spectrum",
|
|
81
|
+
"element": "sp-table-head",
|
|
82
|
+
"pins": [
|
|
83
|
+
{
|
|
84
|
+
"library": "@digipair/skill-web-spectrum",
|
|
85
|
+
"element": "sp-table-head-cell",
|
|
86
|
+
"properties": { "textContent": "Digipair" }
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"library": "@digipair/skill-web-spectrum",
|
|
90
|
+
"element": "sp-table-head-cell",
|
|
91
|
+
"properties": { "textContent": "Nom" }
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"library": "@digipair/skill-web-spectrum",
|
|
95
|
+
"element": "sp-table-head-cell",
|
|
96
|
+
"properties": { "textContent": "Description" }
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"library": "@digipair/skill-web-spectrum",
|
|
100
|
+
"element": "sp-table-head-cell",
|
|
101
|
+
"properties": { "textContent": "" }
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"library": "@digipair/skill-web-spectrum",
|
|
107
|
+
"element": "sp-table-body",
|
|
108
|
+
"pins": [
|
|
109
|
+
{
|
|
110
|
+
"library": "@digipair/skill-web-spectrum",
|
|
111
|
+
"element": "sp-table-row",
|
|
112
|
+
"pins": [
|
|
113
|
+
{
|
|
114
|
+
"library": "@digipair/skill-web-spectrum",
|
|
115
|
+
"element": "sp-table-cell",
|
|
116
|
+
"properties": { "textContent": "{{item.id}}" }
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"library": "@digipair/skill-web-spectrum",
|
|
120
|
+
"element": "sp-table-cell",
|
|
121
|
+
"properties": { "textContent": "{{item.name}}" }
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"library": "@digipair/skill-web-spectrum",
|
|
125
|
+
"element": "sp-table-cell",
|
|
126
|
+
"properties": { "textContent": "{{item.description}}" }
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"library": "@digipair/skill-web-spectrum",
|
|
130
|
+
"element": "sp-table-cell",
|
|
131
|
+
"pins": [
|
|
132
|
+
{
|
|
133
|
+
"library": "@digipair/skill-web-spectrum",
|
|
134
|
+
"element": "sp-action-group",
|
|
135
|
+
"pins": [
|
|
136
|
+
{
|
|
137
|
+
"library": "@digipair/skill-web-spectrum",
|
|
138
|
+
"element": "sp-action-button",
|
|
139
|
+
"pins": [
|
|
140
|
+
{
|
|
141
|
+
"library": "@digipair/skill-web-font-awesome",
|
|
142
|
+
"element": "digipair-font-awesome-icon",
|
|
143
|
+
"properties": {
|
|
144
|
+
"name": "pen-to-square",
|
|
145
|
+
"category": "regular"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"events": {
|
|
150
|
+
"click": [
|
|
151
|
+
{
|
|
152
|
+
"library": "@digipair/skill-web-interact",
|
|
153
|
+
"element": "goTo",
|
|
154
|
+
"properties": { "url": "/reasoning-list/{{item.id}}" }
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"properties": { "size": "s", "dir": "rtl" }
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"conditions": { "each": "EVALUATE:variables.digipairs" }
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"library": "web",
|
|
173
|
+
"element": "section",
|
|
174
|
+
"properties": {
|
|
175
|
+
"style": "margin: 40px 0 20px 0;",
|
|
176
|
+
"textContent": "Planning"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"library": "@digipair/skill-web-spectrum",
|
|
181
|
+
"element": "sp-table",
|
|
182
|
+
"pins": [
|
|
183
|
+
{
|
|
184
|
+
"library": "@digipair/skill-web-spectrum",
|
|
185
|
+
"element": "sp-table-head",
|
|
186
|
+
"pins": [
|
|
187
|
+
{
|
|
188
|
+
"library": "@digipair/skill-web-spectrum",
|
|
189
|
+
"element": "sp-table-head-cell",
|
|
190
|
+
"properties": { "textContent": "Digipair" }
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"library": "@digipair/skill-web-spectrum",
|
|
194
|
+
"element": "sp-table-head-cell",
|
|
195
|
+
"properties": { "textContent": "Task" }
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"library": "@digipair/skill-web-spectrum",
|
|
199
|
+
"element": "sp-table-head-cell",
|
|
200
|
+
"properties": { "textContent": "Time" }
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"library": "@digipair/skill-web-spectrum",
|
|
204
|
+
"element": "sp-table-head-cell",
|
|
205
|
+
"properties": { "textContent": "State" }
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"library": "@digipair/skill-web-spectrum",
|
|
209
|
+
"element": "sp-table-head-cell",
|
|
210
|
+
"properties": { "textContent": "" }
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"library": "@digipair/skill-web-spectrum",
|
|
216
|
+
"element": "sp-table-body",
|
|
217
|
+
"pins": [
|
|
218
|
+
{
|
|
219
|
+
"library": "@digipair/skill-web-spectrum",
|
|
220
|
+
"element": "sp-table-row",
|
|
221
|
+
"pins": [
|
|
222
|
+
{
|
|
223
|
+
"library": "@digipair/skill-web-spectrum",
|
|
224
|
+
"element": "sp-table-cell",
|
|
225
|
+
"properties": { "textContent": "{{item.digipair}}" }
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"library": "@digipair/skill-web-spectrum",
|
|
229
|
+
"element": "sp-table-cell",
|
|
230
|
+
"properties": { "textContent": "{{item.reasoning}}" }
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"library": "@digipair/skill-web-spectrum",
|
|
234
|
+
"element": "sp-table-cell",
|
|
235
|
+
"properties": { "textContent": "{{item.time}}" }
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"library": "@digipair/skill-web-spectrum",
|
|
239
|
+
"element": "sp-table-cell",
|
|
240
|
+
"pins": [
|
|
241
|
+
{
|
|
242
|
+
"library": "@digipair/skill-web-font-awesome",
|
|
243
|
+
"element": "digipair-font-awesome-icon",
|
|
244
|
+
"properties": {
|
|
245
|
+
"name": "EVALUATE:if item.enabled then \"check\" else \"ban\"",
|
|
246
|
+
"category": "solid"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"library": "@digipair/skill-web-spectrum",
|
|
253
|
+
"element": "sp-table-cell",
|
|
254
|
+
"pins": [
|
|
255
|
+
{
|
|
256
|
+
"library": "@digipair/skill-web-spectrum",
|
|
257
|
+
"element": "sp-action-group",
|
|
258
|
+
"pins": [
|
|
259
|
+
{
|
|
260
|
+
"library": "@digipair/skill-web-spectrum",
|
|
261
|
+
"element": "sp-action-button",
|
|
262
|
+
"pins": [
|
|
263
|
+
{
|
|
264
|
+
"library": "@digipair/skill-web-font-awesome",
|
|
265
|
+
"element": "digipair-font-awesome-icon",
|
|
266
|
+
"properties": { "name": "trash", "category": "solid" }
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"events": {
|
|
270
|
+
"click": [
|
|
271
|
+
{
|
|
272
|
+
"library": "@digipair/skill-web-notification",
|
|
273
|
+
"element": "confirm",
|
|
274
|
+
"properties": {
|
|
275
|
+
"message": "Are you sure to remove this schedule ?",
|
|
276
|
+
"ok": [
|
|
277
|
+
{
|
|
278
|
+
"library": "@digipair/skill-web",
|
|
279
|
+
"element": "executeFactory",
|
|
280
|
+
"properties": {
|
|
281
|
+
"execute": [
|
|
282
|
+
{
|
|
283
|
+
"library": "@digipair/skill-cron",
|
|
284
|
+
"element": "deleteCron",
|
|
285
|
+
"properties": {
|
|
286
|
+
"id": "{{item.id}}"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"library": "@digipair/skill-web-interact",
|
|
294
|
+
"element": "reload"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"library": "@digipair/skill-web-spectrum",
|
|
304
|
+
"element": "sp-action-button",
|
|
305
|
+
"pins": [
|
|
306
|
+
{
|
|
307
|
+
"library": "@digipair/skill-web-font-awesome",
|
|
308
|
+
"element": "digipair-font-awesome-icon",
|
|
309
|
+
"properties": { "name": "ban", "category": "solid" }
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"events": {
|
|
313
|
+
"click": [
|
|
314
|
+
{
|
|
315
|
+
"library": "@digipair/skill-web",
|
|
316
|
+
"element": "executeFactory",
|
|
317
|
+
"properties": {
|
|
318
|
+
"execute": [
|
|
319
|
+
{
|
|
320
|
+
"library": "@digipair/skill-cron",
|
|
321
|
+
"element": "disableCron",
|
|
322
|
+
"properties": {
|
|
323
|
+
"id": "{{item.id}}"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"library": "@digipair/skill-web-interact",
|
|
331
|
+
"element": "reload"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"conditions": { "if": "EVALUATE:item.enabled = true" }
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"library": "@digipair/skill-web-spectrum",
|
|
339
|
+
"element": "sp-action-button",
|
|
340
|
+
"pins": [
|
|
341
|
+
{
|
|
342
|
+
"library": "@digipair/skill-web-font-awesome",
|
|
343
|
+
"element": "digipair-font-awesome-icon",
|
|
344
|
+
"properties": { "name": "check", "category": "solid" }
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"events": {
|
|
348
|
+
"click": [
|
|
349
|
+
{
|
|
350
|
+
"library": "@digipair/skill-web",
|
|
351
|
+
"element": "executeFactory",
|
|
352
|
+
"properties": {
|
|
353
|
+
"execute": [
|
|
354
|
+
{
|
|
355
|
+
"library": "@digipair/skill-cron",
|
|
356
|
+
"element": "enableCron",
|
|
357
|
+
"properties": {
|
|
358
|
+
"id": "{{item.id}}"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"library": "@digipair/skill-web-interact",
|
|
366
|
+
"element": "reload"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"conditions": { "if": "EVALUATE:item.enabled = false" }
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"properties": { "size": "s", "dir": "rtl" }
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"conditions": { "each": "EVALUATE:variables.crons" }
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"properties": { "style": "width: 100%; max-width: 1080px;" }
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"properties": { "style": "display: flex; justify-content: center;" }
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"properties": { "color": "dark", "scale": "large" }
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"library": "@digipair/skill-web-chatbot",
|
|
395
|
+
"element": "digipair-chatbot",
|
|
396
|
+
"properties": {
|
|
397
|
+
"code": "{{request.digipair}}",
|
|
398
|
+
"apiUrl": ""
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
"styleHtml": "color-scheme:dark;",
|
|
403
|
+
"browserInitialize": [
|
|
404
|
+
{
|
|
405
|
+
"library": "@digipair/skill-data-management",
|
|
406
|
+
"element": "setVariable",
|
|
407
|
+
"properties": {
|
|
408
|
+
"name": "digipairs",
|
|
409
|
+
"execute": [
|
|
410
|
+
{
|
|
411
|
+
"library": "@digipair/skill-keycwebloak",
|
|
412
|
+
"element": "executeFactory",
|
|
413
|
+
"properties": {
|
|
414
|
+
"execute": [
|
|
415
|
+
{
|
|
416
|
+
"library": "@digipair/skill-editor",
|
|
417
|
+
"element": "digipairs"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"library": "@digipair/skill-data-management",
|
|
421
|
+
"element": "transform",
|
|
422
|
+
"properties": {
|
|
423
|
+
"execute": [
|
|
424
|
+
{
|
|
425
|
+
"library": "@digipair/skill-editor",
|
|
426
|
+
"element": "digipair",
|
|
427
|
+
"properties": {
|
|
428
|
+
"digipair": "{{item}}"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"conditions": { "each": "EVALUATE:previous" }
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"library": "@digipair/skill-data-management",
|
|
443
|
+
"element": "setVariable",
|
|
444
|
+
"properties": {
|
|
445
|
+
"name": "crons",
|
|
446
|
+
"execute": [
|
|
447
|
+
{
|
|
448
|
+
"library": "@digipair/skill-web",
|
|
449
|
+
"element": "executeFactory",
|
|
450
|
+
"properties": {
|
|
451
|
+
"execute": [
|
|
452
|
+
{
|
|
453
|
+
"library": "@digipair/skill-cron",
|
|
454
|
+
"element": "crons"
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
"pins": []
|
|
465
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "History",
|
|
3
|
+
"description": "Return the start conversation history.",
|
|
4
|
+
"metadata": {},
|
|
5
|
+
"library": "@digipair/skill-service",
|
|
6
|
+
"element": "service",
|
|
7
|
+
"properties": {
|
|
8
|
+
"execute": [
|
|
9
|
+
{
|
|
10
|
+
"library": "@digipair/skill-data-management",
|
|
11
|
+
"element": "transform",
|
|
12
|
+
"properties": {
|
|
13
|
+
"value": [
|
|
14
|
+
{
|
|
15
|
+
"role": "assistant",
|
|
16
|
+
"content": "Welcome! How may I assist you today?"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|