@promptbook/remote-server
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -67,3 +67,3 @@ import chalk from 'chalk'; | ||
*/ | ||
function createRemoteServer(options) { | ||
function runRemoteServer(options) { | ||
var _this = this; | ||
@@ -76,3 +76,3 @@ var port = options.port, path = options.path, /* [π] ptbkLibrary, */ createNaturalExecutionTools = options.createNaturalExecutionTools, isVerbose = options.isVerbose; | ||
} | ||
response.write(spaceTrim("\n Server for processing PTP requests is running\n\n For more information look at:\n https://github.com/webgptorg/promptbook\n\n ")); | ||
response.write(spaceTrim("\n \uD83D\uDCD6 Server for processing PromptBook requests is running\n\n For more information look at:\n https://github.com/webgptorg/promptbook\n\n ")); | ||
response.end(); | ||
@@ -162,3 +162,3 @@ }); | ||
export { createRemoteServer }; | ||
export { runRemoteServer }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -1,3 +0,3 @@ | ||
import { createRemoteServer } from '../execution/plugins/natural-execution-tools/remote/createRemoteServer'; | ||
import { RemoteServerOptions } from '../execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions'; | ||
export { createRemoteServer, RemoteServerOptions }; | ||
import { runRemoteServer } from '../execution/plugins/natural-execution-tools/remote/runRemoteServer'; | ||
export { RemoteServerOptions, runRemoteServer }; |
@@ -0,1 +1,5 @@ | ||
import { EMOJIS, EMOJIS_IN_CATEGORIES } from '../utils/emojis'; | ||
import { extractAllListItemsFromMarkdown } from '../utils/markdown/extractAllListItemsFromMarkdown'; | ||
import { extractBlocksFromMarkdown } from '../utils/markdown/extractBlocksFromMarkdown'; | ||
import { extractOneBlockFromMarkdown } from '../utils/markdown/extractOneBlockFromMarkdown'; | ||
import { removeContentComments } from '../utils/markdown/removeContentComments'; | ||
@@ -5,3 +9,4 @@ import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting'; | ||
import { removeQuotes } from '../utils/removeQuotes'; | ||
import { replaceParameters } from '../utils/replaceParameters'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, unwrapResult }; | ||
export { EMOJIS, EMOJIS_IN_CATEGORIES, extractAllListItemsFromMarkdown, extractBlocksFromMarkdown, extractOneBlockFromMarkdown, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, unwrapResult, }; |
import { ExecutionType } from './ExecutionTypes'; | ||
import { string_name, string_title } from './typeAliases'; | ||
import { string_markdown_text, string_name } from './typeAliases'; | ||
/** | ||
@@ -20,3 +20,3 @@ * TaskProgress represents the progress of a PromptTemplatePipeline execution. | ||
*/ | ||
readonly title: string_title; | ||
readonly title: string_markdown_text; | ||
/** | ||
@@ -23,0 +23,0 @@ * Does the task started? |
@@ -12,5 +12,3 @@ import { string_markdown, string_markdown_text } from '../.././types/typeAliases'; | ||
* @returns | ||
* | ||
* @private within the library | ||
*/ | ||
export declare function extractAllListItemsFromMarkdown(markdown: string_markdown): string_markdown_text[]; |
@@ -7,4 +7,2 @@ import { string_markdown } from '../.././types/typeAliases'; | ||
* @returns code blocks with language and content | ||
* | ||
* @private within the library | ||
*/ | ||
@@ -11,0 +9,0 @@ export declare function extractBlocksFromMarkdown(markdown: string_markdown): Array<{ |
@@ -10,4 +10,2 @@ import { string_markdown } from '../.././types/typeAliases'; | ||
* @returns code block with language and content | ||
* | ||
* @private within the library | ||
*/ | ||
@@ -14,0 +12,0 @@ export declare function extractOneBlockFromMarkdown(markdown: string_markdown): { |
@@ -9,4 +9,2 @@ import { string_template } from '.././types/typeAliases'; | ||
* @returns the template with replaced parameters | ||
* | ||
* @private within the library | ||
*/ | ||
@@ -13,0 +11,0 @@ export declare function replaceParameters(template: string_template, parameters: Parameters): string; |
{ | ||
"name": "@promptbook/remote-server", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -41,3 +41,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.16.0" | ||
"@promptbook/core": "0.17.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "main": "./umd/index.umd.js", |
@@ -74,3 +74,3 @@ (function (global, factory) { | ||
*/ | ||
function createRemoteServer(options) { | ||
function runRemoteServer(options) { | ||
var _this = this; | ||
@@ -83,3 +83,3 @@ var port = options.port, path = options.path, /* [π] ptbkLibrary, */ createNaturalExecutionTools = options.createNaturalExecutionTools, isVerbose = options.isVerbose; | ||
} | ||
response.write(spaceTrim__default["default"]("\n Server for processing PTP requests is running\n\n For more information look at:\n https://github.com/webgptorg/promptbook\n\n ")); | ||
response.write(spaceTrim__default["default"]("\n \uD83D\uDCD6 Server for processing PromptBook requests is running\n\n For more information look at:\n https://github.com/webgptorg/promptbook\n\n ")); | ||
response.end(); | ||
@@ -169,3 +169,3 @@ }); | ||
exports.createRemoteServer = createRemoteServer; | ||
exports.runRemoteServer = runRemoteServer; | ||
@@ -172,0 +172,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -1,3 +0,3 @@ | ||
import { createRemoteServer } from '../execution/plugins/natural-execution-tools/remote/createRemoteServer'; | ||
import { RemoteServerOptions } from '../execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions'; | ||
export { createRemoteServer, RemoteServerOptions }; | ||
import { runRemoteServer } from '../execution/plugins/natural-execution-tools/remote/runRemoteServer'; | ||
export { RemoteServerOptions, runRemoteServer }; |
@@ -0,1 +1,5 @@ | ||
import { EMOJIS, EMOJIS_IN_CATEGORIES } from '../utils/emojis'; | ||
import { extractAllListItemsFromMarkdown } from '../utils/markdown/extractAllListItemsFromMarkdown'; | ||
import { extractBlocksFromMarkdown } from '../utils/markdown/extractBlocksFromMarkdown'; | ||
import { extractOneBlockFromMarkdown } from '../utils/markdown/extractOneBlockFromMarkdown'; | ||
import { removeContentComments } from '../utils/markdown/removeContentComments'; | ||
@@ -5,3 +9,4 @@ import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting'; | ||
import { removeQuotes } from '../utils/removeQuotes'; | ||
import { replaceParameters } from '../utils/replaceParameters'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, unwrapResult }; | ||
export { EMOJIS, EMOJIS_IN_CATEGORIES, extractAllListItemsFromMarkdown, extractBlocksFromMarkdown, extractOneBlockFromMarkdown, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, unwrapResult, }; |
import { ExecutionType } from './ExecutionTypes'; | ||
import { string_name, string_title } from './typeAliases'; | ||
import { string_markdown_text, string_name } from './typeAliases'; | ||
/** | ||
@@ -20,3 +20,3 @@ * TaskProgress represents the progress of a PromptTemplatePipeline execution. | ||
*/ | ||
readonly title: string_title; | ||
readonly title: string_markdown_text; | ||
/** | ||
@@ -23,0 +23,0 @@ * Does the task started? |
@@ -12,5 +12,3 @@ import { string_markdown, string_markdown_text } from '../.././types/typeAliases'; | ||
* @returns | ||
* | ||
* @private within the library | ||
*/ | ||
export declare function extractAllListItemsFromMarkdown(markdown: string_markdown): string_markdown_text[]; |
@@ -7,4 +7,2 @@ import { string_markdown } from '../.././types/typeAliases'; | ||
* @returns code blocks with language and content | ||
* | ||
* @private within the library | ||
*/ | ||
@@ -11,0 +9,0 @@ export declare function extractBlocksFromMarkdown(markdown: string_markdown): Array<{ |
@@ -10,4 +10,2 @@ import { string_markdown } from '../.././types/typeAliases'; | ||
* @returns code block with language and content | ||
* | ||
* @private within the library | ||
*/ | ||
@@ -14,0 +12,0 @@ export declare function extractOneBlockFromMarkdown(markdown: string_markdown): { |
@@ -9,4 +9,2 @@ import { string_template } from '.././types/typeAliases'; | ||
* @returns the template with replaced parameters | ||
* | ||
* @private within the library | ||
*/ | ||
@@ -13,0 +11,0 @@ export declare function replaceParameters(template: string_template, parameters: Parameters): string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
304894
4447