@promptbook/pdf 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.
Files changed (25) hide show
  1. package/esm/index.es.js +15 -13
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/components.index.d.ts +4 -0
  4. package/esm/typings/src/_packages/core.index.d.ts +2 -0
  5. package/esm/typings/src/_packages/types.index.d.ts +2 -0
  6. package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -0
  7. package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +0 -20
  8. package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +1 -26
  9. package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +23 -2
  10. package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +14 -2
  11. package/esm/typings/src/book-2.0/commitments/index.d.ts +1 -1
  12. package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +5 -0
  13. package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +1 -0
  14. package/esm/typings/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -0
  15. package/esm/typings/src/formats/csv/CsvFormatError.d.ts +1 -1
  16. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  17. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
  18. package/esm/typings/src/remote-server/openapi-types.d.ts +31 -31
  19. package/esm/typings/src/types/ModelRequirements.d.ts +2 -4
  20. package/esm/typings/src/utils/color/utils/colorSaturation.d.ts +1 -1
  21. package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +1 -1
  22. package/esm/typings/src/version.d.ts +1 -1
  23. package/package.json +2 -2
  24. package/umd/index.umd.js +15 -13
  25. package/umd/index.umd.js.map +1 -1
package/esm/index.es.js CHANGED
@@ -24,7 +24,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
24
24
  * @generated
25
25
  * @see https://github.com/webgptorg/promptbook
26
26
  */
27
- const PROMPTBOOK_ENGINE_VERSION = '0.101.0-15';
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
@@ -877,11 +877,12 @@ async function getScraperIntermediateSource(source, options) {
877
877
  catch (error) {
878
878
  // Note: If we can't create cache directory, continue without it
879
879
  // This handles read-only filesystems, permission issues, and missing parent directories
880
- if (error instanceof Error && (error.message.includes('EROFS') ||
881
- error.message.includes('read-only') ||
882
- error.message.includes('EACCES') ||
883
- error.message.includes('EPERM') ||
884
- error.message.includes('ENOENT'))) ;
880
+ if (error instanceof Error &&
881
+ (error.message.includes('EROFS') ||
882
+ error.message.includes('read-only') ||
883
+ error.message.includes('EACCES') ||
884
+ error.message.includes('EPERM') ||
885
+ error.message.includes('ENOENT'))) ;
885
886
  else {
886
887
  // Re-throw other unexpected errors
887
888
  throw error;
@@ -6311,13 +6312,13 @@ function createPipelineExecutor(options) {
6311
6312
  // Calculate and update tldr based on pipeline progress
6312
6313
  const cv = newOngoingResult;
6313
6314
  // Calculate progress based on parameters resolved vs total parameters
6314
- const totalParameters = pipeline.parameters.filter(p => !p.isInput).length;
6315
+ const totalParameters = pipeline.parameters.filter((p) => !p.isInput).length;
6315
6316
  let resolvedParameters = 0;
6316
6317
  let currentTaskTitle = '';
6317
6318
  // Get the resolved parameters from output parameters
6318
6319
  if (cv === null || cv === void 0 ? void 0 : cv.outputParameters) {
6319
6320
  // Count how many output parameters have non-empty values
6320
- resolvedParameters = Object.values(cv.outputParameters).filter(value => value !== undefined && value !== null && String(value).trim() !== '').length;
6321
+ resolvedParameters = Object.values(cv.outputParameters).filter((value) => value !== undefined && value !== null && String(value).trim() !== '').length;
6321
6322
  }
6322
6323
  // Try to determine current task from execution report
6323
6324
  if (((_a = cv === null || cv === void 0 ? void 0 : cv.executionReport) === null || _a === void 0 ? void 0 : _a.promptExecutions) && cv.executionReport.promptExecutions.length > 0) {
@@ -6648,11 +6649,12 @@ class MarkitdownScraper {
6648
6649
  catch (error) {
6649
6650
  // Note: If we can't write to cache, we'll continue without caching
6650
6651
  // This handles read-only filesystems like Vercel
6651
- if (error instanceof Error && (error.message.includes('EROFS') ||
6652
- error.message.includes('read-only') ||
6653
- error.message.includes('EACCES') ||
6654
- error.message.includes('EPERM') ||
6655
- error.message.includes('ENOENT'))) ;
6652
+ if (error instanceof Error &&
6653
+ (error.message.includes('EROFS') ||
6654
+ error.message.includes('read-only') ||
6655
+ error.message.includes('EACCES') ||
6656
+ error.message.includes('EPERM') ||
6657
+ error.message.includes('ENOENT'))) ;
6656
6658
  else {
6657
6659
  // Re-throw other unexpected errors
6658
6660
  throw error;