@digipair/skill-llm 0.10.5 → 0.10.8

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, nextMatch = nextMatch1, i = i1, {
23511
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
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, nextMatch = nextMatch1, i = i1, "continue";
23518
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "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, nextMatch = nextMatch1, i = i1, "continue";
23537
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "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, nextMatch = nextMatch1, i = i1, "continue";
23556
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23557
23557
  }
23558
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23558
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23559
23559
  v: nextMatch1
23560
23560
  };
23561
23561
  };
@@ -27367,9 +27367,7 @@ const applyTemplate = (value, context)=>{
27367
27367
  }
27368
27368
  return result;
27369
27369
  };
27370
- const executePins = async (settingsOrigin, context = {}, options = {
27371
- libraries: {}
27372
- })=>{
27370
+ const executePins = async (settingsOrigin, context = {})=>{
27373
27371
  var _settings_conditions;
27374
27372
  const settings = await preparePinsSettings(settingsOrigin, context);
27375
27373
  if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
@@ -27395,12 +27393,12 @@ const executePins = async (settingsOrigin, context = {}, options = {
27395
27393
  if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
27396
27394
  continue;
27397
27395
  }
27398
- const itemResult = await executePins(itemSettingsOrigin, itemContext, options);
27396
+ const itemResult = await executePins(itemSettingsOrigin, itemContext);
27399
27397
  results.push(itemResult);
27400
27398
  }
27401
27399
  return results;
27402
27400
  }
27403
- const version = options.libraries[settings.library] || 'latest';
27401
+ const version = context.config.VERSIONS[settings.library] || 'latest';
27404
27402
  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)); }); })(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27405
27403
  const pins = library == null ? void 0 : library[settings.element];
27406
27404
  if (!pins) {
@@ -27408,9 +27406,7 @@ const executePins = async (settingsOrigin, context = {}, options = {
27408
27406
  }
27409
27407
  return await pins(settings.properties, settings.pins, context);
27410
27408
  };
27411
- const executePinsList = async (pinsSettingsList, context, options = {
27412
- libraries: {}
27413
- })=>{
27409
+ const executePinsList = async (pinsSettingsList, context)=>{
27414
27410
  let previous = {};
27415
27411
  const steps = [];
27416
27412
  // parcourir tous les pins
@@ -27431,7 +27427,7 @@ const executePinsList = async (pinsSettingsList, context, options = {
27431
27427
  steps: context.steps,
27432
27428
  parent: context.parent
27433
27429
  }
27434
- }), options);
27430
+ }));
27435
27431
  steps[i] = {
27436
27432
  name: settings.name,
27437
27433
  result: previous
package/index.esm2.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 nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23491
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23498
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23499
23499
  }
23500
23500
  tokens1 = _to_consumable_array$B(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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23517
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23536
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23537
23537
  }
23538
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23538
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23539
23539
  v: nextMatch1
23540
23540
  };
23541
23541
  };
@@ -27347,9 +27347,7 @@ const applyTemplate = (value, context)=>{
27347
27347
  }
27348
27348
  return result;
27349
27349
  };
27350
- const executePins = async (settingsOrigin, context = {}, options = {
27351
- libraries: {}
27352
- })=>{
27350
+ const executePins = async (settingsOrigin, context = {})=>{
27353
27351
  var _settings_conditions;
27354
27352
  const settings = await preparePinsSettings(settingsOrigin, context);
27355
27353
  if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
@@ -27375,12 +27373,12 @@ const executePins = async (settingsOrigin, context = {}, options = {
27375
27373
  if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
27376
27374
  continue;
27377
27375
  }
27378
- const itemResult = await executePins(itemSettingsOrigin, itemContext, options);
27376
+ const itemResult = await executePins(itemSettingsOrigin, itemContext);
27379
27377
  results.push(itemResult);
27380
27378
  }
27381
27379
  return results;
27382
27380
  }
27383
- const version = options.libraries[settings.library] || 'latest';
27381
+ const version = context.config.VERSIONS[settings.library] || 'latest';
27384
27382
  const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
27385
27383
  const pins = library == null ? void 0 : library[settings.element];
27386
27384
  if (!pins) {
@@ -27388,9 +27386,7 @@ const executePins = async (settingsOrigin, context = {}, options = {
27388
27386
  }
27389
27387
  return await pins(settings.properties, settings.pins, context);
27390
27388
  };
27391
- const executePinsList = async (pinsSettingsList, context, options = {
27392
- libraries: {}
27393
- })=>{
27389
+ const executePinsList = async (pinsSettingsList, context)=>{
27394
27390
  let previous = {};
27395
27391
  const steps = [];
27396
27392
  // parcourir tous les pins
@@ -27411,7 +27407,7 @@ const executePinsList = async (pinsSettingsList, context, options = {
27411
27407
  steps: context.steps,
27412
27408
  parent: context.parent
27413
27409
  }
27414
- }), options);
27410
+ }));
27415
27411
  steps[i] = {
27416
27412
  name: settings.name,
27417
27413
  result: previous
@@ -4,15 +4,7 @@ export declare const config: {
4
4
  set: (key: CONFIG_KEY, value: any) => void;
5
5
  };
6
6
  export declare const applyTemplate: (value: any, context: any) => any;
7
- export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, options?: {
8
- libraries: {
9
- [key: string]: string;
10
- };
11
- }) => Promise<any>;
12
- export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, options?: {
13
- libraries: {
14
- [key: string]: string;
15
- };
16
- }) => Promise<Element | void>;
7
+ export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
8
+ export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any) => Promise<Element | void>;
17
9
  export declare const preparePinsSettings: (settings: PinsSettings, context: any) => Promise<PinsSettings>;
18
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.10.5",
3
+ "version": "0.10.8",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"