@promptbook/remote-client
Advanced tools
Comparing version 0.48.1-0 to 0.49.0
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptbookString } from '../types/PromptbookString'; | ||
/** | ||
* Converts promptbook in JSON format to string format | ||
* | ||
* @param promptbookJson Promptbook in JSON format (.ptbk.json) | ||
* @returns Promptbook in string format (.ptbk.md) | ||
*/ | ||
export declare function promptbookJsonToString(promptbookJson: PromptbookJson): PromptbookString; | ||
/** | ||
* TODO: !!!!! Implement | ||
* TODO: !!!!! Annotate and warn | ||
* TODO: !!!!! Test + test together with promptbookStringToJson | ||
* TODO: Escape all | ||
*/ |
@@ -9,3 +9,3 @@ import type { ExpectFormatCommand } from '../Command'; | ||
*/ | ||
export type PromptTemplateJson = LlmTemplateJson | SimpleTemplateJson | ScriptTemplateJson | PromptDialogJson; | ||
export type PromptTemplateJson = LlmTemplateJson | SimpleTemplateJson | ScriptJson | PromptDialogJson; | ||
/** | ||
@@ -54,3 +54,3 @@ * Template for prompt to LLM | ||
*/ | ||
interface ScriptTemplateJson extends PromptTemplateJsonCommon { | ||
interface ScriptJson extends PromptTemplateJsonCommon { | ||
readonly executionType: 'SCRIPT'; | ||
@@ -57,0 +57,0 @@ /** |
{ | ||
"name": "@promptbook/remote-client", | ||
"version": "0.48.1-0", | ||
"version": "0.49.0", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.48.1-0" | ||
"@promptbook/core": "0.49.0" | ||
}, | ||
@@ -53,0 +53,0 @@ "main": "./umd/index.umd.js", |
@@ -8,3 +8,2 @@ # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook | ||
[![NPM Version of ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook) | ||
@@ -14,4 +13,4 @@ [![Quality of package ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook) | ||
[![Issues](https://img.shields.io/github/issues/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/issues) | ||
[![Socket](https://socket.dev/api/badge/npm/package/promptbook)](https://socket.dev/npm/package/promptbook) | ||
[![Socket Badge](https://socket.dev/api/badge/npm/package/@promptbook/remote-client)](https://socket.dev/npm/package/@promptbook/remote-client) | ||
@@ -664,5 +663,2 @@ | ||
### Where should I store my promptbooks? | ||
@@ -669,0 +665,0 @@ |
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptbookString } from '../types/PromptbookString'; | ||
/** | ||
* Converts promptbook in JSON format to string format | ||
* | ||
* @param promptbookJson Promptbook in JSON format (.ptbk.json) | ||
* @returns Promptbook in string format (.ptbk.md) | ||
*/ | ||
export declare function promptbookJsonToString(promptbookJson: PromptbookJson): PromptbookString; | ||
/** | ||
* TODO: !!!!! Implement | ||
* TODO: !!!!! Annotate and warn | ||
* TODO: !!!!! Test + test together with promptbookStringToJson | ||
* TODO: Escape all | ||
*/ |
@@ -9,3 +9,3 @@ import type { ExpectFormatCommand } from '../Command'; | ||
*/ | ||
export type PromptTemplateJson = LlmTemplateJson | SimpleTemplateJson | ScriptTemplateJson | PromptDialogJson; | ||
export type PromptTemplateJson = LlmTemplateJson | SimpleTemplateJson | ScriptJson | PromptDialogJson; | ||
/** | ||
@@ -54,3 +54,3 @@ * Template for prompt to LLM | ||
*/ | ||
interface ScriptTemplateJson extends PromptTemplateJsonCommon { | ||
interface ScriptJson extends PromptTemplateJsonCommon { | ||
readonly executionType: 'SCRIPT'; | ||
@@ -57,0 +57,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6750
410750
704