@promptbook/node 0.69.0-7 → 0.69.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.
- package/README.md +4 -1
- package/esm/index.es.js +1510 -783
- package/esm/index.es.js.map +1 -1
- package/esm/typings/promptbook-collection/index.d.ts +0 -3
- package/esm/typings/src/_packages/core.index.d.ts +12 -0
- package/esm/typings/src/_packages/types.index.d.ts +6 -0
- package/esm/typings/src/_packages/utils.index.d.ts +4 -4
- package/esm/typings/src/cli/cli-commands/make.d.ts +1 -1
- package/esm/typings/src/collection/constructors/createCollectionFromUrl.d.ts +1 -1
- package/esm/typings/src/commands/FOREACH/ForeachCommand.d.ts +1 -1
- package/esm/typings/src/commands/FOREACH/ForeachJson.d.ts +6 -5
- package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +1 -2
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +1 -1
- package/esm/typings/src/config.d.ts +11 -4
- package/esm/typings/src/conversion/pipelineStringToJsonSync.d.ts +1 -1
- package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +3 -3
- package/esm/typings/src/conversion/validation/validatePipeline.d.ts +6 -5
- package/esm/typings/src/errors/AbstractFormatError.d.ts +11 -0
- package/esm/typings/src/execution/PipelineExecutor.d.ts +1 -0
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +5 -6
- package/esm/typings/src/execution/createPipelineExecutor/$OngoingTemplateResult.d.ts +45 -0
- package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorSettings.d.ts +10 -0
- package/esm/typings/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +3 -0
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +5 -2
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTemplate.d.ts +3 -0
- package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +15 -0
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +74 -0
- package/esm/typings/src/execution/embeddingVectorToString.d.ts +1 -1
- package/esm/typings/src/execution/utils/checkExpectations.d.ts +2 -0
- package/esm/typings/src/execution/utils/usageToHuman.d.ts +3 -4
- package/esm/typings/src/formats/_common/FormatDefinition.d.ts +14 -15
- package/esm/typings/src/formats/_common/FormatSubvalueDefinition.d.ts +31 -0
- package/esm/typings/src/formats/csv/{ListFormatDefinition.d.ts → CsvFormatDefinition.d.ts} +6 -3
- package/esm/typings/src/formats/csv/CsvFormatError.d.ts +10 -0
- package/esm/typings/src/formats/csv/CsvSettings.d.ts +13 -0
- package/esm/typings/src/formats/index.d.ts +1 -1
- package/esm/typings/src/formats/json/JsonFormatDefinition.d.ts +4 -3
- package/esm/typings/src/formats/text/TextFormatDefinition.d.ts +19 -0
- package/esm/typings/src/formats/xml/XmlFormatDefinition.d.ts +4 -3
- package/esm/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +1 -1
- package/esm/typings/src/knowledge/prepare-knowledge/pdf/prepareKnowledgeFromPdf.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +2 -2
- package/esm/typings/src/llm-providers/anthropic-claude/playground/playground.d.ts +2 -2
- package/esm/typings/src/llm-providers/openai/playground/playground.d.ts +1 -1
- package/esm/typings/src/personas/preparePersona.d.ts +1 -1
- package/esm/typings/src/prepare/isPipelinePrepared.d.ts +1 -1
- package/esm/typings/src/prepare/prepareTemplates.d.ts +1 -1
- package/esm/typings/src/types/PipelineJson/ParameterJson.d.ts +1 -1
- package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +1 -1
- package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +0 -3
- package/esm/typings/src/types/execution-report/executionReportJsonToString.d.ts +2 -1
- package/esm/typings/src/types/typeAliases.d.ts +1 -1
- package/esm/typings/src/utils/expectation-counters/index.d.ts +3 -0
- package/esm/typings/src/utils/organization/{f.d.ts → empty_object.d.ts} +5 -1
- package/esm/typings/src/utils/organization/just_empty_object.d.ts +12 -0
- package/esm/typings/src/utils/{extractParameterNames.d.ts → parameters/extractParameterNames.d.ts} +2 -2
- package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +27 -0
- package/esm/typings/src/utils/{replaceParameters.d.ts → parameters/replaceParameters.d.ts} +2 -2
- package/esm/typings/src/utils/serialization/checkSerializableAsJson.d.ts +1 -1
- package/esm/typings/src/utils/serialization/isSerializableAsJson.d.ts +1 -1
- package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +10 -0
- package/package.json +18 -13
- package/umd/index.umd.js +1513 -787
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatCell.d.ts +0 -30
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempt.d.ts +0 -30
- package/esm/typings/src/formats/list/ListFormatDefinition.d.ts +0 -16
- /package/esm/typings/src/utils/{extractParameterNames.test.d.ts → parameters/extractParameterNames.test.d.ts} +0 -0
- /package/esm/typings/src/{execution/utils/usageToHuman.test.d.ts → utils/parameters/mapAvailableToExpectedParameters.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{replaceParameters.test.d.ts → parameters/replaceParameters.test.d.ts} +0 -0
- /package/esm/typings/src/{personas/preparePersona.test.d.ts → utils/validators/parameterName/validateParameterName.test.d.ts} +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ReadonlyDeep } from 'type-fest';
|
|
2
|
-
import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
|
|
3
|
-
import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';
|
|
4
|
-
import type { TODO_any } from '../../utils/organization/TODO_any';
|
|
5
|
-
/**
|
|
6
|
-
* @@@
|
|
7
|
-
*
|
|
8
|
-
* @private internal type of `executeFormatCell`
|
|
9
|
-
*/
|
|
10
|
-
type ExecuteFormatCellOptions = {
|
|
11
|
-
/**
|
|
12
|
-
* @@@
|
|
13
|
-
*/
|
|
14
|
-
readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
|
|
15
|
-
/**
|
|
16
|
-
* @@@
|
|
17
|
-
*/
|
|
18
|
-
readonly template: ReadonlyDeep<TemplateJson>;
|
|
19
|
-
/**
|
|
20
|
-
* @@@
|
|
21
|
-
*/
|
|
22
|
-
readonly pipelineIdentification: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @@@
|
|
26
|
-
*
|
|
27
|
-
* @private internal utility of `createPipelineExecutor`
|
|
28
|
-
*/
|
|
29
|
-
export declare function executeFormatCell(options: ExecuteFormatCellOptions): Promise<TODO_any>;
|
|
30
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ReadonlyDeep } from 'type-fest';
|
|
2
|
-
import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
|
|
3
|
-
import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';
|
|
4
|
-
import type { TODO_any } from '../../utils/organization/TODO_any';
|
|
5
|
-
/**
|
|
6
|
-
* @@@
|
|
7
|
-
*
|
|
8
|
-
* @private internal type of `executeAttempt`
|
|
9
|
-
*/
|
|
10
|
-
type ExecuteAttemptOptions = {
|
|
11
|
-
/**
|
|
12
|
-
* @@@
|
|
13
|
-
*/
|
|
14
|
-
readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
|
|
15
|
-
/**
|
|
16
|
-
* @@@
|
|
17
|
-
*/
|
|
18
|
-
readonly template: ReadonlyDeep<TemplateJson>;
|
|
19
|
-
/**
|
|
20
|
-
* @@@
|
|
21
|
-
*/
|
|
22
|
-
readonly pipelineIdentification: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @@@
|
|
26
|
-
*
|
|
27
|
-
* @private internal utility of `createPipelineExecutor`
|
|
28
|
-
*/
|
|
29
|
-
export declare function executeAttempt(options: ExecuteAttemptOptions): Promise<TODO_any>;
|
|
30
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FormatDefinition } from '../_common/FormatDefinition';
|
|
2
|
-
/**
|
|
3
|
-
* Definition for list of multiple items
|
|
4
|
-
*
|
|
5
|
-
* Note: list is just a string with multiple lines or multiple items separated by comma
|
|
6
|
-
*
|
|
7
|
-
* @private still in development [🏢]
|
|
8
|
-
*/
|
|
9
|
-
export declare const ListFormatDefinition: FormatDefinition<string, string, object>;
|
|
10
|
-
/**
|
|
11
|
-
* TODO: [🍓] In `ListFormatDefinition` implement simple `isValid`
|
|
12
|
-
* TODO: [🍓] In `ListFormatDefinition` implement partial `canBeValid`
|
|
13
|
-
* TODO: [🍓] In `ListFormatDefinition` implement `heal
|
|
14
|
-
* TODO: [🍓] In `ListFormatDefinition` implement `extractValues`
|
|
15
|
-
* TODO: [🏢] Allow to expect something inside each item of list and other formats
|
|
16
|
-
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|