@promptbook/node 0.100.4-0 → 0.101.0-0
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 +9 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +4 -2
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +14 -0
- package/esm/typings/src/_packages/types.index.d.ts +4 -6
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +21 -0
- package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/AgentModelRequirements.d.ts +1 -1
- package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/AgentSourceParseResult.d.ts +3 -1
- package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createAgentModelRequirements.d.ts +2 -2
- package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createAgentModelRequirementsWithCommitments.d.ts +3 -3
- package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createCommitmentRegex.d.ts +2 -2
- package/esm/typings/src/book-2.0/agent-source/extractMetaLinks.d.ts +8 -0
- package/esm/typings/src/book-2.0/agent-source/parseAgentSource.d.ts +4 -19
- package/esm/typings/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +9 -0
- package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/_base/BaseCommitmentDefinition.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/_base/CommitmentDefinition.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/{_misc → _base}/ParsedCommitment.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
- package/esm/typings/src/book-2.0/utils/extractAgentMetadata.d.ts +17 -0
- package/esm/typings/src/book-2.0/utils/extractProfileImageFromSystemMessage.d.ts +12 -0
- package/esm/typings/src/book-2.0/utils/generateGravatarUrl.d.ts +10 -0
- package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +10 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -1
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +2 -8
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +1 -1
- package/esm/typings/src/utils/expectation-counters/countCharacters.d.ts +2 -1
- package/esm/typings/src/utils/expectation-counters/countLines.d.ts +2 -1
- package/esm/typings/src/utils/expectation-counters/countPages.d.ts +2 -1
- package/esm/typings/src/utils/expectation-counters/countParagraphs.d.ts +2 -1
- package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/countWords.d.ts +3 -1
- package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +12 -0
- package/esm/typings/src/utils/markdown/humanizeAiText.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/humanizeAiTextEllipsis.d.ts +12 -0
- package/esm/typings/src/utils/markdown/humanizeAiTextEmdashed.d.ts +12 -0
- package/esm/typings/src/utils/markdown/humanizeAiTextQuotes.d.ts +12 -0
- package/esm/typings/src/utils/markdown/humanizeAiTextWhitespace.d.ts +12 -0
- package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +11 -0
- package/esm/typings/src/utils/markdown/promptbookifyAiText.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/removeMarkdownLinks.d.ts +11 -0
- package/esm/typings/src/utils/markdown/removeMarkdownLinks.test.d.ts +4 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +9 -2
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-2.0/commitments/_misc/parseAgentSourceWithCommitments.d.ts +0 -24
- package/esm/typings/src/book-2.0/utils/profileImageUtils.d.ts +0 -39
- /package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/removeCommentsFromSystemMessage.d.ts +0 -0
package/esm/index.es.js
CHANGED
@@ -31,7 +31,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
31
31
|
* @generated
|
32
32
|
* @see https://github.com/webgptorg/promptbook
|
33
33
|
*/
|
34
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
34
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
|
35
35
|
/**
|
36
36
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
37
37
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -3065,7 +3065,7 @@ const LLM_PROVIDER_PROFILES = {
|
|
3065
3065
|
};
|
3066
3066
|
/**
|
3067
3067
|
* TODO: Refactor this - each profile must be alongside the provider definition
|
3068
|
-
* TODO: [🕛] Unite `
|
3068
|
+
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
3069
3069
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
3070
3070
|
*/
|
3071
3071
|
|
@@ -3497,6 +3497,7 @@ function countCharacters(text) {
|
|
3497
3497
|
}
|
3498
3498
|
/**
|
3499
3499
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
3500
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
3500
3501
|
*/
|
3501
3502
|
|
3502
3503
|
/**
|
@@ -3531,6 +3532,7 @@ function countLines(text) {
|
|
3531
3532
|
}
|
3532
3533
|
/**
|
3533
3534
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
3535
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
3534
3536
|
*/
|
3535
3537
|
|
3536
3538
|
/**
|
@@ -3545,6 +3547,7 @@ function countPages(text) {
|
|
3545
3547
|
}
|
3546
3548
|
/**
|
3547
3549
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
3550
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
3548
3551
|
*/
|
3549
3552
|
|
3550
3553
|
/**
|
@@ -3557,6 +3560,7 @@ function countParagraphs(text) {
|
|
3557
3560
|
}
|
3558
3561
|
/**
|
3559
3562
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
3563
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
3560
3564
|
*/
|
3561
3565
|
|
3562
3566
|
/**
|
@@ -3577,6 +3581,7 @@ function countSentences(text) {
|
|
3577
3581
|
}
|
3578
3582
|
/**
|
3579
3583
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
3584
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
3580
3585
|
*/
|
3581
3586
|
|
3582
3587
|
const defaultDiacriticsRemovalMap = [
|
@@ -3854,6 +3859,8 @@ function countWords(text) {
|
|
3854
3859
|
}
|
3855
3860
|
/**
|
3856
3861
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
3862
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
3863
|
+
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
3857
3864
|
*/
|
3858
3865
|
|
3859
3866
|
/**
|