@promptbook/legacy-documents 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
|
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
29
29
|
* @generated
|
|
30
30
|
* @see https://github.com/webgptorg/promptbook
|
|
31
31
|
*/
|
|
32
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
32
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
|
|
33
33
|
/**
|
|
34
34
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
35
35
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3171,7 +3171,7 @@ const LLM_PROVIDER_PROFILES = {
|
|
|
3171
3171
|
};
|
|
3172
3172
|
/**
|
|
3173
3173
|
* TODO: Refactor this - each profile must be alongside the provider definition
|
|
3174
|
-
* TODO: [🕛] Unite `
|
|
3174
|
+
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
3175
3175
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3176
3176
|
*/
|
|
3177
3177
|
|
|
@@ -5085,6 +5085,7 @@ function countCharacters(text) {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
/**
|
|
5087
5087
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5088
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5088
5089
|
*/
|
|
5089
5090
|
|
|
5090
5091
|
/**
|
|
@@ -5119,6 +5120,7 @@ function countLines(text) {
|
|
|
5119
5120
|
}
|
|
5120
5121
|
/**
|
|
5121
5122
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5123
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5122
5124
|
*/
|
|
5123
5125
|
|
|
5124
5126
|
/**
|
|
@@ -5133,6 +5135,7 @@ function countPages(text) {
|
|
|
5133
5135
|
}
|
|
5134
5136
|
/**
|
|
5135
5137
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5138
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5136
5139
|
*/
|
|
5137
5140
|
|
|
5138
5141
|
/**
|
|
@@ -5145,6 +5148,7 @@ function countParagraphs(text) {
|
|
|
5145
5148
|
}
|
|
5146
5149
|
/**
|
|
5147
5150
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5151
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5148
5152
|
*/
|
|
5149
5153
|
|
|
5150
5154
|
/**
|
|
@@ -5165,6 +5169,7 @@ function countSentences(text) {
|
|
|
5165
5169
|
}
|
|
5166
5170
|
/**
|
|
5167
5171
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5172
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5168
5173
|
*/
|
|
5169
5174
|
|
|
5170
5175
|
/**
|
|
@@ -5181,6 +5186,8 @@ function countWords(text) {
|
|
|
5181
5186
|
}
|
|
5182
5187
|
/**
|
|
5183
5188
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5189
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5190
|
+
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
5184
5191
|
*/
|
|
5185
5192
|
|
|
5186
5193
|
/**
|