@promptbook/cli 0.100.3-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 +1 -1
- 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
|
@@ -48,7 +48,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2630,7 +2630,7 @@ const LLM_PROVIDER_PROFILES = {
|
|
|
2630
2630
|
};
|
|
2631
2631
|
/**
|
|
2632
2632
|
* TODO: Refactor this - each profile must be alongside the provider definition
|
|
2633
|
-
* TODO: [🕛] Unite `
|
|
2633
|
+
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
2634
2634
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
2635
2635
|
*/
|
|
2636
2636
|
|
|
@@ -3020,6 +3020,7 @@ function countCharacters(text) {
|
|
|
3020
3020
|
}
|
|
3021
3021
|
/**
|
|
3022
3022
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3023
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3023
3024
|
*/
|
|
3024
3025
|
|
|
3025
3026
|
/**
|
|
@@ -3054,6 +3055,7 @@ function countLines(text) {
|
|
|
3054
3055
|
}
|
|
3055
3056
|
/**
|
|
3056
3057
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3058
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3057
3059
|
*/
|
|
3058
3060
|
|
|
3059
3061
|
/**
|
|
@@ -3068,6 +3070,7 @@ function countPages(text) {
|
|
|
3068
3070
|
}
|
|
3069
3071
|
/**
|
|
3070
3072
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3073
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3071
3074
|
*/
|
|
3072
3075
|
|
|
3073
3076
|
/**
|
|
@@ -3080,6 +3083,7 @@ function countParagraphs(text) {
|
|
|
3080
3083
|
}
|
|
3081
3084
|
/**
|
|
3082
3085
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3086
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3083
3087
|
*/
|
|
3084
3088
|
|
|
3085
3089
|
/**
|
|
@@ -3100,6 +3104,7 @@ function countSentences(text) {
|
|
|
3100
3104
|
}
|
|
3101
3105
|
/**
|
|
3102
3106
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3107
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3103
3108
|
*/
|
|
3104
3109
|
|
|
3105
3110
|
/**
|
|
@@ -3116,6 +3121,8 @@ function countWords(text) {
|
|
|
3116
3121
|
}
|
|
3117
3122
|
/**
|
|
3118
3123
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3124
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3125
|
+
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
3119
3126
|
*/
|
|
3120
3127
|
|
|
3121
3128
|
/**
|