@promptbook/remote-client 0.103.0-18 → 0.103.0-20

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 CHANGED
@@ -20,7 +20,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
20
20
  * @generated
21
21
  * @see https://github.com/webgptorg/promptbook
22
22
  */
23
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-18';
23
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-20';
24
24
  /**
25
25
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
26
26
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1228,7 +1228,7 @@ const PROMPTBOOK_COLOR = Color.fromHex('#79EAFD');
1228
1228
  */
1229
1229
  ({
1230
1230
  TITLE: Color.fromHex('#244EA8'),
1231
- LINE: Color.fromHex('#DA0F78'),
1231
+ LINE: Color.fromHex('#eeeeee'),
1232
1232
  COMMITMENT: Color.fromHex('#DA0F78'),
1233
1233
  PARAMETER: Color.fromHex('#8e44ad'),
1234
1234
  });
@@ -5577,15 +5577,17 @@ const SUPPORTED_SCRIPT_LANGUAGES = ['javascript', 'typescript', 'python'];
5577
5577
  // <- TODO: [🏥] DRY
5578
5578
 
5579
5579
  /**
5580
- * @private constant for `padBookContent`
5580
+ * Number of padding lines to add at the end of the book content
5581
+ *
5582
+ * @public exported from `@promptbook/core`
5581
5583
  */
5582
- const PADDING_LINES = 5;
5584
+ const PADDING_LINES = 11;
5583
5585
  /**
5584
5586
  * A function that adds padding to the book content
5585
5587
  *
5586
- * @private utility function
5588
+ * @public exported from `@promptbook/core`
5587
5589
  */
5588
- function padBookContent(content) {
5590
+ function padBook(content) {
5589
5591
  if (!content) {
5590
5592
  return '\n'.repeat(PADDING_LINES);
5591
5593
  }
@@ -5694,7 +5696,7 @@ function deflatePipeline(pipelineString) {
5694
5696
  ${returnStatement}
5695
5697
  `));
5696
5698
  // <- TODO: Maybe use book` notation
5697
- return padBookContent(pipelineString);
5699
+ return padBook(pipelineString);
5698
5700
  }
5699
5701
  /**
5700
5702
  * TODO: Unit test