@promptbook/markdown-utils 0.101.0-14 → 0.101.0-16
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/esm/index.es.js +3 -3
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +4 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -0
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +3 -25
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +1 -26
- package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +23 -2
- package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +14 -2
- package/esm/typings/src/book-2.0/commitments/index.d.ts +1 -1
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +5 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +1 -0
- package/esm/typings/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -0
- package/esm/typings/src/formats/csv/CsvFormatError.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +25 -0
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +15 -8
- package/esm/typings/src/remote-server/openapi-types.d.ts +31 -31
- package/esm/typings/src/types/ModelRequirements.d.ts +2 -4
- package/esm/typings/src/utils/color/utils/colorSaturation.d.ts +1 -1
- package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +3 -3
- package/umd/index.umd.js.map +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { ModelVariant } from './ModelVariant';
|
|
2
|
-
import type { number_model_temperature } from './typeAliases';
|
|
3
|
-
import type { number_seed } from './typeAliases';
|
|
4
|
-
import type { string_model_name } from './typeAliases';
|
|
5
|
-
import type { string_system_message } from './typeAliases';
|
|
2
|
+
import type { number_model_temperature, number_seed, string_model_name, string_system_message } from './typeAliases';
|
|
6
3
|
/**
|
|
7
4
|
* Abstract way to specify the LLM.
|
|
8
5
|
* It does not specify the LLM with concrete version itself, only the requirements for the LLM.
|
|
@@ -99,4 +96,5 @@ export type CommonModelRequirements = {
|
|
|
99
96
|
* TODO: Add here more requirement options like max context size, max tokens, etc.
|
|
100
97
|
* TODO: [💕][🧠] Just selecting gpt3 or gpt4 level of model
|
|
101
98
|
* TODO: [🧄] Replace all "github.com/webgptorg/promptbook#xxx" with "ptbk.io/xxx"
|
|
99
|
+
* TODO: [🐤] DRY `AgentModelRequirements` and `ModelRequirements`
|
|
102
100
|
*/
|
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.101.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.101.0-15`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
|
27
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-16';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -6267,13 +6267,13 @@
|
|
|
6267
6267
|
// Calculate and update tldr based on pipeline progress
|
|
6268
6268
|
const cv = newOngoingResult;
|
|
6269
6269
|
// Calculate progress based on parameters resolved vs total parameters
|
|
6270
|
-
const totalParameters = pipeline.parameters.filter(p => !p.isInput).length;
|
|
6270
|
+
const totalParameters = pipeline.parameters.filter((p) => !p.isInput).length;
|
|
6271
6271
|
let resolvedParameters = 0;
|
|
6272
6272
|
let currentTaskTitle = '';
|
|
6273
6273
|
// Get the resolved parameters from output parameters
|
|
6274
6274
|
if (cv === null || cv === void 0 ? void 0 : cv.outputParameters) {
|
|
6275
6275
|
// Count how many output parameters have non-empty values
|
|
6276
|
-
resolvedParameters = Object.values(cv.outputParameters).filter(value => value !== undefined && value !== null && String(value).trim() !== '').length;
|
|
6276
|
+
resolvedParameters = Object.values(cv.outputParameters).filter((value) => value !== undefined && value !== null && String(value).trim() !== '').length;
|
|
6277
6277
|
}
|
|
6278
6278
|
// Try to determine current task from execution report
|
|
6279
6279
|
if (((_a = cv === null || cv === void 0 ? void 0 : cv.executionReport) === null || _a === void 0 ? void 0 : _a.promptExecutions) && cv.executionReport.promptExecutions.length > 0) {
|