@promptbook/markdown-utils 0.104.0-18 → 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 +2 -2
- 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/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 +1 -1
- package/umd/index.umd.js +7 -5
- package/umd/index.umd.js.map +1 -1
|
@@ -193,7 +193,7 @@ import { TaskTypes } from '../types/TaskType';
|
|
|
193
193
|
import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
|
|
194
194
|
import { $generateBookBoilerplate } from '../utils/random/$generateBookBoilerplate';
|
|
195
195
|
import { CORE_AGENTS_SERVER } from '../../servers';
|
|
196
|
-
import {
|
|
196
|
+
import { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES } from '../../servers';
|
|
197
197
|
import { PUBLIC_AGENTS_SERVERS } from '../../servers';
|
|
198
198
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
199
199
|
export { computeAgentHash };
|
|
@@ -390,5 +390,5 @@ export { TaskTypes };
|
|
|
390
390
|
export { aboutPromptbookInformation };
|
|
391
391
|
export { $generateBookBoilerplate };
|
|
392
392
|
export { CORE_AGENTS_SERVER };
|
|
393
|
-
export {
|
|
393
|
+
export { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES };
|
|
394
394
|
export { PUBLIC_AGENTS_SERVERS };
|
|
@@ -83,6 +83,7 @@ import { isValidPromptbookVersion } from '../utils/validators/semanticVersion/is
|
|
|
83
83
|
import { isValidSemanticVersion } from '../utils/validators/semanticVersion/isValidSemanticVersion';
|
|
84
84
|
import { isHostnameOnPrivateNetwork } from '../utils/validators/url/isHostnameOnPrivateNetwork';
|
|
85
85
|
import { isUrlOnPrivateNetwork } from '../utils/validators/url/isUrlOnPrivateNetwork';
|
|
86
|
+
import { isValidAgentUrl } from '../utils/validators/url/isValidAgentUrl';
|
|
86
87
|
import { isValidPipelineUrl } from '../utils/validators/url/isValidPipelineUrl';
|
|
87
88
|
import { isValidUrl } from '../utils/validators/url/isValidUrl';
|
|
88
89
|
import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
|
|
@@ -171,6 +172,7 @@ export { isValidPromptbookVersion };
|
|
|
171
172
|
export { isValidSemanticVersion };
|
|
172
173
|
export { isHostnameOnPrivateNetwork };
|
|
173
174
|
export { isUrlOnPrivateNetwork };
|
|
175
|
+
export { isValidAgentUrl };
|
|
174
176
|
export { isValidPipelineUrl };
|
|
175
177
|
export { isValidUrl };
|
|
176
178
|
export { isValidUuid };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LlmToolDefinition } from '../../types/LlmToolDefinition';
|
|
2
|
-
import type { string_knowledge_source_link } from '../../types/typeAliases';
|
|
2
|
+
import type { string_agent_url, string_knowledge_source_link } from '../../types/typeAliases';
|
|
3
3
|
import type { TODO_any } from '../../utils/organization/TODO_any';
|
|
4
4
|
/**
|
|
5
5
|
* Model requirements for an agent
|
|
@@ -21,8 +21,13 @@ export type AgentModelRequirements = {
|
|
|
21
21
|
readonly mcpServers?: ReadonlyArray<string>;
|
|
22
22
|
/**
|
|
23
23
|
* Optional link to the parent agent from which this agent inherits
|
|
24
|
+
*
|
|
25
|
+
* Note: [🆓] There are several cases what the agent ancestor could be:
|
|
26
|
+
* - 1) `parentAgentUrl` is `string_agent_url` valid agent URL
|
|
27
|
+
* - 2) `parentAgentUrl` is explicitly `null` (forcefully no parent)
|
|
28
|
+
* - 3) `parentAgentUrl` is not defined `undefined`, the default ancestor agent, Adam, will be used
|
|
24
29
|
*/
|
|
25
|
-
readonly parentAgentUrl?:
|
|
30
|
+
readonly parentAgentUrl?: string_agent_url | null;
|
|
26
31
|
/**
|
|
27
32
|
* Optional list of knowledge source links that the agent can use
|
|
28
33
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { string_agent_url } from '../../../types/typeAliases';
|
|
2
|
+
import type { really_unknown } from '../../organization/really_unknown';
|
|
3
|
+
/**
|
|
4
|
+
* Tests if given string is valid agent URL
|
|
5
|
+
*
|
|
6
|
+
* Note: There are few similar functions:
|
|
7
|
+
* - `isValidUrl` which tests any URL
|
|
8
|
+
* - `isValidAgentUrl` *(this one)* which tests just agent URL
|
|
9
|
+
* - `isValidPipelineUrl` which tests just pipeline URL
|
|
10
|
+
*
|
|
11
|
+
* @public exported from `@promptbook/utils`
|
|
12
|
+
*/
|
|
13
|
+
export declare function isValidAgentUrl(url: really_unknown): url is string_agent_url;
|
|
14
|
+
/**
|
|
15
|
+
* TODO: [🐠] Maybe more info why the URL is invalid
|
|
16
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,8 +3,9 @@ import type { really_unknown } from '../../organization/really_unknown';
|
|
|
3
3
|
/**
|
|
4
4
|
* Tests if given string is valid pipeline URL URL.
|
|
5
5
|
*
|
|
6
|
-
* Note: There are
|
|
6
|
+
* Note: There are few similar functions:
|
|
7
7
|
* - `isValidUrl` which tests any URL
|
|
8
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
8
9
|
* - `isValidPipelineUrl` *(this one)* which tests just pipeline URL
|
|
9
10
|
*
|
|
10
11
|
* @public exported from `@promptbook/utils`
|
|
@@ -5,9 +5,10 @@ import type { really_unknown } from '../../organization/really_unknown';
|
|
|
5
5
|
*
|
|
6
6
|
* Note: [🔂] This function is idempotent.
|
|
7
7
|
* Note: Dataurl are considered perfectly valid.
|
|
8
|
-
* Note: There are
|
|
9
|
-
* - `isValidUrl` which tests any URL
|
|
10
|
-
* - `
|
|
8
|
+
* Note: There are few similar functions:
|
|
9
|
+
* - `isValidUrl` *(this one)* which tests any URL
|
|
10
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
11
|
+
* - `isValidPipelineUrl` which tests just pipeline URL
|
|
11
12
|
*
|
|
12
13
|
* @public exported from `@promptbook/utils`
|
|
13
14
|
*/
|
|
@@ -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.104.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.104.0-18`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
27
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-19';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1562,9 +1562,10 @@
|
|
|
1562
1562
|
*
|
|
1563
1563
|
* Note: [🔂] This function is idempotent.
|
|
1564
1564
|
* Note: Dataurl are considered perfectly valid.
|
|
1565
|
-
* Note: There are
|
|
1566
|
-
* - `isValidUrl` which tests any URL
|
|
1567
|
-
* - `
|
|
1565
|
+
* Note: There are few similar functions:
|
|
1566
|
+
* - `isValidUrl` *(this one)* which tests any URL
|
|
1567
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
1568
|
+
* - `isValidPipelineUrl` which tests just pipeline URL
|
|
1568
1569
|
*
|
|
1569
1570
|
* @public exported from `@promptbook/utils`
|
|
1570
1571
|
*/
|
|
@@ -2132,8 +2133,9 @@
|
|
|
2132
2133
|
/**
|
|
2133
2134
|
* Tests if given string is valid pipeline URL URL.
|
|
2134
2135
|
*
|
|
2135
|
-
* Note: There are
|
|
2136
|
+
* Note: There are few similar functions:
|
|
2136
2137
|
* - `isValidUrl` which tests any URL
|
|
2138
|
+
* - `isValidAgentUrl` which tests just agent URL
|
|
2137
2139
|
* - `isValidPipelineUrl` *(this one)* which tests just pipeline URL
|
|
2138
2140
|
*
|
|
2139
2141
|
* @public exported from `@promptbook/utils`
|