@digipair/skill-llm 0.18.9 → 0.19.0
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.cjs2.js +31 -20
- package/index.esm2.js +26 -15
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
@@ -23508,14 +23508,14 @@ function indent(str, spaces) {
|
|
23508
23508
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23509
23509
|
// match is required
|
23510
23510
|
if (!match) {
|
23511
|
-
return
|
23511
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23512
23512
|
v: nextMatch1
|
23513
23513
|
};
|
23514
23514
|
}
|
23515
23515
|
var token = match.token, offset = match.offset;
|
23516
23516
|
i1 += offset;
|
23517
23517
|
if (token === " ") {
|
23518
|
-
return
|
23518
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23519
23519
|
}
|
23520
23520
|
tokens1 = _to_consumable_array$B(tokens1).concat([
|
23521
23521
|
token
|
@@ -23534,7 +23534,7 @@ function indent(str, spaces) {
|
|
23534
23534
|
if (contextKeys.some(function(el) {
|
23535
23535
|
return el.startsWith(name);
|
23536
23536
|
})) {
|
23537
|
-
return
|
23537
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23538
23538
|
}
|
23539
23539
|
if (dateTimeIdentifiers.some(function(el) {
|
23540
23540
|
return el === name;
|
@@ -23553,9 +23553,9 @@ function indent(str, spaces) {
|
|
23553
23553
|
if (dateTimeIdentifiers.some(function(el) {
|
23554
23554
|
return el.startsWith(name);
|
23555
23555
|
})) {
|
23556
|
-
return
|
23556
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23557
23557
|
}
|
23558
|
-
return
|
23558
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23559
23559
|
v: nextMatch1
|
23560
23560
|
};
|
23561
23561
|
};
|
@@ -27372,7 +27372,7 @@ const applyTemplate = (value, context)=>{
|
|
27372
27372
|
return result;
|
27373
27373
|
};
|
27374
27374
|
const executePins = async (settingsOrigin, context = {})=>{
|
27375
|
-
var _settings_conditions;
|
27375
|
+
var _settings_conditions, _settings_conditions1;
|
27376
27376
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27377
27377
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27378
27378
|
const results = [];
|
@@ -27397,11 +27397,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27397
27397
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
27398
27398
|
continue;
|
27399
27399
|
}
|
27400
|
-
|
27400
|
+
let itemResult = null;
|
27401
|
+
try {
|
27402
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
27403
|
+
} catch (error) {
|
27404
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27405
|
+
continue;
|
27406
|
+
}
|
27407
|
+
throw error;
|
27408
|
+
}
|
27401
27409
|
results.push(itemResult);
|
27402
27410
|
}
|
27403
27411
|
return results;
|
27404
27412
|
}
|
27413
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
27414
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
27415
|
+
}
|
27405
27416
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
27406
27417
|
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
27407
27418
|
const pins = library == null ? void 0 : library[settings.element];
|
@@ -27415,23 +27426,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
27415
27426
|
const steps = [];
|
27416
27427
|
// parcourir tous les pins
|
27417
27428
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
27418
|
-
var _settings_conditions;
|
27419
27429
|
const settings = pinsSettingsList[i];
|
27420
|
-
|
27421
|
-
|
27422
|
-
|
27430
|
+
try {
|
27431
|
+
previous = await executePins(settings, _extends({}, context, {
|
27432
|
+
previous,
|
27433
|
+
steps,
|
27434
|
+
parent: {
|
27435
|
+
previous: context.previous,
|
27436
|
+
steps: context.steps,
|
27437
|
+
parent: context.parent
|
27438
|
+
}
|
27439
|
+
}));
|
27440
|
+
} catch (error) {
|
27441
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27423
27442
|
continue;
|
27424
27443
|
}
|
27444
|
+
throw error;
|
27425
27445
|
}
|
27426
|
-
previous = await executePins(settings, _extends({}, context, {
|
27427
|
-
previous,
|
27428
|
-
steps,
|
27429
|
-
parent: {
|
27430
|
-
previous: context.previous,
|
27431
|
-
steps: context.steps,
|
27432
|
-
parent: context.parent
|
27433
|
-
}
|
27434
|
-
}));
|
27435
27446
|
steps[i] = {
|
27436
27447
|
name: settings.name,
|
27437
27448
|
result: previous
|
package/index.esm2.js
CHANGED
@@ -27352,7 +27352,7 @@ const applyTemplate = (value, context)=>{
|
|
27352
27352
|
return result;
|
27353
27353
|
};
|
27354
27354
|
const executePins = async (settingsOrigin, context = {})=>{
|
27355
|
-
var _settings_conditions;
|
27355
|
+
var _settings_conditions, _settings_conditions1;
|
27356
27356
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
27357
27357
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27358
27358
|
const results = [];
|
@@ -27377,11 +27377,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27377
27377
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
27378
27378
|
continue;
|
27379
27379
|
}
|
27380
|
-
|
27380
|
+
let itemResult = null;
|
27381
|
+
try {
|
27382
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
27383
|
+
} catch (error) {
|
27384
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27385
|
+
continue;
|
27386
|
+
}
|
27387
|
+
throw error;
|
27388
|
+
}
|
27381
27389
|
results.push(itemResult);
|
27382
27390
|
}
|
27383
27391
|
return results;
|
27384
27392
|
}
|
27393
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
27394
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
27395
|
+
}
|
27385
27396
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
27386
27397
|
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
27387
27398
|
const pins = library == null ? void 0 : library[settings.element];
|
@@ -27395,23 +27406,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
27395
27406
|
const steps = [];
|
27396
27407
|
// parcourir tous les pins
|
27397
27408
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
27398
|
-
var _settings_conditions;
|
27399
27409
|
const settings = pinsSettingsList[i];
|
27400
|
-
|
27401
|
-
|
27402
|
-
|
27410
|
+
try {
|
27411
|
+
previous = await executePins(settings, _extends({}, context, {
|
27412
|
+
previous,
|
27413
|
+
steps,
|
27414
|
+
parent: {
|
27415
|
+
previous: context.previous,
|
27416
|
+
steps: context.steps,
|
27417
|
+
parent: context.parent
|
27418
|
+
}
|
27419
|
+
}));
|
27420
|
+
} catch (error) {
|
27421
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
27403
27422
|
continue;
|
27404
27423
|
}
|
27424
|
+
throw error;
|
27405
27425
|
}
|
27406
|
-
previous = await executePins(settings, _extends({}, context, {
|
27407
|
-
previous,
|
27408
|
-
steps,
|
27409
|
-
parent: {
|
27410
|
-
previous: context.previous,
|
27411
|
-
steps: context.steps,
|
27412
|
-
parent: context.parent
|
27413
|
-
}
|
27414
|
-
}));
|
27415
27426
|
steps[i] = {
|
27416
27427
|
name: settings.name,
|
27417
27428
|
result: previous
|