@promptbook/browser
Advanced tools
Comparing version 0.84.0-11 to 0.84.0-12
@@ -18,3 +18,3 @@ import spaceTrim$1, { spaceTrim } from 'spacetrim'; | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-10'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-11'; | ||
/** | ||
@@ -21,0 +21,0 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine |
@@ -22,3 +22,4 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { DEFAULT_BOOKS_DIRNAME } from '../config'; | ||
import { DEFAULT_EXECUTIONS_CACHE_DIRNAME } from '../config'; | ||
import { DEFAULT_DOWNLOAD_CACHE_DIRNAME } from '../config'; | ||
import { DEFAULT_EXECUTION_CACHE_DIRNAME } from '../config'; | ||
import { DEFAULT_SCRAPE_CACHE_DIRNAME } from '../config'; | ||
@@ -149,3 +150,4 @@ import { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME } from '../config'; | ||
export { DEFAULT_BOOKS_DIRNAME }; | ||
export { DEFAULT_EXECUTIONS_CACHE_DIRNAME }; | ||
export { DEFAULT_DOWNLOAD_CACHE_DIRNAME }; | ||
export { DEFAULT_EXECUTION_CACHE_DIRNAME }; | ||
export { DEFAULT_SCRAPE_CACHE_DIRNAME }; | ||
@@ -152,0 +154,0 @@ export { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME }; |
@@ -170,2 +170,10 @@ import type { CsvSettings } from './formats/csv/CsvSettings'; | ||
/** | ||
* Where to store the temporary downloads | ||
* | ||
* Note: When the folder does not exist, it is created recursively | ||
* | ||
* @public exported from `@promptbook/core` | ||
*/ | ||
export declare const DEFAULT_DOWNLOAD_CACHE_DIRNAME = "./.promptbook/download-cache"; | ||
/** | ||
* Where to store the cache of executions for promptbook CLI | ||
@@ -177,3 +185,3 @@ * | ||
*/ | ||
export declare const DEFAULT_EXECUTIONS_CACHE_DIRNAME = "./.promptbook/executions-cache"; | ||
export declare const DEFAULT_EXECUTION_CACHE_DIRNAME = "./.promptbook/execution-cache"; | ||
/** | ||
@@ -180,0 +188,0 @@ * Where to store the scrape cache |
@@ -6,5 +6,5 @@ /// <reference types="node" /> | ||
*/ | ||
export type FilesystemTools = Pick<typeof fs, 'access' | 'constants' | 'readFile' | 'writeFile' | 'stat' | 'readdir'>; | ||
export type FilesystemTools = Pick<typeof fs, 'access' | 'constants' | 'readFile' | 'writeFile' | 'stat' | 'readdir' | 'mkdir'>; | ||
/** | ||
* TODO: Implement destroyable pattern to free resources | ||
*/ |
@@ -9,2 +9,3 @@ import { Promisable } from 'type-fest'; | ||
import type { string_filename } from '../types/typeAliases'; | ||
import type { string_parameter_value } from '../types/typeAliases'; | ||
import type { string_pipeline_url } from '../types/typeAliases'; | ||
@@ -31,3 +32,8 @@ /** | ||
*/ | ||
execute(book: string_pipeline_url | string_filename | PipelineString, inputParameters: InputParameters, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<PipelineExecutorResult>; | ||
execute(book: string_pipeline_url | string_filename | PipelineString, inputParameters: InputParameters, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<{ | ||
/** | ||
* Simple result of the execution | ||
*/ | ||
result: string_parameter_value; | ||
} & PipelineExecutorResult>; | ||
private executionTools; | ||
@@ -34,0 +40,0 @@ /** |
{ | ||
"name": "@promptbook/browser", | ||
"version": "0.84.0-11", | ||
"version": "0.84.0-12", | ||
"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.84.0-11" | ||
"@promptbook/core": "0.84.0-12" | ||
}, | ||
@@ -60,0 +60,0 @@ "dependencies": { |
@@ -25,3 +25,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-10'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-11'; | ||
/** | ||
@@ -28,0 +28,0 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
729800
14750