@promptbook/website-crawler 0.74.0-8 → 0.75.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -11
- package/esm/index.es.js +44 -29
- package/esm/index.es.js.map +1 -1
- package/esm/typings/promptbook-collection/index.d.ts +3 -0
- package/esm/typings/src/_packages/core.index.d.ts +17 -1
- package/esm/typings/src/_packages/types.index.d.ts +10 -0
- package/esm/typings/src/_packages/utils.index.d.ts +4 -0
- package/esm/typings/src/cli/cli-commands/run.d.ts +1 -1
- package/esm/typings/src/cli/main.d.ts +4 -1
- package/esm/typings/src/cli/promptbookCli.d.ts +1 -1
- package/esm/typings/src/cli/test/ptbk.d.ts +1 -1
- package/esm/typings/src/collection/collectionToJson.test.d.ts +1 -1
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -1
- package/esm/typings/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +1 -1
- package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +2 -2
- package/esm/typings/src/commands/FORMFACTOR/FormfactorCommand.d.ts +11 -0
- package/esm/typings/src/commands/FORMFACTOR/formfactorCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +11 -0
- package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -1
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +2 -0
- package/esm/typings/src/commands/index.d.ts +1 -1
- package/esm/typings/src/config.d.ts +6 -0
- package/esm/typings/src/conversion/pipelineJsonToString.d.ts +3 -3
- package/esm/typings/src/conversion/pipelineStringToJson.d.ts +2 -2
- package/esm/typings/src/conversion/pipelineStringToJsonSync.d.ts +2 -2
- package/esm/typings/src/conversion/utils/stringifyPipelineJson.d.ts +1 -1
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +7 -7
- package/esm/typings/src/formats/_common/FormatDefinition.d.ts +1 -1
- package/esm/typings/src/formats/_common/FormatSubvalueDefinition.d.ts +1 -1
- package/esm/typings/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +29 -0
- package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +5 -0
- package/esm/typings/src/formfactors/_common/string_formfactor_name.d.ts +5 -0
- package/esm/typings/src/formfactors/chat/ChatFormfactorDefinition.d.ts +10 -0
- package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +10 -0
- package/esm/typings/src/formfactors/index.d.ts +14 -0
- package/esm/typings/src/pipeline/pipeline-interface/PipelineInterface.d.ts +22 -0
- package/esm/typings/src/pipeline/pipeline-interface/getPipelineInterface.d.ts +11 -0
- package/esm/typings/src/pipeline/pipeline-interface/isPipelineImplementingInterface.d.ts +25 -0
- package/esm/typings/src/pipeline/pipeline-interface/isPipelineInterfacesEqual.d.ts +11 -0
- package/esm/typings/src/storage/blackhole/BlackholeStorage.d.ts +33 -0
- package/esm/typings/src/storage/memory/MemoryStorage.d.ts +1 -1
- package/esm/typings/src/storage/{memory/utils → utils}/PrefixStorage.d.ts +1 -1
- package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +11 -4
- package/esm/typings/src/types/PipelineJson/PreparationJson.d.ts +1 -1
- package/esm/typings/src/types/Prompt.d.ts +1 -1
- package/esm/typings/src/types/typeAliases.d.ts +2 -2
- package/esm/typings/src/utils/expectation-counters/config.d.ts +12 -0
- package/esm/typings/src/utils/expectation-counters/countLines.d.ts +2 -0
- package/esm/typings/src/utils/expectation-counters/countPages.d.ts +2 -0
- package/package.json +2 -2
- package/umd/index.umd.js +44 -29
- package/umd/index.umd.js.map +1 -1
- /package/esm/typings/src/storage/{memory → local-storage}/utils/makePromptbookStorageFromWebStorage.d.ts +0 -0
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Build responsible, controlled and transparent applications on top of LLM models!
|
|
|
18
18
|
|
|
19
19
|
## ✨ New Features
|
|
20
20
|
|
|
21
|
-
- 💙 Working
|
|
21
|
+
- 💙 Working [the **Book** language v1.0.0](https://github.com/webgptorg/book)
|
|
22
22
|
- 📚 Support of `.docx`, `.doc` and `.pdf` documents
|
|
23
23
|
- ✨ **Support of [OpenAI o1 model](https://openai.com/o1/)**
|
|
24
24
|
|
|
@@ -148,7 +148,7 @@ Following is the documentation and blueprint of the Book language.
|
|
|
148
148
|
|
|
149
149
|
File is designed to be easy to read and write. It is strict subset of markdown. It is designed to be understandable by both humans and machines and without specific knowledge of the language.
|
|
150
150
|
|
|
151
|
-
It has file with `.
|
|
151
|
+
It has file with `.book.md` or `.book` extension with `UTF-8` non BOM encoding.
|
|
152
152
|
|
|
153
153
|
As it is source code, it can leverage all the features of version control systems like git and does not suffer from the problems of binary formats, proprietary formats, or no-code solutions.
|
|
154
154
|
|
|
@@ -241,11 +241,6 @@ Or you can install them separately:
|
|
|
241
241
|
|
|
242
242
|
## 📚 Dictionary
|
|
243
243
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
244
|
### 📚 Dictionary
|
|
250
245
|
|
|
251
246
|
The following glossary is used to clarify certain concepts:
|
|
@@ -261,8 +256,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
261
256
|
- **Retrieval-augmented generation** is a machine learning paradigm where a model generates text by retrieving relevant information from a large database of text. This approach combines the benefits of generative models and retrieval models.
|
|
262
257
|
- **Longtail** refers to non-common or rare events, items, or entities that are not well-represented in the training data of machine learning models. Longtail items are often challenging for models to predict accurately.
|
|
263
258
|
|
|
264
|
-
|
|
265
|
-
|
|
266
259
|
_Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
267
260
|
|
|
268
261
|
#### Promptbook core
|
|
@@ -323,8 +316,6 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
|
|
|
323
316
|
- [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
|
|
324
317
|
- [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
|
|
325
318
|
|
|
326
|
-
|
|
327
|
-
|
|
328
319
|
### Terms specific to Promptbook TypeScript implementation
|
|
329
320
|
|
|
330
321
|
- Anonymous mode
|
package/esm/index.es.js
CHANGED
|
@@ -24,7 +24,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
24
24
|
*
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-
|
|
27
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-13';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
*/
|
|
@@ -1184,7 +1184,7 @@ function getScraperIntermediateSource(source, options) {
|
|
|
1184
1184
|
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
1185
1185
|
*/
|
|
1186
1186
|
|
|
1187
|
-
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.
|
|
1187
|
+
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.book.md",formfactorName:"GENERIC",parameters:[{name:"knowledgeContent",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledgePieces",description:"The knowledge JSON object",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {knowledgeContent}",resultingParameterName:"knowledgePieces",dependentParameterNames:["knowledgeContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.book.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.book.md",formfactorName:"GENERIC",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {knowledgePieceContent}",resultingParameterName:"keywords",dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.book.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.book.md",formfactorName:"GENERIC",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {knowledgePieceContent}",resultingParameterName:"title",expectations:{words:{min:1,max:8}},dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-title.book.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-persona.book.md",formfactorName:"GENERIC",parameters:[{name:"availableModelNames",description:"List of available model names separated by comma (,)",isInput:true,isOutput:false},{name:"personaDescription",description:"Description of the persona",isInput:true,isOutput:false},{name:"modelRequirements",description:"Specific requirements for the model",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"make-model-requirements",title:"Make modelRequirements",content:"You are experienced AI engineer, you need to create virtual assistant.\nWrite\n\n## Example\n\n```json\n{\n\"modelName\": \"gpt-4o\",\n\"systemMessage\": \"You are experienced AI engineer and helpfull assistant.\",\n\"temperature\": 0.7\n}\n```\n\n## Instructions\n\n- Your output format is JSON object\n- Write just the JSON object, no other text should be present\n- It contains the following keys:\n - `modelName`: The name of the model to use\n - `systemMessage`: The system message to provide context to the model\n - `temperature`: The sampling temperature to use\n\n### Key `modelName`\n\nPick from the following models:\n\n- {availableModelNames}\n\n### Key `systemMessage`\n\nThe system message is used to communicate instructions or provide context to the model at the beginning of a conversation. It is displayed in a different format compared to user messages, helping the model understand its role in the conversation. The system message typically guides the model's behavior, sets the tone, or specifies desired output from the model. By utilizing the system message effectively, users can steer the model towards generating more accurate and relevant responses.\n\nFor example:\n\n> You are an experienced AI engineer and helpful assistant.\n\n> You are a friendly and knowledgeable chatbot.\n\n### Key `temperature`\n\nThe sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.\n\nYou can pick a value between 0 and 2. For example:\n\n- `0.1`: Low temperature, extremely conservative and deterministic\n- `0.5`: Medium temperature, balanced between conservative and creative\n- `1.0`: High temperature, creative and bit random\n- `1.5`: Very high temperature, extremely creative and often chaotic and unpredictable\n- `2.0`: Maximum temperature, completely random and unpredictable, for some extreme creative use cases\n\n# The assistant\n\nTake this description of the persona:\n\n> {personaDescription}",resultingParameterName:"modelRequirements",format:"JSON",dependentParameterNames:["availableModelNames","personaDescription"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-persona.book.md"}];
|
|
1188
1188
|
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Prettify the html code
|
|
@@ -1232,13 +1232,13 @@ function capitalize(word) {
|
|
|
1232
1232
|
/**
|
|
1233
1233
|
* Converts promptbook in JSON format to string format
|
|
1234
1234
|
*
|
|
1235
|
-
* @param pipelineJson Promptbook in JSON format (.
|
|
1236
|
-
* @returns Promptbook in string format (.
|
|
1235
|
+
* @param pipelineJson Promptbook in JSON format (.book.json)
|
|
1236
|
+
* @returns Promptbook in string format (.book.md)
|
|
1237
1237
|
* @public exported from `@promptbook/core`
|
|
1238
1238
|
*/
|
|
1239
1239
|
function pipelineJsonToString(pipelineJson) {
|
|
1240
1240
|
var e_1, _a, e_2, _b, e_3, _c, e_4, _d, e_5, _e, e_6, _f;
|
|
1241
|
-
var title = pipelineJson.title, pipelineUrl = pipelineJson.pipelineUrl,
|
|
1241
|
+
var title = pipelineJson.title, pipelineUrl = pipelineJson.pipelineUrl, bookVersion = pipelineJson.bookVersion, description = pipelineJson.description, parameters = pipelineJson.parameters, templates = pipelineJson.templates;
|
|
1242
1242
|
var pipelineString = "# ".concat(title);
|
|
1243
1243
|
if (description) {
|
|
1244
1244
|
pipelineString += '\n\n';
|
|
@@ -1248,8 +1248,10 @@ function pipelineJsonToString(pipelineJson) {
|
|
|
1248
1248
|
if (pipelineUrl) {
|
|
1249
1249
|
commands.push("PIPELINE URL ".concat(pipelineUrl));
|
|
1250
1250
|
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1251
|
+
if (bookVersion !== "undefined") {
|
|
1252
|
+
commands.push("BOOK VERSION ".concat(bookVersion));
|
|
1253
|
+
}
|
|
1254
|
+
// TODO: [main] !!!!! This increases size of the bundle and is probbably not necessary
|
|
1253
1255
|
pipelineString = prettifyMarkdown(pipelineString);
|
|
1254
1256
|
try {
|
|
1255
1257
|
for (var _g = __values(parameters.filter(function (_a) {
|
|
@@ -1429,7 +1431,7 @@ function templateParameterJsonToString(templateParameterJson) {
|
|
|
1429
1431
|
* TODO: [🧠] Is there a way to auto-detect missing features in pipelineJsonToString
|
|
1430
1432
|
* TODO: [🏛] Maybe make some markdown builder
|
|
1431
1433
|
* TODO: [🏛] Escape all
|
|
1432
|
-
* TODO: [🧠] Should be in generated .
|
|
1434
|
+
* TODO: [🧠] Should be in generated .book.md file GENERATOR_WARNING
|
|
1433
1435
|
*/
|
|
1434
1436
|
|
|
1435
1437
|
/**
|
|
@@ -1576,7 +1578,7 @@ function isValidPipelineUrl(url) {
|
|
|
1576
1578
|
if (!url.startsWith('https://')) {
|
|
1577
1579
|
return false;
|
|
1578
1580
|
}
|
|
1579
|
-
if (!(url.endsWith('.book.md') || url.endsWith('.book') || url.endsWith('.
|
|
1581
|
+
if (!(url.endsWith('.book.md') || url.endsWith('.book') || url.endsWith('.book.md') || url.endsWith('.ptbk'))) {
|
|
1580
1582
|
return false;
|
|
1581
1583
|
}
|
|
1582
1584
|
if (url.includes('#')) {
|
|
@@ -1645,9 +1647,9 @@ function validatePipelineCore(pipeline) {
|
|
|
1645
1647
|
// <- Note: [🚲]
|
|
1646
1648
|
throw new PipelineLogicError(spaceTrim(function (block) { return "\n Invalid promptbook URL \"".concat(pipeline.pipelineUrl, "\"\n\n ").concat(block(pipelineIdentification), "\n "); }));
|
|
1647
1649
|
}
|
|
1648
|
-
if (pipeline.
|
|
1650
|
+
if (pipeline.bookVersion !== undefined && !isValidPromptbookVersion(pipeline.bookVersion)) {
|
|
1649
1651
|
// <- Note: [🚲]
|
|
1650
|
-
throw new PipelineLogicError(spaceTrim(function (block) { return "\n Invalid Promptbook Version \"".concat(pipeline.
|
|
1652
|
+
throw new PipelineLogicError(spaceTrim(function (block) { return "\n Invalid Promptbook Version \"".concat(pipeline.bookVersion, "\"\n\n ").concat(block(pipelineIdentification), "\n "); }));
|
|
1651
1653
|
}
|
|
1652
1654
|
// TODO: [🧠] Maybe do here some propper JSON-schema / ZOD checking
|
|
1653
1655
|
if (!Array.isArray(pipeline.parameters)) {
|
|
@@ -2878,7 +2880,7 @@ function preparePersona(personaDescription, tools, options) {
|
|
|
2878
2880
|
collection = createCollectionFromJson.apply(void 0, __spreadArray([], __read(PipelineCollection), false));
|
|
2879
2881
|
_b = createPipelineExecutor;
|
|
2880
2882
|
_c = {};
|
|
2881
|
-
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-persona.
|
|
2883
|
+
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-persona.book.md')];
|
|
2882
2884
|
case 1:
|
|
2883
2885
|
preparePersonaExecutor = _b.apply(void 0, [(_c.pipeline = _d.sent(),
|
|
2884
2886
|
_c.tools = tools,
|
|
@@ -3383,13 +3385,14 @@ TODO: [🧊] This is how it can look in future
|
|
|
3383
3385
|
*/
|
|
3384
3386
|
function clonePipeline(pipeline) {
|
|
3385
3387
|
// Note: Not using spread operator (...) because @@@
|
|
3386
|
-
var pipelineUrl = pipeline.pipelineUrl, sourceFile = pipeline.sourceFile, title = pipeline.title,
|
|
3388
|
+
var pipelineUrl = pipeline.pipelineUrl, sourceFile = pipeline.sourceFile, title = pipeline.title, bookVersion = pipeline.bookVersion, description = pipeline.description, formfactorName = pipeline.formfactorName, parameters = pipeline.parameters, templates = pipeline.templates, knowledgeSources = pipeline.knowledgeSources, knowledgePieces = pipeline.knowledgePieces, personas = pipeline.personas, preparations = pipeline.preparations;
|
|
3387
3389
|
return {
|
|
3388
3390
|
pipelineUrl: pipelineUrl,
|
|
3389
3391
|
sourceFile: sourceFile,
|
|
3390
3392
|
title: title,
|
|
3391
|
-
|
|
3393
|
+
bookVersion: bookVersion,
|
|
3392
3394
|
description: description,
|
|
3395
|
+
formfactorName: formfactorName,
|
|
3393
3396
|
parameters: parameters,
|
|
3394
3397
|
templates: templates,
|
|
3395
3398
|
knowledgeSources: knowledgeSources,
|
|
@@ -4333,30 +4336,42 @@ function countCharacters(text) {
|
|
|
4333
4336
|
return text.length;
|
|
4334
4337
|
}
|
|
4335
4338
|
|
|
4339
|
+
/**
|
|
4340
|
+
* Number of characters per standard line with 11pt Arial font size.
|
|
4341
|
+
*
|
|
4342
|
+
* @public exported from `@promptbook/utils`
|
|
4343
|
+
*/
|
|
4344
|
+
var CHARACTERS_PER_STANDARD_LINE = 63;
|
|
4345
|
+
/**
|
|
4346
|
+
* Number of lines per standard A4 page with 11pt Arial font size and standard margins and spacing.
|
|
4347
|
+
*
|
|
4348
|
+
* @public exported from `@promptbook/utils`
|
|
4349
|
+
*/
|
|
4350
|
+
var LINES_PER_STANDARD_PAGE = 44;
|
|
4351
|
+
|
|
4336
4352
|
/**
|
|
4337
4353
|
* Counts number of lines in the text
|
|
4338
4354
|
*
|
|
4355
|
+
* Note: This does not check only for the presence of newlines, but also for the length of the standard line.
|
|
4356
|
+
*
|
|
4339
4357
|
* @public exported from `@promptbook/utils`
|
|
4340
4358
|
*/
|
|
4341
4359
|
function countLines(text) {
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
return
|
|
4360
|
+
text = text.replace('\r\n', '\n');
|
|
4361
|
+
text = text.replace('\r', '\n');
|
|
4362
|
+
var lines = text.split('\n');
|
|
4363
|
+
return lines.reduce(function (count, line) { return count + Math.ceil(line.length / CHARACTERS_PER_STANDARD_LINE); }, 0);
|
|
4346
4364
|
}
|
|
4347
4365
|
|
|
4348
4366
|
/**
|
|
4349
4367
|
* Counts number of pages in the text
|
|
4350
4368
|
*
|
|
4369
|
+
* 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.
|
|
4370
|
+
*
|
|
4351
4371
|
* @public exported from `@promptbook/utils`
|
|
4352
4372
|
*/
|
|
4353
4373
|
function countPages(text) {
|
|
4354
|
-
|
|
4355
|
-
return 0;
|
|
4356
|
-
}
|
|
4357
|
-
var pagesByLinesCount = Math.ceil(countLines(text) / 44);
|
|
4358
|
-
var pagesByCharactersCount = Math.ceil(countCharacters(text) / 2772);
|
|
4359
|
-
return Math.max(pagesByLinesCount, pagesByCharactersCount);
|
|
4374
|
+
return Math.ceil(countLines(text) / LINES_PER_STANDARD_PAGE);
|
|
4360
4375
|
}
|
|
4361
4376
|
|
|
4362
4377
|
/**
|
|
@@ -4636,7 +4651,7 @@ function executeAttempts(options) {
|
|
|
4636
4651
|
promptTitle: template.title,
|
|
4637
4652
|
promptMessage: replaceParameters(template.description || '', parameters),
|
|
4638
4653
|
defaultValue: replaceParameters(preparedContent, parameters),
|
|
4639
|
-
// TODO: [🧠] !! Figure out how to define placeholder in .
|
|
4654
|
+
// TODO: [🧠] !! Figure out how to define placeholder in .book.md file
|
|
4640
4655
|
placeholder: undefined,
|
|
4641
4656
|
priority: priority,
|
|
4642
4657
|
}))];
|
|
@@ -5202,7 +5217,7 @@ function executePipeline(options) {
|
|
|
5202
5217
|
pipelineUrl: preparedPipeline.pipelineUrl,
|
|
5203
5218
|
title: preparedPipeline.title,
|
|
5204
5219
|
promptbookUsedVersion: PROMPTBOOK_ENGINE_VERSION,
|
|
5205
|
-
promptbookRequestedVersion: preparedPipeline.
|
|
5220
|
+
promptbookRequestedVersion: preparedPipeline.bookVersion,
|
|
5206
5221
|
description: preparedPipeline.description,
|
|
5207
5222
|
promptExecutions: [],
|
|
5208
5223
|
};
|
|
@@ -5598,7 +5613,7 @@ var MarkdownScraper = /** @class */ (function () {
|
|
|
5598
5613
|
collection = createCollectionFromJson.apply(void 0, __spreadArray([], __read(PipelineCollection), false));
|
|
5599
5614
|
_d = createPipelineExecutor;
|
|
5600
5615
|
_g = {};
|
|
5601
|
-
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.
|
|
5616
|
+
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.book.md')];
|
|
5602
5617
|
case 1:
|
|
5603
5618
|
prepareKnowledgeFromMarkdownExecutor = _d.apply(void 0, [(_g.pipeline = _k.sent(),
|
|
5604
5619
|
_g.tools = {
|
|
@@ -5607,7 +5622,7 @@ var MarkdownScraper = /** @class */ (function () {
|
|
|
5607
5622
|
_g)]);
|
|
5608
5623
|
_e = createPipelineExecutor;
|
|
5609
5624
|
_h = {};
|
|
5610
|
-
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-knowledge-title.
|
|
5625
|
+
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-knowledge-title.book.md')];
|
|
5611
5626
|
case 2:
|
|
5612
5627
|
prepareTitleExecutor = _e.apply(void 0, [(_h.pipeline = _k.sent(),
|
|
5613
5628
|
_h.tools = {
|
|
@@ -5616,7 +5631,7 @@ var MarkdownScraper = /** @class */ (function () {
|
|
|
5616
5631
|
_h)]);
|
|
5617
5632
|
_f = createPipelineExecutor;
|
|
5618
5633
|
_j = {};
|
|
5619
|
-
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-knowledge-keywords.
|
|
5634
|
+
return [4 /*yield*/, collection.getPipelineByUrl('https://promptbook.studio/promptbook/prepare-knowledge-keywords.book.md')];
|
|
5620
5635
|
case 3:
|
|
5621
5636
|
prepareKeywordsExecutor = _f.apply(void 0, [(_j.pipeline = _k.sent(),
|
|
5622
5637
|
_j.tools = {
|