@promptbook/cli 0.71.0-0 → 0.72.0-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 +7 -6
- package/esm/index.es.js +1518 -2299
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +5 -11
- package/esm/typings/src/_packages/openai.index.d.ts +4 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -12
- package/esm/typings/src/_packages/utils.index.d.ts +4 -4
- package/esm/typings/src/commands/FOREACH/ForeachCommand.d.ts +2 -3
- package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +1 -1
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +1 -16
- package/esm/typings/src/config.d.ts +1 -14
- package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +0 -3
- package/esm/typings/src/conversion/utils/extractParameterNamesFromTemplate.d.ts +1 -2
- package/esm/typings/src/conversion/validation/validatePipeline.d.ts +0 -5
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +8 -9
- package/esm/typings/src/execution/createPipelineExecutor.d.ts +72 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +1 -1
- package/esm/typings/src/execution/utils/addUsage.d.ts +0 -56
- package/esm/typings/src/execution/utils/checkExpectations.d.ts +0 -2
- package/esm/typings/src/execution/utils/usage-constants.d.ts +127 -0
- package/esm/typings/src/execution/utils/usageToHuman.d.ts +4 -3
- package/esm/typings/src/formats/_common/FormatDefinition.d.ts +15 -14
- package/esm/typings/src/formats/csv/{CsvFormatDefinition.d.ts → ListFormatDefinition.d.ts} +3 -6
- package/esm/typings/src/formats/index.d.ts +1 -1
- package/esm/typings/src/formats/json/JsonFormatDefinition.d.ts +3 -4
- package/esm/typings/src/formats/list/ListFormatDefinition.d.ts +16 -0
- package/esm/typings/src/formats/xml/XmlFormatDefinition.d.ts +3 -4
- package/esm/typings/src/knowledge/dialogs/callback/CallbackInterfaceTools.d.ts +1 -1
- package/esm/typings/src/knowledge/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +3 -2
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +3 -2
- package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +37 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +14 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +3 -2
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +1 -1
- package/esm/typings/src/scripting/python/PythonExecutionTools.d.ts +1 -1
- package/esm/typings/src/scripting/typescript/TypescriptExecutionTools.d.ts +1 -1
- package/esm/typings/src/storage/files-storage/FilesStorage.d.ts +1 -1
- package/esm/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +2 -9
- package/esm/typings/src/types/PipelineJson/ParameterJson.d.ts +0 -1
- package/esm/typings/src/types/PipelineJson/TemplateJsonCommon.d.ts +0 -5
- package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +0 -3
- package/esm/typings/src/utils/expectation-counters/index.d.ts +0 -3
- package/esm/typings/src/utils/{parameters/extractParameterNames.d.ts → extractParameterNames.d.ts} +2 -2
- package/esm/typings/src/utils/organization/{empty_object.d.ts → f.d.ts} +1 -5
- package/esm/typings/src/utils/{parameters/replaceParameters.d.ts → replaceParameters.d.ts} +2 -2
- package/package.json +12 -17
- package/umd/index.umd.js +1522 -2302
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/commands/FOREACH/ForeachJson.d.ts +0 -23
- package/esm/typings/src/execution/createPipelineExecutor/$OngoingTemplateResult.d.ts +0 -45
- package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorOptions.d.ts +0 -20
- package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorSettings.d.ts +0 -40
- package/esm/typings/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +0 -10
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +0 -55
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTemplate.d.ts +0 -62
- package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatCells.d.ts +0 -19
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +0 -74
- package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +0 -34
- package/esm/typings/src/execution/createPipelineExecutor/getContextForTemplate.d.ts +0 -10
- package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTemplate.d.ts +0 -27
- package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTemplate.d.ts +0 -30
- package/esm/typings/src/execution/createPipelineExecutor/getSamplesForTemplate.d.ts +0 -10
- package/esm/typings/src/formats/_common/FormatSubvalueDefinition.d.ts +0 -30
- package/esm/typings/src/formats/csv/CsvSettings.d.ts +0 -13
- package/esm/typings/src/formats/text/TextFormatDefinition.d.ts +0 -19
- package/esm/typings/src/utils/organization/just_empty_object.d.ts +0 -12
- package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +0 -27
- package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +0 -10
- package/esm/typings/src/utils/validators/parameterName/validateParameterName.test.d.ts +0 -1
- /package/esm/typings/src/{utils/parameters/extractParameterNames.test.d.ts → execution/utils/usageToHuman.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{parameters/mapAvailableToExpectedParameters.test.d.ts → extractParameterNames.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{parameters/replaceParameters.test.d.ts → replaceParameters.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -16,10 +16,6 @@ Supercharge your use of large language models
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
## ✨ New Features
|
|
20
|
-
|
|
21
|
-
- ✨ **Support of [OpenAI o1 model](https://openai.com/o1/)**
|
|
22
|
-
|
|
23
19
|
## 📦 Package `@promptbook/cli`
|
|
24
20
|
|
|
25
21
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
|
@@ -32,10 +28,10 @@ To install this package, run:
|
|
|
32
28
|
npm i ptbk
|
|
33
29
|
|
|
34
30
|
# Install as dev dependency
|
|
35
|
-
npm
|
|
31
|
+
npm i -D @promptbook/cli
|
|
36
32
|
|
|
37
33
|
# Or install globally
|
|
38
|
-
npm
|
|
34
|
+
npm i -g @promptbook/cli
|
|
39
35
|
```
|
|
40
36
|
|
|
41
37
|
CLI utils for Promptbook. After install you can use `promptbook` command in terminal:
|
|
@@ -107,6 +103,10 @@ This will prettify all promptbooks in `promptbook` directory and adds Mermaid gr
|
|
|
107
103
|
|
|
108
104
|
Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
109
105
|
|
|
106
|
+
# ✨ New Features
|
|
107
|
+
|
|
108
|
+
- ✨ **Support [OpenAI o1 model](https://openai.com/o1/)**
|
|
109
|
+
|
|
110
110
|
## 🤍 The Promptbook Whitepaper
|
|
111
111
|
|
|
112
112
|
|
|
@@ -153,6 +153,7 @@ File `write-website-content.ptbk.md`:
|
|
|
153
153
|
> Instructions for creating web page content.
|
|
154
154
|
>
|
|
155
155
|
> - PIPELINE URL https://promptbook.studio/webgpt/write-website-content.ptbk.md
|
|
156
|
+
> - PROMPTBOOK VERSION 0.0.1
|
|
156
157
|
> - INPUT PARAM `{rawTitle}` Automatically suggested a site name or empty text
|
|
157
158
|
> - INPUT PARAM `{rawAssigment}` Automatically generated site entry from image recognition
|
|
158
159
|
> - OUTPUT PARAM `{websiteContent}` Web content
|