@promptbook/node 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/esm/index.es.js
CHANGED
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
28
28
|
* @generated
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
30
30
|
*/
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-16';
|
32
32
|
/**
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -5128,13 +5128,13 @@ function createPipelineExecutor(options) {
|
|
5128
5128
|
// Calculate and update tldr based on pipeline progress
|
5129
5129
|
const cv = newOngoingResult;
|
5130
5130
|
// Calculate progress based on parameters resolved vs total parameters
|
5131
|
-
const totalParameters = pipeline.parameters.filter(p => !p.isInput).length;
|
5131
|
+
const totalParameters = pipeline.parameters.filter((p) => !p.isInput).length;
|
5132
5132
|
let resolvedParameters = 0;
|
5133
5133
|
let currentTaskTitle = '';
|
5134
5134
|
// Get the resolved parameters from output parameters
|
5135
5135
|
if (cv === null || cv === void 0 ? void 0 : cv.outputParameters) {
|
5136
5136
|
// Count how many output parameters have non-empty values
|
5137
|
-
resolvedParameters = Object.values(cv.outputParameters).filter(value => value !== undefined && value !== null && String(value).trim() !== '').length;
|
5137
|
+
resolvedParameters = Object.values(cv.outputParameters).filter((value) => value !== undefined && value !== null && String(value).trim() !== '').length;
|
5138
5138
|
}
|
5139
5139
|
// Try to determine current task from execution report
|
5140
5140
|
if (((_a = cv === null || cv === void 0 ? void 0 : cv.executionReport) === null || _a === void 0 ? void 0 : _a.promptExecutions) && cv.executionReport.promptExecutions.length > 0) {
|
@@ -11630,11 +11630,12 @@ class FileCacheStorage {
|
|
11630
11630
|
catch (error) {
|
11631
11631
|
// Note: If we can't write to cache, silently ignore the error
|
11632
11632
|
// This handles read-only filesystems, permission issues, and missing parent directories
|
11633
|
-
if (error instanceof Error &&
|
11634
|
-
error.message.includes('
|
11635
|
-
|
11636
|
-
|
11637
|
-
|
11633
|
+
if (error instanceof Error &&
|
11634
|
+
(error.message.includes('EROFS') ||
|
11635
|
+
error.message.includes('read-only') ||
|
11636
|
+
error.message.includes('EACCES') ||
|
11637
|
+
error.message.includes('EPERM') ||
|
11638
|
+
error.message.includes('ENOENT'))) {
|
11638
11639
|
// Silently ignore filesystem errors - caching is optional
|
11639
11640
|
return;
|
11640
11641
|
}
|