@promptbook/ollama 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 +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 +2 -2
- package/umd/index.umd.js +1 -1
package/esm/index.es.js
CHANGED
|
@@ -18,7 +18,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
18
18
|
* @generated
|
|
19
19
|
* @see https://github.com/webgptorg/promptbook
|
|
20
20
|
*/
|
|
21
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
21
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-19';
|
|
22
22
|
/**
|
|
23
23
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
24
24
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/ollama",
|
|
3
|
-
"version": "0.104.0-
|
|
3
|
+
"version": "0.104.0-19",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"module": "./esm/index.es.js",
|
|
95
95
|
"typings": "./esm/typings/src/_packages/ollama.index.d.ts",
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@promptbook/core": "0.104.0-
|
|
97
|
+
"@promptbook/core": "0.104.0-19"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"bottleneck": "2.19.5",
|
package/umd/index.umd.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
28
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-19';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|