@digipair/skill-llm 0.143.0 → 0.144.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/dist/index.esm.js +15 -9
  2. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -22838,14 +22838,14 @@ function indent(str, spaces) {
22838
22838
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22839
22839
  // match is required
22840
22840
  if (!match) {
22841
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22841
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
22842
22842
  v: nextMatch1
22843
22843
  };
22844
22844
  }
22845
22845
  var token = match.token, offset = match.offset;
22846
22846
  i1 += offset;
22847
22847
  if (token === ' ') {
22848
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22848
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
22849
22849
  }
22850
22850
  tokens1 = _to_consumable_array$4$1(tokens1).concat([
22851
22851
  token
@@ -22864,7 +22864,7 @@ function indent(str, spaces) {
22864
22864
  if (contextKeys.some(function(el) {
22865
22865
  return el.startsWith(name);
22866
22866
  })) {
22867
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22867
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
22868
22868
  }
22869
22869
  if (dateTimeIdentifiers.some(function(el) {
22870
22870
  return el === name;
@@ -22883,9 +22883,9 @@ function indent(str, spaces) {
22883
22883
  if (dateTimeIdentifiers.some(function(el) {
22884
22884
  return el.startsWith(name);
22885
22885
  })) {
22886
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22886
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
22887
22887
  }
22888
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22888
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
22889
22889
  v: nextMatch1
22890
22890
  };
22891
22891
  };
@@ -44413,7 +44413,8 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_C
44413
44413
  LIBRARIES: {},
44414
44414
  BASE_URL: 'https://cdn.jsdelivr.net/npm',
44415
44415
  ALIAS: [],
44416
- LOGGER: (level, path, message, context, data)=>{}
44416
+ LOGGER: (level, path, message, context, data)=>{},
44417
+ DIGIPAIR_FUNCTIONS: {}
44417
44418
  };
44418
44419
  const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
44419
44420
  const isPinsSettings = (value)=>{
@@ -44428,19 +44429,24 @@ const applyTemplate = (value, context)=>{
44428
44429
  const path = result.replace(/^EVALUATE:/, '');
44429
44430
  result = evaluate$1(path, {
44430
44431
  ...context,
44431
- ...DIGIPAIR_FUNCTIONS
44432
+ ...DIGIPAIR_FUNCTIONS,
44433
+ ..._config.DIGIPAIR_FUNCTIONS
44432
44434
  });
44433
44435
  } else if (result.startsWith('FEEL:')) {
44434
44436
  const path = result.replace(/^FEEL:/, '');
44435
44437
  result = evaluate$1(path, {
44436
44438
  ...context,
44437
- ...DIGIPAIR_FUNCTIONS
44439
+ ...DIGIPAIR_FUNCTIONS,
44440
+ ..._config.DIGIPAIR_FUNCTIONS
44438
44441
  });
44439
44442
  } else if (result.startsWith('CEL:')) {
44440
44443
  const path = result.replace(/^CEL:/, '');
44441
44444
  result = evaluate(path, {
44442
44445
  ...context
44443
- }, DIGIPAIR_FUNCTIONS);
44446
+ }, {
44447
+ ...DIGIPAIR_FUNCTIONS,
44448
+ ..._config.DIGIPAIR_FUNCTIONS
44449
+ });
44444
44450
  } else {
44445
44451
  const template = Handlebars.compile(value, {
44446
44452
  noEscape: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.143.0",
3
+ "version": "0.144.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",