@digipair/skill-llm 0.66.2 → 0.66.3
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.esm2.js +10 -11
- package/package.json +1 -1
package/index.esm2.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 i = i1, tokens = tokens1, 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
|
23909
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23910
23910
|
}
|
23911
23911
|
tokens1 = _to_consumable_array$D(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 i = i1, tokens = tokens1, 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
|
23947
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23948
23948
|
}
|
23949
|
-
return
|
23949
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23950
23950
|
v: nextMatch1
|
23951
23951
|
};
|
23952
23952
|
};
|
@@ -27876,12 +27876,12 @@ const applyTemplate = (value, context)=>{
|
|
27876
27876
|
};
|
27877
27877
|
const executePins = async (settingsOrigin, context = {})=>{
|
27878
27878
|
var _settings_conditions, _settings_conditions1;
|
27879
|
-
let settings =
|
27879
|
+
let settings = preparePinsSettings(settingsOrigin, context);
|
27880
27880
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
27881
27881
|
const config = context.config || {};
|
27882
27882
|
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
27883
27883
|
if (alias) {
|
27884
|
-
settings =
|
27884
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
27885
27885
|
settings: _extends({}, settings, {
|
27886
27886
|
version,
|
27887
27887
|
library: settings.library.substring(alias.name.length + 1)
|
@@ -27908,7 +27908,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27908
27908
|
parent: context.parent
|
27909
27909
|
}
|
27910
27910
|
});
|
27911
|
-
const itemSettings =
|
27911
|
+
const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
|
27912
27912
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
27913
27913
|
continue;
|
27914
27914
|
}
|
@@ -27937,7 +27937,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27937
27937
|
};
|
27938
27938
|
const executePinsList = async (pinsSettingsList, context)=>{
|
27939
27939
|
let previous = {};
|
27940
|
-
// parcourir tous les pins
|
27941
27940
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
27942
27941
|
const settings = pinsSettingsList[i];
|
27943
27942
|
try {
|
@@ -27957,14 +27956,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
27957
27956
|
}
|
27958
27957
|
return previous;
|
27959
27958
|
};
|
27960
|
-
const preparePinsSettings =
|
27959
|
+
const preparePinsSettings = (settings, context)=>{
|
27961
27960
|
const localContext = _extends({}, context, {
|
27962
27961
|
variables: context.variables || {},
|
27963
27962
|
conditions: context.conditions || {}
|
27964
27963
|
});
|
27965
27964
|
const conditions = {};
|
27966
27965
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
27967
|
-
conditions[key] =
|
27966
|
+
conditions[key] = applyTemplate(value, localContext);
|
27968
27967
|
}
|
27969
27968
|
const properties = {};
|
27970
27969
|
for (const [key, value] of Object.entries(settings.properties || {})){
|