@digipair/skill-tool 0.96.0 → 0.97.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/index.cjs.js CHANGED
@@ -23921,14 +23921,14 @@ function indent(str, spaces) {
23921
23921
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23922
23922
  // match is required
23923
23923
  if (!match) {
23924
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23924
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23925
23925
  v: nextMatch1
23926
23926
  };
23927
23927
  }
23928
23928
  var token = match.token, offset = match.offset;
23929
23929
  i1 += offset;
23930
23930
  if (token === " ") {
23931
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23931
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23932
23932
  }
23933
23933
  tokens1 = _to_consumable_array$1(tokens1).concat([
23934
23934
  token
@@ -23947,7 +23947,7 @@ function indent(str, spaces) {
23947
23947
  if (contextKeys.some(function(el) {
23948
23948
  return el.startsWith(name);
23949
23949
  })) {
23950
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23950
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23951
23951
  }
23952
23952
  if (dateTimeIdentifiers.some(function(el) {
23953
23953
  return el === name;
@@ -23966,9 +23966,9 @@ function indent(str, spaces) {
23966
23966
  if (dateTimeIdentifiers.some(function(el) {
23967
23967
  return el.startsWith(name);
23968
23968
  })) {
23969
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23969
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23970
23970
  }
23971
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23971
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23972
23972
  v: nextMatch1
23973
23973
  };
23974
23974
  };
package/index.esm.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23902
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23909
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$1(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23928
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23947
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23948
23948
  }
23949
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23949
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-tool",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service"
package/schema.fr.json CHANGED
@@ -24,6 +24,18 @@
24
24
  }
25
25
  }
26
26
  ],
27
+ "responses": {
28
+ "200": {
29
+ "description": "Raisonnement arrêté avec valeur de retour",
30
+ "content": {
31
+ "application/json": {
32
+ "schema": {
33
+ "description": "Ne retourne jamais normalement - lève une exception DIGIPAIR_STOP"
34
+ }
35
+ }
36
+ }
37
+ }
38
+ },
27
39
  "x-events": []
28
40
  }
29
41
  },
@@ -33,6 +45,18 @@
33
45
  "summary": "Keep-alive",
34
46
  "description": "Garder en vie le raisonnement",
35
47
  "parameters": [],
48
+ "responses": {
49
+ "200": {
50
+ "description": "Maintient le raisonnement en vie",
51
+ "content": {
52
+ "application/json": {
53
+ "schema": {
54
+ "description": "Ne retourne jamais normalement - lève une exception DIGIPAIR_KEEPALIVE"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ },
36
60
  "x-events": []
37
61
  }
38
62
  },
@@ -64,6 +88,19 @@
64
88
  }
65
89
  }
66
90
  ],
91
+ "responses": {
92
+ "200": {
93
+ "description": "Résultat des commandes exécutées avec le contexte donné",
94
+ "content": {
95
+ "application/json": {
96
+ "schema": {
97
+ "description": "Résultat d'executePinsList - type dynamique basé sur les commandes exécutées",
98
+ "additionalProperties": true
99
+ }
100
+ }
101
+ }
102
+ }
103
+ },
67
104
  "x-events": []
68
105
  }
69
106
  }
@@ -106,6 +143,15 @@
106
143
  }
107
144
  }
108
145
  },
146
+ {
147
+ "name": "output",
148
+ "summary": "Format de sortie",
149
+ "required": false,
150
+ "description": "Format de sortie de l'action",
151
+ "schema": {
152
+ "type": "object"
153
+ }
154
+ },
109
155
  {
110
156
  "name": "context",
111
157
  "summary": "Contexte",
package/schema.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/stop": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Stop",
15
17
  "description": "Stop the reasoning",
16
18
  "parameters": [
@@ -24,21 +26,49 @@
24
26
  }
25
27
  }
26
28
  ],
29
+ "responses": {
30
+ "200": {
31
+ "description": "Reasoning stopped with return value",
32
+ "content": {
33
+ "application/json": {
34
+ "schema": {
35
+ "description": "Never returns normally - throws DIGIPAIR_STOP exception"
36
+ }
37
+ }
38
+ }
39
+ }
40
+ },
27
41
  "x-events": []
28
42
  }
29
43
  },
30
44
  "/keepAlive": {
31
45
  "post": {
32
- "tags": ["service"],
46
+ "tags": [
47
+ "service"
48
+ ],
33
49
  "summary": "Keep alive",
34
50
  "description": "Keep alive the reasoning",
35
51
  "parameters": [],
52
+ "responses": {
53
+ "200": {
54
+ "description": "Keeps reasoning alive",
55
+ "content": {
56
+ "application/json": {
57
+ "schema": {
58
+ "description": "Never returns normally - throws DIGIPAIR_KEEPALIVE exception"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ },
36
64
  "x-events": []
37
65
  }
38
66
  },
39
67
  "/execute": {
40
68
  "post": {
41
- "tags": ["service"],
69
+ "tags": [
70
+ "service"
71
+ ],
42
72
  "summary": "Execute with context",
43
73
  "description": "Execute a Pin's with a given context",
44
74
  "parameters": [
@@ -64,6 +94,19 @@
64
94
  }
65
95
  }
66
96
  ],
97
+ "responses": {
98
+ "200": {
99
+ "description": "Result of executed commands with given context",
100
+ "content": {
101
+ "application/json": {
102
+ "schema": {
103
+ "description": "Result from executePinsList - dynamic type based on executed commands",
104
+ "additionalProperties": true
105
+ }
106
+ }
107
+ }
108
+ }
109
+ },
67
110
  "x-events": []
68
111
  }
69
112
  }
@@ -72,7 +115,9 @@
72
115
  "schemas": {
73
116
  "Parameter": {
74
117
  "type": "object",
75
- "tags": ["service"],
118
+ "tags": [
119
+ "service"
120
+ ],
76
121
  "summary": "Parameter",
77
122
  "properties": {
78
123
  "name": {
@@ -100,7 +145,12 @@
100
145
  "type": "string"
101
146
  }
102
147
  },
103
- "required": ["name", "summary", "required", "schema"]
148
+ "required": [
149
+ "name",
150
+ "summary",
151
+ "required",
152
+ "schema"
153
+ ]
104
154
  }
105
155
  }
106
156
  },
@@ -108,7 +158,9 @@
108
158
  "/task": {
109
159
  "summary": "Task",
110
160
  "description": "Execution of a task.",
111
- "tags": ["service"],
161
+ "tags": [
162
+ "service"
163
+ ],
112
164
  "metadata": [],
113
165
  "parameters": [
114
166
  {
@@ -128,7 +180,9 @@
128
180
  "/action": {
129
181
  "summary": "Action",
130
182
  "description": "Executable action.",
131
- "tags": ["service"],
183
+ "tags": [
184
+ "service"
185
+ ],
132
186
  "metadata": [
133
187
  {
134
188
  "name": "parameters",
@@ -142,6 +196,15 @@
142
196
  }
143
197
  }
144
198
  },
199
+ {
200
+ "name": "output",
201
+ "summary": "Output format",
202
+ "required": false,
203
+ "description": "Output format of the action",
204
+ "schema": {
205
+ "type": "object"
206
+ }
207
+ },
145
208
  {
146
209
  "name": "context",
147
210
  "summary": "Context",
@@ -170,7 +233,9 @@
170
233
  "/trigger": {
171
234
  "summary": "Trigger",
172
235
  "description": "Executable trigger.",
173
- "tags": ["service"],
236
+ "tags": [
237
+ "service"
238
+ ],
174
239
  "metadata": [
175
240
  {
176
241
  "name": "tags",
@@ -213,4 +278,4 @@
213
278
  ]
214
279
  }
215
280
  }
216
- }
281
+ }