@promptbook/wizard 0.103.0-44 → 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/remote-server/startAgentServer.d.ts +3 -0
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -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
|
@@ -36,7 +36,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
36
36
|
* @generated
|
|
37
37
|
* @see https://github.com/webgptorg/promptbook
|
|
38
38
|
*/
|
|
39
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
39
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-46';
|
|
40
40
|
/**
|
|
41
41
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
42
42
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -7781,6 +7781,8 @@ function isValidJsonString(value /* <- [👨⚖️] */) {
|
|
|
7781
7781
|
* Function `validatePipelineString` will validate the if the string is a valid pipeline string
|
|
7782
7782
|
* 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.
|
|
7783
7783
|
*
|
|
7784
|
+
* Note: [🔂] This function is idempotent.
|
|
7785
|
+
*
|
|
7784
7786
|
* @param {string} pipelineString the candidate for a pipeline string
|
|
7785
7787
|
* @returns {PipelineString} the same string as input, but validated as valid
|
|
7786
7788
|
* @throws {ParseError} if the string is not a valid pipeline string
|
|
@@ -8053,6 +8055,8 @@ function isValidPipelineUrl(url) {
|
|
|
8053
8055
|
* - if it is valid json
|
|
8054
8056
|
* - if it is meaningful
|
|
8055
8057
|
*
|
|
8058
|
+
* Note: [🔂] This function is idempotent.
|
|
8059
|
+
*
|
|
8056
8060
|
* @param pipeline valid or invalid PipelineJson
|
|
8057
8061
|
* @returns the same pipeline if it is logically valid
|
|
8058
8062
|
* @throws {PipelineLogicError} on logical error in the pipeline
|
|
@@ -10697,6 +10701,8 @@ function checkExpectations(expectations, value) {
|
|
|
10697
10701
|
* This function provides a common abstraction for result validation that can be used
|
|
10698
10702
|
* by both execution logic and caching logic to ensure consistency.
|
|
10699
10703
|
*
|
|
10704
|
+
* Note: [🔂] This function is idempotent.
|
|
10705
|
+
*
|
|
10700
10706
|
* @param options - The validation options including result string, expectations, and format
|
|
10701
10707
|
* @returns Validation result with processed string and validity status
|
|
10702
10708
|
* @private internal function of `createPipelineExecutor` and `cacheLlmTools`
|
|
@@ -18317,6 +18323,8 @@ const expectCommandParser = {
|
|
|
18317
18323
|
* Function `validateParameterName` will normalize and validate a parameter name for use in pipelines.
|
|
18318
18324
|
* It removes diacritics, emojis, and quotes, normalizes to camelCase, and checks for reserved names and invalid characters.
|
|
18319
18325
|
*
|
|
18326
|
+
* Note: [🔂] This function is idempotent.
|
|
18327
|
+
*
|
|
18320
18328
|
* @param parameterName The parameter name to validate and normalize.
|
|
18321
18329
|
* @returns The validated and normalized parameter name.
|
|
18322
18330
|
* @throws {ParseError} If the parameter name is empty, reserved, or contains invalid characters.
|
|
@@ -20283,6 +20291,8 @@ const PADDING_LINES = 11;
|
|
|
20283
20291
|
/**
|
|
20284
20292
|
* A function that adds padding to the book content
|
|
20285
20293
|
*
|
|
20294
|
+
* Note: [🔂] This function is idempotent.
|
|
20295
|
+
*
|
|
20286
20296
|
* @public exported from `@promptbook/core`
|
|
20287
20297
|
*/
|
|
20288
20298
|
function padBook(content) {
|