@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.
@@ -29,6 +29,7 @@ import type { GroupedCommitmentDefinition } from '../commitments/index';
29
29
  import { getGroupedCommitmentDefinitions } from '../commitments/index';
30
30
  import { NAME } from '../config';
31
31
  import { ADMIN_EMAIL } from '../config';
32
+ import { PROMPTBOOK_LEGAL_ENTITY } from '../config';
32
33
  import { ADMIN_GITHUB_NAME } from '../config';
33
34
  import { CLAIM } from '../config';
34
35
  import { PROMPTBOOK_COLOR } from '../config';
@@ -191,9 +192,9 @@ import { SectionTypes } from '../types/SectionType';
191
192
  import { TaskTypes } from '../types/TaskType';
192
193
  import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
193
194
  import { $generateBookBoilerplate } from '../utils/random/$generateBookBoilerplate';
194
- import { CORE_SERVER } from '../../servers';
195
- import { REMOTE_SERVER_URLS } from '../../servers';
196
- import { AUTO_FEDERATED_AGENT_SERVER_URLS } from '../../servers';
195
+ import { CORE_AGENTS_SERVER } from '../../servers';
196
+ import { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES } from '../../servers';
197
+ import { PUBLIC_AGENTS_SERVERS } from '../../servers';
197
198
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
198
199
  export { computeAgentHash };
199
200
  export { createAgentModelRequirements };
@@ -225,6 +226,7 @@ export type { GroupedCommitmentDefinition };
225
226
  export { getGroupedCommitmentDefinitions };
226
227
  export { NAME };
227
228
  export { ADMIN_EMAIL };
229
+ export { PROMPTBOOK_LEGAL_ENTITY };
228
230
  export { ADMIN_GITHUB_NAME };
229
231
  export { CLAIM };
230
232
  export { PROMPTBOOK_COLOR };
@@ -387,6 +389,6 @@ export { SectionTypes };
387
389
  export { TaskTypes };
388
390
  export { aboutPromptbookInformation };
389
391
  export { $generateBookBoilerplate };
390
- export { CORE_SERVER };
391
- export { REMOTE_SERVER_URLS };
392
- export { AUTO_FEDERATED_AGENT_SERVER_URLS };
392
+ export { CORE_AGENTS_SERVER };
393
+ export { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES };
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
  */
@@ -7,7 +7,7 @@ import type { string_agent_name, string_agent_permanent_id, string_url, string_u
7
7
  *
8
8
  * @public exported from `@promptbook/core`
9
9
  */
10
- export declare function generatePlaceholderAgentProfileImageUrl(agentIdOrName: string_agent_permanent_id | string_agent_name, agentsServerUrl?: URL | string_url): string_url_image;
10
+ export declare function generatePlaceholderAgentProfileImageUrl(agentIdOrName: string_agent_permanent_id | string_agent_name, agentsServerUrl: URL | string_url): string_url_image;
11
11
  /**
12
12
  * TODO: [๐Ÿคน] Figure out best placeholder image generator https://i.pravatar.cc/1000?u=568
13
13
  */
@@ -1,6 +1,6 @@
1
1
  import type { CsvSettings } from './formats/csv/CsvSettings';
2
2
  import type { IntermediateFilesStrategy } from './types/IntermediateFilesStrategy';
3
- import type { string_app_id, string_email, string_name, string_promptbook_server_url } from './types/typeAliases';
3
+ import type { string_app_id, string_email, string_legal_entity, string_name, string_promptbook_server_url } from './types/typeAliases';
4
4
  import { Color } from './utils/color/Color';
5
5
  /**
6
6
  * Warning message for the generated sections and files files
@@ -22,6 +22,12 @@ export declare const NAME = "Promptbook";
22
22
  * @public exported from `@promptbook/core`
23
23
  */
24
24
  export declare const ADMIN_EMAIL: string_email;
25
+ /**
26
+ * Email of the responsible person
27
+ *
28
+ * @public exported from `@promptbook/core`
29
+ */
30
+ export declare const PROMPTBOOK_LEGAL_ENTITY: string_legal_entity;
25
31
  /**
26
32
  * Name of the responsible person for the Promptbook on GitHub
27
33
  *
@@ -295,6 +301,7 @@ export declare const MOMENT_ARG_THRESHOLDS: {
295
301
  /**
296
302
  * Default remote server URL for the Promptbook
297
303
  *
304
+ * @deprecated !!!! Deprecate all pipelines server
298
305
  * @public exported from `@promptbook/core`
299
306
  */
300
307
  export declare const DEFAULT_REMOTE_SERVER_URL: string_promptbook_server_url;
@@ -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-16`).
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/node",
3
- "version": "0.104.0-17",
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,
@@ -93,7 +93,7 @@
93
93
  "module": "./esm/index.es.js",
94
94
  "typings": "./esm/typings/src/_packages/node.index.d.ts",
95
95
  "peerDependencies": {
96
- "@promptbook/core": "0.104.0-17"
96
+ "@promptbook/core": "0.104.0-19"
97
97
  },
98
98
  "dependencies": {
99
99
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -45,7 +45,7 @@
45
45
  * @generated
46
46
  * @see https://github.com/webgptorg/promptbook
47
47
  */
48
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0-17';
48
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-19';
49
49
  /**
50
50
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
51
51
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
@@ -1724,9 +1724,10 @@
1724
1724
  *
1725
1725
  * Note: [๐Ÿ”‚] This function is idempotent.
1726
1726
  * Note: Dataurl are considered perfectly valid.
1727
- * Note: There are two similar functions:
1728
- * - `isValidUrl` which tests any URL
1729
- * - `isValidPipelineUrl` *(this one)* which tests just promptbook URL
1727
+ * Note: There are few similar functions:
1728
+ * - `isValidUrl` *(this one)* which tests any URL
1729
+ * - `isValidAgentUrl` which tests just agent URL
1730
+ * - `isValidPipelineUrl` which tests just pipeline URL
1730
1731
  *
1731
1732
  * @public exported from `@promptbook/utils`
1732
1733
  */
@@ -1752,8 +1753,9 @@
1752
1753
  /**
1753
1754
  * Tests if given string is valid pipeline URL URL.
1754
1755
  *
1755
- * Note: There are two similar functions:
1756
+ * Note: There are few similar functions:
1756
1757
  * - `isValidUrl` which tests any URL
1758
+ * - `isValidAgentUrl` which tests just agent URL
1757
1759
  * - `isValidPipelineUrl` *(this one)* which tests just pipeline URL
1758
1760
  *
1759
1761
  * @public exported from `@promptbook/utils`