@botpress/cli 1.6.1 ā 1.6.2
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cli@1.6.
|
|
2
|
+
> @botpress/cli@1.6.2 build /home/runner/work/botpress/botpress/packages/cli
|
|
3
3
|
> pnpm run bundle && pnpm run template:gen
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cli@1.6.
|
|
6
|
+
> @botpress/cli@1.6.2 bundle /home/runner/work/botpress/botpress/packages/cli
|
|
7
7
|
> ts-node -T build.ts
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @botpress/cli@1.6.
|
|
10
|
+
> @botpress/cli@1.6.2 template:gen /home/runner/work/botpress/botpress/packages/cli
|
|
11
11
|
> pnpm -r --stream -F @bp-templates/* exec bp gen
|
|
12
12
|
|
|
13
|
-
š¤ Botpress CLI v1.6.
|
|
14
|
-
š¤ Botpress CLI v1.6.
|
|
15
|
-
š¤ Botpress CLI v1.6.
|
|
16
|
-
š¤ Botpress CLI v1.6.
|
|
17
|
-
[2K[1Gā Generating typings for integration hello-world...[2K[1Gā Generating typings for bot...[2K[1Gā Typings available at .botpress
|
|
18
|
-
[2K[1Gā Typings available at .botpress
|
|
13
|
+
š¤ Botpress CLI v1.6.2
|
|
14
|
+
š¤ Botpress CLI v1.6.2
|
|
15
|
+
š¤ Botpress CLI v1.6.2
|
|
16
|
+
š¤ Botpress CLI v1.6.2
|
|
19
17
|
[2K[1Gā Generating typings for integration webhook-message...[2K[1Gā Generating typings for integration empty-integration...[2K[1Gā Typings available at .botpress
|
|
18
|
+
[2K[1Gā Generating typings for bot...[2K[1Gā Generating typings for integration hello-world...[2K[1Gā Typings available at .botpress
|
|
19
|
+
[2K[1Gā Typings available at .botpress
|
|
20
20
|
[2K[1Gā Typings available at .botpress
|
|
@@ -30,10 +30,78 @@ __export(strings_exports, {
|
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(strings_exports);
|
|
32
32
|
var utils = __toESM(require("../utils"));
|
|
33
|
+
const TYPESCRIPT_RESERVED = /* @__PURE__ */ new Set([
|
|
34
|
+
"break",
|
|
35
|
+
"as",
|
|
36
|
+
"any",
|
|
37
|
+
"case",
|
|
38
|
+
"implements",
|
|
39
|
+
"boolean",
|
|
40
|
+
"catch",
|
|
41
|
+
"interface",
|
|
42
|
+
"constructor",
|
|
43
|
+
"class",
|
|
44
|
+
"let",
|
|
45
|
+
"declare",
|
|
46
|
+
"const",
|
|
47
|
+
"package",
|
|
48
|
+
"get",
|
|
49
|
+
"continue",
|
|
50
|
+
"private",
|
|
51
|
+
"module",
|
|
52
|
+
"debugger",
|
|
53
|
+
"protected",
|
|
54
|
+
"require",
|
|
55
|
+
"default",
|
|
56
|
+
"public",
|
|
57
|
+
"number",
|
|
58
|
+
"delete",
|
|
59
|
+
"static",
|
|
60
|
+
"set",
|
|
61
|
+
"do",
|
|
62
|
+
"yield",
|
|
63
|
+
"string",
|
|
64
|
+
"else",
|
|
65
|
+
"symbol",
|
|
66
|
+
"enum",
|
|
67
|
+
"type",
|
|
68
|
+
"export",
|
|
69
|
+
"from",
|
|
70
|
+
"extends",
|
|
71
|
+
"of",
|
|
72
|
+
"false",
|
|
73
|
+
"finally",
|
|
74
|
+
"for",
|
|
75
|
+
"function",
|
|
76
|
+
"if",
|
|
77
|
+
"import",
|
|
78
|
+
"in",
|
|
79
|
+
"instanceof",
|
|
80
|
+
"new",
|
|
81
|
+
"null",
|
|
82
|
+
"return",
|
|
83
|
+
"super",
|
|
84
|
+
"switch",
|
|
85
|
+
"this",
|
|
86
|
+
"throw",
|
|
87
|
+
"true",
|
|
88
|
+
"try",
|
|
89
|
+
"typeof",
|
|
90
|
+
"var",
|
|
91
|
+
"void",
|
|
92
|
+
"while",
|
|
93
|
+
"with"
|
|
94
|
+
]);
|
|
95
|
+
const escapeReserved = (str) => {
|
|
96
|
+
if (TYPESCRIPT_RESERVED.has(str)) {
|
|
97
|
+
return `_${str}`;
|
|
98
|
+
}
|
|
99
|
+
return str;
|
|
100
|
+
};
|
|
33
101
|
const apply = (str, ...transforms) => transforms.reduce((acc, transform) => transform(acc), str);
|
|
34
102
|
const typeName = (name) => apply(name, utils.casing.to.pascalCase);
|
|
35
|
-
const importAlias = (name) => apply(name, utils.casing.to.camelCase);
|
|
36
|
-
const varName = (name) => apply(name, utils.casing.to.camelCase);
|
|
103
|
+
const importAlias = (name) => apply(name, utils.casing.to.camelCase, escapeReserved);
|
|
104
|
+
const varName = (name) => apply(name, utils.casing.to.camelCase, escapeReserved);
|
|
37
105
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
106
|
0 && (module.exports = {
|
|
39
107
|
importAlias,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/code-generation/strings.ts"],
|
|
4
|
-
"sourcesContent": ["import * as utils from '../utils'\ntype StrTransform = (str: string) => string\n\nconst apply = (str: string, ...transforms: StrTransform[]) => transforms.reduce((acc, transform) => transform(acc), str)\n\nexport const typeName = (name: string) => apply(name, utils.casing.to.pascalCase)\nexport const importAlias = (name: string) => apply(name, utils.casing.to.camelCase)\nexport const varName = (name: string) => apply(name, utils.casing.to.camelCase)\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AAGvB,MAAM,QAAQ,CAAC,QAAgB,eAA+B,WAAW,OAAO,CAAC,KAAK,cAAc,UAAU,GAAG,GAAG,GAAG;AAEhH,MAAM,WAAW,CAAC,SAAiB,MAAM,MAAM,MAAM,OAAO,GAAG,UAAU;AACzE,MAAM,cAAc,CAAC,SAAiB,MAAM,MAAM,MAAM,OAAO,GAAG,
|
|
4
|
+
"sourcesContent": ["import * as utils from '../utils'\ntype StrTransform = (str: string) => string\n\nconst TYPESCRIPT_RESERVED = new Set([\n 'break',\n 'as',\n 'any',\n 'case',\n 'implements',\n 'boolean',\n 'catch',\n 'interface',\n 'constructor',\n 'class',\n 'let',\n 'declare',\n 'const',\n 'package',\n 'get',\n 'continue',\n 'private',\n 'module',\n 'debugger',\n 'protected',\n 'require',\n 'default',\n 'public',\n 'number',\n 'delete',\n 'static',\n 'set',\n 'do',\n 'yield',\n 'string',\n 'else',\n 'symbol',\n 'enum',\n 'type',\n 'export',\n 'from',\n 'extends',\n 'of',\n 'false',\n 'finally',\n 'for',\n 'function',\n 'if',\n 'import',\n 'in',\n 'instanceof',\n 'new',\n 'null',\n 'return',\n 'super',\n 'switch',\n 'this',\n 'throw',\n 'true',\n 'try',\n 'typeof',\n 'var',\n 'void',\n 'while',\n 'with',\n])\nconst escapeReserved = (str: string): string => {\n if (TYPESCRIPT_RESERVED.has(str)) {\n return `_${str}`\n }\n return str\n}\n\nconst apply = (str: string, ...transforms: StrTransform[]) => transforms.reduce((acc, transform) => transform(acc), str)\n\nexport const typeName = (name: string) => apply(name, utils.casing.to.pascalCase)\nexport const importAlias = (name: string) => apply(name, utils.casing.to.camelCase, escapeReserved)\nexport const varName = (name: string) => apply(name, utils.casing.to.camelCase, escapeReserved)\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AAGvB,MAAM,sBAAsB,oBAAI,IAAI;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA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