@promptbook/node 0.104.0-17 → 0.104.0-19
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 +7 -5
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +8 -6
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +7 -2
- package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +1 -1
- package/esm/typings/src/config.d.ts +8 -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 +7 -5
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/servers.d.ts +0 -50
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-19';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1707,9 +1707,10 @@ function isValidPromptbookVersion(version) {
|
|
|
1707
1707
|
*
|
|
1708
1708
|
* Note: [🔂] This function is idempotent.
|
|
1709
1709
|
* Note: Dataurl are considered perfectly valid.
|
|
1710
|
-
* Note: There are
|
|
1711
|
-
* - `isValidUrl` which tests any URL
|
|
1712
|
-
* - `
|
|
1710
|
+
* Note: There are few similar functions:
|
|
1711
|
+
* - `isValidUrl` *(this one)* which tests any URL
|
|
1712
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
1713
|
+
* - `isValidPipelineUrl` which tests just pipeline URL
|
|
1713
1714
|
*
|
|
1714
1715
|
* @public exported from `@promptbook/utils`
|
|
1715
1716
|
*/
|
|
@@ -1735,8 +1736,9 @@ function isValidUrl(url) {
|
|
|
1735
1736
|
/**
|
|
1736
1737
|
* Tests if given string is valid pipeline URL URL.
|
|
1737
1738
|
*
|
|
1738
|
-
* Note: There are
|
|
1739
|
+
* Note: There are few similar functions:
|
|
1739
1740
|
* - `isValidUrl` which tests any URL
|
|
1741
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
1740
1742
|
* - `isValidPipelineUrl` *(this one)* which tests just pipeline URL
|
|
1741
1743
|
*
|
|
1742
1744
|
* @public exported from `@promptbook/utils`
|