@botpress/cli 5.6.0 → 5.6.1
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,44 +1,44 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cli@5.6.
|
|
2
|
+
> @botpress/cli@5.6.1 build /home/runner/work/botpress/botpress/packages/cli
|
|
3
3
|
> pnpm run build:types && pnpm run bundle && pnpm run template:gen
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cli@5.6.
|
|
6
|
+
> @botpress/cli@5.6.1 build:types /home/runner/work/botpress/botpress/packages/cli
|
|
7
7
|
> tsc -p ./tsconfig.build.json
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @botpress/cli@5.6.
|
|
10
|
+
> @botpress/cli@5.6.1 bundle /home/runner/work/botpress/botpress/packages/cli
|
|
11
11
|
> ts-node -T build.ts
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
> @botpress/cli@5.6.
|
|
14
|
+
> @botpress/cli@5.6.1 template:gen /home/runner/work/botpress/botpress/packages/cli
|
|
15
15
|
> pnpm -r --stream -F @bp-templates/* exec bp gen
|
|
16
16
|
|
|
17
|
-
🤖 Botpress CLI v5.6.
|
|
18
|
-
🤖 Botpress CLI v5.6.0
|
|
19
|
-
🤖 Botpress CLI v5.6.0
|
|
17
|
+
🤖 Botpress CLI v5.6.1
|
|
20
18
|
● Checking if cli is up to date
|
|
19
|
+
🤖 Botpress CLI v5.6.1
|
|
21
20
|
● Checking if cli is up to date
|
|
21
|
+
🤖 Botpress CLI v5.6.1
|
|
22
22
|
● Checking if cli is up to date
|
|
23
|
-
🤖 Botpress CLI v5.6.
|
|
23
|
+
🤖 Botpress CLI v5.6.1
|
|
24
24
|
● Checking if cli is up to date
|
|
25
25
|
● Checking if sdk is up to date
|
|
26
26
|
● Checking if sdk is up to date
|
|
27
27
|
● Checking if sdk is up to date
|
|
28
28
|
● Checking if sdk is up to date
|
|
29
|
-
○ Generating typings for
|
|
30
|
-
○ Generating typings for integration hello-world...
|
|
29
|
+
○ Generating typings for plugin empty-plugin...
|
|
31
30
|
✓ Typings available at .botpress
|
|
32
31
|
|
|
32
|
+
○ Generating typings for integration hello-world...
|
|
33
33
|
○ Generating typings for bot...
|
|
34
34
|
✓ Typings available at .botpress
|
|
35
35
|
|
|
36
|
+
○ Generating typings for integration empty-integration...
|
|
36
37
|
✓ Typings available at .botpress
|
|
37
38
|
|
|
38
|
-
○ Generating typings for plugin empty-plugin...
|
|
39
39
|
✓ Typings available at .botpress
|
|
40
40
|
|
|
41
|
-
🤖 Botpress CLI v5.6.
|
|
41
|
+
🤖 Botpress CLI v5.6.1
|
|
42
42
|
● Checking if cli is up to date
|
|
43
43
|
● Checking if sdk is up to date
|
|
44
44
|
○ Generating typings for integration webhook-message...
|
|
@@ -65,7 +65,13 @@ class ReadCommand extends import_project_command.ProjectCommand {
|
|
|
65
65
|
throw new errors.BotpressCLIError("Unsupported project type");
|
|
66
66
|
}
|
|
67
67
|
_parseIntegration = async (integrationDef) => {
|
|
68
|
-
const
|
|
68
|
+
const {
|
|
69
|
+
// Ignored fields ("code", "icon", "readme") so the terminal output doesn't get polluted
|
|
70
|
+
code: _code,
|
|
71
|
+
icon: _icon,
|
|
72
|
+
readme: _readme,
|
|
73
|
+
...parsed
|
|
74
|
+
} = await this.prepareCreateIntegrationBody(integrationDef);
|
|
69
75
|
parsed.interfaces = utils.records.mapValues(integrationDef.interfaces ?? {}, (iface) => ({
|
|
70
76
|
...iface,
|
|
71
77
|
id: iface.id ?? ""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/command-implementations/read-command.ts"],
|
|
4
|
-
"sourcesContent": ["import * as sdk from '@botpress/sdk'\nimport * as apiUtils from '../api'\nimport commandDefinitions from '../command-definitions'\nimport * as errors from '../errors'\nimport * as utils from '../utils'\nimport { ProjectCommand } from './project-command'\n\nexport type ReadCommandDefinition = typeof commandDefinitions.read\nexport class ReadCommand extends ProjectCommand<ReadCommandDefinition> {\n public async run(): Promise<void> {\n const { projectType, resolveProjectDefinition } = this.readProjectDefinitionFromFS()\n if (projectType === 'integration') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parseIntegration(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n if (projectType === 'interface') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parseInterface(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n if (projectType === 'bot') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parseBot(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n if (projectType === 'plugin') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parsePlugin(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n\n throw new errors.BotpressCLIError('Unsupported project type')\n }\n\n private _parseIntegration = async (integrationDef: sdk.IntegrationDefinition) => {\n const parsed = await
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,eAA0B;AAE1B,aAAwB;AACxB,YAAuB;AACvB,6BAA+B;AAGxB,MAAM,oBAAoB,sCAAsC;AAAA,EACrE,MAAa,MAAqB;AAChC,UAAM,EAAE,aAAa,yBAAyB,IAAI,KAAK,4BAA4B;AACnF,QAAI,gBAAgB,eAAe;AACjC,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,kBAAkB,WAAW,UAAU;AACjE,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AACA,QAAI,gBAAgB,aAAa;AAC/B,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,gBAAgB,WAAW,UAAU;AAC/D,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AACA,QAAI,gBAAgB,OAAO;AACzB,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,UAAU,WAAW,UAAU;AACzD,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AACA,QAAI,gBAAgB,UAAU;AAC5B,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,aAAa,WAAW,UAAU;AAC5D,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AAEA,UAAM,IAAI,OAAO,iBAAiB,0BAA0B;AAAA,EAC9D;AAAA,EAEQ,oBAAoB,OAAO,mBAA8C;AAC/E,UAAM,
|
|
4
|
+
"sourcesContent": ["import * as sdk from '@botpress/sdk'\nimport * as apiUtils from '../api'\nimport commandDefinitions from '../command-definitions'\nimport * as errors from '../errors'\nimport * as utils from '../utils'\nimport { ProjectCommand } from './project-command'\n\nexport type ReadCommandDefinition = typeof commandDefinitions.read\nexport class ReadCommand extends ProjectCommand<ReadCommandDefinition> {\n public async run(): Promise<void> {\n const { projectType, resolveProjectDefinition } = this.readProjectDefinitionFromFS()\n if (projectType === 'integration') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parseIntegration(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n if (projectType === 'interface') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parseInterface(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n if (projectType === 'bot') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parseBot(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n if (projectType === 'plugin') {\n const projectDef = await resolveProjectDefinition()\n const parsed = await this._parsePlugin(projectDef.definition)\n this.logger.json(parsed)\n return\n }\n\n throw new errors.BotpressCLIError('Unsupported project type')\n }\n\n private _parseIntegration = async (integrationDef: sdk.IntegrationDefinition) => {\n const {\n // Ignored fields (\"code\", \"icon\", \"readme\") so the terminal output doesn't get polluted\n code: _code,\n icon: _icon,\n readme: _readme,\n ...parsed\n } = await this.prepareCreateIntegrationBody(integrationDef)\n\n parsed.interfaces = utils.records.mapValues(integrationDef.interfaces ?? {}, (iface) => ({\n ...iface,\n id: iface.id ?? '',\n }))\n return parsed\n }\n\n private _parseInterface = async (interfaceDef: sdk.InterfaceDefinition) => {\n return await apiUtils.prepareCreateInterfaceBody(interfaceDef)\n }\n\n private _parseBot = async (botDef: sdk.BotDefinition) => {\n return await apiUtils.prepareCreateBotBody(botDef)\n }\n\n private _parsePlugin = async (pluginDef: sdk.PluginDefinition) => {\n return await apiUtils.prepareCreatePluginBody(pluginDef)\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,eAA0B;AAE1B,aAAwB;AACxB,YAAuB;AACvB,6BAA+B;AAGxB,MAAM,oBAAoB,sCAAsC;AAAA,EACrE,MAAa,MAAqB;AAChC,UAAM,EAAE,aAAa,yBAAyB,IAAI,KAAK,4BAA4B;AACnF,QAAI,gBAAgB,eAAe;AACjC,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,kBAAkB,WAAW,UAAU;AACjE,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AACA,QAAI,gBAAgB,aAAa;AAC/B,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,gBAAgB,WAAW,UAAU;AAC/D,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AACA,QAAI,gBAAgB,OAAO;AACzB,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,UAAU,WAAW,UAAU;AACzD,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AACA,QAAI,gBAAgB,UAAU;AAC5B,YAAM,aAAa,MAAM,yBAAyB;AAClD,YAAM,SAAS,MAAM,KAAK,aAAa,WAAW,UAAU;AAC5D,WAAK,OAAO,KAAK,MAAM;AACvB;AAAA,IACF;AAEA,UAAM,IAAI,OAAO,iBAAiB,0BAA0B;AAAA,EAC9D;AAAA,EAEQ,oBAAoB,OAAO,mBAA8C;AAC/E,UAAM;AAAA;AAAA,MAEJ,MAAM;AAAA,MACN,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,GAAG;AAAA,IACL,IAAI,MAAM,KAAK,6BAA6B,cAAc;AAE1D,WAAO,aAAa,MAAM,QAAQ,UAAU,eAAe,cAAc,CAAC,GAAG,CAAC,WAAW;AAAA,MACvF,GAAG;AAAA,MACH,IAAI,MAAM,MAAM;AAAA,IAClB,EAAE;AACF,WAAO;AAAA,EACT;AAAA,EAEQ,kBAAkB,OAAO,iBAA0C;AACzE,WAAO,MAAM,SAAS,2BAA2B,YAAY;AAAA,EAC/D;AAAA,EAEQ,YAAY,OAAO,WAA8B;AACvD,WAAO,MAAM,SAAS,qBAAqB,MAAM;AAAA,EACnD;AAAA,EAEQ,eAAe,OAAO,cAAoC;AAChE,WAAO,MAAM,SAAS,wBAAwB,SAAS;AAAA,EACzD;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|