@promptbook/markdown-utils 0.89.0-16 β†’ 0.89.0-18

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.
@@ -0,0 +1,40 @@
1
+ import type { string_legal_entity } from './src/types/typeAliases';
2
+ import type { string_promptbook_server_url } from './src/types/typeAliases';
3
+ import type { string_title } from './src/types/typeAliases';
4
+ /**
5
+ * Open Promptbook server usable for public
6
+ */
7
+ type ServerConfiguration = {
8
+ /**
9
+ * Basic name of the server
10
+ */
11
+ title: string_title;
12
+ /**
13
+ * Who is the owner of the server
14
+ */
15
+ owner: string_legal_entity;
16
+ /**
17
+ * Is the server open for public and anonymous usage
18
+ */
19
+ isAnonymousModeAllowed: boolean;
20
+ /**
21
+ * Description of the server, link to registration, user agreement, privacy policy, etc.
22
+ */
23
+ description: string;
24
+ /**
25
+ * URL of the server
26
+ *
27
+ Note: lising more for loadbalancing
28
+ */
29
+ urls: Array<string_promptbook_server_url>;
30
+ };
31
+ /**
32
+ * Available remote servers for the Promptbook
33
+ *
34
+ * @public exported from `@promptbook/core` <- TODO: !!!! Test that this is really exported
35
+ */
36
+ export declare const REMOTE_SERVER_URLS: Array<ServerConfiguration>;
37
+ export {};
38
+ /**
39
+ * Note: [πŸ’ž] Ignore a discrepancy between file name and entity name
40
+ */
@@ -26,7 +26,6 @@ import { DEFAULT_SCRAPE_CACHE_DIRNAME } from '../config';
26
26
  import { CLI_APP_ID } from '../config';
27
27
  import { PLAYGROUND_APP_ID } from '../config';
28
28
  import { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME } from '../config';
29
- import { REMOTE_SERVER_URLS } from '../config';
30
29
  import { DEFAULT_REMOTE_SERVER_URL } from '../config';
31
30
  import { DEFAULT_CSV_SETTINGS } from '../config';
32
31
  import { DEFAULT_IS_VERBOSE } from '../config';
@@ -136,6 +135,7 @@ import { MODEL_VARIANTS } from '../types/ModelVariant';
136
135
  import { NonTaskSectionTypes } from '../types/SectionType';
137
136
  import { SectionTypes } from '../types/SectionType';
138
137
  import { TaskTypes } from '../types/TaskType';
138
+ import { REMOTE_SERVER_URLS } from '../../servers';
139
139
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
140
140
  export { collectionToJson };
141
141
  export { createCollectionFromJson };
@@ -164,7 +164,6 @@ export { DEFAULT_SCRAPE_CACHE_DIRNAME };
164
164
  export { CLI_APP_ID };
165
165
  export { PLAYGROUND_APP_ID };
166
166
  export { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME };
167
- export { REMOTE_SERVER_URLS };
168
167
  export { DEFAULT_REMOTE_SERVER_URL };
169
168
  export { DEFAULT_CSV_SETTINGS };
170
169
  export { DEFAULT_IS_VERBOSE };
@@ -274,3 +273,4 @@ export { MODEL_VARIANTS };
274
273
  export { NonTaskSectionTypes };
275
274
  export { SectionTypes };
276
275
  export { TaskTypes };
276
+ export { REMOTE_SERVER_URLS };
@@ -223,6 +223,7 @@ import type { string_dirname } from '../types/typeAliases';
223
223
  import type { string_person_fullname } from '../types/typeAliases';
224
224
  import type { string_person_profile } from '../types/typeAliases';
225
225
  import type { string_license } from '../types/typeAliases';
226
+ import type { string_legal_entity } from '../types/typeAliases';
226
227
  import type { string_attribute } from '../types/typeAliases';
227
228
  import type { string_attribute_value_scope } from '../types/typeAliases';
228
229
  import type { string_color } from '../types/typeAliases';
@@ -512,6 +513,7 @@ export type { string_dirname };
512
513
  export type { string_person_fullname };
513
514
  export type { string_person_profile };
514
515
  export type { string_license };
516
+ export type { string_legal_entity };
515
517
  export type { string_attribute };
516
518
  export type { string_attribute_value_scope };
517
519
  export type { string_color };
@@ -227,12 +227,6 @@ export declare const DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME = "index";
227
227
  export declare const MOMENT_ARG_THRESHOLDS: {
228
228
  readonly ss: 3;
229
229
  };
230
- /**
231
- * Available remote servers for the Promptbook
232
- *
233
- * @public exported from `@promptbook/core`
234
- */
235
- export declare const REMOTE_SERVER_URLS: Array<string_promptbook_server_url>;
236
230
  /**
237
231
  * Default remote server URL for the Promptbook
238
232
  *
@@ -527,6 +527,13 @@ export type string_person_profile = string;
527
527
  * For example `"MIT"`
528
528
  */
529
529
  export type string_license = string;
530
+ /**
531
+ * Semantic helper
532
+ *
533
+ * For example `"Pavol HejnΓ½ <pavol@ptbk.io> (https://www.pavolhejny.com/)"`
534
+ * For example `"AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)"`
535
+ */
536
+ export type string_legal_entity = string | string_person_profile | string_title;
530
537
  /**
531
538
  * Semantic helper for attributes
532
539
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/markdown-utils",
3
- "version": "0.89.0-16",
3
+ "version": "0.89.0-18",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
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.89.0-16';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-18';
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