@promptbook/types 0.84.0-15 β 0.84.0-17
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 +10 -3
- package/esm/typings/src/_packages/cli.index.d.ts +4 -0
- package/esm/typings/src/_packages/core.index.d.ts +4 -0
- package/esm/typings/src/_packages/deepseek.index.d.ts +8 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/_packages/wizzard.index.d.ts +4 -0
- package/esm/typings/src/config.d.ts +6 -0
- package/esm/typings/src/conversion/compilePipelineOnRemoteServer.d.ts +1 -1
- package/esm/typings/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +9 -0
- package/esm/typings/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +14 -0
- package/esm/typings/src/llm-providers/deepseek/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/deepseek/register-constructor.d.ts +15 -0
- package/esm/typings/src/prepare/preparePipelineOnRemoteServer.d.ts +1 -1
- package/esm/typings/src/remote-server/socket-types/_subtypes/PromptbookServer_Identification.d.ts +5 -2
- package/package.json +6 -4
- package/LICENSE.md +0 -1
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## π New Features
|
|
18
18
|
|
|
19
|
-
- π **Support of [DeepSeek models](https://www.
|
|
19
|
+
- π **Support of [DeepSeek models](https://www.npmjs.com/package/@promptbook/deepseek)**
|
|
20
20
|
- π Working [the **Book** language v1.0.0](https://github.com/webgptorg/book)
|
|
21
21
|
- π€ Run books from CLI - `npx ptbk run path/to/your/book`
|
|
22
22
|
- π Support of `.docx`, `.doc` and `.pdf` documents as knowledge
|
|
@@ -288,8 +288,9 @@ Or you can install them separately:
|
|
|
288
288
|
- **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
|
|
289
289
|
- **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
|
|
290
290
|
- **[@promptbook/google](https://www.npmjs.com/package/@promptbook/google)** - Integration with Google's Gemini API
|
|
291
|
+
- **[@promptbook/deepseek](https://www.npmjs.com/package/@promptbook/deepseek)** - Integration with [DeepSeek API](https://www.deepseek.com/)
|
|
291
292
|
- **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
|
|
292
|
-
|
|
293
|
+
|
|
293
294
|
- **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
|
|
294
295
|
- **[@promptbook/remote-client](https://www.npmjs.com/package/@promptbook/remote-client)** - Remote client for remote execution of promptbooks
|
|
295
296
|
- **[@promptbook/remote-server](https://www.npmjs.com/package/@promptbook/remote-server)** - Remote server for remote execution of promptbooks
|
|
@@ -459,6 +460,12 @@ See [TODO.md](./TODO.md)
|
|
|
459
460
|
|
|
460
461
|
|
|
461
462
|
|
|
463
|
+
|
|
464
|
+
## π€ Partners
|
|
465
|
+
|
|
466
|
+
[](https://technologickainkubace.org/en/about-technology-incubation/about-the-project/)
|
|
467
|
+
|
|
468
|
+
|
|
462
469
|
## ποΈ Contributing
|
|
463
470
|
|
|
464
471
|
I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [β buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).
|
|
@@ -4,6 +4,8 @@ import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic
|
|
|
4
4
|
import { _AnthropicClaudeRegistration } from '../llm-providers/anthropic-claude/register-constructor';
|
|
5
5
|
import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
|
|
6
6
|
import { _AzureOpenAiRegistration } from '../llm-providers/azure-openai/register-constructor';
|
|
7
|
+
import { _DeepseekMetadataRegistration } from '../llm-providers/deepseek/register-configuration';
|
|
8
|
+
import { _DeepseekRegistration } from '../llm-providers/deepseek/register-constructor';
|
|
7
9
|
import { _GoogleMetadataRegistration } from '../llm-providers/google/register-configuration';
|
|
8
10
|
import { _GoogleRegistration } from '../llm-providers/google/register-constructor';
|
|
9
11
|
import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
|
|
@@ -30,6 +32,8 @@ export { _AnthropicClaudeMetadataRegistration };
|
|
|
30
32
|
export { _AnthropicClaudeRegistration };
|
|
31
33
|
export { _AzureOpenAiMetadataRegistration };
|
|
32
34
|
export { _AzureOpenAiRegistration };
|
|
35
|
+
export { _DeepseekMetadataRegistration };
|
|
36
|
+
export { _DeepseekRegistration };
|
|
33
37
|
export { _GoogleMetadataRegistration };
|
|
34
38
|
export { _GoogleRegistration };
|
|
35
39
|
export { _OpenAiMetadataRegistration };
|
|
@@ -14,6 +14,7 @@ import { DEFAULT_BOOK_TITLE } from '../config';
|
|
|
14
14
|
import { DEFAULT_TASK_TITLE } from '../config';
|
|
15
15
|
import { DEFAULT_PROMPT_TASK_TITLE } from '../config';
|
|
16
16
|
import { DEFAULT_BOOK_OUTPUT_PARAMETER_NAME } from '../config';
|
|
17
|
+
import { DEFAULT_MAX_FILE_SIZE } from '../config';
|
|
17
18
|
import { MAX_FILENAME_LENGTH } from '../config';
|
|
18
19
|
import { DEFAULT_INTERMEDIATE_FILES_STRATEGY } from '../config';
|
|
19
20
|
import { DEFAULT_MAX_PARALLEL_COUNT } from '../config';
|
|
@@ -91,6 +92,7 @@ import { countTotalUsage } from '../llm-providers/_common/utils/count-total-usag
|
|
|
91
92
|
import { limitTotalUsage } from '../llm-providers/_common/utils/count-total-usage/limitTotalUsage';
|
|
92
93
|
import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';
|
|
93
94
|
import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
|
|
95
|
+
import { _DeepseekMetadataRegistration } from '../llm-providers/deepseek/register-configuration';
|
|
94
96
|
import { _GoogleMetadataRegistration } from '../llm-providers/google/register-configuration';
|
|
95
97
|
import { joinLlmExecutionTools } from '../llm-providers/multiple/joinLlmExecutionTools';
|
|
96
98
|
import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools';
|
|
@@ -143,6 +145,7 @@ export { DEFAULT_BOOK_TITLE };
|
|
|
143
145
|
export { DEFAULT_TASK_TITLE };
|
|
144
146
|
export { DEFAULT_PROMPT_TASK_TITLE };
|
|
145
147
|
export { DEFAULT_BOOK_OUTPUT_PARAMETER_NAME };
|
|
148
|
+
export { DEFAULT_MAX_FILE_SIZE };
|
|
146
149
|
export { MAX_FILENAME_LENGTH };
|
|
147
150
|
export { DEFAULT_INTERMEDIATE_FILES_STRATEGY };
|
|
148
151
|
export { DEFAULT_MAX_PARALLEL_COUNT };
|
|
@@ -220,6 +223,7 @@ export { countTotalUsage };
|
|
|
220
223
|
export { limitTotalUsage };
|
|
221
224
|
export { _AnthropicClaudeMetadataRegistration };
|
|
222
225
|
export { _AzureOpenAiMetadataRegistration };
|
|
226
|
+
export { _DeepseekMetadataRegistration };
|
|
223
227
|
export { _GoogleMetadataRegistration };
|
|
224
228
|
export { joinLlmExecutionTools };
|
|
225
229
|
export { MultipleLlmExecutionTools };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
+
import { createDeepseekExecutionTools } from '../llm-providers/deepseek/createDeepseekExecutionTools';
|
|
3
|
+
import type { DeepseekExecutionToolsOptions } from '../llm-providers/deepseek/DeepseekExecutionToolsOptions';
|
|
4
|
+
import { _DeepseekRegistration } from '../llm-providers/deepseek/register-constructor';
|
|
5
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
6
|
+
export { createDeepseekExecutionTools };
|
|
7
|
+
export type { DeepseekExecutionToolsOptions };
|
|
8
|
+
export { _DeepseekRegistration };
|
|
@@ -70,6 +70,7 @@ import type { AnthropicClaudeExecutionToolsOptions } from '../llm-providers/anth
|
|
|
70
70
|
import type { AnthropicClaudeExecutionToolsDirectOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
71
71
|
import type { AnthropicClaudeExecutionToolsProxiedOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
72
72
|
import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions';
|
|
73
|
+
import type { DeepseekExecutionToolsOptions } from '../llm-providers/deepseek/DeepseekExecutionToolsOptions';
|
|
73
74
|
import type { GoogleExecutionToolsOptions } from '../llm-providers/google/GoogleExecutionToolsOptions';
|
|
74
75
|
import type { OpenAiAssistantExecutionToolsOptions } from '../llm-providers/openai/OpenAiAssistantExecutionToolsOptions';
|
|
75
76
|
import type { OpenAiExecutionToolsOptions } from '../llm-providers/openai/OpenAiExecutionToolsOptions';
|
|
@@ -344,6 +345,7 @@ export type { AnthropicClaudeExecutionToolsOptions };
|
|
|
344
345
|
export type { AnthropicClaudeExecutionToolsDirectOptions };
|
|
345
346
|
export type { AnthropicClaudeExecutionToolsProxiedOptions };
|
|
346
347
|
export type { AzureOpenAiExecutionToolsOptions };
|
|
348
|
+
export type { DeepseekExecutionToolsOptions };
|
|
347
349
|
export type { GoogleExecutionToolsOptions };
|
|
348
350
|
export type { OpenAiAssistantExecutionToolsOptions };
|
|
349
351
|
export type { OpenAiExecutionToolsOptions };
|
|
@@ -3,6 +3,8 @@ import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic
|
|
|
3
3
|
import { _AnthropicClaudeRegistration } from '../llm-providers/anthropic-claude/register-constructor';
|
|
4
4
|
import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
|
|
5
5
|
import { _AzureOpenAiRegistration } from '../llm-providers/azure-openai/register-constructor';
|
|
6
|
+
import { _DeepseekMetadataRegistration } from '../llm-providers/deepseek/register-configuration';
|
|
7
|
+
import { _DeepseekRegistration } from '../llm-providers/deepseek/register-constructor';
|
|
6
8
|
import { _GoogleMetadataRegistration } from '../llm-providers/google/register-configuration';
|
|
7
9
|
import { _GoogleRegistration } from '../llm-providers/google/register-constructor';
|
|
8
10
|
import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
|
|
@@ -29,6 +31,8 @@ export { _AnthropicClaudeMetadataRegistration };
|
|
|
29
31
|
export { _AnthropicClaudeRegistration };
|
|
30
32
|
export { _AzureOpenAiMetadataRegistration };
|
|
31
33
|
export { _AzureOpenAiRegistration };
|
|
34
|
+
export { _DeepseekMetadataRegistration };
|
|
35
|
+
export { _DeepseekRegistration };
|
|
32
36
|
export { _GoogleMetadataRegistration };
|
|
33
37
|
export { _GoogleRegistration };
|
|
34
38
|
export { _OpenAiMetadataRegistration };
|
|
@@ -77,6 +77,12 @@ export declare const DEFAULT_PROMPT_TASK_TITLE = "Prompt";
|
|
|
77
77
|
* @public exported from `@promptbook/core`
|
|
78
78
|
*/
|
|
79
79
|
export declare const DEFAULT_BOOK_OUTPUT_PARAMETER_NAME = "result";
|
|
80
|
+
/**
|
|
81
|
+
* Maximum file size limit
|
|
82
|
+
*
|
|
83
|
+
* @public exported from `@promptbook/core`
|
|
84
|
+
*/
|
|
85
|
+
export declare const DEFAULT_MAX_FILE_SIZE: number;
|
|
80
86
|
/**
|
|
81
87
|
* Warning message for the generated sections and files files
|
|
82
88
|
*
|
|
@@ -17,5 +17,5 @@ import type { RemoteClientOptions } from '../remote-server/types/RemoteClientOpt
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function compilePipelineOnRemoteServer<TCustomOptions = undefined>(pipelineString: PipelineString, options: RemoteClientOptions<TCustomOptions>): Promise<PipelineJson>;
|
|
19
19
|
/**
|
|
20
|
-
* TODO:
|
|
20
|
+
* TODO: [π] Do not return Promise<PipelineJson> But PreparePipelineTask
|
|
21
21
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { createDeepSeek } from '@ai-sdk/deepseek';
|
|
2
|
+
import type { VercelExecutionToolsOptions } from '../vercel/VercelExecutionToolsOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Options for `DeepseekExecutionTools`
|
|
5
|
+
*
|
|
6
|
+
* This combines options for Promptbook, Deepseek and Vercel together
|
|
7
|
+
* @public exported from `@promptbook/deepseek`
|
|
8
|
+
*/
|
|
9
|
+
export type DeepseekExecutionToolsOptions = Omit<VercelExecutionToolsOptions, 'title' | 'description' | 'vercelProvider' | 'availableModels'> & Parameters<typeof createDeepSeek>[0];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
|
|
2
|
+
import type { DeepseekExecutionToolsOptions } from './DeepseekExecutionToolsOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Execution Tools for calling Deepseek API.
|
|
5
|
+
*
|
|
6
|
+
* @public exported from `@promptbook/deepseek`
|
|
7
|
+
*/
|
|
8
|
+
export declare const createDeepseekExecutionTools: ((options: DeepseekExecutionToolsOptions) => LlmExecutionTools) & {
|
|
9
|
+
packageName: string;
|
|
10
|
+
className: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* TODO: [πΆ] Naming "constructor" vs "creator" vs "factory"
|
|
14
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of LLM provider metadata
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools
|
|
6
|
+
*
|
|
7
|
+
* @public exported from `@promptbook/core`
|
|
8
|
+
* @public exported from `@promptbook/wizzard`
|
|
9
|
+
* @public exported from `@promptbook/cli`
|
|
10
|
+
*/
|
|
11
|
+
export declare const _DeepseekMetadataRegistration: Registration;
|
|
12
|
+
/**
|
|
13
|
+
* Note: [π] Ignore a discrepancy between file name and entity name
|
|
14
|
+
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Registration } from '../../utils/$Register';
|
|
2
|
+
/**
|
|
3
|
+
* Registration of LLM provider
|
|
4
|
+
*
|
|
5
|
+
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools
|
|
6
|
+
*
|
|
7
|
+
* @public exported from `@promptbook/deepseek`
|
|
8
|
+
* @public exported from `@promptbook/wizzard`
|
|
9
|
+
* @public exported from `@promptbook/cli`
|
|
10
|
+
*/
|
|
11
|
+
export declare const _DeepseekRegistration: Registration;
|
|
12
|
+
/**
|
|
13
|
+
* TODO: [πΆ] Naming "constructor" vs "creator" vs "factory"
|
|
14
|
+
* Note: [π] Ignore a discrepancy between file name and entity name
|
|
15
|
+
*/
|
|
@@ -13,5 +13,5 @@ import type { RemoteClientOptions } from '../remote-server/types/RemoteClientOpt
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function preparePipelineOnRemoteServer<TCustomOptions = undefined>(pipeline: PipelineJson, options: RemoteClientOptions<TCustomOptions>): Promise<PipelineJson>;
|
|
15
15
|
/**
|
|
16
|
-
* TODO:
|
|
16
|
+
* TODO: [π] Do not return Promise<PipelineJson> But PreparePipelineTask
|
|
17
17
|
*/
|
package/esm/typings/src/remote-server/socket-types/_subtypes/PromptbookServer_Identification.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { ApplicationRemoteServerClientOptions } from '../../types/RemoteSer
|
|
|
9
9
|
*/
|
|
10
10
|
export type PromptbookServer_Identification<TCustomOptions> = PromptbookServer_ApplicationIdentification<TCustomOptions> | PromptbookServer_AnonymousIdentification;
|
|
11
11
|
/**
|
|
12
|
-
* Application mode is
|
|
12
|
+
* Application mode is situation when you run known and well-defined books with your own api keys
|
|
13
13
|
*
|
|
14
14
|
* @public exported from `@promptbook/remote-server`
|
|
15
15
|
* @public exported from `@promptbook/remote-client`
|
|
@@ -21,7 +21,10 @@ export type PromptbookServer_ApplicationIdentification<TCustomOptions> = Applica
|
|
|
21
21
|
readonly isAnonymous: false;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
|
-
* Anonymous mode is
|
|
24
|
+
* Anonymous mode is when you run arbitrary user books without api keys from user
|
|
25
|
+
*
|
|
26
|
+
* Note: This is useful in situations when the LLM provider does not allow to call the API requests from the client side
|
|
27
|
+
* It is kind of a proxy mode
|
|
25
28
|
*
|
|
26
29
|
* @public exported from `@promptbook/remote-server`
|
|
27
30
|
* @public exported from `@promptbook/remote-client`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/types",
|
|
3
|
-
"version": "0.84.0-
|
|
3
|
+
"version": "0.84.0-17",
|
|
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,
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/webgptorg/promptbook"
|
|
10
10
|
},
|
|
11
|
+
"author": "Pavol HejnΓ½ <pavol@ptbk.io> (https://www.pavolhejny.com/)",
|
|
11
12
|
"contributors": [
|
|
12
|
-
"Pavol HejnΓ½ <pavol@ptbk.io> (https://www.pavolhejny.com/)"
|
|
13
|
+
"Pavol HejnΓ½ <pavol@ptbk.io> (https://www.pavolhejny.com/)",
|
|
14
|
+
"JiΕΓ Jahn <jiri@ptbk.io> (https://www.ptbk.io/)"
|
|
13
15
|
],
|
|
14
16
|
"keywords": [
|
|
15
17
|
"ai",
|
|
@@ -33,13 +35,13 @@
|
|
|
33
35
|
"anthropic",
|
|
34
36
|
"LLMOps"
|
|
35
37
|
],
|
|
36
|
-
"license": "
|
|
38
|
+
"license": "UNLICENSED",
|
|
37
39
|
"bugs": {
|
|
38
40
|
"url": "https://github.com/webgptorg/promptbook/issues"
|
|
39
41
|
},
|
|
40
42
|
"homepage": "https://www.npmjs.com/package/@promptbook/core",
|
|
41
43
|
"typings": "./esm/typings/src/_packages/types.index.d.ts",
|
|
42
44
|
"peerDependencies": {
|
|
43
|
-
"@promptbook/core": "0.84.0-
|
|
45
|
+
"@promptbook/core": "0.84.0-17"
|
|
44
46
|
}
|
|
45
47
|
}
|
package/LICENSE.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[Functional Source License, Version 1.1, ALv2 Future License](https://github.com/getsentry/fsl.software/blob/main/FSL-1.1-ALv2.template.md)
|