@promptbook/remote-server 0.103.0-47 → 0.103.0-48
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 +12 -4
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +6 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -3
- package/esm/typings/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +2 -1
- package/esm/typings/src/book-2.0/agent-source/computeAgentHash.d.ts +8 -0
- package/esm/typings/src/book-2.0/agent-source/computeAgentHash.test.d.ts +1 -0
- package/esm/typings/src/book-2.0/agent-source/createDefaultAgentName.d.ts +8 -0
- package/esm/typings/src/book-2.0/agent-source/normalizeAgentName.d.ts +9 -0
- package/esm/typings/src/book-2.0/agent-source/normalizeAgentName.test.d.ts +1 -0
- package/esm/typings/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +1 -1
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +57 -32
- package/esm/typings/src/llm-providers/_common/utils/assertUniqueModels.d.ts +12 -0
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +7 -2
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +4 -0
- package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +2 -2
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +24 -3
- package/esm/typings/src/llm-providers/openai/openai-models.test.d.ts +4 -0
- package/esm/typings/src/remote-server/startAgentServer.d.ts +1 -1
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -2
- package/esm/typings/src/transpilers/openai-sdk/register.d.ts +1 -1
- package/esm/typings/src/types/typeAliases.d.ts +6 -0
- package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -0
- package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +3 -0
- package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -0
- package/esm/typings/src/utils/normalization/titleToName.d.ts +2 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +12 -4
- 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-48';
|
|
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
|
|
@@ -1293,7 +1293,7 @@ function $execCommand(options) {
|
|
|
1293
1293
|
*
|
|
1294
1294
|
* @see https://github.com/webgptorg/promptbook#remote-server
|
|
1295
1295
|
* @public exported from `@promptbook/remote-server`
|
|
1296
|
-
* <- TODO: !!!!
|
|
1296
|
+
* <- TODO: !!!! Change to `@promptbook/agent-server`
|
|
1297
1297
|
*/
|
|
1298
1298
|
async function startAgentServer(options) {
|
|
1299
1299
|
const { port = 4440 } = options;
|
|
@@ -4594,6 +4594,8 @@ function removeDiacritics(input) {
|
|
|
4594
4594
|
/**
|
|
4595
4595
|
* Converts a given text to kebab-case format.
|
|
4596
4596
|
*
|
|
4597
|
+
* Note: [🔂] This function is idempotent.
|
|
4598
|
+
*
|
|
4597
4599
|
* @param text The text to be converted.
|
|
4598
4600
|
* @returns The kebab-case formatted string.
|
|
4599
4601
|
* @example 'hello-world'
|
|
@@ -4749,6 +4751,8 @@ function removeEmojis(text) {
|
|
|
4749
4751
|
/**
|
|
4750
4752
|
* Converts a title string into a normalized name.
|
|
4751
4753
|
*
|
|
4754
|
+
* Note: [🔂] This function is idempotent.
|
|
4755
|
+
*
|
|
4752
4756
|
* @param value The title string to be converted to a name.
|
|
4753
4757
|
* @returns A normalized name derived from the input title.
|
|
4754
4758
|
* @example 'Hello World!' -> 'hello-world'
|
|
@@ -7851,6 +7855,8 @@ async function $provideScrapersForNode(tools, options) {
|
|
|
7851
7855
|
/**
|
|
7852
7856
|
* Normalizes a given text to camelCase format.
|
|
7853
7857
|
*
|
|
7858
|
+
* Note: [🔂] This function is idempotent.
|
|
7859
|
+
*
|
|
7854
7860
|
* @param text The text to be normalized.
|
|
7855
7861
|
* @param _isFirstLetterCapital Whether the first letter should be capitalized.
|
|
7856
7862
|
* @returns The camelCase formatted string.
|
|
@@ -7977,6 +7983,9 @@ function nameToUriParts(name) {
|
|
|
7977
7983
|
}
|
|
7978
7984
|
|
|
7979
7985
|
/**
|
|
7986
|
+
* Normalizes a given text to PascalCase format.
|
|
7987
|
+
*
|
|
7988
|
+
* Note: [🔂] This function is idempotent.
|
|
7980
7989
|
*
|
|
7981
7990
|
* @param text @public exported from `@promptbook/utils`
|
|
7982
7991
|
* @returns
|
|
@@ -9626,8 +9635,7 @@ function startRemoteServer(options) {
|
|
|
9626
9635
|
};
|
|
9627
9636
|
}
|
|
9628
9637
|
/**
|
|
9629
|
-
|
|
9630
|
-
* TODO: !!!! Allow to chat with agents directly via remote server
|
|
9638
|
+
|
|
9631
9639
|
* TODO: [🕋] Use here `aboutPromptbookInformation`
|
|
9632
9640
|
* TODO: [🌡] Add CORS and security - probably via `helmet`
|
|
9633
9641
|
* TODO: Split this file into multiple functions - handler for each request
|