@digipair/skill-logger 0.96.0 → 0.97.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/package.json +1 -1
- package/schema.fr.json +123 -10
- package/schema.json +123 -10
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/read": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
14
16
|
"summary": "Logs",
|
|
15
17
|
"description": "Lecture des logs d'un jour donné",
|
|
16
18
|
"parameters": [
|
|
@@ -42,12 +44,29 @@
|
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
],
|
|
45
|
-
"x-events": []
|
|
47
|
+
"x-events": [],
|
|
48
|
+
"responses": {
|
|
49
|
+
"200": {
|
|
50
|
+
"description": "Entrées de logs pour la date et le type spécifiés",
|
|
51
|
+
"content": {
|
|
52
|
+
"application/json": {
|
|
53
|
+
"schema": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/components/schemas/LogEntry"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
46
63
|
}
|
|
47
64
|
},
|
|
48
65
|
"/list": {
|
|
49
66
|
"post": {
|
|
50
|
-
"tags": [
|
|
67
|
+
"tags": [
|
|
68
|
+
"service"
|
|
69
|
+
],
|
|
51
70
|
"summary": "Liste des jours de logs",
|
|
52
71
|
"description": "Liste les jours logs",
|
|
53
72
|
"parameters": [
|
|
@@ -70,12 +89,30 @@
|
|
|
70
89
|
}
|
|
71
90
|
}
|
|
72
91
|
],
|
|
73
|
-
"x-events": []
|
|
92
|
+
"x-events": [],
|
|
93
|
+
"responses": {
|
|
94
|
+
"200": {
|
|
95
|
+
"description": "Liste des dates de logs disponibles",
|
|
96
|
+
"content": {
|
|
97
|
+
"application/json": {
|
|
98
|
+
"schema": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Chaîne de date au format YYYY-MM-DD"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
74
109
|
}
|
|
75
110
|
},
|
|
76
111
|
"/computeDailyConsumption": {
|
|
77
112
|
"post": {
|
|
78
|
-
"tags": [
|
|
113
|
+
"tags": [
|
|
114
|
+
"service"
|
|
115
|
+
],
|
|
79
116
|
"summary": "Calcul et sauvegarde de la consommation journalière",
|
|
80
117
|
"description": "Calcul et sauvegarde de la consommation journalière dans le fichier de consommation mensuelle LLM",
|
|
81
118
|
"parameters": [
|
|
@@ -98,12 +135,27 @@
|
|
|
98
135
|
}
|
|
99
136
|
}
|
|
100
137
|
],
|
|
101
|
-
"x-events": []
|
|
138
|
+
"x-events": [],
|
|
139
|
+
"responses": {
|
|
140
|
+
"200": {
|
|
141
|
+
"description": "Calcul de la consommation journalière terminé",
|
|
142
|
+
"content": {
|
|
143
|
+
"application/json": {
|
|
144
|
+
"schema": {
|
|
145
|
+
"type": "null",
|
|
146
|
+
"description": "Opération terminée avec succès"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
102
152
|
}
|
|
103
153
|
},
|
|
104
154
|
"/cleaning": {
|
|
105
155
|
"post": {
|
|
106
|
-
"tags": [
|
|
156
|
+
"tags": [
|
|
157
|
+
"service"
|
|
158
|
+
],
|
|
107
159
|
"summary": "Efface les anciens logs",
|
|
108
160
|
"description": "Efface les anciens fichiers de logs",
|
|
109
161
|
"parameters": [
|
|
@@ -135,11 +187,72 @@
|
|
|
135
187
|
}
|
|
136
188
|
}
|
|
137
189
|
],
|
|
138
|
-
"x-events": []
|
|
190
|
+
"x-events": [],
|
|
191
|
+
"responses": {
|
|
192
|
+
"200": {
|
|
193
|
+
"description": "Nettoyage des anciens logs terminé",
|
|
194
|
+
"content": {
|
|
195
|
+
"application/json": {
|
|
196
|
+
"schema": {
|
|
197
|
+
"type": "null",
|
|
198
|
+
"description": "Opération terminée avec succès"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
139
204
|
}
|
|
140
205
|
}
|
|
141
206
|
},
|
|
142
207
|
"components": {
|
|
143
|
-
"schemas": {
|
|
208
|
+
"schemas": {
|
|
209
|
+
"LogEntry": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"description": "Objet d'entrée de log",
|
|
212
|
+
"properties": {
|
|
213
|
+
"date": {
|
|
214
|
+
"type": "number",
|
|
215
|
+
"description": "Horodatage de l'entrée de log"
|
|
216
|
+
},
|
|
217
|
+
"digipair": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Identifiant du digipair"
|
|
220
|
+
},
|
|
221
|
+
"reasoning": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Identifiant du raisonnement"
|
|
224
|
+
},
|
|
225
|
+
"type": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"description": "Type d'entrée de log (info, error, warning, etc.)"
|
|
228
|
+
},
|
|
229
|
+
"message": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"description": "Message du log"
|
|
232
|
+
},
|
|
233
|
+
"service": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Nom du service (pour les logs de consommation)"
|
|
236
|
+
},
|
|
237
|
+
"model": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"description": "Nom du modèle (pour les logs de consommation)"
|
|
240
|
+
},
|
|
241
|
+
"promptTokens": {
|
|
242
|
+
"type": "number",
|
|
243
|
+
"description": "Nombre de tokens de prompt (pour les logs de consommation)"
|
|
244
|
+
},
|
|
245
|
+
"completionTokens": {
|
|
246
|
+
"type": "number",
|
|
247
|
+
"description": "Nombre de tokens de complétion (pour les logs de consommation)"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"date",
|
|
252
|
+
"digipair",
|
|
253
|
+
"reasoning"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
}
|
|
144
257
|
}
|
|
145
|
-
}
|
|
258
|
+
}
|
package/schema.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/read": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
14
16
|
"summary": "Logs",
|
|
15
17
|
"description": "Read logs for a given day",
|
|
16
18
|
"parameters": [
|
|
@@ -42,12 +44,29 @@
|
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
],
|
|
45
|
-
"x-events": []
|
|
47
|
+
"x-events": [],
|
|
48
|
+
"responses": {
|
|
49
|
+
"200": {
|
|
50
|
+
"description": "Log entries for the specified date and type",
|
|
51
|
+
"content": {
|
|
52
|
+
"application/json": {
|
|
53
|
+
"schema": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/components/schemas/LogEntry"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
46
63
|
}
|
|
47
64
|
},
|
|
48
65
|
"/list": {
|
|
49
66
|
"post": {
|
|
50
|
-
"tags": [
|
|
67
|
+
"tags": [
|
|
68
|
+
"service"
|
|
69
|
+
],
|
|
51
70
|
"summary": "List of log days",
|
|
52
71
|
"description": "List the log days",
|
|
53
72
|
"parameters": [
|
|
@@ -70,12 +89,30 @@
|
|
|
70
89
|
}
|
|
71
90
|
}
|
|
72
91
|
],
|
|
73
|
-
"x-events": []
|
|
92
|
+
"x-events": [],
|
|
93
|
+
"responses": {
|
|
94
|
+
"200": {
|
|
95
|
+
"description": "List of available log dates",
|
|
96
|
+
"content": {
|
|
97
|
+
"application/json": {
|
|
98
|
+
"schema": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Date string in YYYY-MM-DD format"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
74
109
|
}
|
|
75
110
|
},
|
|
76
111
|
"/computeDailyConsumption": {
|
|
77
112
|
"post": {
|
|
78
|
-
"tags": [
|
|
113
|
+
"tags": [
|
|
114
|
+
"service"
|
|
115
|
+
],
|
|
79
116
|
"summary": "Calculate and save daily consumption",
|
|
80
117
|
"description": "Calculate and save daily consumption in the monthly LLM consumption file",
|
|
81
118
|
"parameters": [
|
|
@@ -98,12 +135,27 @@
|
|
|
98
135
|
}
|
|
99
136
|
}
|
|
100
137
|
],
|
|
101
|
-
"x-events": []
|
|
138
|
+
"x-events": [],
|
|
139
|
+
"responses": {
|
|
140
|
+
"200": {
|
|
141
|
+
"description": "Daily consumption computation completed",
|
|
142
|
+
"content": {
|
|
143
|
+
"application/json": {
|
|
144
|
+
"schema": {
|
|
145
|
+
"type": "null",
|
|
146
|
+
"description": "Operation completed successfully"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
102
152
|
}
|
|
103
153
|
},
|
|
104
154
|
"/cleaning": {
|
|
105
155
|
"post": {
|
|
106
|
-
"tags": [
|
|
156
|
+
"tags": [
|
|
157
|
+
"service"
|
|
158
|
+
],
|
|
107
159
|
"summary": "Delete old logs",
|
|
108
160
|
"description": "Delete old log files",
|
|
109
161
|
"parameters": [
|
|
@@ -135,11 +187,72 @@
|
|
|
135
187
|
}
|
|
136
188
|
}
|
|
137
189
|
],
|
|
138
|
-
"x-events": []
|
|
190
|
+
"x-events": [],
|
|
191
|
+
"responses": {
|
|
192
|
+
"200": {
|
|
193
|
+
"description": "Old logs cleaning completed",
|
|
194
|
+
"content": {
|
|
195
|
+
"application/json": {
|
|
196
|
+
"schema": {
|
|
197
|
+
"type": "null",
|
|
198
|
+
"description": "Operation completed successfully"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
139
204
|
}
|
|
140
205
|
}
|
|
141
206
|
},
|
|
142
207
|
"components": {
|
|
143
|
-
"schemas": {
|
|
208
|
+
"schemas": {
|
|
209
|
+
"LogEntry": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"description": "Log entry object",
|
|
212
|
+
"properties": {
|
|
213
|
+
"date": {
|
|
214
|
+
"type": "number",
|
|
215
|
+
"description": "Timestamp of the log entry"
|
|
216
|
+
},
|
|
217
|
+
"digipair": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Digipair identifier"
|
|
220
|
+
},
|
|
221
|
+
"reasoning": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Reasoning identifier"
|
|
224
|
+
},
|
|
225
|
+
"type": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"description": "Type of log entry (info, error, warning, etc.)"
|
|
228
|
+
},
|
|
229
|
+
"message": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"description": "Log message"
|
|
232
|
+
},
|
|
233
|
+
"service": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Service name (for consumption logs)"
|
|
236
|
+
},
|
|
237
|
+
"model": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"description": "Model name (for consumption logs)"
|
|
240
|
+
},
|
|
241
|
+
"promptTokens": {
|
|
242
|
+
"type": "number",
|
|
243
|
+
"description": "Number of prompt tokens (for consumption logs)"
|
|
244
|
+
},
|
|
245
|
+
"completionTokens": {
|
|
246
|
+
"type": "number",
|
|
247
|
+
"description": "Number of completion tokens (for consumption logs)"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"date",
|
|
252
|
+
"digipair",
|
|
253
|
+
"reasoning"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
}
|
|
144
257
|
}
|
|
145
|
-
}
|
|
258
|
+
}
|