@promptbook/editable 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 +7 -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 +7 -1
- package/umd/index.umd.js.map +1 -1
|
@@ -9,6 +9,8 @@ import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
|
|
|
9
9
|
* - if it is valid json
|
|
10
10
|
* - if it is meaningful
|
|
11
11
|
*
|
|
12
|
+
* Note: [🔂] This function is idempotent.
|
|
13
|
+
*
|
|
12
14
|
* @param pipeline valid or invalid PipelineJson
|
|
13
15
|
* @returns the same pipeline if it is logically valid
|
|
14
16
|
* @throws {PipelineLogicError} on logical error in the pipeline
|
|
@@ -46,6 +46,8 @@ export type ValidatePromptResultResult = {
|
|
|
46
46
|
* This function provides a common abstraction for result validation that can be used
|
|
47
47
|
* by both execution logic and caching logic to ensure consistency.
|
|
48
48
|
*
|
|
49
|
+
* Note: [🔂] This function is idempotent.
|
|
50
|
+
*
|
|
49
51
|
* @param options - The validation options including result string, expectations, and format
|
|
50
52
|
* @returns Validation result with processed string and validity status
|
|
51
53
|
* @private internal function of `createPipelineExecutor` and `cacheLlmTools`
|
|
@@ -3,6 +3,8 @@ import type { PipelineString } from './PipelineString';
|
|
|
3
3
|
* Function `validatePipelineString` will validate the if the string is a valid pipeline string
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
+
* Note: [🔂] This function is idempotent.
|
|
7
|
+
*
|
|
6
8
|
* @param {string} pipelineString the candidate for a pipeline string
|
|
7
9
|
* @returns {PipelineString} the same string as input, but validated as valid
|
|
8
10
|
* @throws {ParseError} if the string is not a valid pipeline string
|
|
@@ -3,6 +3,8 @@ import type { string_parameter_name } from '../../../types/typeAliases';
|
|
|
3
3
|
* Function `validateParameterName` will normalize and validate a parameter name for use in pipelines.
|
|
4
4
|
* It removes diacritics, emojis, and quotes, normalizes to camelCase, and checks for reserved names and invalid characters.
|
|
5
5
|
*
|
|
6
|
+
* Note: [🔂] This function is idempotent.
|
|
7
|
+
*
|
|
6
8
|
* @param parameterName The parameter name to validate and normalize.
|
|
7
9
|
* @returns The validated and normalized parameter name.
|
|
8
10
|
* @throws {ParseError} If the parameter name is empty, reserved, or contains invalid characters.
|
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
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.103.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.103.0-45`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/editable",
|
|
3
|
-
"version": "0.103.0-
|
|
3
|
+
"version": "0.103.0-46",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"module": "./esm/index.es.js",
|
|
96
96
|
"typings": "./esm/typings/src/_packages/editable.index.d.ts",
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"@promptbook/core": "0.103.0-
|
|
98
|
+
"@promptbook/core": "0.103.0-46"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"crypto-js": "4.2.0",
|
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.103.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-46';
|
|
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
|
|
@@ -2588,6 +2588,8 @@
|
|
|
2588
2588
|
* Function `validateParameterName` will normalize and validate a parameter name for use in pipelines.
|
|
2589
2589
|
* It removes diacritics, emojis, and quotes, normalizes to camelCase, and checks for reserved names and invalid characters.
|
|
2590
2590
|
*
|
|
2591
|
+
* Note: [🔂] This function is idempotent.
|
|
2592
|
+
*
|
|
2591
2593
|
* @param parameterName The parameter name to validate and normalize.
|
|
2592
2594
|
* @returns The validated and normalized parameter name.
|
|
2593
2595
|
* @throws {ParseError} If the parameter name is empty, reserved, or contains invalid characters.
|
|
@@ -4834,6 +4836,8 @@
|
|
|
4834
4836
|
/**
|
|
4835
4837
|
* A function that adds padding to the book content
|
|
4836
4838
|
*
|
|
4839
|
+
* Note: [🔂] This function is idempotent.
|
|
4840
|
+
*
|
|
4837
4841
|
* @public exported from `@promptbook/core`
|
|
4838
4842
|
*/
|
|
4839
4843
|
function padBook(content) {
|
|
@@ -4884,6 +4888,8 @@
|
|
|
4884
4888
|
* Function `validatePipelineString` will validate the if the string is a valid pipeline string
|
|
4885
4889
|
* 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.
|
|
4886
4890
|
*
|
|
4891
|
+
* Note: [🔂] This function is idempotent.
|
|
4892
|
+
*
|
|
4887
4893
|
* @param {string} pipelineString the candidate for a pipeline string
|
|
4888
4894
|
* @returns {PipelineString} the same string as input, but validated as valid
|
|
4889
4895
|
* @throws {ParseError} if the string is not a valid pipeline string
|