@promptbook/website-crawler 0.94.0-0 → 0.94.0-1

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/README.md CHANGED
@@ -60,8 +60,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
60
60
 
61
61
  During the computer revolution, we have seen [multiple generations of computer languages](https://github.com/webgptorg/promptbook/discussions/180), from the physical rewiring of the vacuum tubes through low-level machine code to the high-level languages like Python or JavaScript. And now, we're on the edge of the **next revolution**!
62
62
 
63
-
64
-
65
63
  It's a revolution of writing software in **plain human language** that is understandable and executable by both humans and machines – and it's going to change everything!
66
64
 
67
65
  The incredible growth in power of microprocessors and the Moore's Law have been the driving force behind the ever-more powerful languages, and it's been an amazing journey! Similarly, the large language models (like GPT or Claude) are the next big thing in language technology, and they're set to transform the way we interact with computers.
@@ -247,8 +245,6 @@ Personas can have access to different knowledge, tools and actions. They can als
247
245
 
248
246
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
249
247
 
250
-
251
-
252
248
  ### **3. How:** Knowledge, Instruments and Actions
253
249
 
254
250
  The resources used by the personas are used to do the work.
@@ -309,6 +305,7 @@ Or you can install them separately:
309
305
  - **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
310
306
  - **[@promptbook/google](https://www.npmjs.com/package/@promptbook/google)** - Integration with Google's Gemini API
311
307
  - **[@promptbook/deepseek](https://www.npmjs.com/package/@promptbook/deepseek)** - Integration with [DeepSeek API](https://www.deepseek.com/)
308
+ - **[@promptbook/ollama](https://www.npmjs.com/package/@promptbook/ollama)** - Integration with [Ollama](https://ollama.com/) API
312
309
  - **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
313
310
 
314
311
  - **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
@@ -347,8 +344,6 @@ The following glossary is used to clarify certain concepts:
347
344
 
348
345
  _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
349
346
 
350
-
351
-
352
347
  ### 💯 Core concepts
353
348
 
354
349
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.94.0-0';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.94.0-1';
33
33
  /**
34
34
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
35
35
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -5534,11 +5534,6 @@ async function executeTask(options) {
5534
5534
  const jokerParameterNames = currentTask.jokerParameterNames || [];
5535
5535
  const preparedContent = (currentTask.preparedContent || '{content}').split('{content}').join(currentTask.content);
5536
5536
  // <- TODO: [🍵] Use here `templateParameters` to replace {websiteContent} with option to ignore missing parameters
5537
- await onProgress({
5538
- outputParameters: {
5539
- [currentTask.resultingParameterName]: '',
5540
- },
5541
- });
5542
5537
  const resultString = await executeFormatSubvalues({
5543
5538
  jokerParameterNames,
5544
5539
  priority,
@@ -5637,6 +5632,13 @@ async function executePipeline(options) {
5637
5632
  * Note: This is a flag to prevent `onProgress` call after the pipeline execution is finished
5638
5633
  */
5639
5634
  let isReturned = false;
5635
+ // Note: Report all output parameters upfront as empty strings
5636
+ if (onProgress) {
5637
+ const emptyOutputParameters = Object.fromEntries(preparedPipeline.parameters.filter((param) => !param.isInput).map((param) => [param.name, '']));
5638
+ onProgress({
5639
+ outputParameters: emptyOutputParameters,
5640
+ });
5641
+ }
5640
5642
  // Note: Check that all input input parameters are defined
5641
5643
  for (const parameter of preparedPipeline.parameters.filter(({ isInput }) => isInput)) {
5642
5644
  if (inputParameters[parameter.name] === undefined) {