@promptbook/node 0.89.0-32 → 0.89.0-33
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 +1 -1
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/remote-server/socket-types/_subtypes/Identification.d.ts +7 -1
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +2 -1
- package/esm/typings/src/types/typeAliases.d.ts +7 -0
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
package/esm/index.es.js
CHANGED
|
@@ -30,7 +30,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
30
30
|
* @generated
|
|
31
31
|
* @see https://github.com/webgptorg/promptbook
|
|
32
32
|
*/
|
|
33
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-
|
|
33
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-33';
|
|
34
34
|
/**
|
|
35
35
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
36
36
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -210,6 +210,7 @@ import type { string_uri_part } from '../types/typeAliases';
|
|
|
210
210
|
import type { string_hostname } from '../types/typeAliases';
|
|
211
211
|
import type { string_host } from '../types/typeAliases';
|
|
212
212
|
import type { string_protocol } from '../types/typeAliases';
|
|
213
|
+
import type { string_ip_address } from '../types/typeAliases';
|
|
213
214
|
import type { string_email } from '../types/typeAliases';
|
|
214
215
|
import type { string_emails } from '../types/typeAliases';
|
|
215
216
|
import type { string_uuid } from '../types/typeAliases';
|
|
@@ -505,6 +506,7 @@ export type { string_uri_part };
|
|
|
505
506
|
export type { string_hostname };
|
|
506
507
|
export type { string_host };
|
|
507
508
|
export type { string_protocol };
|
|
509
|
+
export type { string_ip_address };
|
|
508
510
|
export type { string_email };
|
|
509
511
|
export type { string_emails };
|
|
510
512
|
export type { string_uuid };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LlmToolsConfiguration } from '../../../llm-providers/_common/register/LlmToolsConfiguration';
|
|
2
|
+
import type { string_ip_address } from '../../../types/typeAliases';
|
|
2
3
|
import type { string_user_id } from '../../../types/typeAliases';
|
|
3
4
|
import type { ApplicationRemoteServerClientOptions } from '../../types/RemoteServerOptions';
|
|
4
5
|
/**
|
|
@@ -7,7 +8,12 @@ import type { ApplicationRemoteServerClientOptions } from '../../types/RemoteSer
|
|
|
7
8
|
* @public exported from `@promptbook/remote-server`
|
|
8
9
|
* @public exported from `@promptbook/remote-client`
|
|
9
10
|
*/
|
|
10
|
-
export type Identification<TCustomOptions> = ApplicationModeIdentification<TCustomOptions> | AnonymousModeIdentification
|
|
11
|
+
export type Identification<TCustomOptions> = (ApplicationModeIdentification<TCustomOptions> | AnonymousModeIdentification) & {
|
|
12
|
+
/**
|
|
13
|
+
* Identifier of the IP address of the client
|
|
14
|
+
*/
|
|
15
|
+
readonly ipAddress?: string_ip_address;
|
|
16
|
+
};
|
|
11
17
|
/**
|
|
12
18
|
* Application mode is situation when you run known and well-defined books with your own api keys
|
|
13
19
|
*
|
|
@@ -8,6 +8,7 @@ import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
|
|
|
8
8
|
import type { string_app_id } from '../../types/typeAliases';
|
|
9
9
|
import type { string_email } from '../../types/typeAliases';
|
|
10
10
|
import type { string_password } from '../../types/typeAliases';
|
|
11
|
+
import type { string_token } from '../../types/typeAliases';
|
|
11
12
|
import type { string_user_id } from '../../types/typeAliases';
|
|
12
13
|
import type { ApplicationModeIdentification } from '../socket-types/_subtypes/Identification';
|
|
13
14
|
import type { Identification } from '../socket-types/_subtypes/Identification';
|
|
@@ -101,7 +102,7 @@ export type ApplicationRemoteServerClientOptions<TCustomOptions> = {
|
|
|
101
102
|
*
|
|
102
103
|
* Note: This is passed for example to `createLlmExecutionTools`
|
|
103
104
|
*/
|
|
104
|
-
readonly userToken?:
|
|
105
|
+
readonly userToken?: string_token;
|
|
105
106
|
/**
|
|
106
107
|
* Additional arbitrary options to identify the client or to pass custom metadata
|
|
107
108
|
*/
|
|
@@ -414,6 +414,13 @@ export type string_host = string;
|
|
|
414
414
|
* Semantic helper
|
|
415
415
|
*/
|
|
416
416
|
export type string_protocol = 'http:' | 'https:';
|
|
417
|
+
/**
|
|
418
|
+
* Semantic helper
|
|
419
|
+
*
|
|
420
|
+
* For example `"192.168.1.1"` (IPv4)
|
|
421
|
+
* For example `"2001:0db8:85a3:0000:0000:8a2e:0370:7334"` (IPv6)
|
|
422
|
+
*/
|
|
423
|
+
export type string_ip_address = string;
|
|
417
424
|
/**
|
|
418
425
|
* Semantic helper
|
|
419
426
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.89.0-
|
|
3
|
+
"version": "0.89.0-33",
|
|
4
4
|
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"module": "./esm/index.es.js",
|
|
52
52
|
"typings": "./esm/typings/src/_packages/node.index.d.ts",
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@promptbook/core": "0.89.0-
|
|
54
|
+
"@promptbook/core": "0.89.0-33"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* @generated
|
|
47
47
|
* @see https://github.com/webgptorg/promptbook
|
|
48
48
|
*/
|
|
49
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-
|
|
49
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-33';
|
|
50
50
|
/**
|
|
51
51
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
52
52
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|