Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cs-chatbots/router-masterbot-tools

Package Overview
Dependencies
Maintainers
4
Versions
434
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cs-chatbots/router-masterbot-tools - npm Package Compare versions

Comparing version 1.3.19 to 1.3.20

2

package.json
{
"name": "@cs-chatbots/router-masterbot-tools",
"version": "1.3.19",
"version": "1.3.20",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -98,5 +98,7 @@ 'use strict';

_doPluginPostback (item) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
'OutputAdapterWingbot: postback()',
item.getName(), item.getParams()
`OutputAdapterWingbot: postback() (plugin), senderId=${senderId}`,
{ action: item.getName(), params: item.getParams() }
);

@@ -120,3 +122,4 @@ this.rawIOData.postback(item.getName(), item.getParams());

this.log.info(
'OutputAdapterWingbot: _send()', sendParams
`OutputAdapterWingbot: _send(), senderId=${id} (MicroApp)`,
sendParams
);

@@ -132,4 +135,9 @@ this.rawIOData.res._send(sendParams);

_setSharedContext (item) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
const context = { genbot: item.getContext() };
this.log.info('OutputAdapterWingbot: res.setSharedContext()', context);
this.log.info(
`OutputAdapterWingbot: res.setSharedContext(), senderId=${senderId}`,
context
);
this.rawIOData.res.setSharedContext(context);

@@ -143,4 +151,9 @@ }

_setRouterContext (item) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
const context = item.getContext();
this.log.info('OutputAdapterWingbot: res.setSharedContext()', context);
this.log.info(
`OutputAdapterWingbot: res.setSharedContext(), senderId=${senderId}`,
context
);
this.rawIOData.res.setSharedContext(context);

@@ -202,6 +215,9 @@ }

_passThread (params) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
if (this.config.routing.bypassRouter) {
this.log.info(
'OutputAdapterWingbot: postback()',
'genbot.route', params
'OutputAdapterWingbot: postback(genbot.route)'
+ `, senderId=${senderId}`,
params
);

@@ -211,3 +227,3 @@ this.rawIOData.postback('genbot.route', params);

this.log.info(
'OutputAdapterWingbot: res.passThread()',
`OutputAdapterWingbot: res.passThread(), senderId=${senderId}`,
params

@@ -224,4 +240,7 @@ );

_doPause (item) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
'OutputAdapterWingbot: res.wait()', item.getMiliseconds()
`OutputAdapterWingbot: res.wait(), senderId=${senderId}`,
item.getMiliseconds()
);

@@ -238,5 +257,6 @@ this.rawIOData.res.wait(item.getMiliseconds());

if (Number(process.env.ERROR_TO_OUTPUT) === 1) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
'OutputAdapterWingbot - res.text(),'
+ `, sessionId=${this.session.get('dialogSessionId')}`,
`OutputAdapterWingbot - res.text(), senderId=${senderId}`,
item.toMarkDown()

@@ -253,5 +273,6 @@ );

_writeText (text) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
'OutputAdapterWingbot - res.text()'
+ `, sessionId=${this.session.get('dialogSessionId')}:`,
`OutputAdapterWingbot - res.text(), senderId=${senderId}`,
text

@@ -268,5 +289,7 @@ );

_writeImage (img) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
`OutputAdapterWingbot - res.image('${img.getSrc()}')`
+ `, sessionId=${this.session.get('dialogSessionId')}:`
+ `, senderId=${senderId}`
);

@@ -283,5 +306,6 @@ this.rawIOData.res.image(img.getSrc());

_writeTextAndOptions (text, riOptions) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
'OutputAdapterWingbot - res.text()'
+ `, sessionId=${this.session.get('dialogSessionId')}:`,
`OutputAdapterWingbot - res.text(), senderId=${senderId}`,
text, riOptions.getOptions()

@@ -298,5 +322,6 @@ );

_writeDebug (item) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
'OutputAdapterWingbot - res.text()'
+ `, sessionId=${this.session.get('dialogSessionId')}:`,
`OutputAdapterWingbot - res.text(), senderId=${senderId}`,
item.toMarkDown()

@@ -395,6 +420,8 @@ );

if (!this._listHasError(list)) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
const tmpl = this.rawIOData.res.genericTemplate();
this.log.info(
'OutputAdapterWingbot - res.genericTemplate()'
+ `, sessionId=${this.session.get('dialogSessionId')}`
+ `, senderId=${senderId}`
);

@@ -450,4 +477,3 @@ list.getItems().forEach((item) => {

this.log.info(
'OutputAdapterWingbot - TEMPLATE.send()'
+ `, sessionId=${this.session.get('dialogSessionId')}`
`OutputAdapterWingbot - TEMPLATE.send(), senderId=${senderId}`
);

@@ -470,5 +496,7 @@ this.outputWasSent();

const retVal = tmpl.addElement(primaryText);
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
`OutputAdapterWingbot - TEMPLATE.addElement('${primaryText}')`
+ `, sessionId=${this.session.get('dialogSessionId')}`
+ `, senderId=${senderId}`
);

@@ -479,3 +507,3 @@ if (imgSrc) {

`OutputAdapterWingbot - TEMPLATE.setElementImage('${imgSrc}')`
+ `, sessionId=${this.session.get('dialogSessionId')}`
+ `, senderId=${senderId}`
);

@@ -488,3 +516,3 @@ }

+ `('${primaryLink}')`
+ `, sessionId=${this.session.get('dialogSessionId')}`
+ `, senderId=${senderId}`
);

@@ -497,3 +525,3 @@ }

+ `('${secondaryText}', '${secondaryLink}')`
+ `, sessionId=${this.session.get('dialogSessionId')}`
+ `, senderId=${senderId}`
);

@@ -604,5 +632,6 @@ }

_sendSuggestions (suggestions) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
this.log.info(
'OutputAdapterWingbot - res.text()'
+ `, sessionId=${this.session.get('dialogSessionId')}:`,
`OutputAdapterWingbot - res.text(), senderId=${senderId}`,
suggestions.getPrompt(),

@@ -659,2 +688,4 @@ suggestions.getSuggestions()

_sendDialogStatisticsForFirstAction (actions) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
if (actions.length > 0) {

@@ -666,3 +697,3 @@ const [action, nextAction] = actions;

+ ` res.trackAsSkill('${action.skill}')`
+ `: sessionId=${this.session.get('dialogSessionId')}`
+ `, senderId=${senderId}`
);

@@ -687,2 +718,4 @@ this.rawIOData.res.trackAsSkill(action.skill);

_callTrackAs (action, logMsgPrefix) {
const senderId = this.getOrchestrator().getInputAdapter()
.getExternalSessId();
const trackAsParam = typeof action === 'string'

@@ -692,4 +725,3 @@ ? `'${action}'`

this.log.info(
`${logMsgPrefix}res.trackAs(${trackAsParam})`
+ `: sessionId=${this.session.get('dialogSessionId')}`
`${logMsgPrefix}res.trackAs(${trackAsParam}), senderId=${senderId}`
);

@@ -696,0 +728,0 @@ this.rawIOData.res.trackAs(action);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc