@promptbook/core 0.72.0-10 → 0.72.0-12
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/esm/index.es.js +3 -3
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/execution/assertsExecutionSuccessful.d.ts +2 -2
- package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +3 -2
- package/umd/index.umd.js.map +1 -1
|
@@ -76,6 +76,7 @@ import { unpreparePipeline } from '../prepare/unpreparePipeline';
|
|
|
76
76
|
import { prepareKnowledgePieces } from '../scrapers/_common/prepareKnowledgePieces';
|
|
77
77
|
import { $scrapersMetadataRegister } from '../scrapers/_common/register/$scrapersMetadataRegister';
|
|
78
78
|
import { $scrapersRegister } from '../scrapers/_common/register/$scrapersRegister';
|
|
79
|
+
import { makeKnowledgeSourceHandler } from '../scrapers/_common/utils/makeKnowledgeSourceHandler';
|
|
79
80
|
import { _LegacyDocumentScraperMetadataRegistration } from '../scrapers/document-legacy/register-metadata';
|
|
80
81
|
import { _DocumentScraperMetadataRegistration } from '../scrapers/document/register-metadata';
|
|
81
82
|
import { _MarkdownScraperMetadataRegistration } from '../scrapers/markdown/register-metadata';
|
|
@@ -166,6 +167,7 @@ export { unpreparePipeline };
|
|
|
166
167
|
export { prepareKnowledgePieces };
|
|
167
168
|
export { $scrapersMetadataRegister };
|
|
168
169
|
export { $scrapersRegister };
|
|
170
|
+
export { makeKnowledgeSourceHandler };
|
|
169
171
|
export { _LegacyDocumentScraperMetadataRegistration };
|
|
170
172
|
export { _DocumentScraperMetadataRegistration };
|
|
171
173
|
export { _MarkdownScraperMetadataRegistration };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PipelineExecutorResult } from './PipelineExecutorResult';
|
|
2
2
|
/**
|
|
3
3
|
* Asserts that the execution of a Promptbook is successful
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ import type { PipelineExecutor } from './PipelineExecutor';
|
|
|
6
6
|
* @throws {PipelineExecutionError} If the execution is not successful or if multiple errors occurred
|
|
7
7
|
* @public exported from `@promptbook/core`
|
|
8
8
|
*/
|
|
9
|
-
export declare function assertsExecutionSuccessful(executionResult: Pick<
|
|
9
|
+
export declare function assertsExecutionSuccessful(executionResult: Pick<PipelineExecutorResult, 'isSuccessful' | 'errors'>): void;
|
|
10
10
|
/**
|
|
11
11
|
* TODO: [🧠] Can this return type be better typed than void
|
|
12
12
|
*/
|
|
@@ -6,6 +6,6 @@ import type { ScraperSourceHandler } from '../Scraper';
|
|
|
6
6
|
/**
|
|
7
7
|
* @@@
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
9
|
+
* @public exported from `@promptbook/core`
|
|
10
10
|
*/
|
|
11
11
|
export declare function makeKnowledgeSourceHandler(knowledgeSource: SetOptional<KnowledgeSourceJson, 'name'>, tools: Pick<ExecutionTools, 'fs'>, options?: Pick<PrepareAndScrapeOptions, 'rootDirname' | 'isVerbose'>): Promise<ScraperSourceHandler>;
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* The version of the Promptbook library
|
|
18
18
|
*/
|
|
19
|
-
var PROMPTBOOK_VERSION = '0.72.0-
|
|
19
|
+
var PROMPTBOOK_VERSION = '0.72.0-11';
|
|
20
20
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
21
21
|
|
|
22
22
|
/*! *****************************************************************************
|
|
@@ -5373,7 +5373,7 @@
|
|
|
5373
5373
|
/**
|
|
5374
5374
|
* @@@
|
|
5375
5375
|
*
|
|
5376
|
-
* @
|
|
5376
|
+
* @public exported from `@promptbook/core`
|
|
5377
5377
|
*/
|
|
5378
5378
|
function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
5379
5379
|
var _a;
|
|
@@ -9928,6 +9928,7 @@
|
|
|
9928
9928
|
exports.isPipelinePrepared = isPipelinePrepared;
|
|
9929
9929
|
exports.joinLlmExecutionTools = joinLlmExecutionTools;
|
|
9930
9930
|
exports.limitTotalUsage = limitTotalUsage;
|
|
9931
|
+
exports.makeKnowledgeSourceHandler = makeKnowledgeSourceHandler;
|
|
9931
9932
|
exports.pipelineJsonToString = pipelineJsonToString;
|
|
9932
9933
|
exports.pipelineStringToJson = pipelineStringToJson;
|
|
9933
9934
|
exports.pipelineStringToJsonSync = pipelineStringToJsonSync;
|