@botpress/runtime 1.13.6 → 1.13.7
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/dist/definition.js +4 -17
- package/dist/definition.js.map +2 -2
- package/dist/internal.js +4 -17
- package/dist/internal.js.map +2 -2
- package/dist/library.js +4 -17
- package/dist/library.js.map +2 -2
- package/dist/primitives/conversation-instance.d.ts +1 -0
- package/dist/primitives/conversation-instance.d.ts.map +1 -1
- package/dist/runtime/handlers/conversation.d.ts.map +1 -1
- package/dist/runtime.js +5 -31
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
|
|
|
48
48
|
var define_PACKAGE_VERSIONS_default;
|
|
49
49
|
var init_define_PACKAGE_VERSIONS = __esm({
|
|
50
50
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
51
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.13.
|
|
51
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.13.7", adk: "1.13.7", sdk: "5.0.2", llmz: "0.0.35", zai: "2.5.6", cognitive: "0.3.3" };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -38168,7 +38168,7 @@ var init_conversation_instance = __esm({
|
|
|
38168
38168
|
init_define_BUILD();
|
|
38169
38169
|
init_define_PACKAGE_VERSIONS();
|
|
38170
38170
|
init_runtime2();
|
|
38171
|
-
BaseConversationInstance = class
|
|
38171
|
+
BaseConversationInstance = class {
|
|
38172
38172
|
id;
|
|
38173
38173
|
channel;
|
|
38174
38174
|
integration;
|
|
@@ -38176,6 +38176,7 @@ var init_conversation_instance = __esm({
|
|
|
38176
38176
|
* The integration alias (e.g., "telegram1", "telegram2").
|
|
38177
38177
|
* This is useful when you have multiple instances of the same integration
|
|
38178
38178
|
* with different configurations (multi-integration setup).
|
|
38179
|
+
* Note: conversation.integration from the API is already the alias.
|
|
38179
38180
|
*/
|
|
38180
38181
|
alias;
|
|
38181
38182
|
conversation;
|
|
@@ -38185,24 +38186,10 @@ var init_conversation_instance = __esm({
|
|
|
38185
38186
|
TrackedState;
|
|
38186
38187
|
// @internal
|
|
38187
38188
|
TrackedTags;
|
|
38188
|
-
/**
|
|
38189
|
-
* Extract integration alias from tags (e.g., "telegram3:id" -> "telegram3")
|
|
38190
|
-
* @internal
|
|
38191
|
-
*/
|
|
38192
|
-
static extractAliasFromTags(tags) {
|
|
38193
|
-
if (!tags) return void 0;
|
|
38194
|
-
for (const tagKey of Object.keys(tags)) {
|
|
38195
|
-
const colonIndex = tagKey.indexOf(":");
|
|
38196
|
-
if (colonIndex > 0) {
|
|
38197
|
-
return tagKey.substring(0, colonIndex);
|
|
38198
|
-
}
|
|
38199
|
-
}
|
|
38200
|
-
return void 0;
|
|
38201
|
-
}
|
|
38202
38189
|
constructor(conversation, client2, alias) {
|
|
38203
38190
|
this.id = conversation.id;
|
|
38204
38191
|
this.integration = conversation.integration;
|
|
38205
|
-
this.alias = alias ??
|
|
38192
|
+
this.alias = alias ?? conversation.integration;
|
|
38206
38193
|
this.channel = `${this.alias}.${conversation.channel}`;
|
|
38207
38194
|
this.conversation = conversation;
|
|
38208
38195
|
this.client = client2;
|