@digipair/skill-chatbot 0.2.10 → 0.2.15

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
@@ -2,26 +2,6 @@
2
2
 
3
3
  var engine = require('@digipair/engine');
4
4
 
5
- function _interopNamespace(e) {
6
- if (e && e.__esModule) return e;
7
- var n = Object.create(null);
8
- if (e) {
9
- Object.keys(e).forEach(function (k) {
10
- if (k !== 'default') {
11
- var d = Object.getOwnPropertyDescriptor(e, k);
12
- Object.defineProperty(n, k, d.get ? d : {
13
- enumerable: true,
14
- get: function () { return e[k]; }
15
- });
16
- }
17
- });
18
- }
19
- n["default"] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- var engine__namespace = /*#__PURE__*/_interopNamespace(engine);
24
-
25
5
  function _extends() {
26
6
  _extends = Object.assign || function assign(target) {
27
7
  for(var i = 1; i < arguments.length; i++){
@@ -40783,7 +40763,6 @@ var RecursiveCharacterTextSplitter = /*#__PURE__*/ function(TextSplitter) {
40783
40763
  return RecursiveCharacterTextSplitter;
40784
40764
  }(TextSplitter);
40785
40765
 
40786
- const { executePinsList, preparePinsSettings } = engine__namespace;
40787
40766
  var _process_env_VESPA_SERVER;
40788
40767
  const VESPA_SERVER = (_process_env_VESPA_SERVER = process.env['VESPA_SERVER']) != null ? _process_env_VESPA_SERVER : 'http://localhost:8080';
40789
40768
  var _process_env_OLLAMA_SERVER;
@@ -41096,14 +41075,14 @@ Summarize the conversation history in a short, clear and concise text, taking in
41096
41075
  });
41097
41076
  return {
41098
41077
  assistant,
41099
- command: await Promise.all(command.map((settings)=>preparePinsSettings(settings, context))),
41078
+ command: await Promise.all(command.map((settings)=>engine.preparePinsSettings(settings, context))),
41100
41079
  sources,
41101
41080
  logs
41102
41081
  };
41103
41082
  }
41104
41083
  // SCENES
41105
41084
  async boost(_params, pinsSettingsList, context) {
41106
- const result = await executePinsList(pinsSettingsList, context);
41085
+ const result = await engine.executePinsList(pinsSettingsList, context);
41107
41086
  return result;
41108
41087
  }
41109
41088
  async getRole(params, _pinsSettingsList, context) {
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './index.cjs';
package/index.esm2.js CHANGED
@@ -1,4 +1,4 @@
1
- import * as engine from '@digipair/engine';
1
+ import { preparePinsSettings, executePinsList } from '@digipair/engine';
2
2
 
3
3
  function _extends() {
4
4
  _extends = Object.assign || function assign(target) {
@@ -40761,7 +40761,6 @@ var RecursiveCharacterTextSplitter = /*#__PURE__*/ function(TextSplitter) {
40761
40761
  return RecursiveCharacterTextSplitter;
40762
40762
  }(TextSplitter);
40763
40763
 
40764
- const { executePinsList, preparePinsSettings } = engine;
40765
40764
  var _process_env_VESPA_SERVER;
40766
40765
  const VESPA_SERVER = (_process_env_VESPA_SERVER = process.env['VESPA_SERVER']) != null ? _process_env_VESPA_SERVER : 'http://localhost:8080';
40767
40766
  var _process_env_OLLAMA_SERVER;
@@ -1,4 +1,4 @@
1
- type PinsSettings = any;
1
+ import { PinsSettings } from '@digipair/engine';
2
2
  export declare const history: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any[]>;
3
3
  export declare const find: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
4
4
  export declare const search: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
@@ -11,4 +11,3 @@ export declare const chatbot: (params: any, pinsSettingsList: PinsSettings[], co
11
11
  export declare const boost: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
12
12
  export declare const getRole: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
13
13
  export declare const setRole: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
14
- export {};
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@digipair/skill-chatbot",
3
- "version": "0.2.10",
3
+ "version": "0.2.15",
4
4
  "dependencies": {},
5
+ "typings": "./index.d.ts",
5
6
  "main": "./index.cjs.js",
6
7
  "module": "./index.esm.js"
7
8
  }