@promptbook/core 0.92.0-22 โ†’ 0.92.0-23

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 (26) hide show
  1. package/esm/index.es.js +126 -67
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +6 -0
  4. package/esm/typings/src/commands/FOREACH/ForeachJson.d.ts +6 -6
  5. package/esm/typings/src/config.d.ts +29 -11
  6. package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +12 -9
  7. package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +11 -8
  8. package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +8 -3
  9. package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +10 -8
  10. package/esm/typings/src/formats/_common/FormatParser.d.ts +5 -3
  11. package/esm/typings/src/formats/_common/FormatSubvalueParser.d.ts +31 -6
  12. package/esm/typings/src/formats/csv/utils/isValidCsvString.d.ts +1 -1
  13. package/esm/typings/src/formats/json/utils/isValidJsonString.d.ts +1 -1
  14. package/esm/typings/src/formats/xml/utils/isValidXmlString.d.ts +1 -1
  15. package/esm/typings/src/llm-providers/_common/register/LlmToolsOptions.d.ts +4 -1
  16. package/esm/typings/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +3 -3
  17. package/esm/typings/src/types/typeAliases.d.ts +9 -7
  18. package/esm/typings/src/utils/$Register.d.ts +8 -7
  19. package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +7 -7
  20. package/esm/typings/src/utils/serialization/clonePipeline.d.ts +4 -3
  21. package/esm/typings/src/utils/serialization/deepClone.d.ts +5 -1
  22. package/esm/typings/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +3 -3
  23. package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +5 -4
  24. package/package.json +1 -1
  25. package/umd/index.umd.js +128 -66
  26. package/umd/index.umd.js.map +1 -1
package/esm/index.es.js CHANGED
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-22';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-23';
31
31
  /**
32
32
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
33
33
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
@@ -274,6 +274,25 @@ const DEFAULT_BOOK_OUTPUT_PARAMETER_NAME = 'result';
274
274
  * @public exported from `@promptbook/core`
275
275
  */
276
276
  const DEFAULT_MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB
277
+ /**
278
+ * @@@
279
+ *
280
+ * @public exported from `@promptbook/core`
281
+ */
282
+ const BIG_DATASET_TRESHOLD = 50;
283
+ /**
284
+ * @@@
285
+ *
286
+ * @public exported from `@promptbook/core`
287
+ */
288
+ const FAILED_VALUE_PLACEHOLDER = '!';
289
+ // <- TODO: !!!! Use
290
+ /**
291
+ * @@@
292
+ *
293
+ * @public exported from `@promptbook/core`
294
+ */
295
+ const PENDING_VALUE_PLACEHOLDER = 'โ€ฆ';
277
296
  // <- TODO: [๐Ÿง ] Better system for generator warnings - not always "code" and "by `@promptbook/cli`"
278
297
  /**
279
298
  * The maximum number of iterations for a loops
@@ -334,19 +353,21 @@ const DEFAULT_MAX_PARALLEL_COUNT = 5; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
334
353
  */
335
354
  const DEFAULT_MAX_EXECUTION_ATTEMPTS = 10; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
336
355
  /**
337
- * @@@
338
- * TODO: [๐Ÿ][main] !!3 Use
356
+ * The maximum depth to which knowledge sources will be scraped when building a knowledge base.
357
+ * This prevents infinite recursion and limits resource usage.
339
358
  *
340
359
  * @public exported from `@promptbook/core`
341
360
  */
342
361
  const DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH = 3;
362
+ // <- TODO: [๐Ÿ]
343
363
  /**
344
- * @@@
345
- * TODO: [๐Ÿ][main] !!3 Use
364
+ * The maximum total number of knowledge sources that will be scraped in a single operation.
365
+ * This acts as a global limit to avoid excessive resource consumption.
346
366
  *
347
367
  * @public exported from `@promptbook/core`
348
368
  */
349
369
  const DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL = 200;
370
+ // <- TODO: [๐Ÿ]
350
371
  /**
351
372
  * Where to store your books
352
373
  * This is kind of a "src" for your books
@@ -424,7 +445,7 @@ const MOMENT_ARG_THRESHOLDS = {
424
445
  const DEFAULT_REMOTE_SERVER_URL = REMOTE_SERVER_URLS[0].urls[0];
425
446
  // <- TODO: [๐Ÿงœโ€โ™‚๏ธ]
426
447
  /**
427
- * @@@
448
+ * Default settings for parsing and generating CSV files in Promptbook.
428
449
  *
429
450
  * @public exported from `@promptbook/core`
430
451
  */
@@ -435,15 +456,15 @@ const DEFAULT_CSV_SETTINGS = Object.freeze({
435
456
  skipEmptyLines: true,
436
457
  });
437
458
  /**
438
- * @@@
459
+ * Controls whether verbose logging is enabled by default throughout the application.
439
460
  *
440
461
  * @public exported from `@promptbook/core`
441
462
  */
442
463
  let DEFAULT_IS_VERBOSE = false;
443
464
  /**
444
- * @@@
465
+ * Enables or disables verbose logging globally at runtime.
445
466
  *
446
- * Note: This is experimental feature
467
+ * Note: This is an experimental feature.
447
468
  *
448
469
  * @public exported from `@promptbook/core`
449
470
  */
@@ -451,7 +472,7 @@ function SET_IS_VERBOSE(isVerbose) {
451
472
  DEFAULT_IS_VERBOSE = isVerbose;
452
473
  }
453
474
  /**
454
- * @@@
475
+ * Controls whether auto-installation of dependencies is enabled by default.
455
476
  *
456
477
  * @public exported from `@promptbook/core`
457
478
  */
@@ -471,7 +492,7 @@ const DEFAULT_GET_PIPELINE_COLLECTION_FUNCTION_NAME = `getPipelineCollection`;
471
492
  */
472
493
  const DEFAULT_RPM = 60;
473
494
  /**
474
- * @@@
495
+ * Indicates whether pipeline logic validation is enabled. When true, the pipeline logic is checked for consistency.
475
496
  *
476
497
  * @private within the repository
477
498
  */
@@ -604,7 +625,7 @@ function assertsError(whatWasThrown) {
604
625
  * Function isValidJsonString will tell you if the string is valid JSON or not
605
626
  *
606
627
  * @param value The string to check
607
- * @returns True if the string is a valid JSON string, false otherwise
628
+ * @returns `true` if the string is a valid JSON string, false otherwise
608
629
  *
609
630
  * @public exported from `@promptbook/utils`
610
631
  */
@@ -1015,8 +1036,12 @@ function checkSerializableAsJson(options) {
1015
1036
  */
1016
1037
 
1017
1038
  /**
1018
- * @@@
1039
+ * Creates a deep clone of the given object
1019
1040
  *
1041
+ * Note: This method only works for objects that are fully serializable to JSON and do not contain functions, Dates, or special types.
1042
+ *
1043
+ * @param objectValue The object to clone.
1044
+ * @returns A deep, writable clone of the input object.
1020
1045
  * @public exported from `@promptbook/utils`
1021
1046
  */
1022
1047
  function deepClone(objectValue) {
@@ -2783,7 +2808,7 @@ function csvParse(value /* <- TODO: string_csv */, settings, schema /* <- TODO:
2783
2808
  * Function to check if a string is valid CSV
2784
2809
  *
2785
2810
  * @param value The string to check
2786
- * @returns True if the string is a valid CSV string, false otherwise
2811
+ * @returns `true` if the string is a valid CSV string, false otherwise
2787
2812
  *
2788
2813
  * @public exported from `@promptbook/utils`
2789
2814
  */
@@ -2840,14 +2865,15 @@ const CsvFormatParser = {
2840
2865
  `));
2841
2866
  }
2842
2867
  const mappedData = [];
2843
- for (let index = 0; index < csv.data.length; index++) {
2868
+ const length = csv.data.length;
2869
+ for (let index = 0; index < length; index++) {
2844
2870
  const row = csv.data[index];
2845
2871
  if (row[outputParameterName]) {
2846
2872
  throw new CsvFormatError(`Can not overwrite existing column "${outputParameterName}" in CSV row`);
2847
2873
  }
2848
2874
  const mappedRow = {
2849
2875
  ...row,
2850
- [outputParameterName]: await mapCallback(row, index),
2876
+ [outputParameterName]: await mapCallback(row, index, length),
2851
2877
  };
2852
2878
  mappedData.push(mappedRow);
2853
2879
  if (onProgress) {
@@ -2878,9 +2904,9 @@ const CsvFormatParser = {
2878
2904
  `));
2879
2905
  }
2880
2906
  const mappedData = await Promise.all(csv.data.map(async (row, rowIndex) => {
2881
- return /* not await */ Promise.all(Object.entries(row).map(async ([key, value], columnIndex) => {
2907
+ return /* not await */ Promise.all(Object.entries(row).map(async ([key, value], columnIndex, array) => {
2882
2908
  const index = rowIndex * Object.keys(row).length + columnIndex;
2883
- return /* not await */ mapCallback({ [key]: value }, index);
2909
+ return /* not await */ mapCallback({ [key]: value }, index, array.length);
2884
2910
  }));
2885
2911
  }));
2886
2912
  return unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
@@ -2951,12 +2977,12 @@ const TextFormatParser = {
2951
2977
  async mapValues(options) {
2952
2978
  const { value, mapCallback, onProgress } = options;
2953
2979
  const lines = value.split('\n');
2954
- const mappedLines = await Promise.all(lines.map((lineContent, lineNumber) =>
2980
+ const mappedLines = await Promise.all(lines.map((lineContent, lineNumber, array) =>
2955
2981
  // TODO: [๐Ÿง ] Maybe option to skip empty line
2956
2982
  /* not await */ mapCallback({
2957
2983
  lineContent,
2958
2984
  // TODO: [๐Ÿง ] Maybe also put here `lineNumber`
2959
- }, lineNumber)));
2985
+ }, lineNumber, array.length)));
2960
2986
  return mappedLines.join('\n');
2961
2987
  },
2962
2988
  },
@@ -2977,7 +3003,7 @@ const TextFormatParser = {
2977
3003
  * Function to check if a string is valid XML
2978
3004
  *
2979
3005
  * @param value
2980
- * @returns True if the string is a valid XML string, false otherwise
3006
+ * @returns `true` if the string is a valid XML string, false otherwise
2981
3007
  *
2982
3008
  * @public exported from `@promptbook/utils`
2983
3009
  */
@@ -3039,13 +3065,13 @@ const FORMAT_DEFINITIONS = [JsonFormatParser, XmlFormatParser, TextFormatParser,
3039
3065
  */
3040
3066
 
3041
3067
  /**
3042
- * Maps available parameters to expected parameters
3068
+ * Maps available parameters to expected parameters for a pipeline task.
3043
3069
  *
3044
3070
  * The strategy is:
3045
- * 1) @@@
3046
- * 2) @@@
3071
+ * 1) First, match parameters by name where both available and expected.
3072
+ * 2) Then, if there are unmatched expected and available parameters, map them by order.
3047
3073
  *
3048
- * @throws {PipelineExecutionError} @@@
3074
+ * @throws {PipelineExecutionError} If the number of unmatched expected and available parameters does not match, or mapping is ambiguous.
3049
3075
  * @private within the repository used in `createPipelineExecutor`
3050
3076
  */
3051
3077
  function mapAvailableToExpectedParameters(options) {
@@ -4276,7 +4302,11 @@ async function executeAttempts(options) {
4276
4302
  */
4277
4303
 
4278
4304
  /**
4279
- * @@@
4305
+ * Executes a pipeline task that requires mapping or iterating over subvalues of a parameter (such as rows in a CSV).
4306
+ * Handles format and subformat resolution, error handling, and progress reporting.
4307
+ *
4308
+ * @param options - Options for execution, including task details and progress callback.
4309
+ * @returns The result of the subvalue mapping or execution attempts.
4280
4310
  *
4281
4311
  * @private internal utility of `createPipelineExecutor`
4282
4312
  */
@@ -4341,15 +4371,11 @@ async function executeFormatSubvalues(options) {
4341
4371
  settings: formatSettings,
4342
4372
  onProgress(partialResultString) {
4343
4373
  return onProgress(Object.freeze({
4344
- [task.resultingParameterName]:
4345
- // <- Note: [๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ง] No need to detect parameter collision here because pipeline checks logic consistency during construction
4346
- partialResultString,
4374
+ [task.resultingParameterName]: partialResultString,
4347
4375
  }));
4348
4376
  },
4349
- async mapCallback(subparameters, index) {
4377
+ async mapCallback(subparameters, index, length) {
4350
4378
  let mappedParameters;
4351
- // TODO: [๐Ÿคนโ€โ™‚๏ธ][๐Ÿช‚] Limit to N concurrent executions
4352
- // TODO: When done [๐Ÿš] Report progress also for each subvalue here
4353
4379
  try {
4354
4380
  mappedParameters = mapAvailableToExpectedParameters({
4355
4381
  expectedParameters: Object.fromEntries(task.foreach.inputSubparameterNames.map((subparameterName) => [subparameterName, null])),
@@ -4360,32 +4386,52 @@ async function executeFormatSubvalues(options) {
4360
4386
  if (!(error instanceof PipelineExecutionError)) {
4361
4387
  throw error;
4362
4388
  }
4363
- throw new PipelineExecutionError(spaceTrim((block) => `
4364
- ${error.message}
4389
+ const highLevelError = new PipelineExecutionError(spaceTrim((block) => `
4390
+ ${error.message}
4365
4391
 
4366
- This is error in FOREACH command
4367
- You have probbably passed wrong data to pipeline or wrong data was generated which are processed by FOREACH command
4392
+ This is error in FOREACH command when mapping data
4393
+ You have probbably passed wrong data to pipeline or wrong data was generated which are processed by FOREACH command
4368
4394
 
4369
- ${block(pipelineIdentification)}
4370
- Subparameter index: ${index}
4371
- `));
4395
+ ${block(pipelineIdentification)}
4396
+ Subparameter index: ${index}
4397
+ `));
4398
+ if (length > BIG_DATASET_TRESHOLD) {
4399
+ console.error(highLevelError);
4400
+ return '~';
4401
+ }
4402
+ throw highLevelError;
4372
4403
  }
4373
4404
  const allSubparameters = {
4374
4405
  ...parameters,
4375
4406
  ...mappedParameters,
4376
4407
  };
4377
- // Note: [๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ง] Now we can freeze `subparameters` because we are sure that all and only used parameters are defined and are not going to be changed
4378
4408
  Object.freeze(allSubparameters);
4379
- const subresultString = await executeAttempts({
4380
- ...options,
4381
- priority: priority + index,
4382
- parameters: allSubparameters,
4383
- pipelineIdentification: spaceTrim((block) => `
4384
- ${block(pipelineIdentification)}
4385
- Subparameter index: ${index}
4386
- `),
4387
- });
4388
- return subresultString;
4409
+ try {
4410
+ const subresultString = await executeAttempts({
4411
+ ...options,
4412
+ priority: priority + index,
4413
+ parameters: allSubparameters,
4414
+ pipelineIdentification: spaceTrim((block) => `
4415
+ ${block(pipelineIdentification)}
4416
+ Subparameter index: ${index}
4417
+ `),
4418
+ });
4419
+ return subresultString;
4420
+ }
4421
+ catch (error) {
4422
+ if (length > BIG_DATASET_TRESHOLD) {
4423
+ console.error(spaceTrim((block) => `
4424
+ Error in FOREACH command:
4425
+
4426
+ ${block(pipelineIdentification)}
4427
+
4428
+ ${block(pipelineIdentification)}
4429
+ Subparameter index: ${index}
4430
+ `));
4431
+ return '~';
4432
+ }
4433
+ throw error;
4434
+ }
4389
4435
  },
4390
4436
  });
4391
4437
  return resultString;
@@ -4520,7 +4566,11 @@ async function getKnowledgeForTask(options) {
4520
4566
  */
4521
4567
 
4522
4568
  /**
4523
- * @@@
4569
+ * Retrieves all reserved parameters for a given pipeline task, including context, knowledge, examples, and metadata.
4570
+ * Ensures all reserved parameters are defined and throws if any are missing.
4571
+ *
4572
+ * @param options - Options including tools, pipeline, task, and context.
4573
+ * @returns An object containing all reserved parameters for the task.
4524
4574
  *
4525
4575
  * @private internal utility of `createPipelineExecutor`
4526
4576
  */
@@ -4553,7 +4603,10 @@ async function getReservedParametersForTask(options) {
4553
4603
  }
4554
4604
 
4555
4605
  /**
4556
- * @@@
4606
+ * Executes a single task within a pipeline, handling parameter validation, error checking, and progress reporting.
4607
+ *
4608
+ * @param options - Options for execution, including the task, pipeline, parameters, and callbacks.
4609
+ * @returns The output parameters produced by the task.
4557
4610
  *
4558
4611
  * @private internal utility of `createPipelineExecutor`
4559
4612
  */
@@ -4687,9 +4740,12 @@ function filterJustOutputParameters(options) {
4687
4740
  }
4688
4741
 
4689
4742
  /**
4690
- * @@@
4743
+ * Executes an entire pipeline, resolving tasks in dependency order, handling errors, and reporting progress.
4691
4744
  *
4692
- * Note: This is not a `PipelineExecutor` (which is binded with one exact pipeline), but a utility function of `createPipelineExecutor` which creates `PipelineExecutor`
4745
+ * Note: This is not a `PipelineExecutor` (which is bound to a single pipeline), but a utility function used by `createPipelineExecutor` to create a `PipelineExecutor`.
4746
+ *
4747
+ * @param options - Options for execution, including input parameters, pipeline, and callbacks.
4748
+ * @returns The result of the pipeline execution, including output parameters, errors, and usage statistics.
4693
4749
  *
4694
4750
  * @private internal utility of `createPipelineExecutor`
4695
4751
  */
@@ -5290,11 +5346,11 @@ function normalizeTo_snake_case(text) {
5290
5346
  }
5291
5347
 
5292
5348
  /**
5293
- * Register is @@@
5349
+ * Global registry for storing and managing registered entities of a given type.
5294
5350
  *
5295
5351
  * Note: `$` is used to indicate that this function is not a pure function - it accesses and adds variables in global scope.
5296
5352
  *
5297
- * @private internal utility, exported are only signleton instances of this class
5353
+ * @private internal utility, exported are only singleton instances of this class
5298
5354
  */
5299
5355
  class $Register {
5300
5356
  constructor(registerName) {
@@ -5344,10 +5400,10 @@ class $Register {
5344
5400
  }
5345
5401
 
5346
5402
  /**
5347
- * @@@
5403
+ * Global registry for storing metadata about all available scrapers and converters.
5348
5404
  *
5349
- * Note: `$` is used to indicate that this interacts with the global scope
5350
- * @singleton Only one instance of each register is created per build, but thare can be more @@@
5405
+ * Note: `$` is used to indicate that this interacts with the global scope.
5406
+ * @singleton Only one instance of each register is created per build, but there can be more in different contexts (e.g., tests).
5351
5407
  * @public exported from `@promptbook/core`
5352
5408
  */
5353
5409
  const $scrapersMetadataRegister = new $Register('scrapers_metadata');
@@ -6886,11 +6942,12 @@ function removeQuotes(text) {
6886
6942
  }
6887
6943
 
6888
6944
  /**
6889
- * Function `validateParameterName` will @@@
6945
+ * Function `validateParameterName` will normalize and validate a parameter name for use in pipelines.
6946
+ * It removes diacritics, emojis, and quotes, normalizes to camelCase, and checks for reserved names and invalid characters.
6890
6947
  *
6891
- * @param parameterName @@@
6892
- * @returns @@@
6893
- * @throws {ParseError} @@@
6948
+ * @param parameterName The parameter name to validate and normalize.
6949
+ * @returns The validated and normalized parameter name.
6950
+ * @throws {ParseError} If the parameter name is empty, reserved, or contains invalid characters.
6894
6951
  * @private within the repository
6895
6952
  */
6896
6953
  function validateParameterName(parameterName) {
@@ -8064,10 +8121,10 @@ function $applyToTaskJson(command, $taskJson, $pipelineJson) {
8064
8121
  }
8065
8122
 
8066
8123
  /**
8067
- * @@@
8124
+ * Checks if the given value is a valid JavaScript identifier name.
8068
8125
  *
8069
- * @param javascriptName @@@
8070
- * @returns @@@
8126
+ * @param javascriptName The value to check for JavaScript identifier validity.
8127
+ * @returns `true` if the value is a valid JavaScript name, false otherwise.
8071
8128
  * @public exported from `@promptbook/utils`
8072
8129
  */
8073
8130
  function isValidJavascriptName(javascriptName) {
@@ -10599,8 +10656,10 @@ function cacheLlmTools(llmTools, options = {}) {
10599
10656
  sha256(hexEncoder.parse(JSON.stringify({ parameters, content, modelRequirements }))).toString( /* hex */));
10600
10657
  const cacheItem = !isCacheReloaded ? await storage.getItem(key) : null;
10601
10658
  if (cacheItem) {
10659
+ console.log('!!! Cache hit for key:', key);
10602
10660
  return cacheItem.promptResult;
10603
10661
  }
10662
+ console.log('!!! Cache miss for key:', key);
10604
10663
  let promptResult;
10605
10664
  variant: switch (prompt.modelRequirements.modelVariant) {
10606
10665
  case 'CHAT':
@@ -11498,5 +11557,5 @@ class PrefixStorage {
11498
11557
  }
11499
11558
  }
11500
11559
 
11501
- export { $llmToolsMetadataRegister, $llmToolsRegister, $scrapersMetadataRegister, $scrapersRegister, ADMIN_EMAIL, ADMIN_GITHUB_NAME, AbstractFormatError, AuthenticationError, BOOK_LANGUAGE_VERSION, BlackholeStorage, BoilerplateError, BoilerplateFormfactorDefinition, CLAIM, CLI_APP_ID, CallbackInterfaceTools, ChatbotFormfactorDefinition, CollectionError, CompletionFormfactorDefinition, CsvFormatError, CsvFormatParser, DEFAULT_BOOKS_DIRNAME, DEFAULT_BOOK_OUTPUT_PARAMETER_NAME, DEFAULT_BOOK_TITLE, DEFAULT_CSV_SETTINGS, DEFAULT_DOWNLOAD_CACHE_DIRNAME, DEFAULT_EXECUTION_CACHE_DIRNAME, DEFAULT_GET_PIPELINE_COLLECTION_FUNCTION_NAME, DEFAULT_INTERMEDIATE_FILES_STRATEGY, DEFAULT_IS_AUTO_INSTALLED, DEFAULT_IS_VERBOSE, DEFAULT_MAX_EXECUTION_ATTEMPTS, DEFAULT_MAX_FILE_SIZE, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL, DEFAULT_MAX_PARALLEL_COUNT, DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME, DEFAULT_PROMPT_TASK_TITLE, DEFAULT_REMOTE_SERVER_URL, DEFAULT_RPM, DEFAULT_SCRAPE_CACHE_DIRNAME, DEFAULT_TASK_TITLE, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults, ExpectError, FORMFACTOR_DEFINITIONS, GENERIC_PIPELINE_INTERFACE, GeneratorFormfactorDefinition, GenericFormfactorDefinition, ImageGeneratorFormfactorDefinition, KnowledgeScrapeError, LimitReachedError, MANDATORY_CSV_SETTINGS, MAX_FILENAME_LENGTH, MODEL_ORDER, MODEL_TRUST_LEVEL, MODEL_VARIANTS, MatcherFormfactorDefinition, MemoryStorage, MissingToolsError, MultipleLlmExecutionTools, NAME, NonTaskSectionTypes, NotFoundError, NotYetImplementedError, ORDER_OF_PIPELINE_JSON, PLAYGROUND_APP_ID, PROMPTBOOK_ENGINE_VERSION, PROMPTBOOK_ERRORS, ParseError, PipelineExecutionError, PipelineLogicError, PipelineUrlError, PrefixStorage, PromptbookFetchError, REMOTE_SERVER_URLS, RESERVED_PARAMETER_NAMES, SET_IS_VERBOSE, SectionTypes, SheetsFormfactorDefinition, TaskTypes, TextFormatParser, TranslatorFormfactorDefinition, UNCERTAIN_USAGE, UNCERTAIN_ZERO_VALUE, UnexpectedError, WrappedError, ZERO_USAGE, ZERO_VALUE, _AnthropicClaudeMetadataRegistration, _AzureOpenAiMetadataRegistration, _BoilerplateScraperMetadataRegistration, _DeepseekMetadataRegistration, _DocumentScraperMetadataRegistration, _GoogleMetadataRegistration, _LegacyDocumentScraperMetadataRegistration, _MarkdownScraperMetadataRegistration, _MarkitdownScraperMetadataRegistration, _OpenAiAssistantMetadataRegistration, _OpenAiMetadataRegistration, _PdfScraperMetadataRegistration, _WebsiteScraperMetadataRegistration, addUsage, book, cacheLlmTools, collectionToJson, compilePipeline, computeCosineSimilarity, countUsage, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createLlmToolsFromConfiguration, createPipelineExecutor, createSubcollection, embeddingVectorToString, executionReportJsonToString, extractParameterNamesFromTask, filterModels, getPipelineInterface, identificationToPromptbookToken, isPassingExpectations, isPipelineImplementingInterface, isPipelineInterfacesEqual, isPipelinePrepared, isValidPipelineString, joinLlmExecutionTools, limitTotalUsage, makeKnowledgeSourceHandler, migratePipeline, parsePipeline, pipelineJsonToString, prepareKnowledgePieces, preparePersona, preparePipeline, prepareTasks, prettifyPipelineString, promptbookFetch, promptbookTokenToIdentification, unpreparePipeline, usageToHuman, usageToWorktime, validatePipeline, validatePipelineString };
11560
+ export { $llmToolsMetadataRegister, $llmToolsRegister, $scrapersMetadataRegister, $scrapersRegister, ADMIN_EMAIL, ADMIN_GITHUB_NAME, AbstractFormatError, AuthenticationError, BIG_DATASET_TRESHOLD, BOOK_LANGUAGE_VERSION, BlackholeStorage, BoilerplateError, BoilerplateFormfactorDefinition, CLAIM, CLI_APP_ID, CallbackInterfaceTools, ChatbotFormfactorDefinition, CollectionError, CompletionFormfactorDefinition, CsvFormatError, CsvFormatParser, DEFAULT_BOOKS_DIRNAME, DEFAULT_BOOK_OUTPUT_PARAMETER_NAME, DEFAULT_BOOK_TITLE, DEFAULT_CSV_SETTINGS, DEFAULT_DOWNLOAD_CACHE_DIRNAME, DEFAULT_EXECUTION_CACHE_DIRNAME, DEFAULT_GET_PIPELINE_COLLECTION_FUNCTION_NAME, DEFAULT_INTERMEDIATE_FILES_STRATEGY, DEFAULT_IS_AUTO_INSTALLED, DEFAULT_IS_VERBOSE, DEFAULT_MAX_EXECUTION_ATTEMPTS, DEFAULT_MAX_FILE_SIZE, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL, DEFAULT_MAX_PARALLEL_COUNT, DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME, DEFAULT_PROMPT_TASK_TITLE, DEFAULT_REMOTE_SERVER_URL, DEFAULT_RPM, DEFAULT_SCRAPE_CACHE_DIRNAME, DEFAULT_TASK_TITLE, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults, ExpectError, FAILED_VALUE_PLACEHOLDER, FORMFACTOR_DEFINITIONS, GENERIC_PIPELINE_INTERFACE, GeneratorFormfactorDefinition, GenericFormfactorDefinition, ImageGeneratorFormfactorDefinition, KnowledgeScrapeError, LimitReachedError, MANDATORY_CSV_SETTINGS, MAX_FILENAME_LENGTH, MODEL_ORDER, MODEL_TRUST_LEVEL, MODEL_VARIANTS, MatcherFormfactorDefinition, MemoryStorage, MissingToolsError, MultipleLlmExecutionTools, NAME, NonTaskSectionTypes, NotFoundError, NotYetImplementedError, ORDER_OF_PIPELINE_JSON, PENDING_VALUE_PLACEHOLDER, PLAYGROUND_APP_ID, PROMPTBOOK_ENGINE_VERSION, PROMPTBOOK_ERRORS, ParseError, PipelineExecutionError, PipelineLogicError, PipelineUrlError, PrefixStorage, PromptbookFetchError, REMOTE_SERVER_URLS, RESERVED_PARAMETER_NAMES, SET_IS_VERBOSE, SectionTypes, SheetsFormfactorDefinition, TaskTypes, TextFormatParser, TranslatorFormfactorDefinition, UNCERTAIN_USAGE, UNCERTAIN_ZERO_VALUE, UnexpectedError, WrappedError, ZERO_USAGE, ZERO_VALUE, _AnthropicClaudeMetadataRegistration, _AzureOpenAiMetadataRegistration, _BoilerplateScraperMetadataRegistration, _DeepseekMetadataRegistration, _DocumentScraperMetadataRegistration, _GoogleMetadataRegistration, _LegacyDocumentScraperMetadataRegistration, _MarkdownScraperMetadataRegistration, _MarkitdownScraperMetadataRegistration, _OpenAiAssistantMetadataRegistration, _OpenAiMetadataRegistration, _PdfScraperMetadataRegistration, _WebsiteScraperMetadataRegistration, addUsage, book, cacheLlmTools, collectionToJson, compilePipeline, computeCosineSimilarity, countUsage, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createLlmToolsFromConfiguration, createPipelineExecutor, createSubcollection, embeddingVectorToString, executionReportJsonToString, extractParameterNamesFromTask, filterModels, getPipelineInterface, identificationToPromptbookToken, isPassingExpectations, isPipelineImplementingInterface, isPipelineInterfacesEqual, isPipelinePrepared, isValidPipelineString, joinLlmExecutionTools, limitTotalUsage, makeKnowledgeSourceHandler, migratePipeline, parsePipeline, pipelineJsonToString, prepareKnowledgePieces, preparePersona, preparePipeline, prepareTasks, prettifyPipelineString, promptbookFetch, promptbookTokenToIdentification, unpreparePipeline, usageToHuman, usageToWorktime, validatePipeline, validatePipelineString };
11502
11561
  //# sourceMappingURL=index.es.js.map