@botpress/cli 1.0.0 ā 1.0.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 +9 -9
- package/dist/code-generation/consts.js +6 -1
- package/dist/code-generation/consts.js.map +2 -2
- package/dist/code-generation/integration-package/integration-package-definition/configuration-module.js +1 -1
- package/dist/code-generation/integration-package/integration-package-definition/configuration-module.js.map +2 -2
- package/package.json +3 -3
- package/templates/empty-bot/.botpress/implementation/index.ts +2 -2
- package/templates/empty-bot/.botpress/implementation/typings/events/index.ts +2 -2
- package/templates/empty-bot/.botpress/implementation/typings/index.ts +2 -2
- package/templates/empty-bot/.botpress/implementation/typings/integrations/index.ts +2 -2
- package/templates/empty-bot/.botpress/implementation/typings/states/index.ts +2 -2
- package/templates/empty-bot/package.json +2 -2
- package/templates/empty-integration/.botpress/implementation/index.ts +2 -2
- package/templates/empty-integration/.botpress/implementation/typings/actions/index.ts +2 -2
- package/templates/empty-integration/.botpress/implementation/typings/channels/index.ts +2 -2
- package/templates/empty-integration/.botpress/implementation/typings/configurations/index.ts +2 -2
- package/templates/empty-integration/.botpress/implementation/typings/entities/index.ts +2 -2
- package/templates/empty-integration/.botpress/implementation/typings/events/index.ts +2 -2
- package/templates/empty-integration/.botpress/implementation/typings/index.ts +2 -2
- package/templates/empty-integration/.botpress/implementation/typings/states/index.ts +2 -2
- package/templates/empty-integration/.botpress/secrets/index.ts +2 -2
- package/templates/empty-integration/package.json +2 -2
- package/templates/hello-world/.botpress/implementation/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/input.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/output.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/actions/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/channels/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/configurations/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/entities/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/events/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/index.ts +2 -2
- package/templates/hello-world/.botpress/implementation/typings/states/index.ts +2 -2
- package/templates/hello-world/.botpress/secrets/index.ts +2 -2
- package/templates/hello-world/package.json +2 -2
- package/templates/webhook-message/.botpress/implementation/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/actions/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/channels/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/messages/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/messages/text.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/configuration/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/configurations/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/entities/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/events/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/index.ts +2 -2
- package/templates/webhook-message/.botpress/implementation/typings/states/index.ts +2 -2
- package/templates/webhook-message/.botpress/secrets/index.ts +2 -2
- package/templates/webhook-message/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cli@1.0.
|
|
2
|
+
> @botpress/cli@1.0.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.0.
|
|
6
|
+
> @botpress/cli@1.0.2 bundle /home/runner/work/botpress/botpress/packages/cli
|
|
7
7
|
> ts-node -T build.ts
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @botpress/cli@1.0.
|
|
10
|
+
> @botpress/cli@1.0.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.0.
|
|
14
|
-
š¤ Botpress CLI v1.0.
|
|
15
|
-
š¤ Botpress CLI v1.0.
|
|
16
|
-
š¤ Botpress CLI v1.0.
|
|
13
|
+
š¤ Botpress CLI v1.0.2
|
|
14
|
+
š¤ Botpress CLI v1.0.2
|
|
15
|
+
š¤ Botpress CLI v1.0.2
|
|
16
|
+
š¤ Botpress CLI v1.0.2
|
|
17
|
+
[2K[1Gā Generating typings for bot...[2K[1Gā Typings available at .botpress
|
|
17
18
|
[2K[1Gā Generating typings for integration hello-world...[2K[1Gā Generating typings for integration empty-integration...[2K[1Gā Typings available at .botpress
|
|
18
|
-
[2K[1Gā Generating typings for
|
|
19
|
-
[2K[1Gā Typings available at .botpress
|
|
19
|
+
[2K[1Gā Generating typings for integration webhook-message...[2K[1Gā Typings available at .botpress
|
|
20
20
|
[2K[1Gā Typings available at .botpress
|
|
@@ -25,7 +25,12 @@ __export(consts_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(consts_exports);
|
|
27
27
|
__reExport(consts_exports, require("../consts"), module.exports);
|
|
28
|
-
const GENERATED_HEADER =
|
|
28
|
+
const GENERATED_HEADER = [
|
|
29
|
+
"/* eslint-disable */",
|
|
30
|
+
"/* tslint:disable */",
|
|
31
|
+
"// This file is generated. Do not edit it manually.",
|
|
32
|
+
""
|
|
33
|
+
].join("\n");
|
|
29
34
|
const INDEX_FILE = "index.ts";
|
|
30
35
|
const DEFAULT_EXPORT_NAME = "default";
|
|
31
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/code-generation/consts.ts"],
|
|
4
|
-
"sourcesContent": ["export * from '../consts'\nexport const GENERATED_HEADER = '/* tslint:disable
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAc,sBAAd;AACO,MAAM,mBAAmB;
|
|
4
|
+
"sourcesContent": ["export * from '../consts'\nexport const GENERATED_HEADER = [\n '/* eslint-disable */',\n '/* tslint:disable */',\n '// This file is generated. Do not edit it manually.',\n '',\n].join('\\n')\nexport const INDEX_FILE = 'index.ts'\nexport const DEFAULT_EXPORT_NAME = 'default'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAc,sBAAd;AACO,MAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,IAAI;AACJ,MAAM,aAAa;AACnB,MAAM,sBAAsB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -42,7 +42,7 @@ class DefaultConfigurationModule extends import_module.Module {
|
|
|
42
42
|
this._configuration = _configuration;
|
|
43
43
|
}
|
|
44
44
|
async getContent() {
|
|
45
|
-
if (!this._configuration
|
|
45
|
+
if (!this._configuration.schema) {
|
|
46
46
|
return [
|
|
47
47
|
"/** Default Configuration of the Integration */",
|
|
48
48
|
`export const ${this.exportName} = z.object({})`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/code-generation/integration-package/integration-package-definition/configuration-module.ts"],
|
|
4
|
-
"sourcesContent": ["import { INDEX_FILE } from '../../consts'\nimport { jsonSchemaToTypescriptZuiSchema } from '../../generators'\nimport { Module } from '../../module'\nimport * as strings from '../../strings'\nimport * as types from './typings'\n\nexport class DefaultConfigurationModule extends Module {\n public constructor(private _configuration: types.ApiConfigurationDefinition
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAC3B,wBAAgD;AAChD,oBAAuB;AACvB,cAAyB;AAGlB,MAAM,mCAAmC,qBAAO;AAAA,EAC9C,YAAoB,
|
|
4
|
+
"sourcesContent": ["import { INDEX_FILE } from '../../consts'\nimport { jsonSchemaToTypescriptZuiSchema } from '../../generators'\nimport { Module } from '../../module'\nimport * as strings from '../../strings'\nimport * as types from './typings'\n\nexport class DefaultConfigurationModule extends Module {\n public constructor(private _configuration: types.ApiConfigurationDefinition) {\n const name = 'configuration'\n const exportName = strings.varName(name)\n super({\n path: INDEX_FILE,\n exportName,\n })\n }\n\n public async getContent() {\n if (!this._configuration.schema) {\n return [\n //\n '/** Default Configuration of the Integration */',\n `export const ${this.exportName} = z.object({})`,\n ].join('\\n')\n }\n return jsonSchemaToTypescriptZuiSchema(this._configuration.schema, this.exportName)\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAC3B,wBAAgD;AAChD,oBAAuB;AACvB,cAAyB;AAGlB,MAAM,mCAAmC,qBAAO;AAAA,EAC9C,YAAoB,gBAAkD;AAC3E,UAAM,OAAO;AACb,UAAM,aAAa,QAAQ,QAAQ,IAAI;AACvC,UAAM;AAAA,MACJ,MAAM;AAAA,MACN;AAAA,IACF,CAAC;AANwB;AAAA,EAO3B;AAAA,EAEA,MAAa,aAAa;AACxB,QAAI,CAAC,KAAK,eAAe,QAAQ;AAC/B,aAAO;AAAA,QAEL;AAAA,QACA,gBAAgB,KAAK;AAAA,MACvB,EAAE,KAAK,IAAI;AAAA,IACb;AACA,eAAO,mDAAgC,KAAK,eAAe,QAAQ,KAAK,UAAU;AAAA,EACpF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Botpress CLI",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "pnpm run bundle && pnpm run template:gen",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"main": "dist/index.js",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apidevtools/json-schema-ref-parser": "^11.7.0",
|
|
24
|
-
"@botpress/client": "0.33.
|
|
25
|
-
"@botpress/sdk": "1.0.
|
|
24
|
+
"@botpress/client": "0.33.1",
|
|
25
|
+
"@botpress/sdk": "1.0.1",
|
|
26
26
|
"@bpinternal/const": "^0.0.20",
|
|
27
27
|
"@bpinternal/tunnel": "^0.1.1",
|
|
28
28
|
"@bpinternal/yargs-extra": "^0.0.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
/* tslint:disable */
|
|
2
|
-
// This file is generated
|
|
3
|
-
// Do not edit this file
|
|
3
|
+
// This file is generated. Do not edit it manually.
|
|
4
4
|
|
|
5
5
|
import * as configuration from "./configuration/index"
|
|
6
6
|
import * as configurations from "./configurations/index"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
/* tslint:disable */
|
|
2
|
-
// This file is generated
|
|
3
|
-
// Do not edit this file
|
|
3
|
+
// This file is generated. Do not edit it manually.
|
|
4
4
|
|
|
5
5
|
import * as configuration from "./configuration/index"
|
|
6
6
|
import * as configurations from "./configurations/index"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
/* tslint:disable */
|
|
2
|
-
// This file is generated
|
|
3
|
-
// Do not edit this file
|
|
3
|
+
// This file is generated. Do not edit it manually.
|
|
4
4
|
|
|
5
5
|
import * as configuration from "./configuration/index"
|
|
6
6
|
import * as configurations from "./configurations/index"
|