@digipair/skill-tool 0.79.0 → 0.79.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 +7 -0
- package/index.esm.js +12 -6
- package/libs/skill-tool/src/lib/skill-tool.d.ts +1 -0
- package/package.json +1 -1
- package/schema.fr.json +40 -0
- package/schema.json +31 -0
package/index.cjs.js
CHANGED
|
@@ -28027,14 +28027,21 @@ let ToolService = class ToolService {
|
|
|
28027
28027
|
type: 'DIGIPAIR_KEEPALIVE'
|
|
28028
28028
|
};
|
|
28029
28029
|
}
|
|
28030
|
+
async execute(params, _pinsSettingsList, _context) {
|
|
28031
|
+
const { execute, context = _context } = params;
|
|
28032
|
+
const result = await executePinsList(execute, context, `${context.__PATH__}.execute`);
|
|
28033
|
+
return result;
|
|
28034
|
+
}
|
|
28030
28035
|
};
|
|
28031
28036
|
const task = (params, pinsSettingsList, context)=>new ToolService().task(params, pinsSettingsList, context);
|
|
28032
28037
|
const action = (params, pinsSettingsList, context)=>new ToolService().action(params, pinsSettingsList, context);
|
|
28033
28038
|
const trigger = (params, pinsSettingsList, context)=>new ToolService().trigger(params, pinsSettingsList, context);
|
|
28034
28039
|
const stop = (params, pinsSettingsList, context)=>new ToolService().stop(params, pinsSettingsList, context);
|
|
28035
28040
|
const keepAlive = (params, pinsSettingsList, context)=>new ToolService().keepAlive(params, pinsSettingsList, context);
|
|
28041
|
+
const execute = (params, pinsSettingsList, context)=>new ToolService().execute(params, pinsSettingsList, context);
|
|
28036
28042
|
|
|
28037
28043
|
exports.action = action;
|
|
28044
|
+
exports.execute = execute;
|
|
28038
28045
|
exports.keepAlive = keepAlive;
|
|
28039
28046
|
exports.stop = stop;
|
|
28040
28047
|
exports.task = task;
|
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
|
|
23902
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
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
|
|
23909
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "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
|
|
23928
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "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
|
|
23947
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23948
23948
|
}
|
|
23949
|
-
return
|
|
23949
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23950
23950
|
v: nextMatch1
|
|
23951
23951
|
};
|
|
23952
23952
|
};
|
|
@@ -28005,11 +28005,17 @@ let ToolService = class ToolService {
|
|
|
28005
28005
|
type: 'DIGIPAIR_KEEPALIVE'
|
|
28006
28006
|
};
|
|
28007
28007
|
}
|
|
28008
|
+
async execute(params, _pinsSettingsList, _context) {
|
|
28009
|
+
const { execute, context = _context } = params;
|
|
28010
|
+
const result = await executePinsList(execute, context, `${context.__PATH__}.execute`);
|
|
28011
|
+
return result;
|
|
28012
|
+
}
|
|
28008
28013
|
};
|
|
28009
28014
|
const task = (params, pinsSettingsList, context)=>new ToolService().task(params, pinsSettingsList, context);
|
|
28010
28015
|
const action = (params, pinsSettingsList, context)=>new ToolService().action(params, pinsSettingsList, context);
|
|
28011
28016
|
const trigger = (params, pinsSettingsList, context)=>new ToolService().trigger(params, pinsSettingsList, context);
|
|
28012
28017
|
const stop = (params, pinsSettingsList, context)=>new ToolService().stop(params, pinsSettingsList, context);
|
|
28013
28018
|
const keepAlive = (params, pinsSettingsList, context)=>new ToolService().keepAlive(params, pinsSettingsList, context);
|
|
28019
|
+
const execute = (params, pinsSettingsList, context)=>new ToolService().execute(params, pinsSettingsList, context);
|
|
28014
28020
|
|
|
28015
|
-
export { action, keepAlive, stop, task, trigger };
|
|
28021
|
+
export { action, execute, keepAlive, stop, task, trigger };
|
|
@@ -4,3 +4,4 @@ export declare const action: (params: any, pinsSettingsList: PinsSettings[], con
|
|
|
4
4
|
export declare const trigger: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
5
5
|
export declare const stop: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
6
6
|
export declare const keepAlive: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
|
|
7
|
+
export declare const execute: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -26,6 +26,46 @@
|
|
|
26
26
|
],
|
|
27
27
|
"x-events": []
|
|
28
28
|
}
|
|
29
|
+
},
|
|
30
|
+
"/keepAlive": {
|
|
31
|
+
"post": {
|
|
32
|
+
"tags": ["service"],
|
|
33
|
+
"summary": "Keep-alive",
|
|
34
|
+
"description": "Garder en vie le raisonnement",
|
|
35
|
+
"parameters": [],
|
|
36
|
+
"x-events": []
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"/execute": {
|
|
40
|
+
"post": {
|
|
41
|
+
"tags": ["service"],
|
|
42
|
+
"summary": "Execute avec un contexte",
|
|
43
|
+
"description": "Execute des Pin's avec un contexte donné",
|
|
44
|
+
"parameters": [
|
|
45
|
+
{
|
|
46
|
+
"name": "execute",
|
|
47
|
+
"required": true,
|
|
48
|
+
"summary": "Actions à exécuter",
|
|
49
|
+
"description": "Actions à exécuter",
|
|
50
|
+
"schema": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "context",
|
|
59
|
+
"required": false,
|
|
60
|
+
"summary": "Contexte",
|
|
61
|
+
"description": "Contexte d'exécution",
|
|
62
|
+
"schema": {
|
|
63
|
+
"type": "object"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"x-events": []
|
|
68
|
+
}
|
|
29
69
|
}
|
|
30
70
|
},
|
|
31
71
|
"x-scene-blocks": {
|
package/schema.json
CHANGED
|
@@ -35,6 +35,37 @@
|
|
|
35
35
|
"parameters": [],
|
|
36
36
|
"x-events": []
|
|
37
37
|
}
|
|
38
|
+
},
|
|
39
|
+
"/execute": {
|
|
40
|
+
"post": {
|
|
41
|
+
"tags": ["service"],
|
|
42
|
+
"summary": "Execute with context",
|
|
43
|
+
"description": "Execute a Pin's with a given context",
|
|
44
|
+
"parameters": [
|
|
45
|
+
{
|
|
46
|
+
"name": "execute",
|
|
47
|
+
"required": true,
|
|
48
|
+
"summary": "Actions to execute",
|
|
49
|
+
"description": "Actions to execute",
|
|
50
|
+
"schema": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "context",
|
|
59
|
+
"required": false,
|
|
60
|
+
"summary": "Context",
|
|
61
|
+
"description": "Context of the execution",
|
|
62
|
+
"schema": {
|
|
63
|
+
"type": "object"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"x-events": []
|
|
68
|
+
}
|
|
38
69
|
}
|
|
39
70
|
},
|
|
40
71
|
"components": {
|