@promptbook/templates 0.89.0-4 → 0.89.0-5
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 +9 -9
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/remote-server/RemoteServer.d.ts +23 -0
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +2 -2
- package/esm/typings/src/utils/organization/TODO_narrow.d.ts +6 -0
- package/package.json +2 -2
- package/umd/index.umd.js +9 -9
package/esm/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-
|
|
19
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-5';
|
|
20
20
|
/**
|
|
21
21
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
22
22
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1494,7 +1494,7 @@ function getTemplatesPipelineCollection() {
|
|
|
1494
1494
|
"preparations": [
|
|
1495
1495
|
{
|
|
1496
1496
|
"id": 1,
|
|
1497
|
-
"promptbookVersion": "0.89.0-
|
|
1497
|
+
"promptbookVersion": "0.89.0-4",
|
|
1498
1498
|
"usage": {
|
|
1499
1499
|
"price": {
|
|
1500
1500
|
"value": 0.005718
|
|
@@ -1975,7 +1975,7 @@ function getTemplatesPipelineCollection() {
|
|
|
1975
1975
|
"preparations": [
|
|
1976
1976
|
{
|
|
1977
1977
|
"id": 1,
|
|
1978
|
-
"promptbookVersion": "0.89.0-
|
|
1978
|
+
"promptbookVersion": "0.89.0-4",
|
|
1979
1979
|
"usage": {
|
|
1980
1980
|
"price": {
|
|
1981
1981
|
"value": 0.005718
|
|
@@ -2551,7 +2551,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2551
2551
|
"preparations": [
|
|
2552
2552
|
{
|
|
2553
2553
|
"id": 1,
|
|
2554
|
-
"promptbookVersion": "0.89.0-
|
|
2554
|
+
"promptbookVersion": "0.89.0-4",
|
|
2555
2555
|
"usage": {
|
|
2556
2556
|
"price": {
|
|
2557
2557
|
"value": 0.00588
|
|
@@ -2673,7 +2673,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2673
2673
|
"preparations": [
|
|
2674
2674
|
{
|
|
2675
2675
|
"id": 1,
|
|
2676
|
-
"promptbookVersion": "0.89.0-
|
|
2676
|
+
"promptbookVersion": "0.89.0-4",
|
|
2677
2677
|
"usage": {
|
|
2678
2678
|
"price": {
|
|
2679
2679
|
"value": 0.005865
|
|
@@ -2769,7 +2769,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2769
2769
|
"preparations": [
|
|
2770
2770
|
{
|
|
2771
2771
|
"id": 1,
|
|
2772
|
-
"promptbookVersion": "0.89.0-
|
|
2772
|
+
"promptbookVersion": "0.89.0-4",
|
|
2773
2773
|
"usage": {
|
|
2774
2774
|
"price": {
|
|
2775
2775
|
"value": 0
|
|
@@ -2886,7 +2886,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2886
2886
|
"preparations": [
|
|
2887
2887
|
{
|
|
2888
2888
|
"id": 1,
|
|
2889
|
-
"promptbookVersion": "0.89.0-
|
|
2889
|
+
"promptbookVersion": "0.89.0-4",
|
|
2890
2890
|
"usage": {
|
|
2891
2891
|
"price": {
|
|
2892
2892
|
"value": 0.005412
|
|
@@ -3016,7 +3016,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3016
3016
|
"preparations": [
|
|
3017
3017
|
{
|
|
3018
3018
|
"id": 1,
|
|
3019
|
-
"promptbookVersion": "0.89.0-
|
|
3019
|
+
"promptbookVersion": "0.89.0-4",
|
|
3020
3020
|
"usage": {
|
|
3021
3021
|
"price": {
|
|
3022
3022
|
"value": 0.005442000000000001
|
|
@@ -3326,7 +3326,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3326
3326
|
"preparations": [
|
|
3327
3327
|
{
|
|
3328
3328
|
"id": 1,
|
|
3329
|
-
"promptbookVersion": "0.89.0-
|
|
3329
|
+
"promptbookVersion": "0.89.0-4",
|
|
3330
3330
|
"usage": {
|
|
3331
3331
|
"price": {
|
|
3332
3332
|
"value": 0.005895
|
|
@@ -112,6 +112,7 @@ import type { components } from '../playground/brjapp-api-schema';
|
|
|
112
112
|
import type { $defs } from '../playground/brjapp-api-schema';
|
|
113
113
|
import type { operations } from '../playground/brjapp-api-schema';
|
|
114
114
|
import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions';
|
|
115
|
+
import type { RemoteServer } from '../remote-server/RemoteServer';
|
|
115
116
|
import type { PromptbookServer_Identification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
|
|
116
117
|
import type { PromptbookServer_ApplicationIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
|
|
117
118
|
import type { PromptbookServer_AnonymousIdentification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';
|
|
@@ -401,6 +402,7 @@ export type { components };
|
|
|
401
402
|
export type { $defs };
|
|
402
403
|
export type { operations };
|
|
403
404
|
export type { PrepareAndScrapeOptions };
|
|
405
|
+
export type { RemoteServer };
|
|
404
406
|
export type { PromptbookServer_Identification };
|
|
405
407
|
export type { PromptbookServer_ApplicationIdentification };
|
|
406
408
|
export type { PromptbookServer_AnonymousIdentification };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { IDestroyable } from 'destroyable';
|
|
3
|
+
import express from 'express';
|
|
4
|
+
import http from 'http';
|
|
5
|
+
import { DefaultEventsMap, Server } from 'socket.io';
|
|
6
|
+
import type { TODO_any } from '../utils/organization/TODO_any';
|
|
7
|
+
import type { TODO_narrow } from '../utils/organization/TODO_narrow';
|
|
8
|
+
export type RemoteServer = IDestroyable & {
|
|
9
|
+
/**
|
|
10
|
+
* HTTP server instance
|
|
11
|
+
*/
|
|
12
|
+
readonly httpServer: http.Server<TODO_any>;
|
|
13
|
+
/**
|
|
14
|
+
* Express application instance
|
|
15
|
+
*
|
|
16
|
+
* Note: This is useful for adding custom routes
|
|
17
|
+
*/
|
|
18
|
+
readonly expressApp: express.Express;
|
|
19
|
+
/**
|
|
20
|
+
* Socket.io server instance
|
|
21
|
+
*/
|
|
22
|
+
readonly socketIoServer: Server<TODO_narrow<DefaultEventsMap>, TODO_narrow<DefaultEventsMap>, TODO_narrow<DefaultEventsMap>, TODO_any>;
|
|
23
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RemoteServer } from './RemoteServer';
|
|
2
2
|
import type { RemoteServerOptions } from './types/RemoteServerOptions';
|
|
3
3
|
/**
|
|
4
4
|
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
|
@@ -9,7 +9,7 @@ import type { RemoteServerOptions } from './types/RemoteServerOptions';
|
|
|
9
9
|
* @see https://github.com/webgptorg/promptbook#remote-server
|
|
10
10
|
* @public exported from `@promptbook/remote-server`
|
|
11
11
|
*/
|
|
12
|
-
export declare function startRemoteServer<TCustomOptions = undefined>(options: RemoteServerOptions<TCustomOptions>):
|
|
12
|
+
export declare function startRemoteServer<TCustomOptions = undefined>(options: RemoteServerOptions<TCustomOptions>): RemoteServer;
|
|
13
13
|
/**
|
|
14
14
|
* TODO: !! Add CORS and security - probbably via `helmet`
|
|
15
15
|
* TODO: [👩🏾🤝🧑🏾] Allow to pass custom fetch function here - PromptbookFetch
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/templates",
|
|
3
|
-
"version": "0.89.0-
|
|
3
|
+
"version": "0.89.0-5",
|
|
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,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"module": "./esm/index.es.js",
|
|
48
48
|
"typings": "./esm/typings/src/_packages/templates.index.d.ts",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@promptbook/core": "0.89.0-
|
|
50
|
+
"@promptbook/core": "0.89.0-5"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"prettier": "2.8.1",
|
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.89.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-5';
|
|
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
|
|
@@ -1501,7 +1501,7 @@
|
|
|
1501
1501
|
"preparations": [
|
|
1502
1502
|
{
|
|
1503
1503
|
"id": 1,
|
|
1504
|
-
"promptbookVersion": "0.89.0-
|
|
1504
|
+
"promptbookVersion": "0.89.0-4",
|
|
1505
1505
|
"usage": {
|
|
1506
1506
|
"price": {
|
|
1507
1507
|
"value": 0.005718
|
|
@@ -1982,7 +1982,7 @@
|
|
|
1982
1982
|
"preparations": [
|
|
1983
1983
|
{
|
|
1984
1984
|
"id": 1,
|
|
1985
|
-
"promptbookVersion": "0.89.0-
|
|
1985
|
+
"promptbookVersion": "0.89.0-4",
|
|
1986
1986
|
"usage": {
|
|
1987
1987
|
"price": {
|
|
1988
1988
|
"value": 0.005718
|
|
@@ -2558,7 +2558,7 @@
|
|
|
2558
2558
|
"preparations": [
|
|
2559
2559
|
{
|
|
2560
2560
|
"id": 1,
|
|
2561
|
-
"promptbookVersion": "0.89.0-
|
|
2561
|
+
"promptbookVersion": "0.89.0-4",
|
|
2562
2562
|
"usage": {
|
|
2563
2563
|
"price": {
|
|
2564
2564
|
"value": 0.00588
|
|
@@ -2680,7 +2680,7 @@
|
|
|
2680
2680
|
"preparations": [
|
|
2681
2681
|
{
|
|
2682
2682
|
"id": 1,
|
|
2683
|
-
"promptbookVersion": "0.89.0-
|
|
2683
|
+
"promptbookVersion": "0.89.0-4",
|
|
2684
2684
|
"usage": {
|
|
2685
2685
|
"price": {
|
|
2686
2686
|
"value": 0.005865
|
|
@@ -2776,7 +2776,7 @@
|
|
|
2776
2776
|
"preparations": [
|
|
2777
2777
|
{
|
|
2778
2778
|
"id": 1,
|
|
2779
|
-
"promptbookVersion": "0.89.0-
|
|
2779
|
+
"promptbookVersion": "0.89.0-4",
|
|
2780
2780
|
"usage": {
|
|
2781
2781
|
"price": {
|
|
2782
2782
|
"value": 0
|
|
@@ -2893,7 +2893,7 @@
|
|
|
2893
2893
|
"preparations": [
|
|
2894
2894
|
{
|
|
2895
2895
|
"id": 1,
|
|
2896
|
-
"promptbookVersion": "0.89.0-
|
|
2896
|
+
"promptbookVersion": "0.89.0-4",
|
|
2897
2897
|
"usage": {
|
|
2898
2898
|
"price": {
|
|
2899
2899
|
"value": 0.005412
|
|
@@ -3023,7 +3023,7 @@
|
|
|
3023
3023
|
"preparations": [
|
|
3024
3024
|
{
|
|
3025
3025
|
"id": 1,
|
|
3026
|
-
"promptbookVersion": "0.89.0-
|
|
3026
|
+
"promptbookVersion": "0.89.0-4",
|
|
3027
3027
|
"usage": {
|
|
3028
3028
|
"price": {
|
|
3029
3029
|
"value": 0.005442000000000001
|
|
@@ -3333,7 +3333,7 @@
|
|
|
3333
3333
|
"preparations": [
|
|
3334
3334
|
{
|
|
3335
3335
|
"id": 1,
|
|
3336
|
-
"promptbookVersion": "0.89.0-
|
|
3336
|
+
"promptbookVersion": "0.89.0-4",
|
|
3337
3337
|
"usage": {
|
|
3338
3338
|
"price": {
|
|
3339
3339
|
"value": 0.005895
|