@digipair/skill-llm 0.2.16 → 0.3.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.cjs.js CHANGED
@@ -12452,7 +12452,8 @@ const applyTemplate = (value, context)=>{
12452
12452
  result = template(context);
12453
12453
  if (result.startsWith('GET_VALUE:')) {
12454
12454
  const path = result.replace('GET_VALUE:', '');
12455
- result = jsonpath_min.exports.value(context, path);
12455
+ const jsonpath = new jsonpath_min.exports.JSONPath();
12456
+ result = jsonpath.value(context, path);
12456
12457
  }
12457
12458
  } else if (typeof value === 'object' && Array.isArray(value)) {
12458
12459
  result = value;
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './lib/skill-llm';
1
+ export * from './libs/skill-llm/src/index';
package/index.esm.js CHANGED
@@ -12430,7 +12430,8 @@ const applyTemplate = (value, context)=>{
12430
12430
  result = template(context);
12431
12431
  if (result.startsWith('GET_VALUE:')) {
12432
12432
  const path = result.replace('GET_VALUE:', '');
12433
- result = jsonpath_min.exports.value(context, path);
12433
+ const jsonpath = new jsonpath_min.exports.JSONPath();
12434
+ result = jsonpath.value(context, path);
12434
12435
  }
12435
12436
  } else if (typeof value === 'object' && Array.isArray(value)) {
12436
12437
  result = value;
@@ -14,7 +14,7 @@ export interface PinsSettings {
14
14
  };
15
15
  pins?: PinsSettings[];
16
16
  events?: {
17
- [key: string]: PinsSettings;
17
+ [key: string]: PinsSettings[];
18
18
  };
19
19
  context?: any;
20
20
  }
@@ -0,0 +1 @@
1
+ export * from './lib/skill-llm';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.2.16",
3
+ "version": "0.3.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
File without changes
@@ -9,16 +9,16 @@ export declare const executePins: (settingsOrigin: PinsSettings, context?: any,
9
9
  [key: string]: string;
10
10
  };
11
11
  }) => Promise<any>;
12
- export declare const generateElementFromPins: (pinsSettings: PinsSettings, context: any, options?: {
12
+ export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, options?: {
13
13
  libraries: {
14
14
  [key: string]: string;
15
15
  };
16
- }) => Promise<Element>;
17
- export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, options?: {
16
+ }) => Promise<any>;
17
+ export declare const generateElementFromPins: (pinsSettings: PinsSettings, context: any, options?: {
18
18
  libraries: {
19
19
  [key: string]: string;
20
20
  };
21
- }) => Promise<any>;
21
+ }) => Promise<Element>;
22
22
  export declare const preparePinsSettings: (settings: PinsSettings, context: any, options?: {
23
23
  libraries: {
24
24
  [key: string]: string;
File without changes