@promptbook/remote-server 0.84.0 → 0.85.0-1
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 +4 -0
- package/esm/index.es.js +4646 -4469
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +0 -2
- package/esm/typings/src/_packages/types.index.d.ts +14 -2
- package/esm/typings/src/_packages/utils.index.d.ts +0 -2
- package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +13 -0
- package/esm/typings/src/cli/cli-commands/start-server.d.ts +13 -0
- package/esm/typings/src/conversion/compilePipelineOnRemoteServer.d.ts +1 -1
- package/esm/typings/src/execution/AbstractTaskResult.d.ts +25 -0
- package/esm/typings/src/execution/ExecutionTask.d.ts +71 -0
- package/esm/typings/src/execution/FilesystemTools.d.ts +1 -1
- package/esm/typings/src/execution/PipelineExecutor.d.ts +2 -5
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +2 -15
- package/esm/typings/src/execution/PromptbookFetch.d.ts +8 -1
- package/esm/typings/src/execution/{assertsExecutionSuccessful.d.ts → assertsTaskSuccessful.d.ts} +2 -3
- package/esm/typings/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +0 -3
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +2 -6
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +3 -6
- package/esm/typings/src/prepare/preparePipelineOnRemoteServer.d.ts +1 -1
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +3 -0
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +6 -4
- package/esm/typings/src/types/typeAliases.d.ts +2 -0
- package/esm/typings/src/utils/environment/$isRunningInBrowser.d.ts +2 -2
- package/esm/typings/src/utils/environment/$isRunningInJest.d.ts +2 -2
- package/esm/typings/src/utils/environment/$isRunningInNode.d.ts +2 -2
- package/esm/typings/src/utils/environment/$isRunningInWebWorker.d.ts +1 -1
- package/esm/typings/src/utils/random/$randomSeed.d.ts +2 -1
- package/esm/typings/src/utils/random/$randomToken.d.ts +13 -0
- package/esm/typings/src/wizzard/wizzard.d.ts +2 -3
- package/package.json +5 -2
- package/umd/index.umd.js +4656 -4481
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/remote-server/socket-types/_common/PromptbookServer_Progress.d.ts +0 -10
- package/esm/typings/src/types/TaskProgress.d.ts +0 -43
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TaskProgress } from '../../../types/TaskProgress';
|
|
2
|
-
/**
|
|
3
|
-
* This is sent from server to client as indication of prograss arbitrarily and may be sent multiple times
|
|
4
|
-
*
|
|
5
|
-
* @private internal type of remote server
|
|
6
|
-
*/
|
|
7
|
-
export type PromptbookServer_Progress = TaskProgress;
|
|
8
|
-
/**
|
|
9
|
-
* TODO: `PromptbookServer_Progress` is unused for now, but it will be used in the future
|
|
10
|
-
*/
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { SectionType } from './SectionType';
|
|
2
|
-
import type { string_markdown_text } from './typeAliases';
|
|
3
|
-
import type { string_name } from './typeAliases';
|
|
4
|
-
/**
|
|
5
|
-
* TaskProgress represents the progress of a Promptbook execution.
|
|
6
|
-
*/
|
|
7
|
-
export type TaskProgress = {
|
|
8
|
-
/**
|
|
9
|
-
* The unique name of the task.
|
|
10
|
-
*
|
|
11
|
-
* Note: This is not supposed to be displayed to the user.
|
|
12
|
-
* It is used to identify the task in the code, for example as react key
|
|
13
|
-
*/
|
|
14
|
-
readonly name: string_name;
|
|
15
|
-
/**
|
|
16
|
-
* Title of the task.
|
|
17
|
-
*
|
|
18
|
-
* Note: This is supposed to be displayed to the user.
|
|
19
|
-
* Note: This is trimmed and stripped of HTML tags and emojis
|
|
20
|
-
*/
|
|
21
|
-
readonly title: string_markdown_text;
|
|
22
|
-
/**
|
|
23
|
-
* Does the task started?
|
|
24
|
-
*/
|
|
25
|
-
readonly isStarted: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Is task done?
|
|
28
|
-
*/
|
|
29
|
-
readonly isDone: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* The type of the execution.
|
|
32
|
-
* Note: The pipeline executor reports everything, in the app level you can filter out the execution types that you don't want to show to the user.
|
|
33
|
-
*/
|
|
34
|
-
readonly taskType: SectionType;
|
|
35
|
-
/**
|
|
36
|
-
* The parameter name that is being processed.
|
|
37
|
-
*/
|
|
38
|
-
readonly parameterName: string_name;
|
|
39
|
-
/**
|
|
40
|
-
* The parameter value or null if the parameter is not yet processed.
|
|
41
|
-
*/
|
|
42
|
-
readonly parameterValue: string | null;
|
|
43
|
-
};
|