@promptbook/remote-server 0.92.0-23 → 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 (83) hide show
  1. package/esm/index.es.js +84 -61
  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/collection/PipelineCollection.d.ts +0 -2
  5. package/esm/typings/src/collection/SimplePipelineCollection.d.ts +1 -1
  6. package/esm/typings/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -1
  7. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +36 -28
  8. package/esm/typings/src/config.d.ts +8 -4
  9. package/esm/typings/src/constants.d.ts +2 -2
  10. package/esm/typings/src/errors/0-BoilerplateError.d.ts +2 -2
  11. package/esm/typings/src/execution/CommonToolsOptions.d.ts +3 -3
  12. package/esm/typings/src/formats/_common/FormatSubvalueParser.d.ts +10 -10
  13. package/esm/typings/src/formfactors/_boilerplate/BoilerplateFormfactorDefinition.d.ts +3 -2
  14. package/esm/typings/src/formfactors/_common/string_formfactor_name.d.ts +2 -1
  15. package/esm/typings/src/formfactors/index.d.ts +1 -1
  16. package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +3 -2
  17. package/esm/typings/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +3 -3
  18. package/esm/typings/src/llm-providers/_common/register/$llmToolsRegister.d.ts +3 -3
  19. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +4 -4
  20. package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +5 -5
  21. package/esm/typings/src/llm-providers/_common/utils/cache/CacheLlmToolsOptions.d.ts +5 -3
  22. package/esm/typings/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +3 -3
  23. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +5 -5
  24. package/esm/typings/src/other/templates/getBookTemplates.d.ts +2 -2
  25. package/esm/typings/src/pipeline/PipelineInterface/PipelineInterface.d.ts +3 -3
  26. package/esm/typings/src/pipeline/PipelineInterface/constants.d.ts +1 -1
  27. package/esm/typings/src/pipeline/PipelineInterface/getPipelineInterface.d.ts +1 -1
  28. package/esm/typings/src/pipeline/PipelineInterface/isPipelineImplementingInterface.d.ts +5 -4
  29. package/esm/typings/src/pipeline/PipelineInterface/isPipelineInterfacesEqual.d.ts +1 -1
  30. package/esm/typings/src/pipeline/PipelineJson/CommonTaskJson.d.ts +9 -6
  31. package/esm/typings/src/pipeline/PipelineJson/PipelineJson.d.ts +2 -2
  32. package/esm/typings/src/pipeline/PipelineString.d.ts +3 -1
  33. package/esm/typings/src/pipeline/book-notation.d.ts +2 -2
  34. package/esm/typings/src/prepare/prepareTasks.d.ts +7 -4
  35. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +2 -1
  36. package/esm/typings/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +3 -3
  37. package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -1
  38. package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -1
  39. package/esm/typings/src/scrapers/_common/Converter.d.ts +3 -1
  40. package/esm/typings/src/scrapers/_common/Scraper.d.ts +4 -3
  41. package/esm/typings/src/scrapers/_common/ScraperIntermediateSource.d.ts +4 -2
  42. package/esm/typings/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -1
  43. package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +6 -3
  44. package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +3 -5
  45. package/esm/typings/src/scrapers/_common/register/$scrapersRegister.d.ts +3 -2
  46. package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +8 -5
  47. package/esm/typings/src/scrapers/_common/register/ScraperConstructor.d.ts +2 -1
  48. package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +6 -5
  49. package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +3 -1
  50. package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -1
  51. package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +2 -1
  52. package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +4 -1
  53. package/esm/typings/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  54. package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +2 -1
  55. package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +3 -4
  56. package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +5 -1
  57. package/esm/typings/src/storage/file-cache-storage/FileCacheStorage.d.ts +12 -5
  58. package/esm/typings/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +4 -2
  59. package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +2 -1
  60. package/esm/typings/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +2 -1
  61. package/esm/typings/src/types/IntermediateFilesStrategy.d.ts +2 -1
  62. package/esm/typings/src/types/ModelVariant.d.ts +5 -5
  63. package/esm/typings/src/types/typeAliases.d.ts +8 -6
  64. package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +2 -2
  65. package/esm/typings/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +4 -1
  66. package/esm/typings/src/utils/editable/utils/isFlatPipeline.d.ts +2 -1
  67. package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +2 -1
  68. package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -1
  69. package/esm/typings/src/utils/normalization/nameToUriPart.d.ts +4 -4
  70. package/esm/typings/src/utils/normalization/nameToUriParts.d.ts +4 -4
  71. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +3 -3
  72. package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +3 -3
  73. package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +4 -4
  74. package/esm/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +3 -3
  75. package/esm/typings/src/utils/normalization/removeDiacritics.d.ts +3 -3
  76. package/esm/typings/src/utils/normalization/searchKeywords.d.ts +4 -1
  77. package/esm/typings/src/utils/normalization/titleToName.d.ts +4 -4
  78. package/esm/typings/src/utils/organization/empty_object.d.ts +2 -2
  79. package/esm/typings/src/utils/organization/just_empty_object.d.ts +4 -4
  80. package/esm/typings/src/version.d.ts +2 -1
  81. package/package.json +2 -2
  82. package/umd/index.umd.js +84 -61
  83. package/umd/index.umd.js.map +1 -1
package/esm/index.es.js CHANGED
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
33
33
  * @generated
34
34
  * @see https://github.com/webgptorg/promptbook
35
35
  */
36
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-23';
36
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-25';
37
37
  /**
38
38
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
39
39
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -101,11 +101,20 @@ const DEFAULT_BOOK_TITLE = `✨ Untitled Book`;
101
101
  */
102
102
  const DEFAULT_MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB
103
103
  /**
104
- * @@@
104
+ * Threshold value that determines when a dataset is considered "big"
105
+ * and may require special handling or optimizations
106
+ *
107
+ * For example, when error occurs in one item of the big dataset, it will not fail the whole pipeline
105
108
  *
106
109
  * @public exported from `@promptbook/core`
107
110
  */
108
111
  const BIG_DATASET_TRESHOLD = 50;
112
+ /**
113
+ * Placeholder text used to represent a placeholder value of failed operation
114
+ *
115
+ * @public exported from `@promptbook/core`
116
+ */
117
+ const FAILED_VALUE_PLACEHOLDER = '!?';
109
118
  // <- TODO: [🧠] Better system for generator warnings - not always "code" and "by `@promptbook/cli`"
110
119
  /**
111
120
  * The maximum number of iterations for a loops
@@ -883,7 +892,8 @@ async function locateAppOnLinux({ linuxWhich, }) {
883
892
  */
884
893
 
885
894
  /**
886
- * @@@
895
+ * Provides filesystem access (for example for Node.js-based scrapers)
896
+ * Creates a standardized filesystem interface that scrapers can use for file operations.
887
897
  *
888
898
  * @public exported from `@promptbook/node`
889
899
  */
@@ -1355,13 +1365,13 @@ const ORDER_OF_PIPELINE_JSON = [
1355
1365
  */
1356
1366
  const REPLACING_NONCE = 'ptbkauk42kV2dzao34faw7FudQUHYPtW';
1357
1367
  /**
1358
- * @@@
1368
+ * Placeholder value indicating a parameter is missing its value.
1359
1369
  *
1360
1370
  * @private within the repository
1361
1371
  */
1362
1372
  const RESERVED_PARAMETER_MISSING_VALUE = 'MISSING-' + REPLACING_NONCE;
1363
1373
  /**
1364
- * @@@
1374
+ * Placeholder value indicating a parameter is restricted and cannot be used directly.
1365
1375
  *
1366
1376
  * @private within the repository
1367
1377
  */
@@ -1792,8 +1802,8 @@ function validatePipeline_InnerFunction(pipeline) {
1792
1802
  * @public exported from `@promptbook/core`
1793
1803
  */
1794
1804
  function isPipelinePrepared(pipeline) {
1795
- // Note: Ignoring `pipeline.preparations` @@@
1796
- // Note: Ignoring `pipeline.knowledgePieces` @@@
1805
+ // Note: Ignoring `pipeline.preparations`
1806
+ // Note: Ignoring `pipeline.knowledgePieces`
1797
1807
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
1798
1808
  // TODO: !!! Comment this out
1799
1809
  console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
@@ -2492,7 +2502,7 @@ class SimplePipelineCollection {
2492
2502
  /**
2493
2503
  * Constructs a pipeline collection from pipelines
2494
2504
  *
2495
- * @param pipelines @@@
2505
+ * @param pipelines Array of pipeline JSON objects to include in the collection
2496
2506
  *
2497
2507
  * Note: During the construction logic of all pipelines are validated
2498
2508
  * Note: It is not recommended to use this constructor directly, use `createCollectionFromJson` *(or other variant)* instead
@@ -3023,7 +3033,8 @@ async function preparePersona(personaDescription, tools, options) {
3023
3033
  */
3024
3034
 
3025
3035
  /**
3026
- * @@@
3036
+ * Safely retrieves the global scope object (window in browser, global in Node.js)
3037
+ * regardless of the JavaScript environment in which the code is running
3027
3038
  *
3028
3039
  * Note: `$` is used to indicate that this function is not a pure function - it access global scope
3029
3040
  *
@@ -3034,10 +3045,10 @@ function $getGlobalScope() {
3034
3045
  }
3035
3046
 
3036
3047
  /**
3037
- * @@@
3048
+ * Normalizes a text string to SCREAMING_CASE (all uppercase with underscores).
3038
3049
  *
3039
- * @param text @@@
3040
- * @returns @@@
3050
+ * @param text The text string to be converted to SCREAMING_CASE format.
3051
+ * @returns The normalized text in SCREAMING_CASE format.
3041
3052
  * @example 'HELLO_WORLD'
3042
3053
  * @example 'I_LOVE_PROMPTBOOK'
3043
3054
  * @public exported from `@promptbook/utils`
@@ -3089,10 +3100,10 @@ function normalizeTo_SCREAMING_CASE(text) {
3089
3100
  */
3090
3101
 
3091
3102
  /**
3092
- * @@@
3103
+ * Normalizes a text string to snake_case format.
3093
3104
  *
3094
- * @param text @@@
3095
- * @returns @@@
3105
+ * @param text The text string to be converted to snake_case format.
3106
+ * @returns The normalized text in snake_case format.
3096
3107
  * @example 'hello_world'
3097
3108
  * @example 'i_love_promptbook'
3098
3109
  * @public exported from `@promptbook/utils`
@@ -3162,10 +3173,11 @@ const $scrapersMetadataRegister = new $Register('scrapers_metadata');
3162
3173
  */
3163
3174
 
3164
3175
  /**
3165
- * @@@
3176
+ * Registry for all available scrapers in the system.
3177
+ * Central point for registering and accessing different types of content scrapers.
3166
3178
  *
3167
3179
  * Note: `$` is used to indicate that this interacts with the global scope
3168
- * @singleton Only one instance of each register is created per build, but thare can be more @@@
3180
+ * @singleton Only one instance of each register is created per build, but there can be more than one in different build modules
3169
3181
  * @public exported from `@promptbook/core`
3170
3182
  */
3171
3183
  const $scrapersRegister = new $Register('scraper_constructors');
@@ -3505,10 +3517,10 @@ for (let i = 0; i < defaultDiacriticsRemovalMap.length; i++) {
3505
3517
  */
3506
3518
 
3507
3519
  /**
3508
- * @@@
3520
+ * Removes diacritic marks (accents) from characters in a string.
3509
3521
  *
3510
- * @param input @@@
3511
- * @returns @@@
3522
+ * @param input The string containing diacritics to be normalized.
3523
+ * @returns The string with diacritics removed or normalized.
3512
3524
  * @public exported from `@promptbook/utils`
3513
3525
  */
3514
3526
  function removeDiacritics(input) {
@@ -3522,10 +3534,10 @@ function removeDiacritics(input) {
3522
3534
  */
3523
3535
 
3524
3536
  /**
3525
- * @@@
3537
+ * Converts a given text to kebab-case format.
3526
3538
  *
3527
- * @param text @@@
3528
- * @returns @@@
3539
+ * @param text The text to be converted.
3540
+ * @returns The kebab-case formatted string.
3529
3541
  * @example 'hello-world'
3530
3542
  * @example 'i-love-promptbook'
3531
3543
  * @public exported from `@promptbook/utils`
@@ -3594,7 +3606,8 @@ function knowledgeSourceContentToName(knowledgeSourceContent) {
3594
3606
  */
3595
3607
 
3596
3608
  /**
3597
- * @@@
3609
+ * Converts a name to a properly formatted subfolder path for cache storage.
3610
+ * Handles normalization and path formatting to create consistent cache directory structures.
3598
3611
  *
3599
3612
  * @private for `FileCacheStorage`
3600
3613
  */
@@ -3674,11 +3687,11 @@ function removeEmojis(text) {
3674
3687
  }
3675
3688
 
3676
3689
  /**
3677
- * @@@
3690
+ * Converts a title string into a normalized name.
3678
3691
  *
3679
- * @param value @@@
3680
- * @returns @@@
3681
- * @example @@@
3692
+ * @param value The title string to be converted to a name.
3693
+ * @returns A normalized name derived from the input title.
3694
+ * @example 'Hello World!' -> 'hello-world'
3682
3695
  * @public exported from `@promptbook/utils`
3683
3696
  */
3684
3697
  function titleToName(value) {
@@ -3729,7 +3742,9 @@ const promptbookFetch = async (urlOrRequest, init) => {
3729
3742
  */
3730
3743
 
3731
3744
  /**
3732
- * @@@
3745
+ * Factory function that creates a handler for processing knowledge sources.
3746
+ * Provides standardized processing of different types of knowledge sources
3747
+ * across various scraper implementations.
3733
3748
  *
3734
3749
  * @public exported from `@promptbook/core`
3735
3750
  */
@@ -3970,9 +3985,12 @@ TODO: [🧊] This is how it can look in future
3970
3985
  */
3971
3986
 
3972
3987
  /**
3973
- * @@@
3988
+ * Prepares tasks by adding knowledge to the prompt and ensuring all necessary parameters are included.
3974
3989
  *
3975
- * @public exported from `@promptbook/core`
3990
+ * @param tasks Sequence of tasks that are chained together to form a pipeline
3991
+ * @returns A promise that resolves to the prepared tasks.
3992
+ *
3993
+ * @private internal utility of `preparePipeline`
3976
3994
  */
3977
3995
  async function prepareTasks(pipeline, tools, options) {
3978
3996
  const { maxParallelCount = DEFAULT_MAX_PARALLEL_COUNT } = options;
@@ -4510,6 +4528,15 @@ const CsvFormatParser = {
4510
4528
  mappedData.push(mappedRow);
4511
4529
  if (onProgress) {
4512
4530
  // Note: Report the CSV with all rows mapped so far
4531
+ /*
4532
+ !!!!
4533
+ // Report progress with updated value
4534
+ const progressData = mappedData.map((row, i) =>
4535
+ i > index ? { ...row, [outputParameterName]: PENDING_VALUE_PLACEHOLDER } : row,
4536
+ );
4537
+
4538
+
4539
+ */
4513
4540
  await onProgress(unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS }));
4514
4541
  }
4515
4542
  }
@@ -4726,7 +4753,7 @@ function mapAvailableToExpectedParameters(options) {
4726
4753
  else if (!availableParametersNames.has(parameterName) && expectedParameterNames.has(parameterName)) ;
4727
4754
  }
4728
4755
  if (expectedParameterNames.size === 0) {
4729
- // Note: [👨‍👨‍👧] Now we can freeze `mappedParameters` to prevent @@@
4756
+ // Note: [👨‍👨‍👧] Now we can freeze `mappedParameters` to prevent accidental modifications after mapping
4730
4757
  Object.freeze(mappedParameters);
4731
4758
  return mappedParameters;
4732
4759
  }
@@ -4757,7 +4784,7 @@ function mapAvailableToExpectedParameters(options) {
4757
4784
  for (let i = 0; i < expectedParameterNames.size; i++) {
4758
4785
  mappedParameters[expectedParameterNamesArray[i]] = availableParameters[availableParametersNamesArray[i]];
4759
4786
  }
4760
- // Note: [👨‍👨‍👧] Now we can freeze `mappedParameters` to prevent @@@
4787
+ // Note: [👨‍👨‍👧] Now we can freeze `mappedParameters` to prevent accidental modifications after mapping
4761
4788
  Object.freeze(mappedParameters);
4762
4789
  return mappedParameters;
4763
4790
  }
@@ -5527,15 +5554,14 @@ async function executeFormatSubvalues(options) {
5527
5554
  const highLevelError = new PipelineExecutionError(spaceTrim((block) => `
5528
5555
  ${error.message}
5529
5556
 
5530
- This is error in FOREACH command when mapping data
5557
+ This is error in FOREACH command when mapping ${formatDefinition.formatName} ${subvalueParser.subvalueName} data (${index + 1}/${length})
5531
5558
  You have probbably passed wrong data to pipeline or wrong data was generated which are processed by FOREACH command
5532
5559
 
5533
5560
  ${block(pipelineIdentification)}
5534
- Subparameter index: ${index}
5535
5561
  `));
5536
5562
  if (length > BIG_DATASET_TRESHOLD) {
5537
5563
  console.error(highLevelError);
5538
- return '~';
5564
+ return FAILED_VALUE_PLACEHOLDER;
5539
5565
  }
5540
5566
  throw highLevelError;
5541
5567
  }
@@ -5559,14 +5585,13 @@ async function executeFormatSubvalues(options) {
5559
5585
  catch (error) {
5560
5586
  if (length > BIG_DATASET_TRESHOLD) {
5561
5587
  console.error(spaceTrim((block) => `
5562
- Error in FOREACH command:
5588
+ ${error.message}
5563
5589
 
5564
- ${block(pipelineIdentification)}
5590
+ This is error in FOREACH command when processing ${formatDefinition.formatName} ${subvalueParser.subvalueName} data (${index + 1}/${length})
5565
5591
 
5566
5592
  ${block(pipelineIdentification)}
5567
- Subparameter index: ${index}
5568
5593
  `));
5569
- return '~';
5594
+ return FAILED_VALUE_PLACEHOLDER;
5570
5595
  }
5571
5596
  throw error;
5572
5597
  }
@@ -6237,10 +6262,10 @@ function createPipelineExecutor(options) {
6237
6262
  }
6238
6263
 
6239
6264
  /**
6240
- * @@@
6265
+ * Register for LLM tools.
6241
6266
  *
6242
6267
  * Note: `$` is used to indicate that this interacts with the global scope
6243
- * @singleton Only one instance of each register is created per build, but thare can be more @@@
6268
+ * @singleton Only one instance of each register is created per build, but there can be more instances across different builds or environments.
6244
6269
  * @public exported from `@promptbook/core`
6245
6270
  */
6246
6271
  const $llmToolsRegister = new $Register('llm_execution_tools_constructors');
@@ -6249,10 +6274,10 @@ const $llmToolsRegister = new $Register('llm_execution_tools_constructors');
6249
6274
  */
6250
6275
 
6251
6276
  /**
6252
- * @@@
6277
+ * Register for LLM tools metadata.
6253
6278
  *
6254
6279
  * Note: `$` is used to indicate that this interacts with the global scope
6255
- * @singleton Only one instance of each register is created per build, but thare can be more @@@
6280
+ * @singleton Only one instance of each register is created per build, but there can be more instances across different builds or environments.
6256
6281
  * @public exported from `@promptbook/core`
6257
6282
  */
6258
6283
  const $llmToolsMetadataRegister = new $Register('llm_tools_metadata');
@@ -6436,11 +6461,9 @@ function createLlmToolsFromConfiguration(configuration, options = {}) {
6436
6461
  */
6437
6462
 
6438
6463
  /**
6439
- * @@@
6440
- *
6441
- * 1) @@@
6442
- * 2) @@@
6443
- *
6464
+ * Provides a collection of scrapers optimized for Node.js environment.
6465
+ * 1) `provideScrapersForNode` use as default
6466
+ * 2) `provideScrapersForBrowser` use in limited browser environment *
6444
6467
  * @public exported from `@promptbook/node`
6445
6468
  */
6446
6469
  async function $provideScrapersForNode(tools, options) {
@@ -6465,11 +6488,11 @@ async function $provideScrapersForNode(tools, options) {
6465
6488
  */
6466
6489
 
6467
6490
  /**
6468
- * @@@
6491
+ * Normalizes a given text to camelCase format.
6469
6492
  *
6470
- * @param text @@@
6471
- * @param _isFirstLetterCapital @@@
6472
- * @returns @@@
6493
+ * @param text The text to be normalized.
6494
+ * @param _isFirstLetterCapital Whether the first letter should be capitalized.
6495
+ * @returns The camelCase formatted string.
6473
6496
  * @example 'helloWorld'
6474
6497
  * @example 'iLovePromptbook'
6475
6498
  * @public exported from `@promptbook/utils`
@@ -6599,11 +6622,11 @@ function parseKeywordsFromString(input) {
6599
6622
  }
6600
6623
 
6601
6624
  /**
6602
- * @@@
6625
+ * Converts a name string into a URI-compatible format.
6603
6626
  *
6604
- * @param name @@@
6605
- * @returns @@@
6606
- * @example @@@
6627
+ * @param name The string to be converted to a URI-compatible format.
6628
+ * @returns A URI-compatible string derived from the input name.
6629
+ * @example 'Hello World' -> 'hello-world'
6607
6630
  * @public exported from `@promptbook/utils`
6608
6631
  */
6609
6632
  function nameToUriPart(name) {
@@ -6617,11 +6640,11 @@ function nameToUriPart(name) {
6617
6640
  }
6618
6641
 
6619
6642
  /**
6620
- * @@@
6643
+ * Converts a given name into URI-compatible parts.
6621
6644
  *
6622
- * @param name @@@
6623
- * @returns @@@
6624
- * @example @@@
6645
+ * @param name The name to be converted into URI parts.
6646
+ * @returns An array of URI-compatible parts derived from the name.
6647
+ * @example 'Example Name' -> ['example', 'name']
6625
6648
  * @public exported from `@promptbook/utils`
6626
6649
  */
6627
6650
  function nameToUriParts(name) {