@digipair/skill-llm 0.84.7 → 0.85.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.
Files changed (2) hide show
  1. package/index.esm2.js +11 -12
  2. 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 nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23902
+ return tokens = tokens1, i = i1, 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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23909
+ return tokens = tokens1, i = i1, 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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23928
+ return tokens = tokens1, i = i1, 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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23947
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23948
23948
  }
23949
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23949
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27847,13 +27847,7 @@ const applyTemplate = (value, context)=>{
27847
27847
  if (typeof value === 'string') {
27848
27848
  if (result.startsWith('NOEVAL:')) {
27849
27849
  result = value.substring(7);
27850
- } else {
27851
- const template = handlebars_min.exports.compile(value, {
27852
- noEscape: true
27853
- });
27854
- result = template(context);
27855
- }
27856
- if (result.startsWith('EVALUATE:')) {
27850
+ } else if (result.startsWith('EVALUATE:')) {
27857
27851
  const path = result.replace(/^EVALUATE:/, '');
27858
27852
  result = evaluate(path, _extends({}, context, {
27859
27853
  getTime: (time)=>new Date(time).getTime(),
@@ -27864,6 +27858,11 @@ const applyTemplate = (value, context)=>{
27864
27858
  decodeURIComponent: (value)=>decodeURIComponent(value),
27865
27859
  JSONparse: (value)=>JSON.parse(value)
27866
27860
  }));
27861
+ } else {
27862
+ const template = handlebars_min.exports.compile(value, {
27863
+ noEscape: true
27864
+ });
27865
+ result = template(context);
27867
27866
  }
27868
27867
  } else if (typeof value === 'object' && Array.isArray(value)) {
27869
27868
  result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.84.7",
3
+ "version": "0.85.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",