@digipair/skill-worker 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 tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23924
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23931
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23950
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23969
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23970
23970
  }
23971
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23971
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
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 i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23902
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23909
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23928
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23947
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23948
23948
  }
23949
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23949
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-worker",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service"
package/schema.fr.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/activity": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Activité",
15
17
  "description": "Exécute une activité.",
16
18
  "parameters": [
@@ -36,12 +38,27 @@
36
38
  }
37
39
  }
38
40
  ],
41
+ "responses": {
42
+ "200": {
43
+ "description": "Résultat des commandes d'activité exécutées avec suivi des étapes de workflow",
44
+ "content": {
45
+ "application/json": {
46
+ "schema": {
47
+ "description": "Résultat d'executePinsList - stocké dans context.workflow.steps[name]",
48
+ "additionalProperties": true
49
+ }
50
+ }
51
+ }
52
+ }
53
+ },
39
54
  "x-events": []
40
55
  }
41
56
  },
42
57
  "/stop": {
43
58
  "post": {
44
- "tags": ["service"],
59
+ "tags": [
60
+ "service"
61
+ ],
45
62
  "summary": "Stop",
46
63
  "description": "Stop le raisonnement",
47
64
  "parameters": [
@@ -55,6 +72,18 @@
55
72
  }
56
73
  }
57
74
  ],
75
+ "responses": {
76
+ "200": {
77
+ "description": "Worker arrêté avec valeur de retour",
78
+ "content": {
79
+ "application/json": {
80
+ "schema": {
81
+ "description": "Ne retourne jamais normalement - lève une exception DIGIPAIR_STOP"
82
+ }
83
+ }
84
+ }
85
+ }
86
+ },
58
87
  "x-events": []
59
88
  }
60
89
  }
@@ -63,7 +92,9 @@
63
92
  "/task": {
64
93
  "summary": "Tache",
65
94
  "description": "Exécution d'une tache.",
66
- "tags": ["service"],
95
+ "tags": [
96
+ "service"
97
+ ],
67
98
  "metadata": [],
68
99
  "parameters": [
69
100
  {
@@ -83,7 +114,9 @@
83
114
  "/action": {
84
115
  "summary": "Action",
85
116
  "description": "Action exécutable.",
86
- "tags": ["service"],
117
+ "tags": [
118
+ "service"
119
+ ],
87
120
  "metadata": [
88
121
  {
89
122
  "name": "parameters",
@@ -97,6 +130,15 @@
97
130
  }
98
131
  }
99
132
  },
133
+ {
134
+ "name": "output",
135
+ "summary": "Format de sortie",
136
+ "required": false,
137
+ "description": "Format de sortie de l'action",
138
+ "schema": {
139
+ "type": "object"
140
+ }
141
+ },
100
142
  {
101
143
  "name": "context",
102
144
  "summary": "Contexte",
@@ -127,7 +169,9 @@
127
169
  "schemas": {
128
170
  "Parameter": {
129
171
  "type": "object",
130
- "tags": ["service"],
172
+ "tags": [
173
+ "service"
174
+ ],
131
175
  "summary": "Parameter",
132
176
  "properties": {
133
177
  "name": {
@@ -155,8 +199,13 @@
155
199
  "type": "string"
156
200
  }
157
201
  },
158
- "required": ["name", "summary", "required", "schema"]
202
+ "required": [
203
+ "name",
204
+ "summary",
205
+ "required",
206
+ "schema"
207
+ ]
159
208
  }
160
209
  }
161
210
  }
162
- }
211
+ }
package/schema.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/activity": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Activity",
15
17
  "description": "Execution of an activity.",
16
18
  "parameters": [
@@ -36,12 +38,27 @@
36
38
  }
37
39
  }
38
40
  ],
41
+ "responses": {
42
+ "200": {
43
+ "description": "Result of executed activity commands with workflow step tracking",
44
+ "content": {
45
+ "application/json": {
46
+ "schema": {
47
+ "description": "Result from executePinsList - stored in context.workflow.steps[name]",
48
+ "additionalProperties": true
49
+ }
50
+ }
51
+ }
52
+ }
53
+ },
39
54
  "x-events": []
40
55
  }
41
56
  },
42
57
  "/stop": {
43
58
  "post": {
44
- "tags": ["service"],
59
+ "tags": [
60
+ "service"
61
+ ],
45
62
  "summary": "Stop",
46
63
  "description": "Stop the reasoning",
47
64
  "parameters": [
@@ -55,6 +72,18 @@
55
72
  }
56
73
  }
57
74
  ],
75
+ "responses": {
76
+ "200": {
77
+ "description": "Worker stopped with return value",
78
+ "content": {
79
+ "application/json": {
80
+ "schema": {
81
+ "description": "Never returns normally - throws DIGIPAIR_STOP exception"
82
+ }
83
+ }
84
+ }
85
+ }
86
+ },
58
87
  "x-events": []
59
88
  }
60
89
  }
@@ -63,7 +92,9 @@
63
92
  "schemas": {
64
93
  "Parameter": {
65
94
  "type": "object",
66
- "tags": ["service"],
95
+ "tags": [
96
+ "service"
97
+ ],
67
98
  "summary": "Parameter",
68
99
  "properties": {
69
100
  "name": {
@@ -91,7 +122,12 @@
91
122
  "type": "string"
92
123
  }
93
124
  },
94
- "required": ["name", "summary", "required", "schema"]
125
+ "required": [
126
+ "name",
127
+ "summary",
128
+ "required",
129
+ "schema"
130
+ ]
95
131
  }
96
132
  }
97
133
  },
@@ -99,7 +135,9 @@
99
135
  "/task": {
100
136
  "summary": "Task",
101
137
  "description": "Execution of a task.",
102
- "tags": ["service"],
138
+ "tags": [
139
+ "service"
140
+ ],
103
141
  "metadata": [],
104
142
  "parameters": [
105
143
  {
@@ -119,7 +157,9 @@
119
157
  "/action": {
120
158
  "summary": "Action",
121
159
  "description": "Executable action.",
122
- "tags": ["service"],
160
+ "tags": [
161
+ "service"
162
+ ],
123
163
  "metadata": [
124
164
  {
125
165
  "name": "parameters",
@@ -133,6 +173,15 @@
133
173
  }
134
174
  }
135
175
  },
176
+ {
177
+ "name": "output",
178
+ "summary": "Output format",
179
+ "required": false,
180
+ "description": "Output format of the action",
181
+ "schema": {
182
+ "type": "object"
183
+ }
184
+ },
136
185
  {
137
186
  "name": "context",
138
187
  "summary": "Context",
@@ -159,4 +208,4 @@
159
208
  ]
160
209
  }
161
210
  }
162
- }
211
+ }