@digipair/skill-web-chatbot 0.33.10 → 0.33.12
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 +8 -28
- package/index.esm2.js +8 -28
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -36822,14 +36822,14 @@ function indent(str, spaces) {
|
|
|
36822
36822
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
36823
36823
|
// match is required
|
|
36824
36824
|
if (!match) {
|
|
36825
|
-
return
|
|
36825
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
|
|
36826
36826
|
v: nextMatch1
|
|
36827
36827
|
};
|
|
36828
36828
|
}
|
|
36829
36829
|
var token = match.token, offset = match.offset;
|
|
36830
36830
|
i1 += offset;
|
|
36831
36831
|
if (token === " ") {
|
|
36832
|
-
return
|
|
36832
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
|
|
36833
36833
|
}
|
|
36834
36834
|
tokens1 = _to_consumable_array$c(tokens1).concat([
|
|
36835
36835
|
token
|
|
@@ -36848,7 +36848,7 @@ function indent(str, spaces) {
|
|
|
36848
36848
|
if (contextKeys.some(function(el) {
|
|
36849
36849
|
return el.startsWith(name);
|
|
36850
36850
|
})) {
|
|
36851
|
-
return
|
|
36851
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
|
|
36852
36852
|
}
|
|
36853
36853
|
if (dateTimeIdentifiers.some(function(el) {
|
|
36854
36854
|
return el === name;
|
|
@@ -36867,9 +36867,9 @@ function indent(str, spaces) {
|
|
|
36867
36867
|
if (dateTimeIdentifiers.some(function(el) {
|
|
36868
36868
|
return el.startsWith(name);
|
|
36869
36869
|
})) {
|
|
36870
|
-
return
|
|
36870
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
|
|
36871
36871
|
}
|
|
36872
|
-
return
|
|
36872
|
+
return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
|
|
36873
36873
|
v: nextMatch1
|
|
36874
36874
|
};
|
|
36875
36875
|
};
|
|
@@ -58644,25 +58644,10 @@ class ChatbotElement extends s$3 {
|
|
|
58644
58644
|
}
|
|
58645
58645
|
const selectedBoosts = this.getBoostsFromTarget(event.target, boosts);
|
|
58646
58646
|
// garder les boosts communs entre les deux listes
|
|
58647
|
-
this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>({
|
|
58648
|
-
|
|
58649
|
-
prompt: boost.prompt,
|
|
58650
|
-
required: boost.required,
|
|
58651
|
-
text: boost.text,
|
|
58652
|
-
inputs: boost.inputs,
|
|
58653
|
-
context: {
|
|
58647
|
+
this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>_extends({}, boost, {
|
|
58648
|
+
context: _extends({}, boost.context || {}, {
|
|
58654
58649
|
element: getCssSelector(event.target.closest(boost.selector))
|
|
58655
|
-
}
|
|
58656
|
-
command: {
|
|
58657
|
-
library: '@digipair/actions-chatbot',
|
|
58658
|
-
element: 'executeRemoteReasoning',
|
|
58659
|
-
properties: {
|
|
58660
|
-
digipair: this.code,
|
|
58661
|
-
reasoning: boost.scene,
|
|
58662
|
-
input: {},
|
|
58663
|
-
apiUrl: API_URL$1
|
|
58664
|
-
}
|
|
58665
|
-
}
|
|
58650
|
+
})
|
|
58666
58651
|
}));
|
|
58667
58652
|
}, 1000);
|
|
58668
58653
|
}, true);
|
|
@@ -58741,11 +58726,6 @@ class ChatbotElement extends s$3 {
|
|
|
58741
58726
|
parent_history: boost == null ? void 0 : boost.parent_history,
|
|
58742
58727
|
parent_conversation: boost == null ? void 0 : boost.parent_conversation,
|
|
58743
58728
|
context: (boost == null ? void 0 : boost.context) || {}
|
|
58744
|
-
}, !boost ? {} : {
|
|
58745
|
-
boost: {
|
|
58746
|
-
name: boost.name,
|
|
58747
|
-
text: boost.text
|
|
58748
|
-
}
|
|
58749
58729
|
});
|
|
58750
58730
|
const detail = await executePinsList([
|
|
58751
58731
|
pins
|
package/index.esm2.js
CHANGED
|
@@ -36802,14 +36802,14 @@ function indent(str, spaces) {
|
|
|
36802
36802
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
36803
36803
|
// match is required
|
|
36804
36804
|
if (!match) {
|
|
36805
|
-
return
|
|
36805
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
36806
36806
|
v: nextMatch1
|
|
36807
36807
|
};
|
|
36808
36808
|
}
|
|
36809
36809
|
var token = match.token, offset = match.offset;
|
|
36810
36810
|
i1 += offset;
|
|
36811
36811
|
if (token === " ") {
|
|
36812
|
-
return
|
|
36812
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
36813
36813
|
}
|
|
36814
36814
|
tokens1 = _to_consumable_array$c(tokens1).concat([
|
|
36815
36815
|
token
|
|
@@ -36828,7 +36828,7 @@ function indent(str, spaces) {
|
|
|
36828
36828
|
if (contextKeys.some(function(el) {
|
|
36829
36829
|
return el.startsWith(name);
|
|
36830
36830
|
})) {
|
|
36831
|
-
return
|
|
36831
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
36832
36832
|
}
|
|
36833
36833
|
if (dateTimeIdentifiers.some(function(el) {
|
|
36834
36834
|
return el === name;
|
|
@@ -36847,9 +36847,9 @@ function indent(str, spaces) {
|
|
|
36847
36847
|
if (dateTimeIdentifiers.some(function(el) {
|
|
36848
36848
|
return el.startsWith(name);
|
|
36849
36849
|
})) {
|
|
36850
|
-
return
|
|
36850
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
36851
36851
|
}
|
|
36852
|
-
return
|
|
36852
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
36853
36853
|
v: nextMatch1
|
|
36854
36854
|
};
|
|
36855
36855
|
};
|
|
@@ -58624,25 +58624,10 @@ class ChatbotElement extends s$3 {
|
|
|
58624
58624
|
}
|
|
58625
58625
|
const selectedBoosts = this.getBoostsFromTarget(event.target, boosts);
|
|
58626
58626
|
// garder les boosts communs entre les deux listes
|
|
58627
|
-
this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>({
|
|
58628
|
-
|
|
58629
|
-
prompt: boost.prompt,
|
|
58630
|
-
required: boost.required,
|
|
58631
|
-
text: boost.text,
|
|
58632
|
-
inputs: boost.inputs,
|
|
58633
|
-
context: {
|
|
58627
|
+
this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>_extends({}, boost, {
|
|
58628
|
+
context: _extends({}, boost.context || {}, {
|
|
58634
58629
|
element: getCssSelector(event.target.closest(boost.selector))
|
|
58635
|
-
}
|
|
58636
|
-
command: {
|
|
58637
|
-
library: '@digipair/actions-chatbot',
|
|
58638
|
-
element: 'executeRemoteReasoning',
|
|
58639
|
-
properties: {
|
|
58640
|
-
digipair: this.code,
|
|
58641
|
-
reasoning: boost.scene,
|
|
58642
|
-
input: {},
|
|
58643
|
-
apiUrl: API_URL$1
|
|
58644
|
-
}
|
|
58645
|
-
}
|
|
58630
|
+
})
|
|
58646
58631
|
}));
|
|
58647
58632
|
}, 1000);
|
|
58648
58633
|
}, true);
|
|
@@ -58721,11 +58706,6 @@ class ChatbotElement extends s$3 {
|
|
|
58721
58706
|
parent_history: boost == null ? void 0 : boost.parent_history,
|
|
58722
58707
|
parent_conversation: boost == null ? void 0 : boost.parent_conversation,
|
|
58723
58708
|
context: (boost == null ? void 0 : boost.context) || {}
|
|
58724
|
-
}, !boost ? {} : {
|
|
58725
|
-
boost: {
|
|
58726
|
-
name: boost.name,
|
|
58727
|
-
text: boost.text
|
|
58728
|
-
}
|
|
58729
58709
|
});
|
|
58730
58710
|
const detail = await executePinsList([
|
|
58731
58711
|
pins
|