@promptbook/remote-client 0.92.0-24 → 0.92.0-25

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 (72) hide show
  1. package/esm/index.es.js +31 -27
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +0 -2
  4. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +36 -28
  5. package/esm/typings/src/constants.d.ts +2 -2
  6. package/esm/typings/src/errors/0-BoilerplateError.d.ts +2 -2
  7. package/esm/typings/src/execution/CommonToolsOptions.d.ts +3 -3
  8. package/esm/typings/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +3 -3
  9. package/esm/typings/src/llm-providers/_common/register/$llmToolsRegister.d.ts +3 -3
  10. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +4 -4
  11. package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +5 -5
  12. package/esm/typings/src/llm-providers/_common/utils/cache/CacheLlmToolsOptions.d.ts +5 -3
  13. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +5 -5
  14. package/esm/typings/src/other/templates/getBookTemplates.d.ts +2 -2
  15. package/esm/typings/src/pipeline/PipelineInterface/PipelineInterface.d.ts +3 -3
  16. package/esm/typings/src/pipeline/PipelineInterface/constants.d.ts +1 -1
  17. package/esm/typings/src/pipeline/PipelineInterface/getPipelineInterface.d.ts +1 -1
  18. package/esm/typings/src/pipeline/PipelineInterface/isPipelineImplementingInterface.d.ts +5 -4
  19. package/esm/typings/src/pipeline/PipelineInterface/isPipelineInterfacesEqual.d.ts +1 -1
  20. package/esm/typings/src/pipeline/PipelineJson/CommonTaskJson.d.ts +9 -6
  21. package/esm/typings/src/pipeline/PipelineJson/PipelineJson.d.ts +2 -2
  22. package/esm/typings/src/pipeline/PipelineString.d.ts +3 -1
  23. package/esm/typings/src/pipeline/book-notation.d.ts +2 -2
  24. package/esm/typings/src/prepare/prepareTasks.d.ts +7 -4
  25. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +2 -1
  26. package/esm/typings/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +3 -3
  27. package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -1
  28. package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -1
  29. package/esm/typings/src/scrapers/_common/Converter.d.ts +3 -1
  30. package/esm/typings/src/scrapers/_common/Scraper.d.ts +4 -3
  31. package/esm/typings/src/scrapers/_common/ScraperIntermediateSource.d.ts +4 -2
  32. package/esm/typings/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -1
  33. package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +6 -3
  34. package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +3 -5
  35. package/esm/typings/src/scrapers/_common/register/$scrapersRegister.d.ts +3 -2
  36. package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +8 -5
  37. package/esm/typings/src/scrapers/_common/register/ScraperConstructor.d.ts +2 -1
  38. package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +6 -5
  39. package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +3 -1
  40. package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -1
  41. package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +2 -1
  42. package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +4 -1
  43. package/esm/typings/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  44. package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +2 -1
  45. package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +3 -4
  46. package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +5 -1
  47. package/esm/typings/src/storage/file-cache-storage/FileCacheStorage.d.ts +12 -5
  48. package/esm/typings/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +4 -2
  49. package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +2 -1
  50. package/esm/typings/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +2 -1
  51. package/esm/typings/src/types/IntermediateFilesStrategy.d.ts +2 -1
  52. package/esm/typings/src/types/ModelVariant.d.ts +5 -5
  53. package/esm/typings/src/types/typeAliases.d.ts +8 -6
  54. package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +2 -2
  55. package/esm/typings/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +4 -1
  56. package/esm/typings/src/utils/editable/utils/isFlatPipeline.d.ts +2 -1
  57. package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -1
  58. package/esm/typings/src/utils/normalization/nameToUriPart.d.ts +4 -4
  59. package/esm/typings/src/utils/normalization/nameToUriParts.d.ts +4 -4
  60. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +3 -3
  61. package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +3 -3
  62. package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +4 -4
  63. package/esm/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +3 -3
  64. package/esm/typings/src/utils/normalization/removeDiacritics.d.ts +3 -3
  65. package/esm/typings/src/utils/normalization/searchKeywords.d.ts +4 -1
  66. package/esm/typings/src/utils/normalization/titleToName.d.ts +4 -4
  67. package/esm/typings/src/utils/organization/empty_object.d.ts +2 -2
  68. package/esm/typings/src/utils/organization/just_empty_object.d.ts +4 -4
  69. package/esm/typings/src/version.d.ts +2 -1
  70. package/package.json +2 -2
  71. package/umd/index.umd.js +31 -27
  72. package/umd/index.umd.js.map +1 -1
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @@@
2
+ * Converts a title string into a normalized name.
3
3
  *
4
- * @param value @@@
5
- * @returns @@@
6
- * @example @@@
4
+ * @param value The title string to be converted to a name.
5
+ * @returns A normalized name derived from the input title.
6
+ * @example 'Hello World!' -> 'hello-world'
7
7
  * @public exported from `@promptbook/utils`
8
8
  */
9
9
  export declare function titleToName(value: string): string;
@@ -2,8 +2,8 @@
2
2
  * Organizational helper to better mark the place where to really use empty object `{}`
3
3
  *
4
4
  * Note: There are 2 similar types>
5
- * - `empty_object` @@@
6
- * - `just_empty_object` @@@
5
+ * - `empty_object` Type used for empty data objects allowing for potential future extensions
6
+ * - `just_empty_object` Type used when an object must remain permanently empty
7
7
  *
8
8
  * @private within the repository
9
9
  */
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Organizational helper to better @@@@
2
+ * Organizational helper to better distinguish different empty object use cases.
3
3
  *
4
- * Note: There are 2 similar types>
5
- * - `empty_object` @@@
6
- * - `just_empty_object` @@@
4
+ * Note: There are 2 similar types:
5
+ * - `empty_object` Type used for empty data objects with potential extensions
6
+ * - `just_empty_object` Type used specifically for objects that must remain empty
7
7
  *
8
8
  * Note: In most cases, you should use `empty_object`
9
9
  *
@@ -14,7 +14,8 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
14
14
  */
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
- * @@@
17
+ * Represents the version string of the Promptbook engine.
18
+ * It follows semantic versioning (e.g., `0.92.0-24`).
18
19
  *
19
20
  * @generated
20
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-client",
3
- "version": "0.92.0-24",
3
+ "version": "0.92.0-25",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -51,7 +51,7 @@
51
51
  "module": "./esm/index.es.js",
52
52
  "typings": "./esm/typings/src/_packages/remote-client.index.d.ts",
53
53
  "peerDependencies": {
54
- "@promptbook/core": "0.92.0-24"
54
+ "@promptbook/core": "0.92.0-25"
55
55
  },
56
56
  "dependencies": {
57
57
  "crypto": "1.0.1",
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-24';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-25';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -996,10 +996,10 @@
996
996
  */
997
997
 
998
998
  /**
999
- * @@@
999
+ * Removes diacritic marks (accents) from characters in a string.
1000
1000
  *
1001
- * @param input @@@
1002
- * @returns @@@
1001
+ * @param input The string containing diacritics to be normalized.
1002
+ * @returns The string with diacritics removed or normalized.
1003
1003
  * @public exported from `@promptbook/utils`
1004
1004
  */
1005
1005
  function removeDiacritics(input) {
@@ -1013,10 +1013,10 @@
1013
1013
  */
1014
1014
 
1015
1015
  /**
1016
- * @@@
1016
+ * Converts a given text to kebab-case format.
1017
1017
  *
1018
- * @param text @@@
1019
- * @returns @@@
1018
+ * @param text The text to be converted.
1019
+ * @returns The kebab-case formatted string.
1020
1020
  * @example 'hello-world'
1021
1021
  * @example 'i-love-promptbook'
1022
1022
  * @public exported from `@promptbook/utils`
@@ -2147,10 +2147,10 @@
2147
2147
  */
2148
2148
 
2149
2149
  /**
2150
- * @@@
2150
+ * Normalizes a text string to SCREAMING_CASE (all uppercase with underscores).
2151
2151
  *
2152
- * @param text @@@
2153
- * @returns @@@
2152
+ * @param text The text string to be converted to SCREAMING_CASE format.
2153
+ * @returns The normalized text in SCREAMING_CASE format.
2154
2154
  * @example 'HELLO_WORLD'
2155
2155
  * @example 'I_LOVE_PROMPTBOOK'
2156
2156
  * @public exported from `@promptbook/utils`
@@ -2487,11 +2487,11 @@
2487
2487
  */
2488
2488
 
2489
2489
  /**
2490
- * @@@
2490
+ * Normalizes a given text to camelCase format.
2491
2491
  *
2492
- * @param text @@@
2493
- * @param _isFirstLetterCapital @@@
2494
- * @returns @@@
2492
+ * @param text The text to be normalized.
2493
+ * @param _isFirstLetterCapital Whether the first letter should be capitalized.
2494
+ * @returns The camelCase formatted string.
2495
2495
  * @example 'helloWorld'
2496
2496
  * @example 'iLovePromptbook'
2497
2497
  * @public exported from `@promptbook/utils`
@@ -2995,7 +2995,7 @@
2995
2995
  };
2996
2996
 
2997
2997
  /**
2998
- * @@@
2998
+ * Pipeline interface which is equivalent to `any`
2999
2999
  *
3000
3000
  * @see https://github.com/webgptorg/promptbook/discussions/171
3001
3001
  *
@@ -3325,8 +3325,7 @@
3325
3325
  };
3326
3326
 
3327
3327
  /**
3328
- * @@@
3329
- *
3328
+ * @see {@link ModelVariant}
3330
3329
  * @public exported from `@promptbook/core`
3331
3330
  */
3332
3331
  const MODEL_VARIANTS = ['COMPLETION', 'CHAT', 'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */];
@@ -4331,7 +4330,7 @@
4331
4330
  }
4332
4331
 
4333
4332
  /**
4334
- * @@@
4333
+ * Extracts the interface (input and output parameters) from a pipeline.
4335
4334
  *
4336
4335
  * @deprecated https://github.com/webgptorg/promptbook/pull/186
4337
4336
  * @see https://github.com/webgptorg/promptbook/discussions/171
@@ -4364,7 +4363,7 @@
4364
4363
  }
4365
4364
 
4366
4365
  /**
4367
- * @@@
4366
+ * Checks if two pipeline interfaces are structurally identical.
4368
4367
  *
4369
4368
  * @deprecated https://github.com/webgptorg/promptbook/pull/186
4370
4369
  * @see https://github.com/webgptorg/promptbook/discussions/171
@@ -4396,10 +4395,11 @@
4396
4395
  }
4397
4396
 
4398
4397
  /**
4399
- * @@@
4398
+ * Checks if a given pipeline satisfies the requirements of a specified pipeline interface.
4400
4399
  *
4401
4400
  * @deprecated https://github.com/webgptorg/promptbook/pull/186
4402
4401
  * @see https://github.com/webgptorg/promptbook/discussions/171
4402
+ * @returns `true` if the pipeline implements the interface, `false` otherwise.
4403
4403
  *
4404
4404
  * @public exported from `@promptbook/core`
4405
4405
  */
@@ -4629,7 +4629,8 @@
4629
4629
  }
4630
4630
 
4631
4631
  /**
4632
- * @@@
4632
+ * Utility to determine if a pipeline string is in flat format.
4633
+ * A flat pipeline is a simple text without proper structure (headers, blocks, etc).
4633
4634
  *
4634
4635
  * @public exported from `@promptbook/editable`
4635
4636
  */
@@ -4650,7 +4651,10 @@
4650
4651
  }
4651
4652
 
4652
4653
  /**
4653
- * @@@
4654
+ * Converts a pipeline structure to its string representation.
4655
+ *
4656
+ * Transforms a flat, simple pipeline into a properly formatted pipeline string
4657
+ * with sections for title, prompt, and return statement.
4654
4658
  *
4655
4659
  * @public exported from `@promptbook/editable`
4656
4660
  */
@@ -4707,7 +4711,7 @@
4707
4711
  * Note: It can not work with html syntax and comments
4708
4712
  *
4709
4713
  * @param markdown any valid markdown
4710
- * @returns @@@
4714
+ * @returns An array of strings, each representing an individual list item found in the markdown
4711
4715
  * @public exported from `@promptbook/markdown-utils`
4712
4716
  */
4713
4717
  function extractAllListItemsFromMarkdown(markdown) {
@@ -4960,11 +4964,11 @@
4960
4964
  */
4961
4965
 
4962
4966
  /**
4963
- * @@@
4967
+ * Converts a title string into a normalized name.
4964
4968
  *
4965
- * @param value @@@
4966
- * @returns @@@
4967
- * @example @@@
4969
+ * @param value The title string to be converted to a name.
4970
+ * @returns A normalized name derived from the input title.
4971
+ * @example 'Hello World!' -> 'hello-world'
4968
4972
  * @public exported from `@promptbook/utils`
4969
4973
  */
4970
4974
  function titleToName(value) {