@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
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* Removes Markdown link tags from a string.
|
3
|
+
*
|
4
|
+
* @param {string} str - The string to remove Markdown tags from.
|
5
|
+
* @returns {string} The input string with all Markdown tags removed.
|
6
|
+
* @public exported from `@promptbook/markdown-utils`
|
7
|
+
*/
|
8
|
+
export declare function removeMarkdownLinks(str: string): string;
|
9
|
+
/**
|
10
|
+
* @see https://chat.openai.com/chat/bb7c3a5b-fe9c-4ccc-9057-f47e0fd66489
|
11
|
+
*/
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
16
16
|
/**
|
17
17
|
* Represents the version string of the Promptbook engine.
|
18
|
-
* It follows semantic versioning (e.g., `0.100.
|
18
|
+
* It follows semantic versioning (e.g., `0.100.4-0`).
|
19
19
|
*
|
20
20
|
* @generated
|
21
21
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@promptbook/wizard",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.101.0-0",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"module": "./esm/index.es.js",
|
96
96
|
"typings": "./esm/typings/src/_packages/wizard.index.d.ts",
|
97
97
|
"peerDependencies": {
|
98
|
-
"@promptbook/core": "0.
|
98
|
+
"@promptbook/core": "0.101.0-0"
|
99
99
|
},
|
100
100
|
"dependencies": {
|
101
101
|
"@ai-sdk/deepseek": "0.1.6",
|
package/umd/index.umd.js
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
* @generated
|
51
51
|
* @see https://github.com/webgptorg/promptbook
|
52
52
|
*/
|
53
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
53
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
|
54
54
|
/**
|
55
55
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
56
56
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -1412,7 +1412,7 @@
|
|
1412
1412
|
};
|
1413
1413
|
/**
|
1414
1414
|
* TODO: Refactor this - each profile must be alongside the provider definition
|
1415
|
-
* TODO: [🕛] Unite `
|
1415
|
+
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
1416
1416
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
1417
1417
|
*/
|
1418
1418
|
|
@@ -1986,6 +1986,7 @@
|
|
1986
1986
|
}
|
1987
1987
|
/**
|
1988
1988
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
1989
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
1989
1990
|
*/
|
1990
1991
|
|
1991
1992
|
/**
|
@@ -2020,6 +2021,7 @@
|
|
2020
2021
|
}
|
2021
2022
|
/**
|
2022
2023
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2024
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2023
2025
|
*/
|
2024
2026
|
|
2025
2027
|
/**
|
@@ -2034,6 +2036,7 @@
|
|
2034
2036
|
}
|
2035
2037
|
/**
|
2036
2038
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2039
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2037
2040
|
*/
|
2038
2041
|
|
2039
2042
|
/**
|
@@ -2046,6 +2049,7 @@
|
|
2046
2049
|
}
|
2047
2050
|
/**
|
2048
2051
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2052
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2049
2053
|
*/
|
2050
2054
|
|
2051
2055
|
/**
|
@@ -2066,6 +2070,7 @@
|
|
2066
2070
|
}
|
2067
2071
|
/**
|
2068
2072
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2073
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2069
2074
|
*/
|
2070
2075
|
|
2071
2076
|
const defaultDiacriticsRemovalMap = [
|
@@ -2343,6 +2348,8 @@
|
|
2343
2348
|
}
|
2344
2349
|
/**
|
2345
2350
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
2351
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
2352
|
+
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
2346
2353
|
*/
|
2347
2354
|
|
2348
2355
|
/**
|