@promptbook/google
Advanced tools
Comparing version 0.81.0-8 to 0.81.0-9
@@ -18,3 +18,3 @@ import colors from 'colors'; | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-7'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-8'; | ||
/** | ||
@@ -21,0 +21,0 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine |
@@ -146,2 +146,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { Parameters } from '../types/typeAliases'; | ||
import type { InputParameters } from '../types/typeAliases'; | ||
import type { string_reserved_parameter_name } from '../types/typeAliases'; | ||
@@ -411,2 +412,3 @@ import type { ReservedParameters } from '../types/typeAliases'; | ||
export type { Parameters }; | ||
export type { InputParameters }; | ||
export type { string_reserved_parameter_name }; | ||
@@ -413,0 +415,0 @@ export type { ReservedParameters }; |
import type { Promisable, ReadonlyDeep } from 'type-fest'; | ||
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson'; | ||
import type { TaskProgress } from '../../types/TaskProgress'; | ||
import type { Parameters } from '../../types/typeAliases'; | ||
import type { InputParameters } from '../../types/typeAliases'; | ||
import type { PipelineExecutorResult } from '../PipelineExecutorResult'; | ||
@@ -16,3 +16,3 @@ import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorOptions'; | ||
*/ | ||
readonly inputParameters: Readonly<Parameters>; | ||
readonly inputParameters: Readonly<InputParameters>; | ||
/** | ||
@@ -19,0 +19,0 @@ * @@@ |
import type { Promisable } from 'type-fest'; | ||
import type { TaskProgress } from '../types/TaskProgress'; | ||
import type { Parameters } from '../types/typeAliases'; | ||
import type { InputParameters } from '../types/typeAliases'; | ||
import type { PipelineExecutorResult } from './PipelineExecutorResult'; | ||
@@ -14,3 +14,3 @@ /** | ||
export type PipelineExecutor = { | ||
(inputParameters: Parameters, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<PipelineExecutorResult>; | ||
(inputParameters: InputParameters, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<PipelineExecutorResult>; | ||
}; | ||
@@ -17,0 +17,0 @@ /** |
import type { TupleToUnion } from 'type-fest'; | ||
import { RESERVED_PARAMETER_NAMES } from '../constants'; | ||
import type { really_unknown } from '../utils/organization/really_unknown'; | ||
/** | ||
@@ -111,2 +112,9 @@ * Semantic helper | ||
/** | ||
* Parameters to pass to execution of the pipeline | ||
* | ||
* Note: [๐] This should be fully serializable as JSON | ||
* @see https://ptbk.io/parameters | ||
*/ | ||
export type InputParameters = Exclude<Record<string_parameter_name, really_unknown>, ReservedParameters>; | ||
/** | ||
* Semantic helper | ||
@@ -113,0 +121,0 @@ * Unique identifier of reserved parameter |
import { Promisable } from 'type-fest'; | ||
import type { PipelineExecutorResult } from '../execution/PipelineExecutorResult'; | ||
import type { TaskProgress } from '../types/TaskProgress'; | ||
import type { Parameters } from '../types/typeAliases'; | ||
import type { InputParameters } from '../types/typeAliases'; | ||
import type { string_pipeline_url } from '../types/typeAliases'; | ||
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
run(book: string_pipeline_url, inputParameters: Parameters, onProgress?: ((taskProgress: TaskProgress) => Promisable<void>) | undefined): Promise<PipelineExecutorResult>; | ||
execute(book: string_pipeline_url, inputParameters: InputParameters, onProgress?: ((taskProgress: TaskProgress) => Promisable<void>) | undefined): Promise<PipelineExecutorResult>; | ||
}; | ||
@@ -18,0 +18,0 @@ /** |
{ | ||
"name": "@promptbook/google", | ||
"version": "0.81.0-8", | ||
"version": "0.81.0-9", | ||
"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.81.0-8" | ||
"@promptbook/core": "0.81.0-9" | ||
}, | ||
@@ -60,0 +60,0 @@ "dependencies": { |
@@ -26,3 +26,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-7'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-8'; | ||
/** | ||
@@ -29,0 +29,0 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine |
735070
14393