@promptbook/documents 0.101.0-15 → 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 +9 -8
- 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 +0 -20
- 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/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 +2 -2
- package/umd/index.umd.js +9 -8
- package/umd/index.umd.js.map +1 -1
package/umd/index.umd.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
|
28
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-16';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1055,11 +1055,12 @@
|
|
|
1055
1055
|
catch (error) {
|
|
1056
1056
|
// Note: If we can't create cache directory, continue without it
|
|
1057
1057
|
// This handles read-only filesystems, permission issues, and missing parent directories
|
|
1058
|
-
if (error instanceof Error &&
|
|
1059
|
-
error.message.includes('
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1058
|
+
if (error instanceof Error &&
|
|
1059
|
+
(error.message.includes('EROFS') ||
|
|
1060
|
+
error.message.includes('read-only') ||
|
|
1061
|
+
error.message.includes('EACCES') ||
|
|
1062
|
+
error.message.includes('EPERM') ||
|
|
1063
|
+
error.message.includes('ENOENT'))) ;
|
|
1063
1064
|
else {
|
|
1064
1065
|
// Re-throw other unexpected errors
|
|
1065
1066
|
throw error;
|
|
@@ -6461,13 +6462,13 @@
|
|
|
6461
6462
|
// Calculate and update tldr based on pipeline progress
|
|
6462
6463
|
const cv = newOngoingResult;
|
|
6463
6464
|
// Calculate progress based on parameters resolved vs total parameters
|
|
6464
|
-
const totalParameters = pipeline.parameters.filter(p => !p.isInput).length;
|
|
6465
|
+
const totalParameters = pipeline.parameters.filter((p) => !p.isInput).length;
|
|
6465
6466
|
let resolvedParameters = 0;
|
|
6466
6467
|
let currentTaskTitle = '';
|
|
6467
6468
|
// Get the resolved parameters from output parameters
|
|
6468
6469
|
if (cv === null || cv === void 0 ? void 0 : cv.outputParameters) {
|
|
6469
6470
|
// Count how many output parameters have non-empty values
|
|
6470
|
-
resolvedParameters = Object.values(cv.outputParameters).filter(value => value !== undefined && value !== null && String(value).trim() !== '').length;
|
|
6471
|
+
resolvedParameters = Object.values(cv.outputParameters).filter((value) => value !== undefined && value !== null && String(value).trim() !== '').length;
|
|
6471
6472
|
}
|
|
6472
6473
|
// Try to determine current task from execution report
|
|
6473
6474
|
if (((_a = cv === null || cv === void 0 ? void 0 : cv.executionReport) === null || _a === void 0 ? void 0 : _a.promptExecutions) && cv.executionReport.promptExecutions.length > 0) {
|