@botpress/runtime 1.3.5 → 1.3.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 +20 -25
- package/dist/definition.js.map +3 -3
- package/dist/internal.js +16 -21
- package/dist/internal.js.map +3 -3
- package/dist/library.js +2 -7
- package/dist/library.js.map +2 -2
- package/dist/runtime/chat/chat.d.ts +161 -3
- package/dist/runtime/chat/chat.d.ts.map +1 -1
- package/dist/runtime/chat/components.d.ts +487 -0
- package/dist/runtime/chat/components.d.ts.map +1 -0
- package/dist/runtime.js +56 -71
- package/dist/runtime.js.map +3 -3
- package/package.json +1 -1
package/dist/internal.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.3.
|
|
51
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.3.7", adk: "not-installed", sdk: "4.17.0", llmz: "0.0.26", zai: "2.1.16", cognitive: "0.1.47" };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -41979,6 +41979,7 @@ init_define_BUILD();
|
|
|
41979
41979
|
init_define_PACKAGE_VERSIONS();
|
|
41980
41980
|
import {
|
|
41981
41981
|
Chat,
|
|
41982
|
+
DefaultComponents,
|
|
41982
41983
|
isAnyComponent as isAnyComponent2
|
|
41983
41984
|
} from "llmz";
|
|
41984
41985
|
|
|
@@ -42173,9 +42174,6 @@ ${openTag}${inner}${closeTag}
|
|
|
42173
42174
|
\`\`\``;
|
|
42174
42175
|
}
|
|
42175
42176
|
|
|
42176
|
-
// src/runtime/chat/chat.ts
|
|
42177
|
-
import { DefaultComponents } from "llmz";
|
|
42178
|
-
|
|
42179
42177
|
// ../../node_modules/.bun/dedent@1.7.0/node_modules/dedent/dist/dedent.mjs
|
|
42180
42178
|
init_define_BUILD();
|
|
42181
42179
|
init_define_PACKAGE_VERSIONS();
|
|
@@ -42286,6 +42284,20 @@ ${indent}`);
|
|
|
42286
42284
|
return value;
|
|
42287
42285
|
}
|
|
42288
42286
|
|
|
42287
|
+
// src/utilities/events.ts
|
|
42288
|
+
init_define_BUILD();
|
|
42289
|
+
init_define_PACKAGE_VERSIONS();
|
|
42290
|
+
function isEvent(event) {
|
|
42291
|
+
return event !== null && typeof event === "object" && "type" in event && "payload" in event && "id" in event;
|
|
42292
|
+
}
|
|
42293
|
+
function isEventMessage(event) {
|
|
42294
|
+
const type = event?.type || null;
|
|
42295
|
+
if (type === "message_created" && event.payload && typeof event.payload.message === "object") {
|
|
42296
|
+
return true;
|
|
42297
|
+
}
|
|
42298
|
+
return false;
|
|
42299
|
+
}
|
|
42300
|
+
|
|
42289
42301
|
// src/runtime/config.ts
|
|
42290
42302
|
init_define_BUILD();
|
|
42291
42303
|
init_define_PACKAGE_VERSIONS();
|
|
@@ -42305,23 +42317,6 @@ var Transcript = {
|
|
|
42305
42317
|
init_define_BUILD();
|
|
42306
42318
|
init_define_PACKAGE_VERSIONS();
|
|
42307
42319
|
|
|
42308
|
-
// src/utilities/events.ts
|
|
42309
|
-
init_define_BUILD();
|
|
42310
|
-
init_define_PACKAGE_VERSIONS();
|
|
42311
|
-
function isEvent(event) {
|
|
42312
|
-
return event !== null && typeof event === "object" && "type" in event && "payload" in event && "id" in event;
|
|
42313
|
-
}
|
|
42314
|
-
function isEventMessage(event) {
|
|
42315
|
-
const type = event?.type || null;
|
|
42316
|
-
if (type === "message_created" && event.payload && typeof event.payload.message === "object") {
|
|
42317
|
-
return true;
|
|
42318
|
-
}
|
|
42319
|
-
return false;
|
|
42320
|
-
}
|
|
42321
|
-
|
|
42322
|
-
// src/runtime/chat/chat.ts
|
|
42323
|
-
var OutgoingMessages = Object.values(DefaultComponents);
|
|
42324
|
-
|
|
42325
42320
|
// src/runtime/chat/transcript.ts
|
|
42326
42321
|
init_define_BUILD();
|
|
42327
42322
|
init_define_PACKAGE_VERSIONS();
|