@promptbook/browser
Advanced tools
Comparing version 0.80.0 to 0.81.0-5
@@ -16,3 +16,3 @@ import spaceTrim$1, { spaceTrim } from 'spacetrim'; | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.80.0-1'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-4'; | ||
/** | ||
@@ -822,3 +822,3 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine | ||
* | ||
* @public exported from `@promptbook/core` | ||
* @public exported from `@promptbook/editable` | ||
*/ | ||
@@ -825,0 +825,0 @@ function stringifyPipelineJson(pipeline) { |
@@ -37,5 +37,2 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { extractParameterNamesFromTask } from '../conversion/utils/extractParameterNamesFromTask'; | ||
import { removePipelineCommand } from '../conversion/utils/removePipelineCommand'; | ||
import { renamePipelineParameter } from '../conversion/utils/renamePipelineParameter'; | ||
import { stringifyPipelineJson } from '../conversion/utils/stringifyPipelineJson'; | ||
import { validatePipeline } from '../conversion/validation/validatePipeline'; | ||
@@ -159,5 +156,2 @@ import { CallbackInterfaceTools } from '../dialogs/callback/CallbackInterfaceTools'; | ||
export { extractParameterNamesFromTask }; | ||
export { removePipelineCommand }; | ||
export { renamePipelineParameter }; | ||
export { stringifyPipelineJson }; | ||
export { validatePipeline }; | ||
@@ -164,0 +158,0 @@ export { CallbackInterfaceTools }; |
@@ -33,2 +33,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { PipelineExecutorResult } from '../execution/PipelineExecutorResult'; | ||
import type { PromptbookFetch } from '../execution/PromptbookFetch'; | ||
import type { PromptResult } from '../execution/PromptResult'; | ||
@@ -245,2 +246,3 @@ import type { CompletionPromptResult } from '../execution/PromptResult'; | ||
import type { Registration } from '../utils/$Register'; | ||
import type { PipelineEditableSerialized } from '../utils/editable/types/PipelineEditableSerialized'; | ||
import type { ExecCommandOptions } from '../utils/execCommand/ExecCommandOptions'; | ||
@@ -297,2 +299,3 @@ import type { ExecCommandOptionsAdvanced } from '../utils/execCommand/ExecCommandOptions'; | ||
export type { PipelineExecutorResult }; | ||
export type { PromptbookFetch }; | ||
export type { PromptResult }; | ||
@@ -509,2 +512,3 @@ export type { CompletionPromptResult }; | ||
export type { Registration }; | ||
export type { PipelineEditableSerialized }; | ||
export type { ExecCommandOptions }; | ||
@@ -511,0 +515,0 @@ export type { ExecCommandOptionsAdvanced }; |
@@ -49,3 +49,3 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { extractParameterNames } from '../utils/parameters/extractParameterNames'; | ||
import { replaceParameters } from '../utils/parameters/replaceParameters'; | ||
import { templateParameters } from '../utils/parameters/templateParameters'; | ||
import { parseNumber } from '../utils/parseNumber'; | ||
@@ -125,3 +125,3 @@ import { $randomSeed } from '../utils/random/$randomSeed'; | ||
export { extractParameterNames }; | ||
export { replaceParameters }; | ||
export { templateParameters }; | ||
export { parseNumber }; | ||
@@ -128,0 +128,0 @@ export { $randomSeed }; |
@@ -6,2 +6,3 @@ import type { Scraper } from '../scrapers/_common/Scraper'; | ||
import type { LlmExecutionTools } from './LlmExecutionTools'; | ||
import type { PromptbookFetch } from './PromptbookFetch'; | ||
import type { ScriptExecutionTools } from './ScriptExecutionTools'; | ||
@@ -32,2 +33,8 @@ import type { UserInterfaceTools } from './UserInterfaceTools'; | ||
/** | ||
* Fetch function for fetching resources | ||
* | ||
* @default `fetch` - If not provided, the built-in `fetch' function is used with a lightweight error handling wrapper. | ||
*/ | ||
readonly fetch?: PromptbookFetch; | ||
/** | ||
* Scrapers for extracting knowledge from external sources | ||
@@ -34,0 +41,0 @@ * |
@@ -0,1 +1,2 @@ | ||
import type { PromptbookFetch } from '../../execution/PromptbookFetch'; | ||
import type { string_name } from '../../types/typeAliases'; | ||
@@ -5,3 +6,3 @@ /** | ||
*/ | ||
export declare function isDomainNameFree(name: string_name): Promise<boolean>; | ||
export declare function isDomainNameFree(name: string_name, fetch: PromptbookFetch): Promise<boolean>; | ||
/** | ||
@@ -8,0 +9,0 @@ * TODO: [🍓][🧠] Test and implement `isDomainNameFree` |
@@ -0,1 +1,2 @@ | ||
import type { PromptbookFetch } from '../../execution/PromptbookFetch'; | ||
import type { string_name } from '../../types/typeAliases'; | ||
@@ -5,3 +6,3 @@ /** | ||
*/ | ||
export declare function isGithubNameFree(name: string_name): Promise<boolean>; | ||
export declare function isGithubNameFree(name: string_name, fetch: PromptbookFetch): Promise<boolean>; | ||
/** | ||
@@ -8,0 +9,0 @@ * TODO: [🍓][🧠] Test and implement `isGithubNameFree` |
@@ -11,2 +11,2 @@ import type { SetOptional } from 'type-fest'; | ||
*/ | ||
export declare function makeKnowledgeSourceHandler(knowledgeSource: SetOptional<KnowledgeSourceJson, 'name'>, tools: Pick<ExecutionTools, 'fs'>, options?: Pick<PrepareAndScrapeOptions, 'rootDirname' | 'isVerbose'>): Promise<ScraperSourceHandler>; | ||
export declare function makeKnowledgeSourceHandler(knowledgeSource: SetOptional<KnowledgeSourceJson, 'name'>, tools: Pick<ExecutionTools, 'fs' | 'fetch'>, options?: Pick<PrepareAndScrapeOptions, 'rootDirname' | 'isVerbose'>): Promise<ScraperSourceHandler>; |
{ | ||
"name": "@promptbook/browser", | ||
"version": "0.80.0", | ||
"version": "0.81.0-5", | ||
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin", | ||
@@ -57,3 +57,3 @@ "--note-0": " <- [🐊]", | ||
"peerDependencies": { | ||
"@promptbook/core": "0.80.0" | ||
"@promptbook/core": "0.81.0-5" | ||
}, | ||
@@ -60,0 +60,0 @@ "dependencies": { |
@@ -26,2 +26,6 @@ <!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten --> | ||
<blockquote style="color: #ff8811"> | ||
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>. | ||
</blockquote> | ||
## 📦 Package `@promptbook/browser` | ||
@@ -255,2 +259,4 @@ | ||
- **[@promptbook/website-crawler](https://www.npmjs.com/package/@promptbook/website-crawler)** - Crawl knowledge from the web | ||
- **[@promptbook/editable](https://www.npmjs.com/package/@promptbook/editable)** - Editable book as native javascript object with imperative object API | ||
- **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Usefull templates and examples of books which can be used as a starting point | ||
- **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library | ||
@@ -257,0 +263,0 @@ - **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks |
@@ -23,3 +23,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.80.0-1'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-4'; | ||
/** | ||
@@ -829,3 +829,3 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine | ||
* | ||
* @public exported from `@promptbook/core` | ||
* @public exported from `@promptbook/editable` | ||
*/ | ||
@@ -832,0 +832,0 @@ function stringifyPipelineJson(pipeline) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
683049
638
13722
423