@digipair/skill-llm 0.4.13 → 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 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 i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23513
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23520
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23539
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23558
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23559
23559
  }
23560
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23560
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23561
23561
  v: nextMatch1
23562
23562
  };
23563
23563
  };
@@ -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({}, settings, {
27377
- conditions: _extends({}, settings.conditions, {
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
- localContext.conditions[key] = await applyTemplate(value, localContext);
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, i = i1, nextMatch = nextMatch1, {
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, i = i1, nextMatch = nextMatch1, "continue";
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, i = i1, nextMatch = nextMatch1, "continue";
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, i = i1, nextMatch = nextMatch1, "continue";
23536
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23537
23537
  }
23538
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
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({}, settings, {
27355
- conditions: _extends({}, settings.conditions, {
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
- localContext.conditions[key] = await applyTemplate(value, localContext);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"