@promptbook/remote-client 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.
@@ -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 { CORE_AGENTS_SERVER_ADAM_AGENT_NAME } from '../../servers';
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 { CORE_AGENTS_SERVER_ADAM_AGENT_NAME };
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?: string_knowledge_source_link;
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
+ */
@@ -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 two similar functions:
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 two similar functions:
9
- * - `isValidUrl` which tests any URL
10
- * - `isValidPipelineUrl` *(this one)* which tests just promptbook URL
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-17`).
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/remote-client",
3
- "version": "0.104.0-18",
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,
@@ -100,7 +100,7 @@
100
100
  "module": "./esm/index.es.js",
101
101
  "typings": "./esm/typings/src/_packages/remote-client.index.d.ts",
102
102
  "peerDependencies": {
103
- "@promptbook/core": "0.104.0-18"
103
+ "@promptbook/core": "0.104.0-19"
104
104
  },
105
105
  "dependencies": {
106
106
  "crypto": "1.0.1",
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0-18';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-19';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1518,9 +1518,10 @@
1518
1518
  *
1519
1519
  * Note: [🔂] This function is idempotent.
1520
1520
  * Note: Dataurl are considered perfectly valid.
1521
- * Note: There are two similar functions:
1522
- * - `isValidUrl` which tests any URL
1523
- * - `isValidPipelineUrl` *(this one)* which tests just promptbook URL
1521
+ * Note: There are few similar functions:
1522
+ * - `isValidUrl` *(this one)* which tests any URL
1523
+ * - `isValidAgentUrl` which tests just agent URL
1524
+ * - `isValidPipelineUrl` which tests just pipeline URL
1524
1525
  *
1525
1526
  * @public exported from `@promptbook/utils`
1526
1527
  */
@@ -4835,8 +4836,9 @@
4835
4836
  /**
4836
4837
  * Tests if given string is valid pipeline URL URL.
4837
4838
  *
4838
- * Note: There are two similar functions:
4839
+ * Note: There are few similar functions:
4839
4840
  * - `isValidUrl` which tests any URL
4841
+ * - `isValidAgentUrl` which tests just agent URL
4840
4842
  * - `isValidPipelineUrl` *(this one)* which tests just pipeline URL
4841
4843
  *
4842
4844
  * @public exported from `@promptbook/utils`