@promptbook/remote-server 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
|
@@ -34,7 +34,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
34
34
|
* @generated
|
|
35
35
|
* @see https://github.com/webgptorg/promptbook
|
|
36
36
|
*/
|
|
37
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
37
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-0';
|
|
38
38
|
/**
|
|
39
39
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
40
40
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2932,7 +2932,7 @@ const LLM_PROVIDER_PROFILES = {
|
|
|
2932
2932
|
};
|
|
2933
2933
|
/**
|
|
2934
2934
|
* TODO: Refactor this - each profile must be alongside the provider definition
|
|
2935
|
-
* TODO: [🕛] Unite `
|
|
2935
|
+
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
2936
2936
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
2937
2937
|
*/
|
|
2938
2938
|
|
|
@@ -5260,6 +5260,7 @@ function countCharacters(text) {
|
|
|
5260
5260
|
}
|
|
5261
5261
|
/**
|
|
5262
5262
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5263
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5263
5264
|
*/
|
|
5264
5265
|
|
|
5265
5266
|
/**
|
|
@@ -5294,6 +5295,7 @@ function countLines(text) {
|
|
|
5294
5295
|
}
|
|
5295
5296
|
/**
|
|
5296
5297
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5298
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5297
5299
|
*/
|
|
5298
5300
|
|
|
5299
5301
|
/**
|
|
@@ -5308,6 +5310,7 @@ function countPages(text) {
|
|
|
5308
5310
|
}
|
|
5309
5311
|
/**
|
|
5310
5312
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5313
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5311
5314
|
*/
|
|
5312
5315
|
|
|
5313
5316
|
/**
|
|
@@ -5320,6 +5323,7 @@ function countParagraphs(text) {
|
|
|
5320
5323
|
}
|
|
5321
5324
|
/**
|
|
5322
5325
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5326
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5323
5327
|
*/
|
|
5324
5328
|
|
|
5325
5329
|
/**
|
|
@@ -5340,6 +5344,7 @@ function countSentences(text) {
|
|
|
5340
5344
|
}
|
|
5341
5345
|
/**
|
|
5342
5346
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5347
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5343
5348
|
*/
|
|
5344
5349
|
|
|
5345
5350
|
/**
|
|
@@ -5356,6 +5361,8 @@ function countWords(text) {
|
|
|
5356
5361
|
}
|
|
5357
5362
|
/**
|
|
5358
5363
|
* TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
5364
|
+
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
5365
|
+
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
5359
5366
|
*/
|
|
5360
5367
|
|
|
5361
5368
|
/**
|