@promptbook/core 0.75.8 → 0.75.10
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 +8 -2
- package/esm/index.es.js +4 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/formfactors/index.d.ts +1 -0
- package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +1 -0
- package/esm/typings/src/types/typeAliases.d.ts +10 -0
- package/package.json +1 -1
- package/umd/index.umd.js +4 -1
- package/umd/index.umd.js.map +1 -1
|
@@ -8,6 +8,7 @@ import type { string_markdown } from '../types/typeAliases';
|
|
|
8
8
|
import type { string_markdown_section } from '../types/typeAliases';
|
|
9
9
|
import type { string_markdown_section_content } from '../types/typeAliases';
|
|
10
10
|
import type { string_markdown_text } from '../types/typeAliases';
|
|
11
|
+
import type { string_markdown_codeblock_language } from '../types/typeAliases';
|
|
11
12
|
import { addAutoGeneratedSection } from '../utils/markdown/addAutoGeneratedSection';
|
|
12
13
|
import { createMarkdownChart } from '../utils/markdown/createMarkdownChart';
|
|
13
14
|
import { createMarkdownTable } from '../utils/markdown/createMarkdownTable';
|
|
@@ -31,6 +32,7 @@ export type { string_markdown };
|
|
|
31
32
|
export type { string_markdown_section };
|
|
32
33
|
export type { string_markdown_section_content };
|
|
33
34
|
export type { string_markdown_text };
|
|
35
|
+
export type { string_markdown_codeblock_language };
|
|
34
36
|
export { addAutoGeneratedSection };
|
|
35
37
|
export { createMarkdownChart };
|
|
36
38
|
export { createMarkdownTable };
|
|
@@ -150,6 +150,7 @@ import type { string_markdown } from '../types/typeAliases';
|
|
|
150
150
|
import type { string_markdown_section } from '../types/typeAliases';
|
|
151
151
|
import type { string_markdown_section_content } from '../types/typeAliases';
|
|
152
152
|
import type { string_markdown_text } from '../types/typeAliases';
|
|
153
|
+
import type { string_markdown_codeblock_language } from '../types/typeAliases';
|
|
153
154
|
import type { string_promptbook_documentation_url } from '../types/typeAliases';
|
|
154
155
|
import type { string_domain } from '../types/typeAliases';
|
|
155
156
|
import type { string_tdl } from '../types/typeAliases';
|
|
@@ -403,6 +404,7 @@ export type { string_markdown };
|
|
|
403
404
|
export type { string_markdown_section };
|
|
404
405
|
export type { string_markdown_section_content };
|
|
405
406
|
export type { string_markdown_text };
|
|
407
|
+
export type { string_markdown_codeblock_language };
|
|
406
408
|
export type { string_promptbook_documentation_url };
|
|
407
409
|
export type { string_domain };
|
|
408
410
|
export type { string_tdl };
|
|
@@ -74,6 +74,7 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
74
74
|
};
|
|
75
75
|
}, {
|
|
76
76
|
readonly name: "SHEETS";
|
|
77
|
+
readonly aliasNames: readonly ["SHEETS", "SHEET"];
|
|
77
78
|
readonly description: "@@@";
|
|
78
79
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176";
|
|
79
80
|
readonly pipelineInterface: {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const SheetsFormfactorDefinition: {
|
|
7
7
|
readonly name: "SHEETS";
|
|
8
|
+
readonly aliasNames: readonly ["SHEETS", "SHEET"];
|
|
8
9
|
readonly description: "@@@";
|
|
9
10
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176";
|
|
10
11
|
readonly pipelineInterface: {
|
|
@@ -208,6 +208,16 @@ export type string_markdown_section_content = string;
|
|
|
208
208
|
* @public exported from `@promptbook/markdown-utils`
|
|
209
209
|
*/
|
|
210
210
|
export type string_markdown_text = string;
|
|
211
|
+
/**
|
|
212
|
+
* Semantic helper
|
|
213
|
+
*
|
|
214
|
+
* Markdown code block language
|
|
215
|
+
*
|
|
216
|
+
* For example ```js -> `"js"`
|
|
217
|
+
*
|
|
218
|
+
* @public exported from `@promptbook/markdown-utils`
|
|
219
|
+
*/
|
|
220
|
+
export type string_markdown_codeblock_language = 'book' | 'markdown' | 'text' | 'javascript' | 'css' | 'json';
|
|
211
221
|
/**
|
|
212
222
|
* @@@
|
|
213
223
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
27
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.9';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -7094,6 +7094,7 @@
|
|
|
7094
7094
|
*/
|
|
7095
7095
|
var SheetsFormfactorDefinition = {
|
|
7096
7096
|
name: 'SHEETS',
|
|
7097
|
+
aliasNames: ['SHEETS', 'SHEET'],
|
|
7097
7098
|
description: "@@@",
|
|
7098
7099
|
documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176",
|
|
7099
7100
|
pipelineInterface: {
|
|
@@ -8238,6 +8239,7 @@
|
|
|
8238
8239
|
* @private internal base for `ScriptLanguage`
|
|
8239
8240
|
*/
|
|
8240
8241
|
var SUPPORTED_SCRIPT_LANGUAGES = ['javascript', 'typescript', 'python'];
|
|
8242
|
+
// <- TODO: [🏥] DRY
|
|
8241
8243
|
|
|
8242
8244
|
/**
|
|
8243
8245
|
* Utility function to extract all list items from markdown
|
|
@@ -8966,6 +8968,7 @@
|
|
|
8966
8968
|
var parameter = pipelineJson.parameters.find(function (parameter) { return parameter.name === parameterName; });
|
|
8967
8969
|
if (!parameter) {
|
|
8968
8970
|
throw new UnexpectedError("Could not find {".concat(parameterName, "}"));
|
|
8971
|
+
// <- TODO: !!!!!! This causes problems when {knowledge} and other reserved parameters are used
|
|
8969
8972
|
}
|
|
8970
8973
|
if (parameter.isInput) {
|
|
8971
8974
|
return 'input';
|