Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
1
Versions
417
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/remote-client - npm Package Compare versions

Comparing version 0.48.1-0 to 0.49.0

9

esm/typings/conversion/promptbookJsonToString.d.ts
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 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc