@promptbook/remote-client 0.104.0-9 → 0.104.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/README.md +0 -4
- package/esm/index.es.js +15 -8
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +0 -6
- package/esm/typings/src/_packages/core.index.d.ts +8 -6
- package/esm/typings/src/_packages/types.index.d.ts +8 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +24 -0
- package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +12 -2
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.tools.test.d.ts +1 -0
- package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/types/ChatMessage.d.ts +6 -3
- package/esm/typings/src/book-components/_common/Dropdown/Dropdown.d.ts +5 -1
- package/esm/typings/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +5 -1
- package/esm/typings/src/book-components/icons/AboutIcon.d.ts +5 -1
- package/esm/typings/src/book-components/icons/AttachmentIcon.d.ts +6 -2
- package/esm/typings/src/book-components/icons/CameraIcon.d.ts +6 -2
- package/esm/typings/src/book-components/icons/DownloadIcon.d.ts +5 -1
- package/esm/typings/src/book-components/icons/MenuIcon.d.ts +5 -1
- package/esm/typings/src/book-components/icons/SaveIcon.d.ts +6 -2
- package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +1 -1
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +9 -7
- package/esm/typings/src/commands/_common/types/Command.d.ts +1 -1
- package/esm/typings/src/commitments/META/META_DESCRIPTION.d.ts +41 -0
- package/esm/typings/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +2 -2
- package/esm/typings/src/commitments/_base/BookCommitment.d.ts +1 -1
- package/esm/typings/src/config.d.ts +8 -1
- package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +8 -4
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +1 -1
- package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +12 -8
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +7 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/utils/mapToolsToOpenAi.d.ts +8 -0
- package/esm/typings/src/remote-server/ui/ServerApp.d.ts +5 -1
- package/esm/typings/src/scrapers/_common/utils/promptbookFetch.test.d.ts +1 -0
- package/esm/typings/src/search-engines/SearchEngine.d.ts +9 -0
- package/esm/typings/src/search-engines/SearchResult.d.ts +18 -0
- package/esm/typings/src/search-engines/bing/BingSearchEngine.d.ts +15 -0
- package/esm/typings/src/search-engines/dummy/DummySearchEngine.d.ts +15 -0
- package/esm/typings/src/types/LlmToolDefinition.d.ts +20 -0
- package/esm/typings/src/types/ModelRequirements.d.ts +13 -0
- package/esm/typings/src/types/typeAliasEmoji.d.ts +2 -2
- package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +7 -2
- package/esm/typings/src/utils/random/$randomItem.d.ts +1 -1
- package/esm/typings/src/utils/random/$randomSeed.d.ts +1 -1
- package/esm/typings/src/utils/validators/url/isValidAgentUrl.d.ts +16 -0
- package/esm/typings/src/utils/validators/url/isValidAgentUrl.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/url/isValidPipelineUrl.d.ts +2 -1
- package/esm/typings/src/utils/validators/url/isValidUrl.d.ts +4 -3
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +15 -8
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/servers.d.ts +0 -50
package/README.md
CHANGED
|
@@ -27,10 +27,6 @@ Turn your company's scattered knowledge into AI ready Books
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
<blockquote style="color: #ff8811">
|
|
31
|
-
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
|
32
|
-
</blockquote>
|
|
33
|
-
|
|
34
30
|
## 📦 Package `@promptbook/remote-client`
|
|
35
31
|
|
|
36
32
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
package/esm/index.es.js
CHANGED
|
@@ -20,7 +20,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
20
20
|
* @generated
|
|
21
21
|
* @see https://github.com/webgptorg/promptbook
|
|
22
22
|
*/
|
|
23
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0
|
|
23
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0';
|
|
24
24
|
/**
|
|
25
25
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
26
26
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1515,9 +1515,10 @@ function deserializeError(error) {
|
|
|
1515
1515
|
*
|
|
1516
1516
|
* Note: [🔂] This function is idempotent.
|
|
1517
1517
|
* Note: Dataurl are considered perfectly valid.
|
|
1518
|
-
* Note: There are
|
|
1519
|
-
* - `isValidUrl` which tests any URL
|
|
1520
|
-
* - `
|
|
1518
|
+
* Note: There are few similar functions:
|
|
1519
|
+
* - `isValidUrl` *(this one)* which tests any URL
|
|
1520
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
1521
|
+
* - `isValidPipelineUrl` which tests just pipeline URL
|
|
1521
1522
|
*
|
|
1522
1523
|
* @public exported from `@promptbook/utils`
|
|
1523
1524
|
*/
|
|
@@ -1969,8 +1970,8 @@ for (let i = 0; i < defaultDiacriticsRemovalMap.length; i++) {
|
|
|
1969
1970
|
*/
|
|
1970
1971
|
function removeDiacritics(input) {
|
|
1971
1972
|
/*eslint no-control-regex: "off"*/
|
|
1972
|
-
return input.replace(/[^\u0000-\u007E]/g, (
|
|
1973
|
-
return DIACRITIC_VARIANTS_LETTERS[
|
|
1973
|
+
return input.replace(/[^\u0000-\u007E]/g, (character) => {
|
|
1974
|
+
return DIACRITIC_VARIANTS_LETTERS[character] || character;
|
|
1974
1975
|
});
|
|
1975
1976
|
}
|
|
1976
1977
|
/**
|
|
@@ -4308,7 +4309,12 @@ const jokerCommandParser = {
|
|
|
4308
4309
|
* @see {@link ModelVariant}
|
|
4309
4310
|
* @public exported from `@promptbook/core`
|
|
4310
4311
|
*/
|
|
4311
|
-
const MODEL_VARIANTS = [
|
|
4312
|
+
const MODEL_VARIANTS = [
|
|
4313
|
+
'COMPLETION',
|
|
4314
|
+
'CHAT',
|
|
4315
|
+
'IMAGE_GENERATION',
|
|
4316
|
+
'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */,
|
|
4317
|
+
];
|
|
4312
4318
|
|
|
4313
4319
|
/**
|
|
4314
4320
|
* Parses the model command
|
|
@@ -4827,8 +4833,9 @@ const postprocessCommandParser = {
|
|
|
4827
4833
|
/**
|
|
4828
4834
|
* Tests if given string is valid pipeline URL URL.
|
|
4829
4835
|
*
|
|
4830
|
-
* Note: There are
|
|
4836
|
+
* Note: There are few similar functions:
|
|
4831
4837
|
* - `isValidUrl` which tests any URL
|
|
4838
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
4832
4839
|
* - `isValidPipelineUrl` *(this one)* which tests just pipeline URL
|
|
4833
4840
|
*
|
|
4834
4841
|
* @public exported from `@promptbook/utils`
|