@promptbook/wizard 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 +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
@@ -39,7 +39,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
39
39
|
* @generated
|
40
40
|
* @see https://github.com/webgptorg/promptbook
|
41
41
|
*/
|
42
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
42
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
|
43
43
|
/**
|
44
44
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
45
45
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -1401,7 +1401,7 @@ const LLM_PROVIDER_PROFILES = {
|
|
1401
1401
|
};
|
1402
1402
|
/**
|
1403
1403
|
* TODO: Refactor this - each profile must be alongside the provider definition
|
1404
|
-
* TODO: [🕛] Unite `
|
1404
|
+
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
1405
1405
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
1406
1406
|
*/
|
1407
1407
|
|
@@ -1975,6 +1975,7 @@ function countCharacters(text) {
|
|
1975
1975
|
}
|
1976
1976
|
/**
|
1977
1977
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
1978
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
1978
1979
|
*/
|
1979
1980
|
|
1980
1981
|
/**
|
@@ -2009,6 +2010,7 @@ function countLines(text) {
|
|
2009
2010
|
}
|
2010
2011
|
/**
|
2011
2012
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2013
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2012
2014
|
*/
|
2013
2015
|
|
2014
2016
|
/**
|
@@ -2023,6 +2025,7 @@ function countPages(text) {
|
|
2023
2025
|
}
|
2024
2026
|
/**
|
2025
2027
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2028
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2026
2029
|
*/
|
2027
2030
|
|
2028
2031
|
/**
|
@@ -2035,6 +2038,7 @@ function countParagraphs(text) {
|
|
2035
2038
|
}
|
2036
2039
|
/**
|
2037
2040
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2041
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2038
2042
|
*/
|
2039
2043
|
|
2040
2044
|
/**
|
@@ -2055,6 +2059,7 @@ function countSentences(text) {
|
|
2055
2059
|
}
|
2056
2060
|
/**
|
2057
2061
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2062
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2058
2063
|
*/
|
2059
2064
|
|
2060
2065
|
const defaultDiacriticsRemovalMap = [
|
@@ -2332,6 +2337,8 @@ function countWords(text) {
|
|
2332
2337
|
}
|
2333
2338
|
/**
|
2334
2339
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2340
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2341
|
+
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
2335
2342
|
*/
|
2336
2343
|
|
2337
2344
|
/**
|