@promptbook/anthropic-claude
Advanced tools
Comparing version 0.52.0-19 to 0.52.0-24
@@ -13,3 +13,2 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise'; | ||
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
@@ -27,3 +26,3 @@ import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl'; | ||
export { assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -30,0 +29,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -12,2 +12,5 @@ import type { LlmExecutionTools } from './LlmExecutionTools'; | ||
* Tools for executing prompts to large language models like GPT-4 | ||
* | ||
* Tip: Combine multiple LLM execution tools with `MultipleLlmExecutionTools` | ||
* @see https://github.com/webgptorg/promptbook/?tab=readme-ov-file#llm-execution-tools | ||
*/ | ||
@@ -20,2 +23,3 @@ llm: LlmExecutionTools; | ||
* If none of them supports the script, an error is thrown | ||
* @see https://github.com/webgptorg/promptbook/?tab=readme-ov-file#script-execution-tools | ||
*/ | ||
@@ -27,7 +31,5 @@ script: Array<ScriptExecutionTools>; | ||
* Note: When undefined, the user interface is disabled and promptbook which requires user interaction will fail | ||
* @see https://github.com/webgptorg/promptbook/?tab=readme-ov-file#user-interface-tools | ||
*/ | ||
userInterface?: UserInterfaceTools; | ||
}; | ||
/** | ||
* TODO: [🍓] !!!! Allow to have more LlmExecutionTools | ||
*/ |
@@ -14,3 +14,3 @@ import { string_folder_path } from '../../types/typeAliases'; | ||
/** | ||
* If true, the library ceation outputs information about each file it reads | ||
* If true, the library creation outputs information about each file it reads | ||
* | ||
@@ -20,2 +20,8 @@ * @default false | ||
isVerbose?: boolean; | ||
/** | ||
* If true, directory will be scanned only when needed not during the construction | ||
* | ||
* @default false | ||
*/ | ||
isLazyLoaded?: boolean; | ||
}; | ||
@@ -26,4 +32,2 @@ /** | ||
* Note: Works only in Node.js environment because it reads the file system | ||
* Note: The function does NOT return promise it returns the library directly which dynamically loads promptbooks when needed | ||
* SO during the construction syntax and logic sources IS NOT validated | ||
* | ||
@@ -34,3 +38,3 @@ * @param path - path to the directory with promptbooks | ||
*/ | ||
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): PromptbookLibrary; | ||
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): Promise<PromptbookLibrary>; | ||
export {}; | ||
@@ -37,0 +41,0 @@ /*** |
@@ -21,2 +21,3 @@ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
* @returns PromptbookLibrary | ||
* @private Just internal tool for other constructor functions | ||
*/ | ||
@@ -23,0 +24,0 @@ export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary; |
@@ -0,13 +1,29 @@ | ||
import { string_url } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
* Options for `createPromptbookLibraryFromDirectory` function | ||
*/ | ||
type CreatePromptbookLibraryFromUrlyOptions = { | ||
/** | ||
* If true, the library creation outputs information about each file it reads | ||
* | ||
* @default false | ||
*/ | ||
isVerbose?: boolean; | ||
/** | ||
* If true, directory will be scanned only when needed not during the construction | ||
* | ||
* @default false | ||
*/ | ||
isLazyLoaded?: boolean; | ||
}; | ||
/** | ||
* Constructs Promptbook from remote Promptbase URL | ||
* | ||
* Note: The function does NOT return promise it returns the library directly which dynamically loads promptbooks when needed | ||
* SO during the construction syntax and logic sources IS NOT validated | ||
* | ||
* @returns PromptbookLibrary | ||
*/ | ||
export declare function createPromptbookLibraryFromUrl(): PromptbookLibrary; | ||
export declare function createPromptbookLibraryFromUrl(url: string_url | URL, options: CreatePromptbookLibraryFromUrlyOptions): Promise<PromptbookLibrary>; | ||
export {}; | ||
/*** | ||
* TODO: [🍓][🚯] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -5,1 +5,4 @@ /** | ||
export declare function justTestFsImport(): Promise<void>; | ||
/** | ||
* TODO: !!! Remove this file | ||
*/ |
@@ -42,3 +42,3 @@ import type { string_name, string_prompt, string_promptbook_url_with_hashtemplate, string_title } from '.././types/typeAliases'; | ||
* | ||
* @example https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords | ||
* @example https://promptbook.webgpt.com/cs/write-website-content.ptbk.md#keywords | ||
*/ | ||
@@ -45,0 +45,0 @@ readonly promptbookUrl: string_promptbook_url_with_hashtemplate; |
@@ -182,3 +182,3 @@ /** | ||
* | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15"` | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md"` | ||
*/ | ||
@@ -189,3 +189,3 @@ export type string_promptbook_url = string; | ||
* | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords"` | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md#keywords"` | ||
*/ | ||
@@ -192,0 +192,0 @@ export type string_promptbook_url_with_hashtemplate = string; |
{ | ||
"name": "@promptbook/anthropic-claude", | ||
"version": "0.52.0-19", | ||
"version": "0.52.0-24", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -37,3 +37,3 @@ "private": false, | ||
"dependencies": { | ||
"@anthropic-ai/sdk": "^0.21.1", | ||
"@anthropic-ai/sdk": "0.21.1", | ||
"colors": "1.4.0" | ||
@@ -52,3 +52,3 @@ }, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.52.0-19" | ||
"@promptbook/core": "0.52.0-24" | ||
}, | ||
@@ -55,0 +55,0 @@ "main": "./umd/index.umd.js", |
@@ -108,3 +108,3 @@ # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook | ||
> | ||
> - PROMPTBOOK URL https://promptbook.webgpt.com/en/write-website-content.ptbk.md@v0.1.0 | ||
> - PROMPTBOOK URL https://promptbook.webgpt.com/en/write-website-content.ptbk.md | ||
> - PROMPTBOOK VERSION 0.0.1 | ||
@@ -111,0 +111,0 @@ > - INPUT PARAM `{rawTitle}` Automatically suggested a site name or empty text |
@@ -13,3 +13,2 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise'; | ||
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
@@ -27,3 +26,3 @@ import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl'; | ||
export { assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -30,0 +29,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -12,2 +12,5 @@ import type { LlmExecutionTools } from './LlmExecutionTools'; | ||
* Tools for executing prompts to large language models like GPT-4 | ||
* | ||
* Tip: Combine multiple LLM execution tools with `MultipleLlmExecutionTools` | ||
* @see https://github.com/webgptorg/promptbook/?tab=readme-ov-file#llm-execution-tools | ||
*/ | ||
@@ -20,2 +23,3 @@ llm: LlmExecutionTools; | ||
* If none of them supports the script, an error is thrown | ||
* @see https://github.com/webgptorg/promptbook/?tab=readme-ov-file#script-execution-tools | ||
*/ | ||
@@ -27,7 +31,5 @@ script: Array<ScriptExecutionTools>; | ||
* Note: When undefined, the user interface is disabled and promptbook which requires user interaction will fail | ||
* @see https://github.com/webgptorg/promptbook/?tab=readme-ov-file#user-interface-tools | ||
*/ | ||
userInterface?: UserInterfaceTools; | ||
}; | ||
/** | ||
* TODO: [🍓] !!!! Allow to have more LlmExecutionTools | ||
*/ |
@@ -14,3 +14,3 @@ import { string_folder_path } from '../../types/typeAliases'; | ||
/** | ||
* If true, the library ceation outputs information about each file it reads | ||
* If true, the library creation outputs information about each file it reads | ||
* | ||
@@ -20,2 +20,8 @@ * @default false | ||
isVerbose?: boolean; | ||
/** | ||
* If true, directory will be scanned only when needed not during the construction | ||
* | ||
* @default false | ||
*/ | ||
isLazyLoaded?: boolean; | ||
}; | ||
@@ -26,4 +32,2 @@ /** | ||
* Note: Works only in Node.js environment because it reads the file system | ||
* Note: The function does NOT return promise it returns the library directly which dynamically loads promptbooks when needed | ||
* SO during the construction syntax and logic sources IS NOT validated | ||
* | ||
@@ -34,3 +38,3 @@ * @param path - path to the directory with promptbooks | ||
*/ | ||
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): PromptbookLibrary; | ||
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): Promise<PromptbookLibrary>; | ||
export {}; | ||
@@ -37,0 +41,0 @@ /*** |
@@ -21,2 +21,3 @@ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
* @returns PromptbookLibrary | ||
* @private Just internal tool for other constructor functions | ||
*/ | ||
@@ -23,0 +24,0 @@ export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary; |
@@ -0,13 +1,29 @@ | ||
import { string_url } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
* Options for `createPromptbookLibraryFromDirectory` function | ||
*/ | ||
type CreatePromptbookLibraryFromUrlyOptions = { | ||
/** | ||
* If true, the library creation outputs information about each file it reads | ||
* | ||
* @default false | ||
*/ | ||
isVerbose?: boolean; | ||
/** | ||
* If true, directory will be scanned only when needed not during the construction | ||
* | ||
* @default false | ||
*/ | ||
isLazyLoaded?: boolean; | ||
}; | ||
/** | ||
* Constructs Promptbook from remote Promptbase URL | ||
* | ||
* Note: The function does NOT return promise it returns the library directly which dynamically loads promptbooks when needed | ||
* SO during the construction syntax and logic sources IS NOT validated | ||
* | ||
* @returns PromptbookLibrary | ||
*/ | ||
export declare function createPromptbookLibraryFromUrl(): PromptbookLibrary; | ||
export declare function createPromptbookLibraryFromUrl(url: string_url | URL, options: CreatePromptbookLibraryFromUrlyOptions): Promise<PromptbookLibrary>; | ||
export {}; | ||
/*** | ||
* TODO: [🍓][🚯] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -5,1 +5,4 @@ /** | ||
export declare function justTestFsImport(): Promise<void>; | ||
/** | ||
* TODO: !!! Remove this file | ||
*/ |
@@ -42,3 +42,3 @@ import type { string_name, string_prompt, string_promptbook_url_with_hashtemplate, string_title } from '.././types/typeAliases'; | ||
* | ||
* @example https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords | ||
* @example https://promptbook.webgpt.com/cs/write-website-content.ptbk.md#keywords | ||
*/ | ||
@@ -45,0 +45,0 @@ readonly promptbookUrl: string_promptbook_url_with_hashtemplate; |
@@ -182,3 +182,3 @@ /** | ||
* | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15"` | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md"` | ||
*/ | ||
@@ -189,3 +189,3 @@ export type string_promptbook_url = string; | ||
* | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords"` | ||
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md#keywords"` | ||
*/ | ||
@@ -192,0 +192,0 @@ export type string_promptbook_url_with_hashtemplate = string; |
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
472626
7958
514
+ Added@promptbook/core@0.52.0-24(transitive)
+ Addedspacetrim@0.11.27(transitive)
- Removed@promptbook/core@0.52.0-19(transitive)
- Removedspacetrim@0.11.25(transitive)
Updated@anthropic-ai/sdk@0.21.1