@digipair/skill-llm 0.4.21 → 0.4.22
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 +9 -12
- package/index.esm.js +10 -12
- package/libs/skill-llm/src/lib/skill-llm.d.ts +0 -1
- package/package.json +1 -1
- package/schema.json +3 -21
package/index.cjs.js
CHANGED
@@ -23510,14 +23510,14 @@ function indent(str, spaces) {
|
|
23510
23510
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23511
23511
|
// match is required
|
23512
23512
|
if (!match) {
|
23513
|
-
return
|
23513
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
23514
23514
|
v: nextMatch1
|
23515
23515
|
};
|
23516
23516
|
}
|
23517
23517
|
var token = match.token, offset = match.offset;
|
23518
23518
|
i1 += offset;
|
23519
23519
|
if (token === " ") {
|
23520
|
-
return
|
23520
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
23521
23521
|
}
|
23522
23522
|
tokens1 = _to_consumable_array$s(tokens1).concat([
|
23523
23523
|
token
|
@@ -23536,7 +23536,7 @@ function indent(str, spaces) {
|
|
23536
23536
|
if (contextKeys.some(function(el) {
|
23537
23537
|
return el.startsWith(name);
|
23538
23538
|
})) {
|
23539
|
-
return
|
23539
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
23540
23540
|
}
|
23541
23541
|
if (dateTimeIdentifiers.some(function(el) {
|
23542
23542
|
return el === name;
|
@@ -23555,9 +23555,9 @@ function indent(str, spaces) {
|
|
23555
23555
|
if (dateTimeIdentifiers.some(function(el) {
|
23556
23556
|
return el.startsWith(name);
|
23557
23557
|
})) {
|
23558
|
-
return
|
23558
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
23559
23559
|
}
|
23560
|
-
return
|
23560
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
23561
23561
|
v: nextMatch1
|
23562
23562
|
};
|
23563
23563
|
};
|
@@ -27374,8 +27374,9 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
27374
27374
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27375
27375
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27376
27376
|
const results = [];
|
27377
|
-
for
|
27377
|
+
for(let index = 0; index < settings.conditions.each.length; index++){
|
27378
27378
|
var _itemSettings_conditions;
|
27379
|
+
const item = settings.conditions.each[index];
|
27379
27380
|
const itemSettingsOrigin = _extends({}, settingsOrigin, {
|
27380
27381
|
conditions: _extends({}, settingsOrigin.conditions, {
|
27381
27382
|
each: undefined
|
@@ -27383,8 +27384,10 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
27383
27384
|
});
|
27384
27385
|
const itemContext = _extends({}, context, {
|
27385
27386
|
item,
|
27387
|
+
index,
|
27386
27388
|
parent: {
|
27387
27389
|
item: context.item,
|
27390
|
+
index: item.index,
|
27388
27391
|
parent: context.parent
|
27389
27392
|
}
|
27390
27393
|
});
|
@@ -60195,15 +60198,9 @@ let LLMService = class LLMService {
|
|
60195
60198
|
}
|
60196
60199
|
return data;
|
60197
60200
|
}
|
60198
|
-
async reasoningStepValue(params, _pinsSettingsList, _context) {
|
60199
|
-
const { value } = params;
|
60200
|
-
return value;
|
60201
|
-
}
|
60202
60201
|
};
|
60203
60202
|
const invoke = (params, pinsSettingsList, context)=>new LLMService().invoke(params, pinsSettingsList, context);
|
60204
60203
|
const reasoningStep = (params, pinsSettingsList, context)=>new LLMService().reasoningStep(params, pinsSettingsList, context);
|
60205
|
-
const reasoningStepValue = (params, pinsSettingsList, context)=>new LLMService().reasoningStepValue(params, pinsSettingsList, context);
|
60206
60204
|
|
60207
60205
|
exports.invoke = invoke;
|
60208
60206
|
exports.reasoningStep = reasoningStep;
|
60209
|
-
exports.reasoningStepValue = reasoningStepValue;
|
package/index.esm.js
CHANGED
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
|
|
23488
23488
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23489
23489
|
// match is required
|
23490
23490
|
if (!match) {
|
23491
|
-
return
|
23491
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23492
23492
|
v: nextMatch1
|
23493
23493
|
};
|
23494
23494
|
}
|
23495
23495
|
var token = match.token, offset = match.offset;
|
23496
23496
|
i1 += offset;
|
23497
23497
|
if (token === " ") {
|
23498
|
-
return
|
23498
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23499
23499
|
}
|
23500
23500
|
tokens1 = _to_consumable_array$s(tokens1).concat([
|
23501
23501
|
token
|
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
|
|
23514
23514
|
if (contextKeys.some(function(el) {
|
23515
23515
|
return el.startsWith(name);
|
23516
23516
|
})) {
|
23517
|
-
return
|
23517
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23518
23518
|
}
|
23519
23519
|
if (dateTimeIdentifiers.some(function(el) {
|
23520
23520
|
return el === name;
|
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
|
|
23533
23533
|
if (dateTimeIdentifiers.some(function(el) {
|
23534
23534
|
return el.startsWith(name);
|
23535
23535
|
})) {
|
23536
|
-
return
|
23536
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23537
23537
|
}
|
23538
|
-
return
|
23538
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23539
23539
|
v: nextMatch1
|
23540
23540
|
};
|
23541
23541
|
};
|
@@ -27352,8 +27352,9 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
27352
27352
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27353
27353
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27354
27354
|
const results = [];
|
27355
|
-
for
|
27355
|
+
for(let index = 0; index < settings.conditions.each.length; index++){
|
27356
27356
|
var _itemSettings_conditions;
|
27357
|
+
const item = settings.conditions.each[index];
|
27357
27358
|
const itemSettingsOrigin = _extends({}, settingsOrigin, {
|
27358
27359
|
conditions: _extends({}, settingsOrigin.conditions, {
|
27359
27360
|
each: undefined
|
@@ -27361,8 +27362,10 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
27361
27362
|
});
|
27362
27363
|
const itemContext = _extends({}, context, {
|
27363
27364
|
item,
|
27365
|
+
index,
|
27364
27366
|
parent: {
|
27365
27367
|
item: context.item,
|
27368
|
+
index: item.index,
|
27366
27369
|
parent: context.parent
|
27367
27370
|
}
|
27368
27371
|
});
|
@@ -60173,13 +60176,8 @@ let LLMService = class LLMService {
|
|
60173
60176
|
}
|
60174
60177
|
return data;
|
60175
60178
|
}
|
60176
|
-
async reasoningStepValue(params, _pinsSettingsList, _context) {
|
60177
|
-
const { value } = params;
|
60178
|
-
return value;
|
60179
|
-
}
|
60180
60179
|
};
|
60181
60180
|
const invoke = (params, pinsSettingsList, context)=>new LLMService().invoke(params, pinsSettingsList, context);
|
60182
60181
|
const reasoningStep = (params, pinsSettingsList, context)=>new LLMService().reasoningStep(params, pinsSettingsList, context);
|
60183
|
-
const reasoningStepValue = (params, pinsSettingsList, context)=>new LLMService().reasoningStepValue(params, pinsSettingsList, context);
|
60184
60182
|
|
60185
|
-
export { invoke, reasoningStep
|
60183
|
+
export { invoke, reasoningStep };
|
@@ -3,4 +3,3 @@ export declare const invoke: (params: any, pinsSettingsList: PinsSettings[], con
|
|
3
3
|
export declare const reasoningStep: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{
|
4
4
|
[key: string]: any;
|
5
5
|
}>;
|
6
|
-
export declare const reasoningStepValue: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
package/package.json
CHANGED
package/schema.json
CHANGED
@@ -11,12 +11,12 @@
|
|
11
11
|
"/invoke": {
|
12
12
|
"post": {
|
13
13
|
"tags": ["service"],
|
14
|
-
"summary": "
|
14
|
+
"summary": "Raisonnement LLM",
|
15
15
|
"parameters": [
|
16
16
|
{
|
17
17
|
"name": "execute",
|
18
18
|
"required": true,
|
19
|
-
"description": "
|
19
|
+
"description": "Exécuter",
|
20
20
|
"schema": {
|
21
21
|
"type": "array",
|
22
22
|
"items": {
|
@@ -57,31 +57,13 @@
|
|
57
57
|
],
|
58
58
|
"x-events": []
|
59
59
|
}
|
60
|
-
},
|
61
|
-
"/reasoningStepValue": {
|
62
|
-
"post": {
|
63
|
-
"tags": ["service"],
|
64
|
-
"summary": "Valeur statique",
|
65
|
-
"parameters": [
|
66
|
-
{
|
67
|
-
"name": "value",
|
68
|
-
"summary": "Contenu",
|
69
|
-
"required": true,
|
70
|
-
"description": "value",
|
71
|
-
"schema": {
|
72
|
-
"type": "object"
|
73
|
-
}
|
74
|
-
}
|
75
|
-
],
|
76
|
-
"x-events": []
|
77
|
-
}
|
78
60
|
}
|
79
61
|
},
|
80
62
|
"components": {
|
81
63
|
"schemas": {
|
82
64
|
"reasonningStepAttribute": {
|
83
65
|
"tags": ["service"],
|
84
|
-
"summary": "",
|
66
|
+
"summary": "Donnée",
|
85
67
|
"type": "object",
|
86
68
|
"properties": {
|
87
69
|
"name": {
|