@digipair/skill-llm 0.11.4 → 0.12.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 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 tokens = tokens1, i = i1, nextMatch = nextMatch1, {
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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
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 tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23556
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23557
23557
  }
23558
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23558
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23559
23559
  v: nextMatch1
23560
23560
  };
23561
23561
  };
@@ -27346,6 +27346,9 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27346
27346
  LIBRARIES: {},
27347
27347
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27348
27348
  };
27349
+ const isPinsSettings = (value)=>{
27350
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27351
+ };
27349
27352
  const applyTemplate = (value, context)=>{
27350
27353
  let result = value;
27351
27354
  if (typeof value === 'string') {
@@ -27358,7 +27361,7 @@ const applyTemplate = (value, context)=>{
27358
27361
  result = evaluate(path, context);
27359
27362
  }
27360
27363
  } else if (typeof value === 'object' && Array.isArray(value)) {
27361
- result = value;
27364
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
27362
27365
  } else if (typeof value === 'object') {
27363
27366
  result = {};
27364
27367
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/index.esm2.js CHANGED
@@ -27326,6 +27326,9 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
27326
27326
  LIBRARIES: {},
27327
27327
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
27328
27328
  };
27329
+ const isPinsSettings = (value)=>{
27330
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
27331
+ };
27329
27332
  const applyTemplate = (value, context)=>{
27330
27333
  let result = value;
27331
27334
  if (typeof value === 'string') {
@@ -27338,7 +27341,7 @@ const applyTemplate = (value, context)=>{
27338
27341
  result = evaluate(path, context);
27339
27342
  }
27340
27343
  } else if (typeof value === 'object' && Array.isArray(value)) {
27341
- result = value;
27344
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
27342
27345
  } else if (typeof value === 'object') {
27343
27346
  result = {};
27344
27347
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.11.4",
3
+ "version": "0.12.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"