@digipair/skill-llm 0.4.12 → 0.4.14
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 +6 -4
- package/index.esm.js +11 -9
- package/package.json +1 -1
- package/schema.json +1 -0
package/index.cjs.js
CHANGED
@@ -27373,8 +27373,8 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
27373
27373
|
var _settings_conditions;
|
27374
27374
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27375
27375
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27376
|
-
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({},
|
27377
|
-
conditions: _extends({},
|
27376
|
+
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({}, settingsOrigin, {
|
27377
|
+
conditions: _extends({}, settingsOrigin.conditions, {
|
27378
27378
|
each: undefined
|
27379
27379
|
})
|
27380
27380
|
}), _extends({}, context, {
|
@@ -27429,15 +27429,17 @@ const preparePinsSettings = async (settings, context)=>{
|
|
27429
27429
|
for (const [key, value] of Object.entries(settings.variables || {})){
|
27430
27430
|
localContext.variables[key] = applyTemplate(value, localContext);
|
27431
27431
|
}
|
27432
|
+
const conditions = {};
|
27432
27433
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
27433
|
-
|
27434
|
+
conditions[key] = await applyTemplate(value, localContext);
|
27434
27435
|
}
|
27435
27436
|
const properties = {};
|
27436
27437
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
27437
27438
|
properties[key] = applyTemplate(value, localContext);
|
27438
27439
|
}
|
27439
27440
|
return _extends({}, settings, {
|
27440
|
-
properties
|
27441
|
+
properties,
|
27442
|
+
conditions
|
27441
27443
|
});
|
27442
27444
|
};
|
27443
27445
|
|
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 tokens = tokens1,
|
23491
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
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 tokens = tokens1,
|
23498
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1,
|
23517
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1,
|
23536
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23537
23537
|
}
|
23538
|
-
return tokens = tokens1,
|
23538
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
23539
23539
|
v: nextMatch1
|
23540
23540
|
};
|
23541
23541
|
};
|
@@ -27351,8 +27351,8 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
27351
27351
|
var _settings_conditions;
|
27352
27352
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27353
27353
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27354
|
-
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({},
|
27355
|
-
conditions: _extends({},
|
27354
|
+
return Promise.all(settings.conditions.each.filter((item)=>typeof item.conditions.if === 'undefined' || item.conditions.if).map((item)=>executePins(_extends({}, settingsOrigin, {
|
27355
|
+
conditions: _extends({}, settingsOrigin.conditions, {
|
27356
27356
|
each: undefined
|
27357
27357
|
})
|
27358
27358
|
}), _extends({}, context, {
|
@@ -27407,15 +27407,17 @@ const preparePinsSettings = async (settings, context)=>{
|
|
27407
27407
|
for (const [key, value] of Object.entries(settings.variables || {})){
|
27408
27408
|
localContext.variables[key] = applyTemplate(value, localContext);
|
27409
27409
|
}
|
27410
|
+
const conditions = {};
|
27410
27411
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
27411
|
-
|
27412
|
+
conditions[key] = await applyTemplate(value, localContext);
|
27412
27413
|
}
|
27413
27414
|
const properties = {};
|
27414
27415
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
27415
27416
|
properties[key] = applyTemplate(value, localContext);
|
27416
27417
|
}
|
27417
27418
|
return _extends({}, settings, {
|
27418
|
-
properties
|
27419
|
+
properties,
|
27420
|
+
conditions
|
27419
27421
|
});
|
27420
27422
|
};
|
27421
27423
|
|
package/package.json
CHANGED
package/schema.json
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
"openapi": "3.0.0",
|
3
3
|
"info": {
|
4
4
|
"title": "@digipair/skill-llm",
|
5
|
+
"summary": "Gestion de modèles LLM",
|
5
6
|
"description": "La compétence @digipair/skill-llm est une compétence qui permet d'utiliser un modèle de langage à grande échelle.",
|
6
7
|
"version": "0.1.0",
|
7
8
|
"x-icon": "🚀"
|