@promptbook/remote-client
Advanced tools
Comparing version 0.44.0-0 to 0.44.0-1
@@ -12,3 +12,3 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { countParagraphs } from '../utils/expectation-counters/countParagraphs'; | ||
import { countSentences } from '../utils/expectation-counters/countSentences'; | ||
import { countSentences, splitIntoSentences } from '../utils/expectation-counters/countSentences'; | ||
import { countWords } from '../utils/expectation-counters/countWords'; | ||
@@ -21,12 +21,2 @@ import { isValidJsonString } from '../utils/isValidJsonString'; | ||
import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting'; | ||
import { extractBlock } from '../utils/postprocessing/extractBlock'; | ||
import { removeEmojis } from '../utils/removeEmojis'; | ||
import { removeQuotes } from '../utils/removeQuotes'; | ||
import { trimCodeBlock } from '../utils/trimCodeBlock'; | ||
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { assertsExecutionSuccessful, countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, extractAllBlocksFromMarkdown, // <- [π»] | ||
extractAllListItemsFromMarkdown, extractBlock, // <- [π»] | ||
extractOneBlockFromMarkdown, isValidJsonString, parseNumber, // <- [π»] | ||
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, }; | ||
import { capitalize } from '../utils/normalization/capitalize'; | ||
@@ -49,2 +39,21 @@ import { decapitalize } from '../utils/normalization/decapitalize'; | ||
import { searchKeywords } from '../utils/normalization/searchKeywords'; | ||
import { extractBlock } from '../utils/postprocessing/extractBlock'; | ||
import { removeEmojis } from '../utils/removeEmojis'; | ||
import { removeQuotes } from '../utils/removeQuotes'; | ||
import { trimCodeBlock } from '../utils/trimCodeBlock'; | ||
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { assertsExecutionSuccessful, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, extractAllBlocksFromMarkdown, // <- [π»] | ||
extractAllListItemsFromMarkdown, extractBlock, // <- [π»] | ||
extractOneBlockFromMarkdown, isValidJsonString, parseNumber, // <- [π»] | ||
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, }; | ||
export { countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords }; | ||
export { splitIntoSentences }; | ||
export declare const normalizeTo: { | ||
camelCase: typeof normalizeTo_camelCase; | ||
PascalCase: typeof normalizeTo_PascalCase; | ||
'SCREAMING-CASE': typeof normalizeTo_SCREAMING_CASE; | ||
snake_case: typeof normalizeTo_snake_case; | ||
'kebab-case': typeof normalizeToKebabCase; | ||
}; | ||
export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, }; | ||
@@ -51,0 +60,0 @@ /** |
import type { ExpectationAmount } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
/** | ||
* Split text into sentences | ||
*/ | ||
export declare function splitIntoSentences(text: string): Array<string>; | ||
/** | ||
* Counts number of sentences in the text | ||
*/ | ||
export declare function countSentences(text: string): ExpectationAmount; |
{ | ||
"name": "@promptbook/remote-client", | ||
"version": "0.44.0-0", | ||
"version": "0.44.0-1", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -40,3 +40,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.44.0-0" | ||
"@promptbook/core": "0.44.0-1" | ||
}, | ||
@@ -43,0 +43,0 @@ "main": "./umd/index.umd.js", |
@@ -12,3 +12,3 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { countParagraphs } from '../utils/expectation-counters/countParagraphs'; | ||
import { countSentences } from '../utils/expectation-counters/countSentences'; | ||
import { countSentences, splitIntoSentences } from '../utils/expectation-counters/countSentences'; | ||
import { countWords } from '../utils/expectation-counters/countWords'; | ||
@@ -21,12 +21,2 @@ import { isValidJsonString } from '../utils/isValidJsonString'; | ||
import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting'; | ||
import { extractBlock } from '../utils/postprocessing/extractBlock'; | ||
import { removeEmojis } from '../utils/removeEmojis'; | ||
import { removeQuotes } from '../utils/removeQuotes'; | ||
import { trimCodeBlock } from '../utils/trimCodeBlock'; | ||
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { assertsExecutionSuccessful, countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, extractAllBlocksFromMarkdown, // <- [π»] | ||
extractAllListItemsFromMarkdown, extractBlock, // <- [π»] | ||
extractOneBlockFromMarkdown, isValidJsonString, parseNumber, // <- [π»] | ||
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, }; | ||
import { capitalize } from '../utils/normalization/capitalize'; | ||
@@ -49,2 +39,21 @@ import { decapitalize } from '../utils/normalization/decapitalize'; | ||
import { searchKeywords } from '../utils/normalization/searchKeywords'; | ||
import { extractBlock } from '../utils/postprocessing/extractBlock'; | ||
import { removeEmojis } from '../utils/removeEmojis'; | ||
import { removeQuotes } from '../utils/removeQuotes'; | ||
import { trimCodeBlock } from '../utils/trimCodeBlock'; | ||
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { assertsExecutionSuccessful, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, extractAllBlocksFromMarkdown, // <- [π»] | ||
extractAllListItemsFromMarkdown, extractBlock, // <- [π»] | ||
extractOneBlockFromMarkdown, isValidJsonString, parseNumber, // <- [π»] | ||
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, }; | ||
export { countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords }; | ||
export { splitIntoSentences }; | ||
export declare const normalizeTo: { | ||
camelCase: typeof normalizeTo_camelCase; | ||
PascalCase: typeof normalizeTo_PascalCase; | ||
'SCREAMING-CASE': typeof normalizeTo_SCREAMING_CASE; | ||
snake_case: typeof normalizeTo_snake_case; | ||
'kebab-case': typeof normalizeToKebabCase; | ||
}; | ||
export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, }; | ||
@@ -51,0 +60,0 @@ /** |
import type { ExpectationAmount } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
/** | ||
* Split text into sentences | ||
*/ | ||
export declare function splitIntoSentences(text: string): Array<string>; | ||
/** | ||
* Counts number of sentences in the text | ||
*/ | ||
export declare function countSentences(text: string): ExpectationAmount; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
360123
6208