@promptbook/browser 0.89.0-8 → 0.89.0

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.
Files changed (50) hide show
  1. package/README.md +9 -11
  2. package/esm/index.es.js +51 -5
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/servers.d.ts +40 -0
  5. package/esm/typings/src/_packages/core.index.d.ts +12 -4
  6. package/esm/typings/src/_packages/remote-client.index.d.ts +6 -6
  7. package/esm/typings/src/_packages/remote-server.index.d.ts +6 -6
  8. package/esm/typings/src/_packages/types.index.d.ts +24 -14
  9. package/esm/typings/src/_packages/utils.index.d.ts +4 -0
  10. package/esm/typings/src/cli/cli-commands/login.d.ts +0 -1
  11. package/esm/typings/src/cli/common/$provideLlmToolsForCli.d.ts +16 -3
  12. package/esm/typings/src/cli/test/ptbk.d.ts +1 -1
  13. package/esm/typings/src/commands/EXPECT/expectCommandParser.d.ts +2 -0
  14. package/esm/typings/src/config.d.ts +10 -19
  15. package/esm/typings/src/errors/0-index.d.ts +8 -2
  16. package/esm/typings/src/errors/PipelineExecutionError.d.ts +1 -1
  17. package/esm/typings/src/errors/PromptbookFetchError.d.ts +9 -0
  18. package/esm/typings/src/errors/WrappedError.d.ts +10 -0
  19. package/esm/typings/src/errors/assertsError.d.ts +11 -0
  20. package/esm/typings/src/execution/PromptbookFetch.d.ts +1 -1
  21. package/esm/typings/src/formats/csv/utils/isValidCsvString.d.ts +9 -0
  22. package/esm/typings/src/formats/csv/utils/isValidCsvString.test.d.ts +1 -0
  23. package/esm/typings/src/formats/json/utils/isValidJsonString.d.ts +3 -0
  24. package/esm/typings/src/formats/xml/utils/isValidXmlString.d.ts +9 -0
  25. package/esm/typings/src/formats/xml/utils/isValidXmlString.test.d.ts +1 -0
  26. package/esm/typings/src/llm-providers/_common/register/$provideEnvFilename.d.ts +12 -0
  27. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +2 -8
  28. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +2 -0
  29. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizzardOrCli.d.ts +15 -4
  30. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -0
  31. package/esm/typings/src/remote-server/openapi-types.d.ts +284 -0
  32. package/esm/typings/src/remote-server/openapi.d.ts +187 -0
  33. package/esm/typings/src/remote-server/socket-types/_subtypes/{PromptbookServer_Identification.d.ts → Identification.d.ts} +9 -3
  34. package/esm/typings/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +11 -0
  35. package/esm/typings/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +10 -0
  36. package/esm/typings/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +2 -2
  37. package/esm/typings/src/remote-server/socket-types/prepare/PromptbookServer_PreparePipeline_Request.d.ts +2 -2
  38. package/esm/typings/src/remote-server/socket-types/prompt/PromptbookServer_Prompt_Request.d.ts +2 -2
  39. package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -2
  40. package/esm/typings/src/remote-server/types/RemoteClientOptions.d.ts +2 -2
  41. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +57 -38
  42. package/esm/typings/src/scrapers/_common/utils/{scraperFetch.d.ts → promptbookFetch.d.ts} +2 -2
  43. package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +40 -0
  44. package/esm/typings/src/types/typeAliases.d.ts +26 -0
  45. package/package.json +7 -3
  46. package/umd/index.umd.js +51 -5
  47. package/umd/index.umd.js.map +1 -1
  48. package/esm/typings/src/cli/test/ptbk2.d.ts +0 -5
  49. package/esm/typings/src/playground/BrjappConnector.d.ts +0 -67
  50. package/esm/typings/src/playground/brjapp-api-schema.d.ts +0 -12879
package/README.md CHANGED
@@ -23,10 +23,6 @@
23
23
 
24
24
 
25
25
 
26
- <blockquote style="color: #ff8811">
27
- <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
28
- </blockquote>
29
-
30
26
  ## 📦 Package `@promptbook/browser`
31
27
 
32
28
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -248,6 +244,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
248
244
 
249
245
 
250
246
 
247
+ ## 🔒 Security
248
+
249
+ For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
250
+
251
251
  ## 📦 Packages _(for developers)_
252
252
 
253
253
  This library is divided into several packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -304,7 +304,7 @@ The following glossary is used to clarify certain concepts:
304
304
  ### General LLM / AI terms
305
305
 
306
306
  - **Prompt drift** is a phenomenon where the AI model starts to generate outputs that are not aligned with the original prompt. This can happen due to the model's training data, the prompt's wording, or the model's architecture.
307
- - **Pipeline, workflow or chain** is a sequence of tasks that are executed in a specific order. In the context of AI, a pipeline can refer to a sequence of AI models that are used to process data.
307
+ - [**Pipeline, workflow scenario or chain** is a sequence of tasks that are executed in a specific order. In the context of AI, a pipeline can refer to a sequence of AI models that are used to process data.](https://github.com/webgptorg/promptbook/discussions/88)
308
308
  - **Fine-tuning** is a process where a pre-trained AI model is further trained on a specific dataset to improve its performance on a specific task.
309
309
  - **Zero-shot learning** is a machine learning paradigm where a model is trained to perform a task without any labeled examples. Instead, the model is provided with a description of the task and is expected to generate the correct output.
310
310
  - **Few-shot learning** is a machine learning paradigm where a model is trained to perform a task with only a few labeled examples. This is in contrast to traditional machine learning, where models are trained on large datasets.
@@ -312,10 +312,6 @@ The following glossary is used to clarify certain concepts:
312
312
  - **Retrieval-augmented generation** is a machine learning paradigm where a model generates text by retrieving relevant information from a large database of text. This approach combines the benefits of generative models and retrieval models.
313
313
  - **Longtail** refers to non-common or rare events, items, or entities that are not well-represented in the training data of machine learning models. Longtail items are often challenging for models to predict accurately.
314
314
 
315
-
316
-
317
-
318
-
319
315
  _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
320
316
 
321
317
 
@@ -429,6 +425,8 @@ See [TODO.md](./TODO.md)
429
425
 
430
426
  ## 🖋️ Contributing
431
427
 
432
- We are open to pull requests, feedback, and suggestions.
428
+ You can also ⭐ star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).We are open to [pull requests, feedback, and suggestions](./CONTRIBUTING.md).
429
+
430
+ ## 📞 Support
433
431
 
434
- You can also star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
432
+ If you need help or have questions, please check our [Support Resources](./SUPPORT.md).
package/esm/index.es.js CHANGED
@@ -16,7 +16,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
16
16
  * @generated
17
17
  * @see https://github.com/webgptorg/promptbook
18
18
  */
19
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-8';
19
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0';
20
20
  /**
21
21
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
22
22
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -53,7 +53,7 @@ class PipelineExecutionError extends Error {
53
53
  }
54
54
  }
55
55
  /**
56
- * TODO: !!!!!! Add id to all errors
56
+ * TODO: [🧠][🌂] Add id to all errors
57
57
  */
58
58
 
59
59
  /**
@@ -486,6 +486,54 @@ function $deepFreeze(objectValue) {
486
486
  * TODO: [🧠] Is there a way how to meaningfully test this utility
487
487
  */
488
488
 
489
+ /**
490
+ * This error type indicates that somewhere in the code non-Error object was thrown and it was wrapped into the `WrappedError`
491
+ *
492
+ * @public exported from `@promptbook/core`
493
+ */
494
+ class WrappedError extends Error {
495
+ constructor(whatWasThrown) {
496
+ const tag = `[🤮]`;
497
+ console.error(tag, whatWasThrown);
498
+ super(spaceTrim(`
499
+ Non-Error object was thrown
500
+
501
+ Note: Look for ${tag} in the console for more details
502
+ Please report issue on ${ADMIN_EMAIL}
503
+ `));
504
+ this.name = 'WrappedError';
505
+ Object.setPrototypeOf(this, WrappedError.prototype);
506
+ }
507
+ }
508
+
509
+ /**
510
+ * Helper used in catch blocks to assert that the error is an instance of `Error`
511
+ *
512
+ * @param whatWasThrown Any object that was thrown
513
+ * @returns Nothing if the error is an instance of `Error`
514
+ * @throws `WrappedError` or `UnexpectedError` if the error is not standard
515
+ *
516
+ * @private within the repository
517
+ */
518
+ function assertsError(whatWasThrown) {
519
+ // Case 1: Handle error which was rethrown as `WrappedError`
520
+ if (whatWasThrown instanceof WrappedError) {
521
+ const wrappedError = whatWasThrown;
522
+ throw wrappedError;
523
+ }
524
+ // Case 2: Handle unexpected errors
525
+ if (whatWasThrown instanceof UnexpectedError) {
526
+ const unexpectedError = whatWasThrown;
527
+ throw unexpectedError;
528
+ }
529
+ // Case 3: Handle standard errors - keep them up to consumer
530
+ if (whatWasThrown instanceof Error) {
531
+ return;
532
+ }
533
+ // Case 4: Handle non-standard errors - wrap them into `WrappedError` and throw
534
+ throw new WrappedError(whatWasThrown);
535
+ }
536
+
489
537
  /**
490
538
  * Checks if the value is [🚉] serializable as JSON
491
539
  * If not, throws an UnexpectedError with a rich error message and tracking
@@ -577,9 +625,7 @@ function checkSerializableAsJson(options) {
577
625
  JSON.stringify(value); // <- TODO: [0]
578
626
  }
579
627
  catch (error) {
580
- if (!(error instanceof Error)) {
581
- throw error;
582
- }
628
+ assertsError(error);
583
629
  throw new UnexpectedError(spaceTrim$1((block) => `
584
630
  \`${name}\` is not serializable
585
631
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../src/version.ts","../../../../src/utils/random/$randomToken.ts","../../../../src/errors/PipelineExecutionError.ts","../../../../src/dialogs/simple-prompt/SimplePromptInterfaceTools.ts","../../../../src/errors/EnvironmentMismatchError.ts","../../../../src/utils/environment/$isRunningInBrowser.ts","../../../../src/utils/environment/$isRunningInWebWorker.ts","../../../../src/config.ts","../../../../src/errors/NotYetImplementedError.ts","../../../../src/errors/utils/getErrorReportUrl.ts","../../../../src/errors/UnexpectedError.ts","../../../../src/utils/environment/$getGlobalScope.ts","../../../../src/utils/normalization/normalizeTo_SCREAMING_CASE.ts","../../../../src/utils/normalization/normalizeTo_snake_case.ts","../../../../src/utils/$Register.ts","../../../../src/scrapers/_common/register/$scrapersRegister.ts","../../../../src/scrapers/_common/register/$provideScrapersForBrowser.ts","../../../../src/utils/normalization/orderJson.ts","../../../../src/utils/serialization/$deepFreeze.ts","../../../../src/utils/serialization/checkSerializableAsJson.ts","../../../../src/utils/serialization/deepClone.ts","../../../../src/utils/serialization/exportJson.ts","../../../../src/constants.ts","../../../../src/utils/serialization/isSerializableAsJson.ts","../../../../src/utils/editable/utils/stringifyPipelineJson.ts","../../../../src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.ts","../../../../src/storage/local-storage/getLocalStorage.ts","../../../../src/storage/local-storage/getSessionStorage.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["spaceTrim"],"mappings":";;;;AAAA;AAIA;;;;;AAKG;AACI,MAAM,qBAAqB,GAA4B,QAAQ;AAEtE;;;;;AAKG;AACI,MAAM,yBAAyB,GAA8B,WAAW;AAU/E;;;AAGG;;AC5BH;;;;;;;AAOG;AACG,SAAU,YAAY,CAAC,UAAkB,EAAA;IAC3C,OAAO,WAAW,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACnD,CAAC;AAED;;AAEG;;ACdH;;;;AAIG;AACG,MAAO,sBAAuB,SAAQ,KAAK,CAAA;AAG7C,IAAA,WAAA,CAAmB,OAAe,EAAA;;QAE9B,KAAK,CAAC,OAAO,CAAC,CAAC;QAJH,IAAI,CAAA,IAAA,GAAG,wBAAwB,CAAC;;QAO5C,IAAI,CAAC,EAAE,GAAG,CAAS,MAAA,EAAA,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AA,8DAAA,CAAgE,CAAC,CAAC;AAC1G,aAAA;AAED,YAAA,MAAM,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AACjD,YAAA,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;SACxC;AAED,QAAA,UAAU,CAAC,GAAW,EAAA;AAClB,YAAA,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;SAC9B;KACJ,CAAC;AACN,CAAC;AAED;;;AAGG;;ACvCH;;;;AAIG;SACa,eAAe,GAAA;IAC3B,IAAI,CAAC,kBAAkB,EAAE,EAAE;AACvB,QAAA,MAAM,IAAI,wBAAwB,CAAC,CAAA,0DAAA,CAA4D,CAAC,CAAC;AACpG,KAAA;AAED,IAAA,OAAO,mCAAmC,CAAQ,YAAY,CAAC,CAAC;AACpE,CAAC;AAED;;AAEG;;ACfH;;;;AAIG;SACa,iBAAiB,GAAA;IAC7B,IAAI,CAAC,kBAAkB,EAAE,EAAE;AACvB,QAAA,MAAM,IAAI,wBAAwB,CAAC,CAAA,4DAAA,CAA8D,CAAC,CAAC;AACtG,KAAA;AAED,IAAA,OAAO,mCAAmC,CAAQ,cAAc,CAAC,CAAC;AACtE,CAAC;AAED;;AAEG;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../../../src/version.ts","../../../../src/utils/random/$randomToken.ts","../../../../src/errors/PipelineExecutionError.ts","../../../../src/dialogs/simple-prompt/SimplePromptInterfaceTools.ts","../../../../src/errors/EnvironmentMismatchError.ts","../../../../src/utils/environment/$isRunningInBrowser.ts","../../../../src/utils/environment/$isRunningInWebWorker.ts","../../../../src/config.ts","../../../../src/errors/NotYetImplementedError.ts","../../../../src/errors/utils/getErrorReportUrl.ts","../../../../src/errors/UnexpectedError.ts","../../../../src/utils/environment/$getGlobalScope.ts","../../../../src/utils/normalization/normalizeTo_SCREAMING_CASE.ts","../../../../src/utils/normalization/normalizeTo_snake_case.ts","../../../../src/utils/$Register.ts","../../../../src/scrapers/_common/register/$scrapersRegister.ts","../../../../src/scrapers/_common/register/$provideScrapersForBrowser.ts","../../../../src/utils/normalization/orderJson.ts","../../../../src/utils/serialization/$deepFreeze.ts","../../../../src/errors/WrappedError.ts","../../../../src/errors/assertsError.ts","../../../../src/utils/serialization/checkSerializableAsJson.ts","../../../../src/utils/serialization/deepClone.ts","../../../../src/utils/serialization/exportJson.ts","../../../../src/constants.ts","../../../../src/utils/serialization/isSerializableAsJson.ts","../../../../src/utils/editable/utils/stringifyPipelineJson.ts","../../../../src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.ts","../../../../src/storage/local-storage/getLocalStorage.ts","../../../../src/storage/local-storage/getSessionStorage.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["spaceTrim"],"mappings":";;;;AAAA;AAIA;;;;;AAKG;AACI,MAAM,qBAAqB,GAA4B,QAAQ;AAEtE;;;;;AAKG;AACI,MAAM,yBAAyB,GAA8B,SAAS;AAU7E;;;AAGG;;AC5BH;;;;;;;AAOG;AACG,SAAU,YAAY,CAAC,UAAkB,EAAA;IAC3C,OAAO,WAAW,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACnD,CAAC;AAED;;AAEG;;ACdH;;;;AAIG;AACG,MAAO,sBAAuB,SAAQ,KAAK,CAAA;AAG7C,IAAA,WAAA,CAAmB,OAAe,EAAA;;QAE9B,KAAK,CAAC,OAAO,CAAC,CAAC;QAJH,IAAI,CAAA,IAAA,GAAG,wBAAwB,CAAC;;QAO5C,IAAI,CAAC,EAAE,GAAG,CAAS,MAAA,EAAA,YAAY,CAC3B,CAAC,iFACJ,CAAA,CAAE,CAAC;QAEJ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;KACjE;AACJ,CAAA;AAED;;AAEG;;ACpBH;;;;;;;AAOG;MACU,0BAA0B,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ACvB,QAAA,MAAM,IAAI,wBAAwB,CAAC,CAAA,4DAAA,CAA8D,CAAC,CAAC;AACtG,KAAA;AAED,IAAA,OAAO,mCAAmC,CAAQ,cAAc,CAAC,CAAC;AACtE,CAAC;AAED;;AAEG;;;;"}
@@ -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`
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
+ */
@@ -8,8 +8,6 @@ import { NAME } from '../config';
8
8
  import { ADMIN_EMAIL } from '../config';
9
9
  import { ADMIN_GITHUB_NAME } from '../config';
10
10
  import { CLAIM } from '../config';
11
- import { LOGO_LIGHT_SRC } from '../config';
12
- import { LOGO_DARK_SRC } from '../config';
13
11
  import { DEFAULT_BOOK_TITLE } from '../config';
14
12
  import { DEFAULT_TASK_TITLE } from '../config';
15
13
  import { DEFAULT_PROMPT_TASK_TITLE } from '../config';
@@ -60,7 +58,9 @@ import { ParseError } from '../errors/ParseError';
60
58
  import { PipelineExecutionError } from '../errors/PipelineExecutionError';
61
59
  import { PipelineLogicError } from '../errors/PipelineLogicError';
62
60
  import { PipelineUrlError } from '../errors/PipelineUrlError';
61
+ import { PromptbookFetchError } from '../errors/PromptbookFetchError';
63
62
  import { UnexpectedError } from '../errors/UnexpectedError';
63
+ import { WrappedError } from '../errors/WrappedError';
64
64
  import { createPipelineExecutor } from '../execution/createPipelineExecutor/00-createPipelineExecutor';
65
65
  import { embeddingVectorToString } from '../execution/embeddingVectorToString';
66
66
  import { executionReportJsonToString } from '../execution/execution-report/executionReportJsonToString';
@@ -114,11 +114,14 @@ import { isPipelinePrepared } from '../prepare/isPipelinePrepared';
114
114
  import { preparePipeline } from '../prepare/preparePipeline';
115
115
  import { prepareTasks } from '../prepare/prepareTasks';
116
116
  import { unpreparePipeline } from '../prepare/unpreparePipeline';
117
+ import { identificationToPromptbookToken } from '../remote-server/socket-types/_subtypes/identificationToPromptbookToken';
118
+ import { promptbookTokenToIdentification } from '../remote-server/socket-types/_subtypes/promptbookTokenToIdentification';
117
119
  import { _BoilerplateScraperMetadataRegistration } from '../scrapers/_boilerplate/register-metadata';
118
120
  import { prepareKnowledgePieces } from '../scrapers/_common/prepareKnowledgePieces';
119
121
  import { $scrapersMetadataRegister } from '../scrapers/_common/register/$scrapersMetadataRegister';
120
122
  import { $scrapersRegister } from '../scrapers/_common/register/$scrapersRegister';
121
123
  import { makeKnowledgeSourceHandler } from '../scrapers/_common/utils/makeKnowledgeSourceHandler';
124
+ import { promptbookFetch } from '../scrapers/_common/utils/promptbookFetch';
122
125
  import { _LegacyDocumentScraperMetadataRegistration } from '../scrapers/document-legacy/register-metadata';
123
126
  import { _DocumentScraperMetadataRegistration } from '../scrapers/document/register-metadata';
124
127
  import { _MarkdownScraperMetadataRegistration } from '../scrapers/markdown/register-metadata';
@@ -132,6 +135,7 @@ import { MODEL_VARIANTS } from '../types/ModelVariant';
132
135
  import { NonTaskSectionTypes } from '../types/SectionType';
133
136
  import { SectionTypes } from '../types/SectionType';
134
137
  import { TaskTypes } from '../types/TaskType';
138
+ import { REMOTE_SERVER_URLS } from '../../servers';
135
139
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
136
140
  export { collectionToJson };
137
141
  export { createCollectionFromJson };
@@ -142,8 +146,6 @@ export { NAME };
142
146
  export { ADMIN_EMAIL };
143
147
  export { ADMIN_GITHUB_NAME };
144
148
  export { CLAIM };
145
- export { LOGO_LIGHT_SRC };
146
- export { LOGO_DARK_SRC };
147
149
  export { DEFAULT_BOOK_TITLE };
148
150
  export { DEFAULT_TASK_TITLE };
149
151
  export { DEFAULT_PROMPT_TASK_TITLE };
@@ -194,7 +196,9 @@ export { ParseError };
194
196
  export { PipelineExecutionError };
195
197
  export { PipelineLogicError };
196
198
  export { PipelineUrlError };
199
+ export { PromptbookFetchError };
197
200
  export { UnexpectedError };
201
+ export { WrappedError };
198
202
  export { createPipelineExecutor };
199
203
  export { embeddingVectorToString };
200
204
  export { executionReportJsonToString };
@@ -248,11 +252,14 @@ export { isPipelinePrepared };
248
252
  export { preparePipeline };
249
253
  export { prepareTasks };
250
254
  export { unpreparePipeline };
255
+ export { identificationToPromptbookToken };
256
+ export { promptbookTokenToIdentification };
251
257
  export { _BoilerplateScraperMetadataRegistration };
252
258
  export { prepareKnowledgePieces };
253
259
  export { $scrapersMetadataRegister };
254
260
  export { $scrapersRegister };
255
261
  export { makeKnowledgeSourceHandler };
262
+ export { promptbookFetch };
256
263
  export { _LegacyDocumentScraperMetadataRegistration };
257
264
  export { _DocumentScraperMetadataRegistration };
258
265
  export { _MarkdownScraperMetadataRegistration };
@@ -266,3 +273,4 @@ export { MODEL_VARIANTS };
266
273
  export { NonTaskSectionTypes };
267
274
  export { SectionTypes };
268
275
  export { TaskTypes };
276
+ export { REMOTE_SERVER_URLS };
@@ -2,15 +2,15 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
2
  import { compilePipelineOnRemoteServer } from '../conversion/compilePipelineOnRemoteServer';
3
3
  import { RemoteLlmExecutionTools } from '../llm-providers/remote/RemoteLlmExecutionTools';
4
4
  import { preparePipelineOnRemoteServer } from '../prepare/preparePipelineOnRemoteServer';
5
- import type { PromptbookServer_Identification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
6
- import type { PromptbookServer_ApplicationIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
7
- import type { PromptbookServer_AnonymousIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
5
+ import type { Identification } from '../remote-server/socket-types/_subtypes/Identification';
6
+ import type { ApplicationModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
7
+ import type { AnonymousModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
8
8
  import type { RemoteClientOptions } from '../remote-server/types/RemoteClientOptions';
9
9
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
10
10
  export { compilePipelineOnRemoteServer };
11
11
  export { RemoteLlmExecutionTools };
12
12
  export { preparePipelineOnRemoteServer };
13
- export type { PromptbookServer_Identification };
14
- export type { PromptbookServer_ApplicationIdentification };
15
- export type { PromptbookServer_AnonymousIdentification };
13
+ export type { Identification };
14
+ export type { ApplicationModeIdentification };
15
+ export type { AnonymousModeIdentification };
16
16
  export type { RemoteClientOptions };
@@ -1,12 +1,12 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
- import type { PromptbookServer_Identification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
3
- import type { PromptbookServer_ApplicationIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
4
- import type { PromptbookServer_AnonymousIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
2
+ import type { Identification } from '../remote-server/socket-types/_subtypes/Identification';
3
+ import type { ApplicationModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
4
+ import type { AnonymousModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
5
5
  import { startRemoteServer } from '../remote-server/startRemoteServer';
6
6
  import type { RemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
7
7
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
8
- export type { PromptbookServer_Identification };
9
- export type { PromptbookServer_ApplicationIdentification };
10
- export type { PromptbookServer_AnonymousIdentification };
8
+ export type { Identification };
9
+ export type { ApplicationModeIdentification };
10
+ export type { AnonymousModeIdentification };
11
11
  export { startRemoteServer };
12
12
  export type { RemoteServerOptions };
@@ -106,22 +106,23 @@ import type { ScriptTaskJson } from '../pipeline/PipelineJson/ScriptTaskJson';
106
106
  import type { SimpleTaskJson } from '../pipeline/PipelineJson/SimpleTaskJson';
107
107
  import type { TaskJson } from '../pipeline/PipelineJson/TaskJson';
108
108
  import type { PipelineString } from '../pipeline/PipelineString';
109
- import type { paths } from '../playground/brjapp-api-schema';
110
- import type { webhooks } from '../playground/brjapp-api-schema';
111
- import type { components } from '../playground/brjapp-api-schema';
112
- import type { $defs } from '../playground/brjapp-api-schema';
113
- import type { operations } from '../playground/brjapp-api-schema';
114
109
  import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions';
110
+ import type { paths } from '../remote-server/openapi-types';
111
+ import type { webhooks } from '../remote-server/openapi-types';
112
+ import type { components } from '../remote-server/openapi-types';
113
+ import type { $defs } from '../remote-server/openapi-types';
114
+ import type { operations } from '../remote-server/openapi-types';
115
115
  import type { RemoteServer } from '../remote-server/RemoteServer';
116
- import type { PromptbookServer_Identification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
117
- import type { PromptbookServer_ApplicationIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
118
- import type { PromptbookServer_AnonymousIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
116
+ import type { Identification } from '../remote-server/socket-types/_subtypes/Identification';
117
+ import type { ApplicationModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
118
+ import type { AnonymousModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
119
119
  import type { RemoteClientOptions } from '../remote-server/types/RemoteClientOptions';
120
120
  import type { RemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
121
121
  import type { AnonymousRemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
122
122
  import type { ApplicationRemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
123
123
  import type { ApplicationRemoteServerClientOptions } from '../remote-server/types/RemoteServerOptions';
124
- import type { ApplicationRemoteServerOptionsLoginResponse } from '../remote-server/types/RemoteServerOptions';
124
+ import type { LoginRequest } from '../remote-server/types/RemoteServerOptions';
125
+ import type { LoginResponse } from '../remote-server/types/RemoteServerOptions';
125
126
  import type { Converter } from '../scrapers/_common/Converter';
126
127
  import type { ScraperAndConverterMetadata } from '../scrapers/_common/register/ScraperAndConverterMetadata';
127
128
  import type { ScraperConstructor } from '../scrapers/_common/register/ScraperConstructor';
@@ -194,6 +195,7 @@ import type { string_css_property } from '../types/typeAliases';
194
195
  import type { string_css_value } from '../types/typeAliases';
195
196
  import type { string_css_selector } from '../types/typeAliases';
196
197
  import type { string_url } from '../types/typeAliases';
198
+ import type { string_promptbook_server_url } from '../types/typeAliases';
197
199
  import type { string_base_url } from '../types/typeAliases';
198
200
  import type { string_pipeline_root_url } from '../types/typeAliases';
199
201
  import type { string_pipeline_url } from '../types/typeAliases';
@@ -208,6 +210,7 @@ import type { string_uri_part } from '../types/typeAliases';
208
210
  import type { string_hostname } from '../types/typeAliases';
209
211
  import type { string_host } from '../types/typeAliases';
210
212
  import type { string_protocol } from '../types/typeAliases';
213
+ import type { string_ip_address } from '../types/typeAliases';
211
214
  import type { string_email } from '../types/typeAliases';
212
215
  import type { string_emails } from '../types/typeAliases';
213
216
  import type { string_uuid } from '../types/typeAliases';
@@ -226,6 +229,7 @@ import type { string_dirname } from '../types/typeAliases';
226
229
  import type { string_person_fullname } from '../types/typeAliases';
227
230
  import type { string_person_profile } from '../types/typeAliases';
228
231
  import type { string_license } from '../types/typeAliases';
232
+ import type { string_legal_entity } from '../types/typeAliases';
229
233
  import type { string_attribute } from '../types/typeAliases';
230
234
  import type { string_attribute_value_scope } from '../types/typeAliases';
231
235
  import type { string_color } from '../types/typeAliases';
@@ -237,6 +241,7 @@ import type { string_postprocessing_function_name } from '../types/typeAliases';
237
241
  import type { id } from '../types/typeAliases';
238
242
  import type { task_id } from '../types/typeAliases';
239
243
  import type { string_token } from '../types/typeAliases';
244
+ import type { string_promptbook_token } from '../types/typeAliases';
240
245
  import type { string_license_token } from '../types/typeAliases';
241
246
  import type { string_password } from '../types/typeAliases';
242
247
  import type { string_ssh_key } from '../types/typeAliases';
@@ -397,22 +402,23 @@ export type { ScriptTaskJson };
397
402
  export type { SimpleTaskJson };
398
403
  export type { TaskJson };
399
404
  export type { PipelineString };
405
+ export type { PrepareAndScrapeOptions };
400
406
  export type { paths };
401
407
  export type { webhooks };
402
408
  export type { components };
403
409
  export type { $defs };
404
410
  export type { operations };
405
- export type { PrepareAndScrapeOptions };
406
411
  export type { RemoteServer };
407
- export type { PromptbookServer_Identification };
408
- export type { PromptbookServer_ApplicationIdentification };
409
- export type { PromptbookServer_AnonymousIdentification };
412
+ export type { Identification };
413
+ export type { ApplicationModeIdentification };
414
+ export type { AnonymousModeIdentification };
410
415
  export type { RemoteClientOptions };
411
416
  export type { RemoteServerOptions };
412
417
  export type { AnonymousRemoteServerOptions };
413
418
  export type { ApplicationRemoteServerOptions };
414
419
  export type { ApplicationRemoteServerClientOptions };
415
- export type { ApplicationRemoteServerOptionsLoginResponse };
420
+ export type { LoginRequest };
421
+ export type { LoginResponse };
416
422
  export type { Converter };
417
423
  export type { ScraperAndConverterMetadata };
418
424
  export type { ScraperConstructor };
@@ -485,6 +491,7 @@ export type { string_css_property };
485
491
  export type { string_css_value };
486
492
  export type { string_css_selector };
487
493
  export type { string_url };
494
+ export type { string_promptbook_server_url };
488
495
  export type { string_base_url };
489
496
  export type { string_pipeline_root_url };
490
497
  export type { string_pipeline_url };
@@ -499,6 +506,7 @@ export type { string_uri_part };
499
506
  export type { string_hostname };
500
507
  export type { string_host };
501
508
  export type { string_protocol };
509
+ export type { string_ip_address };
502
510
  export type { string_email };
503
511
  export type { string_emails };
504
512
  export type { string_uuid };
@@ -517,6 +525,7 @@ export type { string_dirname };
517
525
  export type { string_person_fullname };
518
526
  export type { string_person_profile };
519
527
  export type { string_license };
528
+ export type { string_legal_entity };
520
529
  export type { string_attribute };
521
530
  export type { string_attribute_value_scope };
522
531
  export type { string_color };
@@ -528,6 +537,7 @@ export type { string_postprocessing_function_name };
528
537
  export type { id };
529
538
  export type { task_id };
530
539
  export type { string_token };
540
+ export type { string_promptbook_token };
531
541
  export type { string_license_token };
532
542
  export type { string_password };
533
543
  export type { string_ssh_key };
@@ -5,7 +5,9 @@ import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMe
5
5
  import { deserializeError } from '../errors/utils/deserializeError';
6
6
  import { serializeError } from '../errors/utils/serializeError';
7
7
  import { forEachAsync } from '../execution/utils/forEachAsync';
8
+ import { isValidCsvString } from '../formats/csv/utils/isValidCsvString';
8
9
  import { isValidJsonString } from '../formats/json/utils/isValidJsonString';
10
+ import { isValidXmlString } from '../formats/xml/utils/isValidXmlString';
9
11
  import { prompt } from '../pipeline/prompt-notation';
10
12
  import { promptTemplate } from '../pipeline/prompt-notation';
11
13
  import { $getCurrentDate } from '../utils/$getCurrentDate';
@@ -87,7 +89,9 @@ export { renderPromptbookMermaid };
87
89
  export { deserializeError };
88
90
  export { serializeError };
89
91
  export { forEachAsync };
92
+ export { isValidCsvString };
90
93
  export { isValidJsonString };
94
+ export { isValidXmlString };
91
95
  export { prompt };
92
96
  export { promptTemplate };
93
97
  export { $getCurrentDate };
@@ -8,7 +8,6 @@ import type { Command as Program } from 'commander';
8
8
  */
9
9
  export declare function $initializeLoginCommand(program: Program): void;
10
10
  /**
11
- * TODO: Pass remote server URL (and path)
12
11
  * TODO: Implement non-interactive login
13
12
  * Note: [💞] Ignore a discrepancy between file name and entity name
14
13
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
@@ -1,15 +1,28 @@
1
+ import type { LlmExecutionToolsWithTotalUsage } from '../../llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage';
1
2
  import type { CacheLlmToolsOptions } from '../../llm-providers/_common/utils/cache/CacheLlmToolsOptions';
2
- import type { string_url } from '../../types/typeAliases';
3
+ import type { string_promptbook_server_url } from '../../types/typeAliases';
3
4
  type ProvideLlmToolsForCliOptions = Pick<CacheLlmToolsOptions, 'isCacheReloaded'> & {
5
+ /**
6
+ * If true, user will be always prompted for login
7
+ *
8
+ * Note: This is used in `ptbk login` command
9
+ */
10
+ isLoginloaded?: true;
11
+ /**
12
+ * CLI options
13
+ */
4
14
  cliOptions: {
5
15
  verbose: boolean;
6
16
  interactive: boolean;
7
17
  provider: 'BYOK' | 'BRING_YOUR_OWN_KEYS' | 'REMOTE_SERVER' | 'RS' | string;
8
- remoteServerUrl: string_url;
18
+ remoteServerUrl: string_promptbook_server_url;
9
19
  };
10
20
  };
11
21
  /**
12
22
  * @private utility of CLI
13
23
  */
14
- export declare function $provideLlmToolsForCli(options: ProvideLlmToolsForCliOptions): Promise<import("../../_packages/types.index").LlmExecutionToolsWithTotalUsage>;
24
+ export declare function $provideLlmToolsForCli(options: ProvideLlmToolsForCliOptions): Promise<{
25
+ strategy: 'BRING_YOUR_OWN_KEYS' | 'REMOTE_SERVER';
26
+ llm: LlmExecutionToolsWithTotalUsage;
27
+ }>;
15
28
  export {};
@@ -2,4 +2,4 @@
2
2
  /**
3
3
  * Note: [🔺] Purpose of this file is to test and use the current CLI in development environment
4
4
  */
5
- import '../../_packages/cli.index.ts';
5
+ import '../../_packages/cli.index';
@@ -1,6 +1,8 @@
1
1
  import type { PipelineTaskCommandParser } from '../_common/types/CommandParser';
2
2
  import type { ExpectCommand } from './ExpectCommand';
3
3
  /**
4
+ import { WrappedError } from '../../errors/WrappedError';
5
+ import { assertsError } from '../../errors/assertsError';
4
6
  * Parses the expect command
5
7
  *
6
8
  * @see `documentationUrl` for more details