@promptbook/remote-server 0.75.6 → 0.75.10
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 +8 -2
- package/esm/index.es.js +1 -1
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -2
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -1
- package/esm/typings/src/formfactors/index.d.ts +1 -0
- package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +1 -0
- package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +6 -4
- package/esm/typings/src/types/typeAliases.d.ts +10 -0
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/esm/typings/src/_packages/langtail.index.d.ts +0 -6
- package/esm/typings/src/llm-providers/langtail/LangtailExecutionTools.d.ts +0 -17
- package/esm/typings/src/llm-providers/langtail/LangtailExecutionToolsOptions.d.ts +0 -13
- package/esm/typings/src/llm-providers/langtail/playground/playground.d.ts +0 -5
package/README.md
CHANGED
|
@@ -91,7 +91,7 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
91
91
|
<tr>
|
|
92
92
|
<td>Core</td>
|
|
93
93
|
<td>Promptbook Core is a description and documentation of the basic concepts, ideas and inner workings of how Promptbook should be implemented, and defines what features must be describable by book language.</td>
|
|
94
|
-
<td rowspan=2>https://
|
|
94
|
+
<td rowspan=2>https://github.com/webgptorg/book</td>
|
|
95
95
|
</tr>
|
|
96
96
|
<tr>
|
|
97
97
|
<td>Book language</td>
|
|
@@ -102,7 +102,7 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
102
102
|
<tr>
|
|
103
103
|
<td>Promptbook typescript project</td>
|
|
104
104
|
<td>Promptbook implementation in TypeScript released as multiple NPM packages</td>
|
|
105
|
-
<td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
|
|
105
|
+
<td>https://github.com/webgptorg/promptbook + <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">Multiple packages published on NPM</a></td>
|
|
106
106
|
</tr>
|
|
107
107
|
<tr>
|
|
108
108
|
<td>Promptbook studio</td>
|
|
@@ -122,6 +122,12 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
122
122
|
</tbody>
|
|
123
123
|
</table>
|
|
124
124
|
|
|
125
|
+
Also we have a community of developers and users:
|
|
126
|
+
|
|
127
|
+
- [Discord](https://discord.gg/x3QWNaa89N)
|
|
128
|
+
- [Landing page](https://ptbk.io)
|
|
129
|
+
- [Github discussions](https://github.com/webgptorg/promptbook/discussions)
|
|
130
|
+
|
|
125
131
|
|
|
126
132
|
|
|
127
133
|
## 💙 Book language _(for prompt-engineer)_
|
package/esm/index.es.js
CHANGED
|
@@ -15,7 +15,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
15
15
|
*
|
|
16
16
|
* @see https://github.com/webgptorg/promptbook
|
|
17
17
|
*/
|
|
18
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
18
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.9';
|
|
19
19
|
/**
|
|
20
20
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
21
21
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -8,6 +8,7 @@ import type { string_markdown } from '../types/typeAliases';
|
|
|
8
8
|
import type { string_markdown_section } from '../types/typeAliases';
|
|
9
9
|
import type { string_markdown_section_content } from '../types/typeAliases';
|
|
10
10
|
import type { string_markdown_text } from '../types/typeAliases';
|
|
11
|
+
import type { string_markdown_codeblock_language } from '../types/typeAliases';
|
|
11
12
|
import { addAutoGeneratedSection } from '../utils/markdown/addAutoGeneratedSection';
|
|
12
13
|
import { createMarkdownChart } from '../utils/markdown/createMarkdownChart';
|
|
13
14
|
import { createMarkdownTable } from '../utils/markdown/createMarkdownTable';
|
|
@@ -31,6 +32,7 @@ export type { string_markdown };
|
|
|
31
32
|
export type { string_markdown_section };
|
|
32
33
|
export type { string_markdown_section_content };
|
|
33
34
|
export type { string_markdown_text };
|
|
35
|
+
export type { string_markdown_codeblock_language };
|
|
34
36
|
export { addAutoGeneratedSection };
|
|
35
37
|
export { createMarkdownChart };
|
|
36
38
|
export { createMarkdownTable };
|
|
@@ -55,7 +55,6 @@ import type { AnthropicClaudeExecutionToolsOptions } from '../llm-providers/anth
|
|
|
55
55
|
import type { AnthropicClaudeExecutionToolsDirectOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
56
56
|
import type { AnthropicClaudeExecutionToolsProxiedOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
57
57
|
import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions';
|
|
58
|
-
import type { LangtailExecutionToolsOptions } from '../llm-providers/langtail/LangtailExecutionToolsOptions';
|
|
59
58
|
import type { OpenAiAssistantExecutionToolsOptions } from '../llm-providers/openai/OpenAiAssistantExecutionToolsOptions';
|
|
60
59
|
import type { OpenAiExecutionToolsOptions } from '../llm-providers/openai/OpenAiExecutionToolsOptions';
|
|
61
60
|
import type { PromptbookServer_Error } from '../llm-providers/remote/interfaces/PromptbookServer_Error';
|
|
@@ -151,6 +150,7 @@ import type { string_markdown } from '../types/typeAliases';
|
|
|
151
150
|
import type { string_markdown_section } from '../types/typeAliases';
|
|
152
151
|
import type { string_markdown_section_content } from '../types/typeAliases';
|
|
153
152
|
import type { string_markdown_text } from '../types/typeAliases';
|
|
153
|
+
import type { string_markdown_codeblock_language } from '../types/typeAliases';
|
|
154
154
|
import type { string_promptbook_documentation_url } from '../types/typeAliases';
|
|
155
155
|
import type { string_domain } from '../types/typeAliases';
|
|
156
156
|
import type { string_tdl } from '../types/typeAliases';
|
|
@@ -309,7 +309,6 @@ export type { AnthropicClaudeExecutionToolsOptions };
|
|
|
309
309
|
export type { AnthropicClaudeExecutionToolsDirectOptions };
|
|
310
310
|
export type { AnthropicClaudeExecutionToolsProxiedOptions };
|
|
311
311
|
export type { AzureOpenAiExecutionToolsOptions };
|
|
312
|
-
export type { LangtailExecutionToolsOptions };
|
|
313
312
|
export type { OpenAiAssistantExecutionToolsOptions };
|
|
314
313
|
export type { OpenAiExecutionToolsOptions };
|
|
315
314
|
export type { PromptbookServer_Error };
|
|
@@ -405,6 +404,7 @@ export type { string_markdown };
|
|
|
405
404
|
export type { string_markdown_section };
|
|
406
405
|
export type { string_markdown_section_content };
|
|
407
406
|
export type { string_markdown_text };
|
|
407
|
+
export type { string_markdown_codeblock_language };
|
|
408
408
|
export type { string_promptbook_documentation_url };
|
|
409
409
|
export type { string_domain };
|
|
410
410
|
export type { string_tdl };
|
|
@@ -9,7 +9,7 @@ import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorO
|
|
|
9
9
|
*
|
|
10
10
|
* @private internal type of `executePipeline`
|
|
11
11
|
*/
|
|
12
|
-
type ExecutePipelineOptions = CreatePipelineExecutorOptions & {
|
|
12
|
+
type ExecutePipelineOptions = Required<CreatePipelineExecutorOptions> & {
|
|
13
13
|
/**
|
|
14
14
|
* @@@
|
|
15
15
|
*/
|
|
@@ -10,7 +10,7 @@ import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorO
|
|
|
10
10
|
*
|
|
11
11
|
* @private internal type of `executeTask`
|
|
12
12
|
*/
|
|
13
|
-
type executeSingleTaskOptions = CreatePipelineExecutorOptions & {
|
|
13
|
+
type executeSingleTaskOptions = Required<CreatePipelineExecutorOptions> & {
|
|
14
14
|
/**
|
|
15
15
|
* @@@
|
|
16
16
|
*/
|
|
@@ -11,7 +11,7 @@ import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorO
|
|
|
11
11
|
*
|
|
12
12
|
* @private internal type of `executeAttempts`
|
|
13
13
|
*/
|
|
14
|
-
export type ExecuteAttemptsOptions = Omit<CreatePipelineExecutorOptions, 'pipeline'
|
|
14
|
+
export type ExecuteAttemptsOptions = Required<Omit<CreatePipelineExecutorOptions, 'pipeline'>> & {
|
|
15
15
|
/**
|
|
16
16
|
* @@@
|
|
17
17
|
*/
|
|
@@ -74,6 +74,7 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
74
74
|
};
|
|
75
75
|
}, {
|
|
76
76
|
readonly name: "SHEETS";
|
|
77
|
+
readonly aliasNames: readonly ["SHEETS", "SHEET"];
|
|
77
78
|
readonly description: "@@@";
|
|
78
79
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176";
|
|
79
80
|
readonly pipelineInterface: {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const SheetsFormfactorDefinition: {
|
|
7
7
|
readonly name: "SHEETS";
|
|
8
|
+
readonly aliasNames: readonly ["SHEETS", "SHEET"];
|
|
8
9
|
readonly description: "@@@";
|
|
9
10
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176";
|
|
10
11
|
readonly pipelineInterface: {
|
|
@@ -10,7 +10,7 @@ export type PrepareAndScrapeOptions = {
|
|
|
10
10
|
* Note: When the pipeline is not created from files, it is `null`
|
|
11
11
|
* Note: This folder must exist (=it is not created recursively)
|
|
12
12
|
*
|
|
13
|
-
* @default process.cwd()
|
|
13
|
+
* @default null or `process.cwd()` when created via `$provide...` function in node
|
|
14
14
|
*/
|
|
15
15
|
readonly rootDirname?: string_dirname | null;
|
|
16
16
|
/**
|
|
@@ -18,7 +18,7 @@ export type PrepareAndScrapeOptions = {
|
|
|
18
18
|
*
|
|
19
19
|
* Note: When the folder does not exist, it is created recursively
|
|
20
20
|
*
|
|
21
|
-
* @default
|
|
21
|
+
* @default DEFAULT_SCRAPE_CACHE_DIRNAME
|
|
22
22
|
*/
|
|
23
23
|
readonly cacheDirname?: string_dirname;
|
|
24
24
|
/**
|
|
@@ -30,17 +30,19 @@ export type PrepareAndScrapeOptions = {
|
|
|
30
30
|
/**
|
|
31
31
|
* Maximum number of tasks running in parallel
|
|
32
32
|
*
|
|
33
|
-
* @default
|
|
33
|
+
* @default DEFAULT_MAX_PARALLEL_COUNT
|
|
34
34
|
*/
|
|
35
35
|
readonly maxParallelCount?: number;
|
|
36
36
|
/**
|
|
37
37
|
* If true, the missing software is automatically installed
|
|
38
|
+
*
|
|
39
|
+
* @default DEFAULT_IS_AUTO_INSTALLED
|
|
38
40
|
*/
|
|
39
41
|
readonly isAutoInstalled?: boolean;
|
|
40
42
|
/**
|
|
41
43
|
* If true, the preparation logs additional information
|
|
42
44
|
*
|
|
43
|
-
* @default
|
|
45
|
+
* @default DEFAULT_IS_VERBOSE
|
|
44
46
|
*/
|
|
45
47
|
readonly isVerbose?: boolean;
|
|
46
48
|
};
|
|
@@ -208,6 +208,16 @@ export type string_markdown_section_content = string;
|
|
|
208
208
|
* @public exported from `@promptbook/markdown-utils`
|
|
209
209
|
*/
|
|
210
210
|
export type string_markdown_text = string;
|
|
211
|
+
/**
|
|
212
|
+
* Semantic helper
|
|
213
|
+
*
|
|
214
|
+
* Markdown code block language
|
|
215
|
+
*
|
|
216
|
+
* For example ```js -> `"js"`
|
|
217
|
+
*
|
|
218
|
+
* @public exported from `@promptbook/markdown-utils`
|
|
219
|
+
*/
|
|
220
|
+
export type string_markdown_codeblock_language = 'book' | 'markdown' | 'text' | 'javascript' | 'css' | 'json';
|
|
211
221
|
/**
|
|
212
222
|
* @@@
|
|
213
223
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-server",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.10",
|
|
4
4
|
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
|
|
5
5
|
"--note-0": " <- [🐊]",
|
|
6
6
|
"private": false,
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"module": "./esm/index.es.js",
|
|
55
55
|
"typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@promptbook/core": "0.75.
|
|
57
|
+
"@promptbook/core": "0.75.10"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
25
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.9';
|
|
26
26
|
/**
|
|
27
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
28
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
-
import { LangtailExecutionTools } from '../llm-providers/langtail/LangtailExecutionTools';
|
|
3
|
-
import type { LangtailExecutionToolsOptions } from '../llm-providers/langtail/LangtailExecutionToolsOptions';
|
|
4
|
-
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
5
|
-
export { LangtailExecutionTools };
|
|
6
|
-
export type { LangtailExecutionToolsOptions };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
|
|
2
|
-
import type { string_markdown } from '../../types/typeAliases';
|
|
3
|
-
import type { string_markdown_text } from '../../types/typeAliases';
|
|
4
|
-
import type { string_title } from '../../types/typeAliases';
|
|
5
|
-
import { OpenAiExecutionTools } from '../openai/OpenAiExecutionTools';
|
|
6
|
-
/**
|
|
7
|
-
* Execution Tools for calling OpenAI API.
|
|
8
|
-
*
|
|
9
|
-
* @public exported from `@promptbook/langtail`
|
|
10
|
-
*/
|
|
11
|
-
export declare class LangtailExecutionTools extends OpenAiExecutionTools implements LlmExecutionTools {
|
|
12
|
-
get title(): string_title & string_markdown_text;
|
|
13
|
-
get description(): string_markdown;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options
|
|
17
|
-
*/
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { OpenAiExecutionToolsOptions } from '../openai/OpenAiExecutionToolsOptions';
|
|
2
|
-
/**
|
|
3
|
-
* Options for LangtailExecutionTools
|
|
4
|
-
*
|
|
5
|
-
* This extends OpenAI's `ClientOptions` with are directly passed to the OpenAI client.
|
|
6
|
-
* Rest is used by the `OpenAiExecutionTools`.
|
|
7
|
-
*
|
|
8
|
-
* @public exported from `@promptbook/langtail`
|
|
9
|
-
*/
|
|
10
|
-
export type LangtailExecutionToolsOptions = OpenAiExecutionToolsOptions;
|
|
11
|
-
/**
|
|
12
|
-
* TODO: !! Use or remove
|
|
13
|
-
*/
|