@promptbook/browser
Advanced tools
Comparing version 0.74.0-13 to 0.75.0-0
@@ -16,3 +16,3 @@ import spaceTrim$1, { spaceTrim } from 'spacetrim'; | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-12'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-13'; | ||
/** | ||
@@ -19,0 +19,0 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine |
declare const _default: ({ | ||
title: string; | ||
pipelineUrl: string; | ||
formfactorName: string; | ||
parameters: { | ||
@@ -26,2 +27,3 @@ name: string; | ||
pipelineUrl: string; | ||
formfactorName: string; | ||
parameters: { | ||
@@ -55,2 +57,3 @@ name: string; | ||
pipelineUrl: string; | ||
formfactorName: string; | ||
parameters: { | ||
@@ -57,0 +60,0 @@ name: string; |
@@ -62,2 +62,5 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { TextFormatDefinition } from '../formats/text/TextFormatDefinition'; | ||
import { ChatFormfactorDefinition } from '../formfactors/chat/ChatFormfactorDefinition'; | ||
import { GenericFormfactorDefinition } from '../formfactors/generic/GenericFormfactorDefinition'; | ||
import { FORMFACTOR_DEFINITIONS } from '../formfactors/index'; | ||
import { $llmToolsMetadataRegister } from '../llm-providers/_common/register/$llmToolsMetadataRegister'; | ||
@@ -76,2 +79,5 @@ import { $llmToolsRegister } from '../llm-providers/_common/register/$llmToolsRegister'; | ||
import { preparePersona } from '../personas/preparePersona'; | ||
import { getPipelineInterface } from '../pipeline/pipeline-interface/getPipelineInterface'; | ||
import { isPipelineImplementingInterface } from '../pipeline/pipeline-interface/isPipelineImplementingInterface'; | ||
import { isPipelineInterfacesEqual } from '../pipeline/pipeline-interface/isPipelineInterfacesEqual'; | ||
import { isPipelinePrepared } from '../prepare/isPipelinePrepared'; | ||
@@ -159,2 +165,5 @@ import { preparePipeline } from '../prepare/preparePipeline'; | ||
export { TextFormatDefinition }; | ||
export { ChatFormfactorDefinition }; | ||
export { GenericFormfactorDefinition }; | ||
export { FORMFACTOR_DEFINITIONS }; | ||
export { $llmToolsMetadataRegister }; | ||
@@ -173,2 +182,5 @@ export { $llmToolsRegister }; | ||
export { preparePersona }; | ||
export { getPipelineInterface }; | ||
export { isPipelineImplementingInterface }; | ||
export { isPipelineInterfacesEqual }; | ||
export { isPipelinePrepared }; | ||
@@ -175,0 +187,0 @@ export { preparePipeline }; |
@@ -42,2 +42,5 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { CsvSettings } from '../formats/csv/CsvSettings'; | ||
import type { AbstractFormfactorDefinition } from '../formfactors/_common/AbstractFormfactorDefinition'; | ||
import type { FormfactorDefinition } from '../formfactors/_common/FormfactorDefinition'; | ||
import type { string_formfactor_name } from '../formfactors/_common/string_formfactor_name'; | ||
import type { LlmToolsConfiguration } from '../llm-providers/_common/register/LlmToolsConfiguration'; | ||
@@ -71,2 +74,4 @@ import type { LlmToolsMetadata } from '../llm-providers/_common/register/LlmToolsMetadata'; | ||
import type { CollectionRemoteServerClientOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions'; | ||
import type { IsPipelineImplementingInterfaceOptions } from '../pipeline/pipeline-interface/isPipelineImplementingInterface'; | ||
import type { PipelineInterface } from '../pipeline/pipeline-interface/PipelineInterface'; | ||
import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions'; | ||
@@ -288,2 +293,5 @@ import type { Converter } from '../scrapers/_common/Converter'; | ||
export type { CsvSettings }; | ||
export type { AbstractFormfactorDefinition }; | ||
export type { FormfactorDefinition }; | ||
export type { string_formfactor_name }; | ||
export type { LlmToolsConfiguration }; | ||
@@ -317,2 +325,4 @@ export type { LlmToolsMetadata }; | ||
export type { CollectionRemoteServerClientOptions }; | ||
export type { IsPipelineImplementingInterfaceOptions }; | ||
export type { PipelineInterface }; | ||
export type { PrepareAndScrapeOptions }; | ||
@@ -319,0 +329,0 @@ export type { Converter }; |
@@ -15,2 +15,4 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { $isRunningInWebWorker } from '../utils/environment/$isRunningInWebWorker'; | ||
import { CHARACTERS_PER_STANDARD_LINE } from '../utils/expectation-counters/config'; | ||
import { LINES_PER_STANDARD_PAGE } from '../utils/expectation-counters/config'; | ||
import { countCharacters } from '../utils/expectation-counters/countCharacters'; | ||
@@ -87,2 +89,4 @@ import { countLines } from '../utils/expectation-counters/countLines'; | ||
export { $isRunningInWebWorker }; | ||
export { CHARACTERS_PER_STANDARD_LINE }; | ||
export { LINES_PER_STANDARD_PAGE }; | ||
export { countCharacters }; | ||
@@ -89,0 +93,0 @@ export { countLines }; |
@@ -9,3 +9,3 @@ import type { Command as Program } from 'commander'; | ||
/** | ||
* TODO: !!!!!! Catch and wrap all errors from CLI | ||
* TODO: !!!!! Catch and wrap all errors from CLI | ||
* TODO: [๐ง ] Pass `maxExecutionAttempts`, `csvSettings` | ||
@@ -12,0 +12,0 @@ * TODO: [๐ฅ][main] !!! Allow `ptbk run` without configuring any llm tools |
import { promptbookCli } from './promptbookCli'; | ||
/** | ||
* Note: [๐บ] Purpose of this file is to export CLI for production environment | ||
*/ | ||
/** | ||
* Hidden utilities which should not be used by external consumers. | ||
@@ -8,3 +11,3 @@ * | ||
export declare const _CLI: { | ||
_initialize: typeof promptbookCli; | ||
_initialize_promptbookCli: typeof promptbookCli; | ||
}; | ||
@@ -11,0 +14,0 @@ /** |
#!/usr/bin/env ts-node | ||
/** | ||
* Note: Purpose of this file !!!!!!! vs other place | ||
* Note: [๐บ] Purpose of this file is to test the CLI in development environment | ||
*/ | ||
import '../../_packages/cli.index.ts'; |
@@ -102,2 +102,4 @@ import type { WritableDeep } from 'type-fest'; | ||
* @@@ | ||
* | ||
* TODO: !!!!!! Rename to PipelineTaskCommandParser, applyToTaskJson, TaskJson, isUsedInPipelineTask,... | ||
*/ | ||
@@ -104,0 +106,0 @@ export type PipelineTemplateCommandParser<TCommand extends CommandBase> = CommonCommandParser<TCommand> & { |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./TEMPLATE/TemplateCommand").TemplateCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./BOOK_VERSION/BookVersionCommand").BookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>]; | ||
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./TEMPLATE/TemplateCommand").TemplateCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./BOOK_VERSION/BookVersionCommand").BookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./FORMFACTOR/FormfactorCommand").FormfactorCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>]; |
@@ -0,1 +1,2 @@ | ||
import type { string_formfactor_name } from '../../formfactors/_common/string_formfactor_name'; | ||
import type { ModelRequirements } from '../ModelRequirements'; | ||
@@ -54,2 +55,6 @@ import type { string_filename } from '../typeAliases'; | ||
/** | ||
* Name of the formfactor that the pipeline is shaped for | ||
*/ | ||
readonly formfactorName: string_formfactor_name; | ||
/** | ||
* Set of variables that are used across the pipeline | ||
@@ -56,0 +61,0 @@ */ |
@@ -5,4 +5,6 @@ import type { ExpectationAmount } from '../../types/PipelineJson/Expectations'; | ||
* | ||
* Note: This does not check only for the presence of newlines, but also for the length of the standard line. | ||
* | ||
* @public exported from `@promptbook/utils` | ||
*/ | ||
export declare function countLines(text: string): ExpectationAmount; |
@@ -5,4 +5,6 @@ import type { ExpectationAmount } from '../../types/PipelineJson/Expectations'; | ||
* | ||
* Note: This does not check only for the count of newlines, but also for the length of the standard line and length of the standard page. | ||
* | ||
* @public exported from `@promptbook/utils` | ||
*/ | ||
export declare function countPages(text: string): ExpectationAmount; |
{ | ||
"name": "@promptbook/browser", | ||
"version": "0.74.0-13", | ||
"version": "0.75.0-0", | ||
"description": "Supercharge your use of large language models", | ||
@@ -56,3 +56,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.74.0-13" | ||
"@promptbook/core": "0.75.0-0" | ||
}, | ||
@@ -59,0 +59,0 @@ "dependencies": { |
@@ -21,3 +21,3 @@ <!-- โ ๏ธ WARNING: This code has been generated so that any manual changes will be overwritten --> | ||
- ๐ Working on [the **Book** language v1](https://github.com/webgptorg/book) | ||
- ๐ Working [the **Book** language v1.0.0](https://github.com/webgptorg/book) | ||
- ๐ Support of `.docx`, `.doc` and `.pdf` documents | ||
@@ -24,0 +24,0 @@ - โจ **Support of [OpenAI o1 model](https://openai.com/o1/)** |
@@ -23,3 +23,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-12'; | ||
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-13'; | ||
/** | ||
@@ -26,0 +26,0 @@ * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine |
620748
597
12374