@promptbook/node 0.103.0-45 → 0.103.0-46
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 +11 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-2.0/agent-source/padBook.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/string_book.d.ts +2 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +4 -0
- package/esm/typings/src/conversion/validation/validatePipeline.d.ts +2 -0
- package/esm/typings/src/execution/utils/validatePromptResult.d.ts +2 -0
- package/esm/typings/src/pipeline/validatePipelineString.d.ts +2 -0
- package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +2 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +11 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-46';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1707,6 +1707,8 @@ function isValidPipelineUrl(url) {
|
|
|
1707
1707
|
* - if it is valid json
|
|
1708
1708
|
* - if it is meaningful
|
|
1709
1709
|
*
|
|
1710
|
+
* Note: [🔂] This function is idempotent.
|
|
1711
|
+
*
|
|
1710
1712
|
* @param pipeline valid or invalid PipelineJson
|
|
1711
1713
|
* @returns the same pipeline if it is logically valid
|
|
1712
1714
|
* @throws {PipelineLogicError} on logical error in the pipeline
|
|
@@ -2116,6 +2118,8 @@ function isValidJsonString(value /* <- [👨⚖️] */) {
|
|
|
2116
2118
|
* Function `validatePipelineString` will validate the if the string is a valid pipeline string
|
|
2117
2119
|
* It does not check if the string is fully logically correct, but if it is a string that can be a pipeline string or the string looks completely different.
|
|
2118
2120
|
*
|
|
2121
|
+
* Note: [🔂] This function is idempotent.
|
|
2122
|
+
*
|
|
2119
2123
|
* @param {string} pipelineString the candidate for a pipeline string
|
|
2120
2124
|
* @returns {PipelineString} the same string as input, but validated as valid
|
|
2121
2125
|
* @throws {ParseError} if the string is not a valid pipeline string
|
|
@@ -4744,6 +4748,8 @@ function checkExpectations(expectations, value) {
|
|
|
4744
4748
|
* This function provides a common abstraction for result validation that can be used
|
|
4745
4749
|
* by both execution logic and caching logic to ensure consistency.
|
|
4746
4750
|
*
|
|
4751
|
+
* Note: [🔂] This function is idempotent.
|
|
4752
|
+
*
|
|
4747
4753
|
* @param options - The validation options including result string, expectations, and format
|
|
4748
4754
|
* @returns Validation result with processed string and validity status
|
|
4749
4755
|
* @private internal function of `createPipelineExecutor` and `cacheLlmTools`
|
|
@@ -7961,6 +7967,8 @@ function removeQuotes(text) {
|
|
|
7961
7967
|
* Function `validateParameterName` will normalize and validate a parameter name for use in pipelines.
|
|
7962
7968
|
* It removes diacritics, emojis, and quotes, normalizes to camelCase, and checks for reserved names and invalid characters.
|
|
7963
7969
|
*
|
|
7970
|
+
* Note: [🔂] This function is idempotent.
|
|
7971
|
+
*
|
|
7964
7972
|
* @param parameterName The parameter name to validate and normalize.
|
|
7965
7973
|
* @returns The validated and normalized parameter name.
|
|
7966
7974
|
* @throws {ParseError} If the parameter name is empty, reserved, or contains invalid characters.
|
|
@@ -9941,6 +9949,8 @@ const PADDING_LINES = 11;
|
|
|
9941
9949
|
/**
|
|
9942
9950
|
* A function that adds padding to the book content
|
|
9943
9951
|
*
|
|
9952
|
+
* Note: [🔂] This function is idempotent.
|
|
9953
|
+
*
|
|
9944
9954
|
* @public exported from `@promptbook/core`
|
|
9945
9955
|
*/
|
|
9946
9956
|
function padBook(content) {
|