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.
Files changed (33) hide show
  1. package/assets/default/avatar.png +0 -0
  2. package/assets/default/chat.json +18 -0
  3. package/assets/default/config.json +27 -0
  4. package/assets/default/conversation.json +26 -0
  5. package/assets/default/history.json +23 -0
  6. package/assets/digipairs/admin/avatar.png +0 -0
  7. package/assets/digipairs/admin/boost-add-reasoning.json +54 -0
  8. package/assets/digipairs/admin/boost-duplicate-reasoning.json +62 -0
  9. package/assets/digipairs/admin/boost-plan-reasoning.json +46 -0
  10. package/assets/digipairs/admin/chat.json +18 -0
  11. package/assets/digipairs/admin/config.json +34 -0
  12. package/assets/digipairs/admin/conversation.json +26 -0
  13. package/assets/digipairs/admin/digipair-list.json +465 -0
  14. package/assets/digipairs/admin/history.json +23 -0
  15. package/assets/digipairs/admin/json-editor.json +221 -0
  16. package/assets/digipairs/admin/reasoning-editor.json +225 -0
  17. package/assets/digipairs/admin/reasoning-list.json +762 -0
  18. package/assets/digipairs/common/avatar.png +0 -0
  19. package/assets/digipairs/common/boosts.json +18 -0
  20. package/assets/digipairs/common/config.json +10 -0
  21. package/assets/digipairs/common/metadata.json +18 -0
  22. package/assets/digipairs/planning.json +0 -0
  23. package/assets/domains.json +1 -0
  24. package/bin/digipair.js +3 -0
  25. package/package.json +43 -0
  26. package/src/app/app.controller.js +55 -0
  27. package/src/app/app.controller.js.map +1 -0
  28. package/src/app/app.module.js +18 -0
  29. package/src/app/app.module.js.map +1 -0
  30. package/src/app/app.service.js +63 -0
  31. package/src/app/app.service.js.map +1 -0
  32. package/src/main.js +65 -0
  33. package/src/main.js.map +1 -0
@@ -0,0 +1,221 @@
1
+ {
2
+ "name": "JSON editor",
3
+ "description": "Reasoning and configuration JSON editor",
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": "@digipair/skill-web-spectrum",
15
+ "element": "sp-top-nav",
16
+ "pins": [
17
+ {
18
+ "library": "@digipair/skill-web-spectrum",
19
+ "element": "sp-top-nav-item",
20
+ "pins": [
21
+ {
22
+ "library": "web",
23
+ "element": "img",
24
+ "properties": {
25
+ "src": "https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1718985104/Fichier_1_lilpuw.jpg?_s=public-apps",
26
+ "style": "height: 20px;"
27
+ }
28
+ }
29
+ ],
30
+ "properties": { "href": "https://www.digipair.ai" }
31
+ },
32
+ {
33
+ "library": "@digipair/skill-web-spectrum",
34
+ "element": "sp-top-nav-item",
35
+ "properties": { "textContent": "Home", "href": "/digipair-list" }
36
+ },
37
+ {
38
+ "library": "@digipair/skill-web-spectrum",
39
+ "element": "sp-top-nav-item",
40
+ "properties": {
41
+ "textContent": "{{variables.digipair.name}}",
42
+ "href": "/reasoning-list/{{variables.digipair.id}}"
43
+ }
44
+ },
45
+ {
46
+ "library": "@digipair/skill-web-spectrum",
47
+ "element": "sp-top-nav-item",
48
+ "properties": { "textContent": "{{variables.reasoning.name}}" }
49
+ },
50
+ {
51
+ "library": "@digipair/skill-web-spectrum",
52
+ "element": "sp-action-group",
53
+ "pins": [
54
+ {
55
+ "library": "@digipair/skill-web-spectrum",
56
+ "element": "sp-action-button",
57
+ "pins": [
58
+ {
59
+ "library": "@digipair/skill-web-font-awesome",
60
+ "element": "digipair-font-awesome-icon",
61
+ "properties": { "name": "pen-to-square", "category": "regular" }
62
+ }
63
+ ],
64
+ "events": {
65
+ "click": [
66
+ {
67
+ "library": "@digipair/skill-web-interact",
68
+ "element": "goTo",
69
+ "properties": {
70
+ "url": "/reasoning-editor/{{variables.digipair.id}}/{{variables.reasoning.id}}"
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ "conditions": { "if": "EVALUATE:request.params[2] != \"config\"" }
76
+ },
77
+ {
78
+ "library": "@digipair/skill-web-spectrum",
79
+ "element": "sp-action-button",
80
+ "pins": [
81
+ {
82
+ "library": "@digipair/skill-web-font-awesome",
83
+ "element": "digipair-font-awesome-icon",
84
+ "properties": { "name": "eye", "category": "regular" }
85
+ }
86
+ ],
87
+ "events": {
88
+ "click": [
89
+ {
90
+ "library": "@digipair/skill-web-interact",
91
+ "element": "goTo",
92
+ "properties": {
93
+ "url": "https://factory.digipair.ai/{{variables.team}}/{{variables.digipair.id}}/{{variables.reasoning.id}}"
94
+ }
95
+ }
96
+ ]
97
+ },
98
+ "conditions": { "if": "EVALUATE:variables.reasoning.element = \"page\"" }
99
+ },
100
+ {
101
+ "library": "@digipair/skill-web-spectrum",
102
+ "element": "sp-action-button",
103
+ "pins": [
104
+ {
105
+ "library": "@digipair/skill-web-font-awesome",
106
+ "element": "digipair-font-awesome-icon",
107
+ "properties": { "name": "floppy-disk", "category": "regular" }
108
+ }
109
+ ],
110
+ "events": {
111
+ "click": [
112
+ {
113
+ "library": "@digipair/skill-web-interact",
114
+ "element": "getAttribute",
115
+ "properties": { "selector": "digipair-jsoneditor", "attribute": "json" }
116
+ },
117
+ {
118
+ "library": "@digipair/skill-web",
119
+ "element": "executeFactory",
120
+ "properties": {
121
+ "execute": [
122
+ {
123
+ "library": "@digipair/skill-editor",
124
+ "element": "setReasoning",
125
+ "properties": {
126
+ "digipair": "{{request.params.[0]}}",
127
+ "reasoning": "{{request.params.[1]}}",
128
+ "value": "EVALUATE:parent.previous"
129
+ }
130
+ }
131
+ ]
132
+ }
133
+ },
134
+ {
135
+ "library": "@digipair/skill-web-notification",
136
+ "element": "information",
137
+ "properties": { "message": "Enregistrement effectué !" }
138
+ }
139
+ ]
140
+ }
141
+ }
142
+ ],
143
+ "properties": { "size": "s", "style": "margin-inline-start: auto;" }
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "library": "@digipair/skill-web-jsoneditor",
149
+ "element": "digipair-jsoneditor",
150
+ "properties": {
151
+ "json": "EVALUATE:variables.reasoning",
152
+ "contentStyle": "position: fixed; top: 69px; right: 0; bottom: 0; left: 0;"
153
+ }
154
+ }
155
+ ],
156
+ "properties": { "color": "dark", "scale": "large" }
157
+ },
158
+ {
159
+ "library": "@digipair/skill-web-chatbot",
160
+ "element": "digipair-chatbot",
161
+ "properties": {
162
+ "code": "{{request.digipair}}",
163
+ "apiUrl": ""
164
+ }
165
+ }
166
+ ],
167
+ "styleHtml": "color-scheme:dark;",
168
+ "browserInitialize": [
169
+ {
170
+ "library": "@digipair/skill-data-management",
171
+ "element": "setVariable",
172
+ "properties": {
173
+ "name": "digipair",
174
+ "execute": [
175
+ {
176
+ "library": "@digipair/skill-web",
177
+ "element": "executeFactory",
178
+ "properties": {
179
+ "execute": [
180
+ {
181
+ "library": "@digipair/skill-editor",
182
+ "element": "digipair",
183
+ "properties": {
184
+ "digipair": "{{request.params.[0]}}"
185
+ }
186
+ }
187
+ ]
188
+ }
189
+ }
190
+ ]
191
+ }
192
+ },
193
+ {
194
+ "library": "@digipair/skill-data-management",
195
+ "element": "setVariable",
196
+ "properties": {
197
+ "name": "reasoning",
198
+ "execute": [
199
+ {
200
+ "library": "@digipair/skill-web",
201
+ "element": "executeFactory",
202
+ "properties": {
203
+ "execute": [
204
+ {
205
+ "library": "@digipair/skill-editor",
206
+ "element": "reasoning",
207
+ "properties": {
208
+ "digipair": "{{request.params.[0]}}",
209
+ "reasoning": "{{request.params.[1]}}"
210
+ }
211
+ }
212
+ ]
213
+ }
214
+ }
215
+ ]
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ "pins": []
221
+ }
@@ -0,0 +1,225 @@
1
+ {
2
+ "name": "Editeur de raisonnement",
3
+ "description": "Editeur de raisonnement",
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": "@digipair/skill-web-spectrum",
15
+ "element": "sp-top-nav",
16
+ "pins": [
17
+ {
18
+ "library": "@digipair/skill-web-spectrum",
19
+ "element": "sp-top-nav-item",
20
+ "pins": [
21
+ {
22
+ "library": "web",
23
+ "element": "img",
24
+ "properties": {
25
+ "src": "https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1718985104/Fichier_1_lilpuw.jpg?_s=public-apps",
26
+ "style": "height: 20px;"
27
+ }
28
+ }
29
+ ],
30
+ "properties": { "href": "https://www.digipair.ai" }
31
+ },
32
+ {
33
+ "library": "@digipair/skill-web-spectrum",
34
+ "element": "sp-top-nav-item",
35
+ "properties": { "textContent": "Home", "href": "/digipair-list" }
36
+ },
37
+ {
38
+ "library": "@digipair/skill-web-spectrum",
39
+ "element": "sp-top-nav-item",
40
+ "properties": {
41
+ "textContent": "{{variables.digipair.name}}",
42
+ "href": "/reasoning-list/{{variables.digipair.id}}"
43
+ }
44
+ },
45
+ {
46
+ "library": "@digipair/skill-web-spectrum",
47
+ "element": "sp-top-nav-item",
48
+ "properties": { "textContent": "{{variables.reasoning.name}}" }
49
+ },
50
+ {
51
+ "library": "@digipair/skill-web-spectrum",
52
+ "element": "sp-action-group",
53
+ "pins": [
54
+ {
55
+ "library": "@digipair/skill-web-spectrum",
56
+ "element": "sp-action-button",
57
+ "pins": [
58
+ {
59
+ "library": "@digipair/skill-web-font-awesome",
60
+ "element": "digipair-font-awesome-icon",
61
+ "properties": { "name": "file-code", "category": "regular" }
62
+ }
63
+ ],
64
+ "events": {
65
+ "click": [
66
+ {
67
+ "library": "@digipair/skill-web-interact",
68
+ "element": "goTo",
69
+ "properties": {
70
+ "url": "/json-editor/{{variables.digipair.id}}/{{variables.reasoning.id}}"
71
+ }
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "library": "@digipair/skill-web-spectrum",
78
+ "element": "sp-action-button",
79
+ "pins": [
80
+ {
81
+ "library": "@digipair/skill-web-font-awesome",
82
+ "element": "digipair-font-awesome-icon",
83
+ "properties": { "name": "eye", "category": "regular" }
84
+ }
85
+ ],
86
+ "events": {
87
+ "click": [
88
+ {
89
+ "library": "@digipair/skill-web-interact",
90
+ "element": "goTo",
91
+ "properties": {
92
+ "url": "/{{variables.digipair.id}}/{{variables.reasoning.id}}"
93
+ }
94
+ }
95
+ ]
96
+ },
97
+ "conditions": { "if": "EVALUATE:variables.reasoning.element = \"page\"" }
98
+ },
99
+ {
100
+ "library": "@digipair/skill-web-spectrum",
101
+ "element": "sp-action-button",
102
+ "pins": [
103
+ {
104
+ "library": "@digipair/skill-web-font-awesome",
105
+ "element": "digipair-font-awesome-icon",
106
+ "properties": { "name": "floppy-disk", "category": "regular" }
107
+ }
108
+ ],
109
+ "events": {
110
+ "click": [
111
+ {
112
+ "library": "@digipair/skill-web-interact",
113
+ "element": "getAttribute",
114
+ "properties": {
115
+ "selector": "digipair-editor",
116
+ "attribute": "codeInWorkspace"
117
+ }
118
+ },
119
+ {
120
+ "library": "@digipair/skill-web",
121
+ "element": "executeFactory",
122
+ "properties": {
123
+ "execute": [
124
+ {
125
+ "library": "@digipair/skill-editor",
126
+ "element": "setReasoning",
127
+ "properties": {
128
+ "digipair": "{{request.params.[0]}}",
129
+ "reasoning": "{{request.params.[1]}}",
130
+ "value": "EVALUATE:parent.previous"
131
+ }
132
+ }
133
+ ]
134
+ }
135
+ },
136
+ {
137
+ "library": "@digipair/skill-web-notification",
138
+ "element": "information",
139
+ "properties": { "message": "Enregistrement effectué !" }
140
+ }
141
+ ]
142
+ }
143
+ }
144
+ ],
145
+ "properties": { "size": "s", "style": "margin-inline-start: auto;" }
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "library": "@digipair/skill-web-editor",
151
+ "element": "digipair-editor",
152
+ "properties": {
153
+ "digipair": "EVALUATE:variables.digipair",
154
+ "reasoning": "EVALUATE:variables.reasoning",
155
+ "menuBackgroundColor": "#121212",
156
+ "contentStyle": "position: fixed; top: 69px; right: 0; bottom: 0; left: 0;"
157
+ }
158
+ }
159
+ ],
160
+ "properties": { "color": "dark", "scale": "large" }
161
+ },
162
+ {
163
+ "library": "@digipair/skill-web-chatbot",
164
+ "element": "digipair-chatbot",
165
+ "properties": {
166
+ "code": "{{request.digipair}}",
167
+ "apiUrl": ""
168
+ }
169
+ }
170
+ ],
171
+ "styleHtml": "color-scheme:dark;",
172
+ "browserInitialize": [
173
+ {
174
+ "library": "@digipair/skill-data-management",
175
+ "element": "setVariable",
176
+ "properties": {
177
+ "name": "digipair",
178
+ "execute": [
179
+ {
180
+ "library": "@digipair/skill-web",
181
+ "element": "executeFactory",
182
+ "properties": {
183
+ "execute": [
184
+ {
185
+ "library": "@digipair/skill-editor",
186
+ "element": "digipair",
187
+ "properties": {
188
+ "digipair": "{{request.params.[0]}}"
189
+ }
190
+ }
191
+ ]
192
+ }
193
+ }
194
+ ]
195
+ }
196
+ },
197
+ {
198
+ "library": "@digipair/skill-data-management",
199
+ "element": "setVariable",
200
+ "properties": {
201
+ "name": "reasoning",
202
+ "execute": [
203
+ {
204
+ "library": "@digipair/skill-web",
205
+ "element": "executeFactory",
206
+ "properties": {
207
+ "execute": [
208
+ {
209
+ "library": "@digipair/skill-editor",
210
+ "element": "reasoning",
211
+ "properties": {
212
+ "digipair": "{{request.params.[0]}}",
213
+ "reasoning": "{{request.params.[1]}}"
214
+ }
215
+ }
216
+ ]
217
+ }
218
+ }
219
+ ]
220
+ }
221
+ }
222
+ ]
223
+ },
224
+ "pins": []
225
+ }