@promptbook/core 0.111.0-3 â 0.111.0-4
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/esm/index.es.js +3 -7
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageMap.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +19 -0
- package/esm/typings/src/book-components/Chat/utils/sanitizeStreamingMessageContent.test.d.ts +1 -0
- package/esm/typings/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +2 -2
- package/esm/typings/src/commitments/index.d.ts +1 -1
- package/esm/typings/src/utils/clientVersion.d.ts +14 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +3 -7
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.111.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.111.0-4';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [đ] Ignore a discrepancy between file name and entity name
|
|
@@ -14748,7 +14748,7 @@ class UseEmailCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14748
14748
|
*/
|
|
14749
14749
|
class UseImageGeneratorCommitmentDefinition extends BaseCommitmentDefinition {
|
|
14750
14750
|
constructor(type = 'USE IMAGE GENERATOR') {
|
|
14751
|
-
super(type
|
|
14751
|
+
super(type);
|
|
14752
14752
|
}
|
|
14753
14753
|
get requiresContent() {
|
|
14754
14754
|
return false;
|
|
@@ -15348,6 +15348,7 @@ class NotYetImplementedCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15348
15348
|
}
|
|
15349
15349
|
}
|
|
15350
15350
|
|
|
15351
|
+
// Import all commitment definition classes
|
|
15351
15352
|
/**
|
|
15352
15353
|
* Registry of all available commitment definitions
|
|
15353
15354
|
* This array contains instances of all commitment definitions
|
|
@@ -15414,11 +15415,6 @@ const COMMITMENT_REGISTRY = [
|
|
|
15414
15415
|
new UseTimeCommitmentDefinition(),
|
|
15415
15416
|
new UseEmailCommitmentDefinition(),
|
|
15416
15417
|
new UseImageGeneratorCommitmentDefinition('USE IMAGE GENERATOR'),
|
|
15417
|
-
new UseImageGeneratorCommitmentDefinition('USE IMAGE GENERATION' /* <- TODO: Remove any */),
|
|
15418
|
-
new UseImageGeneratorCommitmentDefinition('IMAGE GENERATOR' /* <- TODO: Remove any */),
|
|
15419
|
-
new UseImageGeneratorCommitmentDefinition('IMAGE GENERATION' /* <- TODO: Remove any */),
|
|
15420
|
-
new UseImageGeneratorCommitmentDefinition('USE IMAGE' /* <- TODO: Remove any */),
|
|
15421
|
-
// <- Note: [âšī¸] How to deal with commitment aliases with defined functions
|
|
15422
15418
|
new UseMcpCommitmentDefinition(),
|
|
15423
15419
|
new UseCommitmentDefinition(),
|
|
15424
15420
|
// Not yet implemented commitments (using placeholder)
|