@promptbook/remote-server 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 +8 -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 +8 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
33
33
|
* @generated
|
|
34
34
|
* @see https://github.com/webgptorg/promptbook
|
|
35
35
|
*/
|
|
36
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
36
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-46';
|
|
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
|
|
@@ -1303,6 +1303,7 @@ async function startAgentServer(options) {
|
|
|
1303
1303
|
// TODO: !!!! [🌕]
|
|
1304
1304
|
console.trace(`!!! Starting agents server on port ${port}...`);
|
|
1305
1305
|
console.log(`!!! cwd`, process.cwd());
|
|
1306
|
+
console.log(`!!! __dirname`, __dirname);
|
|
1306
1307
|
await $execCommand({
|
|
1307
1308
|
cwd: './apps/agents-server',
|
|
1308
1309
|
command: `next dev --port ${port} `,
|
|
@@ -2444,6 +2445,8 @@ function isValidPipelineUrl(url) {
|
|
|
2444
2445
|
* - if it is valid json
|
|
2445
2446
|
* - if it is meaningful
|
|
2446
2447
|
*
|
|
2448
|
+
* Note: [🔂] This function is idempotent.
|
|
2449
|
+
*
|
|
2447
2450
|
* @param pipeline valid or invalid PipelineJson
|
|
2448
2451
|
* @returns the same pipeline if it is logically valid
|
|
2449
2452
|
* @throws {PipelineLogicError} on logical error in the pipeline
|
|
@@ -3259,6 +3262,8 @@ function isValidFilePath(filename) {
|
|
|
3259
3262
|
* Function `validatePipelineString` will validate the if the string is a valid pipeline string
|
|
3260
3263
|
* 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.
|
|
3261
3264
|
*
|
|
3265
|
+
* Note: [🔂] This function is idempotent.
|
|
3266
|
+
*
|
|
3262
3267
|
* @param {string} pipelineString the candidate for a pipeline string
|
|
3263
3268
|
* @returns {PipelineString} the same string as input, but validated as valid
|
|
3264
3269
|
* @throws {ParseError} if the string is not a valid pipeline string
|
|
@@ -6279,6 +6284,8 @@ function checkExpectations(expectations, value) {
|
|
|
6279
6284
|
* This function provides a common abstraction for result validation that can be used
|
|
6280
6285
|
* by both execution logic and caching logic to ensure consistency.
|
|
6281
6286
|
*
|
|
6287
|
+
* Note: [🔂] This function is idempotent.
|
|
6288
|
+
*
|
|
6282
6289
|
* @param options - The validation options including result string, expectations, and format
|
|
6283
6290
|
* @returns Validation result with processed string and validity status
|
|
6284
6291
|
* @private internal function of `createPipelineExecutor` and `cacheLlmTools`
|