@promptbook/remote-server 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 +14 -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 +14 -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
|
|
@@ -1301,12 +1301,18 @@ function $execCommand(options) {
|
|
|
1301
1301
|
async function startAgentServer(options) {
|
|
1302
1302
|
const { port = 4440 } = options;
|
|
1303
1303
|
// TODO: !!!! [🌕]
|
|
1304
|
+
console.trace(`!!! Starting agents server on port ${port}...`);
|
|
1305
|
+
console.log(`!!! cwd`, process.cwd());
|
|
1306
|
+
console.log(`!!! __dirname`, __dirname);
|
|
1304
1307
|
await $execCommand({
|
|
1305
1308
|
cwd: './apps/agents-server',
|
|
1306
1309
|
command: `next dev --port ${port} `,
|
|
1307
1310
|
isVerbose: true,
|
|
1308
1311
|
});
|
|
1309
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
1315
|
+
*/
|
|
1310
1316
|
|
|
1311
1317
|
/**
|
|
1312
1318
|
* Make error report URL for the given error
|
|
@@ -2439,6 +2445,8 @@ function isValidPipelineUrl(url) {
|
|
|
2439
2445
|
* - if it is valid json
|
|
2440
2446
|
* - if it is meaningful
|
|
2441
2447
|
*
|
|
2448
|
+
* Note: [🔂] This function is idempotent.
|
|
2449
|
+
*
|
|
2442
2450
|
* @param pipeline valid or invalid PipelineJson
|
|
2443
2451
|
* @returns the same pipeline if it is logically valid
|
|
2444
2452
|
* @throws {PipelineLogicError} on logical error in the pipeline
|
|
@@ -3254,6 +3262,8 @@ function isValidFilePath(filename) {
|
|
|
3254
3262
|
* Function `validatePipelineString` will validate the if the string is a valid pipeline string
|
|
3255
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.
|
|
3256
3264
|
*
|
|
3265
|
+
* Note: [🔂] This function is idempotent.
|
|
3266
|
+
*
|
|
3257
3267
|
* @param {string} pipelineString the candidate for a pipeline string
|
|
3258
3268
|
* @returns {PipelineString} the same string as input, but validated as valid
|
|
3259
3269
|
* @throws {ParseError} if the string is not a valid pipeline string
|
|
@@ -6274,6 +6284,8 @@ function checkExpectations(expectations, value) {
|
|
|
6274
6284
|
* This function provides a common abstraction for result validation that can be used
|
|
6275
6285
|
* by both execution logic and caching logic to ensure consistency.
|
|
6276
6286
|
*
|
|
6287
|
+
* Note: [🔂] This function is idempotent.
|
|
6288
|
+
*
|
|
6277
6289
|
* @param options - The validation options including result string, expectations, and format
|
|
6278
6290
|
* @returns Validation result with processed string and validity status
|
|
6279
6291
|
* @private internal function of `createPipelineExecutor` and `cacheLlmTools`
|
|
@@ -9629,6 +9641,7 @@ function startRemoteServer(options) {
|
|
|
9629
9641
|
* TODO: [🃏] Pass here some security token to prevent malitious usage and/or DDoS
|
|
9630
9642
|
* TODO: [0] Set unavailable models as undefined in `RemoteLlmExecutionTools` NOT throw error here
|
|
9631
9643
|
* TODO: Allow to constrain anonymous mode for specific models / providers
|
|
9644
|
+
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
9632
9645
|
*/
|
|
9633
9646
|
|
|
9634
9647
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION, startAgentServer, startRemoteServer };
|