@promptbook/browser 0.89.0-3 → 0.89.0-30
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/README.md +9 -7
- package/esm/index.es.js +52 -6
- package/esm/index.es.js.map +1 -1
- package/esm/typings/servers.d.ts +40 -0
- package/esm/typings/src/_packages/core.index.d.ts +20 -8
- package/esm/typings/src/_packages/remote-client.index.d.ts +6 -8
- package/esm/typings/src/_packages/remote-server.index.d.ts +6 -6
- package/esm/typings/src/_packages/types.index.d.ts +24 -12
- package/esm/typings/src/cli/cli-commands/login.d.ts +0 -1
- package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +7 -0
- package/esm/typings/src/cli/common/$provideLlmToolsForCli.d.ts +28 -0
- package/esm/typings/src/cli/test/ptbk.d.ts +1 -1
- package/esm/typings/src/commands/EXPECT/expectCommandParser.d.ts +2 -0
- package/esm/typings/src/config.d.ts +24 -26
- package/esm/typings/src/errors/0-index.d.ts +9 -0
- package/esm/typings/src/errors/AuthenticationError.d.ts +9 -0
- package/esm/typings/src/errors/PipelineExecutionError.d.ts +1 -1
- package/esm/typings/src/errors/PromptbookFetchError.d.ts +9 -0
- package/esm/typings/src/errors/WrappedError.d.ts +10 -0
- package/esm/typings/src/errors/assertsError.d.ts +11 -0
- package/esm/typings/src/execution/PromptbookFetch.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideEnvFilename.d.ts +12 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +2 -8
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +2 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizzardOrCli.d.ts +45 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -0
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/register-configuration.d.ts +1 -1
- package/esm/typings/src/remote-server/RemoteServer.d.ts +23 -0
- package/esm/typings/src/remote-server/openapi-types.d.ts +284 -0
- package/esm/typings/src/remote-server/openapi.d.ts +187 -0
- package/esm/typings/src/remote-server/socket-types/_subtypes/{PromptbookServer_Identification.d.ts → Identification.d.ts} +3 -3
- package/esm/typings/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +11 -0
- package/esm/typings/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +10 -0
- package/esm/typings/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +2 -2
- package/esm/typings/src/remote-server/socket-types/prepare/PromptbookServer_PreparePipeline_Request.d.ts +2 -2
- package/esm/typings/src/remote-server/socket-types/prompt/PromptbookServer_Prompt_Request.d.ts +2 -2
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +3 -4
- package/esm/typings/src/remote-server/types/RemoteClientOptions.d.ts +4 -12
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +84 -9
- package/esm/typings/src/scrapers/_common/utils/{scraperFetch.d.ts → promptbookFetch.d.ts} +2 -2
- package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +40 -0
- package/esm/typings/src/types/typeAliases.d.ts +19 -0
- package/esm/typings/src/utils/organization/TODO_narrow.d.ts +6 -0
- package/package.json +7 -3
- package/umd/index.umd.js +52 -6
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/cli/test/ptbk2.d.ts +0 -5
- package/esm/typings/src/playground/BrjappConnector.d.ts +0 -67
- package/esm/typings/src/playground/brjapp-api-schema.d.ts +0 -12879
package/README.md
CHANGED
|
@@ -248,6 +248,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
|
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
|
|
251
|
+
## 🔒 Security
|
|
252
|
+
|
|
253
|
+
For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
|
|
254
|
+
|
|
251
255
|
## 📦 Packages _(for developers)_
|
|
252
256
|
|
|
253
257
|
This library is divided into several packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
|
@@ -304,7 +308,7 @@ The following glossary is used to clarify certain concepts:
|
|
|
304
308
|
### General LLM / AI terms
|
|
305
309
|
|
|
306
310
|
- **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.
|
|
311
|
+
- [**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
312
|
- **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
313
|
- **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
314
|
- **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 +316,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
312
316
|
- **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
317
|
- **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
318
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
319
|
_Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
320
320
|
|
|
321
321
|
|
|
@@ -429,6 +429,8 @@ See [TODO.md](./TODO.md)
|
|
|
429
429
|
|
|
430
430
|
## 🖋️ Contributing
|
|
431
431
|
|
|
432
|
-
We are open to pull requests, feedback, and suggestions.
|
|
432
|
+
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).
|
|
433
|
+
|
|
434
|
+
## 📞 Support
|
|
433
435
|
|
|
434
|
-
|
|
436
|
+
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-
|
|
19
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-30';
|
|
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:
|
|
56
|
+
* TODO: [🧠][🌂] Add id to all errors
|
|
57
57
|
*/
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -187,7 +187,7 @@ Object.freeze({
|
|
|
187
187
|
});
|
|
188
188
|
/**
|
|
189
189
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
190
|
-
* TODO: [🧠][🧜♂️] Maybe join
|
|
190
|
+
* TODO: [🧠][🧜♂️] Maybe join remoteServerUrl and path into single value
|
|
191
191
|
*/
|
|
192
192
|
|
|
193
193
|
/**
|
|
@@ -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
|
-
|
|
581
|
-
throw error;
|
|
582
|
-
}
|
|
628
|
+
assertsError(error);
|
|
583
629
|
throw new UnexpectedError(spaceTrim$1((block) => `
|
|
584
630
|
\`${name}\` is not serializable
|
|
585
631
|
|
package/esm/index.es.js.map
CHANGED
|
@@ -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,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,CAAA;AACnC,IAAA,WAAA,CAAsC,UAA8B,EAAE,EAAA;QAAhC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAyB;KAAI;AAE1E;;AAEG;IACI,MAAM,YAAY,CAAC,OAA8C,EAAA;AACpE,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CACxB,SAAS,CACL,CAAC,KAAK,KAAK,CAAA;AACL,oBAAA,EAAA,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;;AAE1B,oBAAA,EAAA,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AACjC,gBAAA,CAAA,CACJ,CACJ,CAAC;AAEF,QAAA,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AAkB,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,QA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CAAC,QAAQ,GAAG,CAAA,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;;;;"}
|
|
@@ -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';
|
|
@@ -25,9 +23,10 @@ import { DEFAULT_BOOKS_DIRNAME } from '../config';
|
|
|
25
23
|
import { DEFAULT_DOWNLOAD_CACHE_DIRNAME } from '../config';
|
|
26
24
|
import { DEFAULT_EXECUTION_CACHE_DIRNAME } from '../config';
|
|
27
25
|
import { DEFAULT_SCRAPE_CACHE_DIRNAME } from '../config';
|
|
26
|
+
import { CLI_APP_ID } from '../config';
|
|
27
|
+
import { PLAYGROUND_APP_ID } from '../config';
|
|
28
28
|
import { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME } from '../config';
|
|
29
|
-
import {
|
|
30
|
-
import { DEFAULT_REMOTE_URL_PATH } from '../config';
|
|
29
|
+
import { DEFAULT_REMOTE_SERVER_URL } from '../config';
|
|
31
30
|
import { DEFAULT_CSV_SETTINGS } from '../config';
|
|
32
31
|
import { DEFAULT_IS_VERBOSE } from '../config';
|
|
33
32
|
import { SET_IS_VERBOSE } from '../config';
|
|
@@ -46,6 +45,7 @@ import type { CallbackInterfaceToolsOptions } from '../dialogs/callback/Callback
|
|
|
46
45
|
import { BoilerplateError } from '../errors/0-BoilerplateError';
|
|
47
46
|
import { PROMPTBOOK_ERRORS } from '../errors/0-index';
|
|
48
47
|
import { AbstractFormatError } from '../errors/AbstractFormatError';
|
|
48
|
+
import { AuthenticationError } from '../errors/AuthenticationError';
|
|
49
49
|
import { CollectionError } from '../errors/CollectionError';
|
|
50
50
|
import { EnvironmentMismatchError } from '../errors/EnvironmentMismatchError';
|
|
51
51
|
import { ExpectError } from '../errors/ExpectError';
|
|
@@ -58,7 +58,9 @@ import { ParseError } from '../errors/ParseError';
|
|
|
58
58
|
import { PipelineExecutionError } from '../errors/PipelineExecutionError';
|
|
59
59
|
import { PipelineLogicError } from '../errors/PipelineLogicError';
|
|
60
60
|
import { PipelineUrlError } from '../errors/PipelineUrlError';
|
|
61
|
+
import { PromptbookFetchError } from '../errors/PromptbookFetchError';
|
|
61
62
|
import { UnexpectedError } from '../errors/UnexpectedError';
|
|
63
|
+
import { WrappedError } from '../errors/WrappedError';
|
|
62
64
|
import { createPipelineExecutor } from '../execution/createPipelineExecutor/00-createPipelineExecutor';
|
|
63
65
|
import { embeddingVectorToString } from '../execution/embeddingVectorToString';
|
|
64
66
|
import { executionReportJsonToString } from '../execution/execution-report/executionReportJsonToString';
|
|
@@ -112,11 +114,14 @@ import { isPipelinePrepared } from '../prepare/isPipelinePrepared';
|
|
|
112
114
|
import { preparePipeline } from '../prepare/preparePipeline';
|
|
113
115
|
import { prepareTasks } from '../prepare/prepareTasks';
|
|
114
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';
|
|
115
119
|
import { _BoilerplateScraperMetadataRegistration } from '../scrapers/_boilerplate/register-metadata';
|
|
116
120
|
import { prepareKnowledgePieces } from '../scrapers/_common/prepareKnowledgePieces';
|
|
117
121
|
import { $scrapersMetadataRegister } from '../scrapers/_common/register/$scrapersMetadataRegister';
|
|
118
122
|
import { $scrapersRegister } from '../scrapers/_common/register/$scrapersRegister';
|
|
119
123
|
import { makeKnowledgeSourceHandler } from '../scrapers/_common/utils/makeKnowledgeSourceHandler';
|
|
124
|
+
import { promptbookFetch } from '../scrapers/_common/utils/promptbookFetch';
|
|
120
125
|
import { _LegacyDocumentScraperMetadataRegistration } from '../scrapers/document-legacy/register-metadata';
|
|
121
126
|
import { _DocumentScraperMetadataRegistration } from '../scrapers/document/register-metadata';
|
|
122
127
|
import { _MarkdownScraperMetadataRegistration } from '../scrapers/markdown/register-metadata';
|
|
@@ -130,6 +135,7 @@ import { MODEL_VARIANTS } from '../types/ModelVariant';
|
|
|
130
135
|
import { NonTaskSectionTypes } from '../types/SectionType';
|
|
131
136
|
import { SectionTypes } from '../types/SectionType';
|
|
132
137
|
import { TaskTypes } from '../types/TaskType';
|
|
138
|
+
import { REMOTE_SERVER_URLS } from '../../servers';
|
|
133
139
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
134
140
|
export { collectionToJson };
|
|
135
141
|
export { createCollectionFromJson };
|
|
@@ -140,8 +146,6 @@ export { NAME };
|
|
|
140
146
|
export { ADMIN_EMAIL };
|
|
141
147
|
export { ADMIN_GITHUB_NAME };
|
|
142
148
|
export { CLAIM };
|
|
143
|
-
export { LOGO_LIGHT_SRC };
|
|
144
|
-
export { LOGO_DARK_SRC };
|
|
145
149
|
export { DEFAULT_BOOK_TITLE };
|
|
146
150
|
export { DEFAULT_TASK_TITLE };
|
|
147
151
|
export { DEFAULT_PROMPT_TASK_TITLE };
|
|
@@ -157,9 +161,10 @@ export { DEFAULT_BOOKS_DIRNAME };
|
|
|
157
161
|
export { DEFAULT_DOWNLOAD_CACHE_DIRNAME };
|
|
158
162
|
export { DEFAULT_EXECUTION_CACHE_DIRNAME };
|
|
159
163
|
export { DEFAULT_SCRAPE_CACHE_DIRNAME };
|
|
164
|
+
export { CLI_APP_ID };
|
|
165
|
+
export { PLAYGROUND_APP_ID };
|
|
160
166
|
export { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME };
|
|
161
|
-
export {
|
|
162
|
-
export { DEFAULT_REMOTE_URL_PATH };
|
|
167
|
+
export { DEFAULT_REMOTE_SERVER_URL };
|
|
163
168
|
export { DEFAULT_CSV_SETTINGS };
|
|
164
169
|
export { DEFAULT_IS_VERBOSE };
|
|
165
170
|
export { SET_IS_VERBOSE };
|
|
@@ -178,6 +183,7 @@ export type { CallbackInterfaceToolsOptions };
|
|
|
178
183
|
export { BoilerplateError };
|
|
179
184
|
export { PROMPTBOOK_ERRORS };
|
|
180
185
|
export { AbstractFormatError };
|
|
186
|
+
export { AuthenticationError };
|
|
181
187
|
export { CollectionError };
|
|
182
188
|
export { EnvironmentMismatchError };
|
|
183
189
|
export { ExpectError };
|
|
@@ -190,7 +196,9 @@ export { ParseError };
|
|
|
190
196
|
export { PipelineExecutionError };
|
|
191
197
|
export { PipelineLogicError };
|
|
192
198
|
export { PipelineUrlError };
|
|
199
|
+
export { PromptbookFetchError };
|
|
193
200
|
export { UnexpectedError };
|
|
201
|
+
export { WrappedError };
|
|
194
202
|
export { createPipelineExecutor };
|
|
195
203
|
export { embeddingVectorToString };
|
|
196
204
|
export { executionReportJsonToString };
|
|
@@ -244,11 +252,14 @@ export { isPipelinePrepared };
|
|
|
244
252
|
export { preparePipeline };
|
|
245
253
|
export { prepareTasks };
|
|
246
254
|
export { unpreparePipeline };
|
|
255
|
+
export { identificationToPromptbookToken };
|
|
256
|
+
export { promptbookTokenToIdentification };
|
|
247
257
|
export { _BoilerplateScraperMetadataRegistration };
|
|
248
258
|
export { prepareKnowledgePieces };
|
|
249
259
|
export { $scrapersMetadataRegister };
|
|
250
260
|
export { $scrapersRegister };
|
|
251
261
|
export { makeKnowledgeSourceHandler };
|
|
262
|
+
export { promptbookFetch };
|
|
252
263
|
export { _LegacyDocumentScraperMetadataRegistration };
|
|
253
264
|
export { _DocumentScraperMetadataRegistration };
|
|
254
265
|
export { _MarkdownScraperMetadataRegistration };
|
|
@@ -262,3 +273,4 @@ export { MODEL_VARIANTS };
|
|
|
262
273
|
export { NonTaskSectionTypes };
|
|
263
274
|
export { SectionTypes };
|
|
264
275
|
export { TaskTypes };
|
|
276
|
+
export { REMOTE_SERVER_URLS };
|
|
@@ -2,17 +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 {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
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
|
-
import type { RemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
|
|
10
9
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
11
10
|
export { compilePipelineOnRemoteServer };
|
|
12
11
|
export { RemoteLlmExecutionTools };
|
|
13
12
|
export { preparePipelineOnRemoteServer };
|
|
14
|
-
export type {
|
|
15
|
-
export type {
|
|
16
|
-
export type {
|
|
13
|
+
export type { Identification };
|
|
14
|
+
export type { ApplicationModeIdentification };
|
|
15
|
+
export type { AnonymousModeIdentification };
|
|
17
16
|
export type { RemoteClientOptions };
|
|
18
|
-
export type { RemoteServerOptions };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
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 {
|
|
9
|
-
export type {
|
|
10
|
-
export type {
|
|
8
|
+
export type { Identification };
|
|
9
|
+
export type { ApplicationModeIdentification };
|
|
10
|
+
export type { AnonymousModeIdentification };
|
|
11
11
|
export { startRemoteServer };
|
|
12
12
|
export type { RemoteServerOptions };
|
|
@@ -106,20 +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';
|
|
115
|
-
import type {
|
|
116
|
-
import type {
|
|
117
|
-
import type {
|
|
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
|
+
import type { RemoteServer } from '../remote-server/RemoteServer';
|
|
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';
|
|
118
119
|
import type { RemoteClientOptions } from '../remote-server/types/RemoteClientOptions';
|
|
119
120
|
import type { RemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
|
|
120
121
|
import type { AnonymousRemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
|
|
121
122
|
import type { ApplicationRemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
|
|
122
123
|
import type { ApplicationRemoteServerClientOptions } from '../remote-server/types/RemoteServerOptions';
|
|
124
|
+
import type { LoginRequest } from '../remote-server/types/RemoteServerOptions';
|
|
125
|
+
import type { LoginResponse } from '../remote-server/types/RemoteServerOptions';
|
|
123
126
|
import type { Converter } from '../scrapers/_common/Converter';
|
|
124
127
|
import type { ScraperAndConverterMetadata } from '../scrapers/_common/register/ScraperAndConverterMetadata';
|
|
125
128
|
import type { ScraperConstructor } from '../scrapers/_common/register/ScraperConstructor';
|
|
@@ -192,6 +195,7 @@ import type { string_css_property } from '../types/typeAliases';
|
|
|
192
195
|
import type { string_css_value } from '../types/typeAliases';
|
|
193
196
|
import type { string_css_selector } from '../types/typeAliases';
|
|
194
197
|
import type { string_url } from '../types/typeAliases';
|
|
198
|
+
import type { string_promptbook_server_url } from '../types/typeAliases';
|
|
195
199
|
import type { string_base_url } from '../types/typeAliases';
|
|
196
200
|
import type { string_pipeline_root_url } from '../types/typeAliases';
|
|
197
201
|
import type { string_pipeline_url } from '../types/typeAliases';
|
|
@@ -224,6 +228,7 @@ import type { string_dirname } from '../types/typeAliases';
|
|
|
224
228
|
import type { string_person_fullname } from '../types/typeAliases';
|
|
225
229
|
import type { string_person_profile } from '../types/typeAliases';
|
|
226
230
|
import type { string_license } from '../types/typeAliases';
|
|
231
|
+
import type { string_legal_entity } from '../types/typeAliases';
|
|
227
232
|
import type { string_attribute } from '../types/typeAliases';
|
|
228
233
|
import type { string_attribute_value_scope } from '../types/typeAliases';
|
|
229
234
|
import type { string_color } from '../types/typeAliases';
|
|
@@ -235,6 +240,7 @@ import type { string_postprocessing_function_name } from '../types/typeAliases';
|
|
|
235
240
|
import type { id } from '../types/typeAliases';
|
|
236
241
|
import type { task_id } from '../types/typeAliases';
|
|
237
242
|
import type { string_token } from '../types/typeAliases';
|
|
243
|
+
import type { string_promptbook_token } from '../types/typeAliases';
|
|
238
244
|
import type { string_license_token } from '../types/typeAliases';
|
|
239
245
|
import type { string_password } from '../types/typeAliases';
|
|
240
246
|
import type { string_ssh_key } from '../types/typeAliases';
|
|
@@ -395,20 +401,23 @@ export type { ScriptTaskJson };
|
|
|
395
401
|
export type { SimpleTaskJson };
|
|
396
402
|
export type { TaskJson };
|
|
397
403
|
export type { PipelineString };
|
|
404
|
+
export type { PrepareAndScrapeOptions };
|
|
398
405
|
export type { paths };
|
|
399
406
|
export type { webhooks };
|
|
400
407
|
export type { components };
|
|
401
408
|
export type { $defs };
|
|
402
409
|
export type { operations };
|
|
403
|
-
export type {
|
|
404
|
-
export type {
|
|
405
|
-
export type {
|
|
406
|
-
export type {
|
|
410
|
+
export type { RemoteServer };
|
|
411
|
+
export type { Identification };
|
|
412
|
+
export type { ApplicationModeIdentification };
|
|
413
|
+
export type { AnonymousModeIdentification };
|
|
407
414
|
export type { RemoteClientOptions };
|
|
408
415
|
export type { RemoteServerOptions };
|
|
409
416
|
export type { AnonymousRemoteServerOptions };
|
|
410
417
|
export type { ApplicationRemoteServerOptions };
|
|
411
418
|
export type { ApplicationRemoteServerClientOptions };
|
|
419
|
+
export type { LoginRequest };
|
|
420
|
+
export type { LoginResponse };
|
|
412
421
|
export type { Converter };
|
|
413
422
|
export type { ScraperAndConverterMetadata };
|
|
414
423
|
export type { ScraperConstructor };
|
|
@@ -481,6 +490,7 @@ export type { string_css_property };
|
|
|
481
490
|
export type { string_css_value };
|
|
482
491
|
export type { string_css_selector };
|
|
483
492
|
export type { string_url };
|
|
493
|
+
export type { string_promptbook_server_url };
|
|
484
494
|
export type { string_base_url };
|
|
485
495
|
export type { string_pipeline_root_url };
|
|
486
496
|
export type { string_pipeline_url };
|
|
@@ -513,6 +523,7 @@ export type { string_dirname };
|
|
|
513
523
|
export type { string_person_fullname };
|
|
514
524
|
export type { string_person_profile };
|
|
515
525
|
export type { string_license };
|
|
526
|
+
export type { string_legal_entity };
|
|
516
527
|
export type { string_attribute };
|
|
517
528
|
export type { string_attribute_value_scope };
|
|
518
529
|
export type { string_color };
|
|
@@ -524,6 +535,7 @@ export type { string_postprocessing_function_name };
|
|
|
524
535
|
export type { id };
|
|
525
536
|
export type { task_id };
|
|
526
537
|
export type { string_token };
|
|
538
|
+
export type { string_promptbook_token };
|
|
527
539
|
export type { string_license_token };
|
|
528
540
|
export type { string_password };
|
|
529
541
|
export type { string_ssh_key };
|
|
@@ -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`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers an option in the CLI
|
|
4
|
+
*
|
|
5
|
+
* @private utility of CLI
|
|
6
|
+
*/
|
|
7
|
+
export declare function $addGlobalOptionsToCommand(command: Command): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { LlmExecutionToolsWithTotalUsage } from '../../llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage';
|
|
2
|
+
import type { CacheLlmToolsOptions } from '../../llm-providers/_common/utils/cache/CacheLlmToolsOptions';
|
|
3
|
+
import type { string_promptbook_server_url } from '../../types/typeAliases';
|
|
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
|
+
*/
|
|
14
|
+
cliOptions: {
|
|
15
|
+
verbose: boolean;
|
|
16
|
+
interactive: boolean;
|
|
17
|
+
provider: 'BYOK' | 'BRING_YOUR_OWN_KEYS' | 'REMOTE_SERVER' | 'RS' | string;
|
|
18
|
+
remoteServerUrl: string_promptbook_server_url;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @private utility of CLI
|
|
23
|
+
*/
|
|
24
|
+
export declare function $provideLlmToolsForCli(options: ProvideLlmToolsForCliOptions): Promise<{
|
|
25
|
+
strategy: 'BRING_YOUR_OWN_KEYS' | 'REMOTE_SERVER';
|
|
26
|
+
llm: LlmExecutionToolsWithTotalUsage;
|
|
27
|
+
}>;
|
|
28
|
+
export {};
|
|
@@ -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
|