New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@promptbook/core

Package Overview
Dependencies
Maintainers
1
Versions
580
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/core - npm Package Compare versions

Comparing version

to
0.40.0-5

esm/typings/errors/PromptbookReferenceError.d.ts

6

esm/typings/_packages/core.index.d.ts

@@ -9,5 +9,9 @@ import { promptbookStringToJson } from '../conversion/promptbookStringToJson';

import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
import { ExecutionTypes } from '../types/ExecutionTypes';
import { PROMPTBOOK_VERSION } from '../version';
export { ExecutionTypes, PROMPTBOOK_VERSION, SimplePromptbookLibrary };
export { ExecutionTypes, PROMPTBOOK_VERSION };
export { SimplePromptbookLibrary, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, };
export { SimplePromptInterfaceTools };

@@ -14,0 +18,0 @@ export { promptbookStringToJson, validatePromptbookJson };

2

esm/typings/library/PromptbookLibrary.d.ts

@@ -24,3 +24,3 @@ import { Promisable } from 'type-fest';

*/
isResponsibleForPrompt(prompt: Prompt): boolean;
isResponsibleForPrompt(prompt: Prompt): Promisable<boolean>;
};
import type { Prompt } from '../types/Prompt';
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
import type { PromptbookString } from '../types/PromptbookString';
import type { string_promptbook_url } from '../types/typeAliases';

@@ -8,3 +7,3 @@ import { PromptbookLibrary } from './PromptbookLibrary';

* Library of promptbooks that groups together promptbooks for an application.
* This implementation is a very thin wrapper around the Array / Set of promptbooks.
* This implementation is a very thin wrapper around the Array / Map of promptbooks.
*

@@ -14,15 +13,11 @@ * @see https://github.com/webgptorg/promptbook#promptbook-library

export declare class SimplePromptbookLibrary implements PromptbookLibrary {
private readonly library;
/**
* Constructs Promptbook from any sources
private library;
/**!!!
*
* Note: During the construction syntax and logic of all sources are validated
* Note: You can combine .ptbk.md and .ptbk.json files BUT it is not recommended
* @param promptbooks !!!
*
* @param promptbookSources contents of .ptbk.md or .ptbk.json files
* @param settings settings for creating executor functions
* @returns PromptbookLibrary
* Note: During the construction logic of all promptbooks are validated
* Note: It is not recommended to use this constructor directly, use `createPromptbookLibraryFromSources` *(or other variant)* instead
*/
static fromSources(...promptbookSources: Array<PromptbookJson | PromptbookString>): SimplePromptbookLibrary;
private constructor();
constructor(...promptbooks: Array<PromptbookJson>);
/**

@@ -29,0 +24,0 @@ * Gets all promptbooks in the library

{
"name": "@promptbook/core",
"version": "0.40.0-3",
"version": "0.40.0-5",
"description": "Library to supercharge your use of large language models",

@@ -5,0 +5,0 @@ "private": false,

@@ -9,5 +9,9 @@ import { promptbookStringToJson } from '../conversion/promptbookStringToJson';

import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
import { ExecutionTypes } from '../types/ExecutionTypes';
import { PROMPTBOOK_VERSION } from '../version';
export { ExecutionTypes, PROMPTBOOK_VERSION, SimplePromptbookLibrary };
export { ExecutionTypes, PROMPTBOOK_VERSION };
export { SimplePromptbookLibrary, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, };
export { SimplePromptInterfaceTools };

@@ -14,0 +18,0 @@ export { promptbookStringToJson, validatePromptbookJson };

@@ -24,3 +24,3 @@ import { Promisable } from 'type-fest';

*/
isResponsibleForPrompt(prompt: Prompt): boolean;
isResponsibleForPrompt(prompt: Prompt): Promisable<boolean>;
};
import type { Prompt } from '../types/Prompt';
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
import type { PromptbookString } from '../types/PromptbookString';
import type { string_promptbook_url } from '../types/typeAliases';

@@ -8,3 +7,3 @@ import { PromptbookLibrary } from './PromptbookLibrary';

* Library of promptbooks that groups together promptbooks for an application.
* This implementation is a very thin wrapper around the Array / Set of promptbooks.
* This implementation is a very thin wrapper around the Array / Map of promptbooks.
*

@@ -14,15 +13,11 @@ * @see https://github.com/webgptorg/promptbook#promptbook-library

export declare class SimplePromptbookLibrary implements PromptbookLibrary {
private readonly library;
/**
* Constructs Promptbook from any sources
private library;
/**!!!
*
* Note: During the construction syntax and logic of all sources are validated
* Note: You can combine .ptbk.md and .ptbk.json files BUT it is not recommended
* @param promptbooks !!!
*
* @param promptbookSources contents of .ptbk.md or .ptbk.json files
* @param settings settings for creating executor functions
* @returns PromptbookLibrary
* Note: During the construction logic of all promptbooks are validated
* Note: It is not recommended to use this constructor directly, use `createPromptbookLibraryFromSources` *(or other variant)* instead
*/
static fromSources(...promptbookSources: Array<PromptbookJson | PromptbookString>): SimplePromptbookLibrary;
private constructor();
constructor(...promptbooks: Array<PromptbookJson>);
/**

@@ -29,0 +24,0 @@ * Gets all promptbooks in the library

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet