@promptbook/website-crawler 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
|
@@ -30,7 +30,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
30
30
|
* @generated
|
|
31
31
|
* @see https://github.com/webgptorg/promptbook
|
|
32
32
|
*/
|
|
33
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
33
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
|
|
34
34
|
/**
|
|
35
35
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
36
36
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3126,7 +3126,7 @@ const LLM_PROVIDER_PROFILES = {
|
|
|
3126
3126
|
};
|
|
3127
3127
|
/**
|
|
3128
3128
|
* TODO: Refactor this - each profile must be alongside the provider definition
|
|
3129
|
-
* TODO: [🕛] Unite `
|
|
3129
|
+
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
3130
3130
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3131
3131
|
*/
|
|
3132
3132
|
|
|
@@ -4935,6 +4935,7 @@ function countCharacters(text) {
|
|
|
4935
4935
|
}
|
|
4936
4936
|
/**
|
|
4937
4937
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
4938
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
4938
4939
|
*/
|
|
4939
4940
|
|
|
4940
4941
|
/**
|
|
@@ -4969,6 +4970,7 @@ function countLines(text) {
|
|
|
4969
4970
|
}
|
|
4970
4971
|
/**
|
|
4971
4972
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
4973
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
4972
4974
|
*/
|
|
4973
4975
|
|
|
4974
4976
|
/**
|
|
@@ -4983,6 +4985,7 @@ function countPages(text) {
|
|
|
4983
4985
|
}
|
|
4984
4986
|
/**
|
|
4985
4987
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
4988
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
4986
4989
|
*/
|
|
4987
4990
|
|
|
4988
4991
|
/**
|
|
@@ -4995,6 +4998,7 @@ function countParagraphs(text) {
|
|
|
4995
4998
|
}
|
|
4996
4999
|
/**
|
|
4997
5000
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5001
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
4998
5002
|
*/
|
|
4999
5003
|
|
|
5000
5004
|
/**
|
|
@@ -5015,6 +5019,7 @@ function countSentences(text) {
|
|
|
5015
5019
|
}
|
|
5016
5020
|
/**
|
|
5017
5021
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5022
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5018
5023
|
*/
|
|
5019
5024
|
|
|
5020
5025
|
/**
|
|
@@ -5031,6 +5036,8 @@ function countWords(text) {
|
|
|
5031
5036
|
}
|
|
5032
5037
|
/**
|
|
5033
5038
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5039
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5040
|
+
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
5034
5041
|
*/
|
|
5035
5042
|
|
|
5036
5043
|
/**
|