@promptbook/cli 0.75.9 → 0.76.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 +10 -11
- package/esm/index.es.js +4 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/gemini.index.d.ts +2 -0
- 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/_packages/vercel.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
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*
|
|
50
50
|
* @see https://github.com/webgptorg/promptbook
|
|
51
51
|
*/
|
|
52
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
52
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.10';
|
|
53
53
|
/**
|
|
54
54
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
55
55
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -6941,6 +6941,7 @@
|
|
|
6941
6941
|
*/
|
|
6942
6942
|
var SheetsFormfactorDefinition = {
|
|
6943
6943
|
name: 'SHEETS',
|
|
6944
|
+
aliasNames: ['SHEETS', 'SHEET'],
|
|
6944
6945
|
description: "@@@",
|
|
6945
6946
|
documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176",
|
|
6946
6947
|
pipelineInterface: {
|
|
@@ -8085,6 +8086,7 @@
|
|
|
8085
8086
|
* @private internal base for `ScriptLanguage`
|
|
8086
8087
|
*/
|
|
8087
8088
|
var SUPPORTED_SCRIPT_LANGUAGES = ['javascript', 'typescript', 'python'];
|
|
8089
|
+
// <- TODO: [🏥] DRY
|
|
8088
8090
|
|
|
8089
8091
|
/**
|
|
8090
8092
|
* Utility function to extract all list items from markdown
|
|
@@ -10951,6 +10953,7 @@
|
|
|
10951
10953
|
var parameter = pipelineJson.parameters.find(function (parameter) { return parameter.name === parameterName; });
|
|
10952
10954
|
if (!parameter) {
|
|
10953
10955
|
throw new UnexpectedError("Could not find {".concat(parameterName, "}"));
|
|
10956
|
+
// <- TODO: !!!!!! This causes problems when {knowledge} and other reserved parameters are used
|
|
10954
10957
|
}
|
|
10955
10958
|
if (parameter.isInput) {
|
|
10956
10959
|
return 'input';
|