@botpress/cli 0.0.14 → 0.0.17
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/dist/api-client.js +1 -0
- package/dist/api-client.js.map +7 -0
- package/dist/code-generation/action.js +1 -0
- package/dist/code-generation/action.js.map +7 -0
- package/dist/code-generation/channel.js +1 -0
- package/dist/code-generation/channel.js.map +7 -0
- package/dist/code-generation/configuration.js +1 -0
- package/dist/code-generation/configuration.js.map +7 -0
- package/dist/code-generation/const.js +1 -0
- package/dist/code-generation/const.js.map +7 -0
- package/dist/code-generation/event.js +1 -0
- package/dist/code-generation/event.js.map +7 -0
- package/dist/code-generation/index.js +1 -0
- package/dist/code-generation/index.js.map +7 -0
- package/dist/code-generation/integration-impl.js +1 -0
- package/dist/code-generation/integration-impl.js.map +7 -0
- package/dist/code-generation/integration-instance.js +1 -0
- package/dist/code-generation/integration-instance.js.map +7 -0
- package/dist/code-generation/integration-secret.js +1 -0
- package/dist/code-generation/integration-secret.js.map +7 -0
- package/dist/code-generation/message.js +1 -0
- package/dist/code-generation/message.js.map +7 -0
- package/dist/code-generation/module.js +1 -0
- package/dist/code-generation/module.js.map +7 -0
- package/dist/code-generation/typings.js +1 -0
- package/dist/code-generation/typings.js.map +7 -0
- package/dist/command-definitions.js +1 -0
- package/dist/command-definitions.js.map +7 -0
- package/dist/command-implementations/add-command.js +1 -0
- package/dist/command-implementations/add-command.js.map +7 -0
- package/dist/command-implementations/base-command.js +8 -1
- package/dist/command-implementations/base-command.js.map +7 -0
- package/dist/command-implementations/bot-commands.js +1 -0
- package/dist/command-implementations/bot-commands.js.map +7 -0
- package/dist/command-implementations/build-command.js +1 -0
- package/dist/command-implementations/build-command.js.map +7 -0
- package/dist/command-implementations/bundle-command.js +1 -0
- package/dist/command-implementations/bundle-command.js.map +7 -0
- package/dist/command-implementations/deploy-command.js +21 -3
- package/dist/command-implementations/deploy-command.js.map +7 -0
- package/dist/command-implementations/dev-command.js +1 -0
- package/dist/command-implementations/dev-command.js.map +7 -0
- package/dist/command-implementations/gen-command.js +1 -0
- package/dist/command-implementations/gen-command.js.map +7 -0
- package/dist/command-implementations/global-command.js +1 -0
- package/dist/command-implementations/global-command.js.map +7 -0
- package/dist/command-implementations/index.js +1 -0
- package/dist/command-implementations/index.js.map +7 -0
- package/dist/command-implementations/init-command.js +1 -0
- package/dist/command-implementations/init-command.js.map +7 -0
- package/dist/command-implementations/integration-commands.js +1 -0
- package/dist/command-implementations/integration-commands.js.map +7 -0
- package/dist/command-implementations/login-command.js +1 -0
- package/dist/command-implementations/login-command.js.map +7 -0
- package/dist/command-implementations/logout-command.js +1 -0
- package/dist/command-implementations/logout-command.js.map +7 -0
- package/dist/command-implementations/project-command.js +1 -0
- package/dist/command-implementations/project-command.js.map +7 -0
- package/dist/command-implementations/serve-command.js +1 -0
- package/dist/command-implementations/serve-command.js.map +7 -0
- package/dist/command-tree.js +1 -0
- package/dist/command-tree.js.map +7 -0
- package/dist/config.js +1 -0
- package/dist/config.js.map +7 -0
- package/dist/consts.js +1 -0
- package/dist/consts.js.map +7 -0
- package/dist/errors.js +27 -1
- package/dist/errors.js.map +7 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +7 -0
- package/dist/init.js +1 -0
- package/dist/init.js.map +7 -0
- package/dist/integration-ref.js +1 -0
- package/dist/integration-ref.js.map +7 -0
- package/dist/logger/base-logger.js +1 -0
- package/dist/logger/base-logger.js.map +7 -0
- package/dist/logger/index.js +1 -0
- package/dist/logger/index.js.map +7 -0
- package/dist/register-yargs.js +1 -0
- package/dist/register-yargs.js.map +7 -0
- package/dist/typings.js +1 -0
- package/dist/typings.js.map +7 -0
- package/dist/utils/cache-utils.js +1 -0
- package/dist/utils/cache-utils.js.map +7 -0
- package/dist/utils/case-utils.js +1 -0
- package/dist/utils/case-utils.js.map +7 -0
- package/dist/utils/esbuild-utils.js +1 -0
- package/dist/utils/esbuild-utils.js.map +7 -0
- package/dist/utils/event-emitter.js +1 -0
- package/dist/utils/event-emitter.js.map +7 -0
- package/dist/utils/file-watcher.js +1 -0
- package/dist/utils/file-watcher.js.map +7 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +7 -0
- package/dist/utils/path-utils.js +1 -0
- package/dist/utils/path-utils.js.map +7 -0
- package/dist/utils/prompt-utils.js +1 -0
- package/dist/utils/prompt-utils.js.map +7 -0
- package/dist/utils/require-utils.js +1 -0
- package/dist/utils/require-utils.js.map +7 -0
- package/dist/worker/child-entrypoint.js +1 -0
- package/dist/worker/child-entrypoint.js.map +7 -0
- package/dist/worker/child-wrapper.js +1 -0
- package/dist/worker/child-wrapper.js.map +7 -0
- package/dist/worker/config.js +1 -0
- package/dist/worker/config.js.map +7 -0
- package/dist/worker/index.js +1 -0
- package/dist/worker/index.js.map +7 -0
- package/dist/worker/is-child.js +1 -0
- package/dist/worker/is-child.js.map +7 -0
- package/dist/worker/worker-state.js +1 -0
- package/dist/worker/worker-state.js.map +7 -0
- package/dist/worker/worker.js +1 -0
- package/dist/worker/worker.js.map +7 -0
- package/package.json +13 -13
- package/templates/echo-bot/package.json +1 -2
- package/templates/empty-integration/integration.definition.ts +2 -2
- package/templates/empty-integration/package.json +1 -2
- package/build.ts +0 -12
- package/dist/app/api-utils.js +0 -112
- package/dist/app/base.js +0 -71
- package/dist/app/cache.js +0 -95
- package/dist/app/errors.js +0 -156
- package/dist/app/file-paths.js +0 -79
- package/dist/app/generator/action.js +0 -76
- package/dist/app/generator/channel.js +0 -51
- package/dist/app/generator/configuration.js +0 -40
- package/dist/app/generator/const.js +0 -31
- package/dist/app/generator/event.js +0 -47
- package/dist/app/generator/index.js +0 -83
- package/dist/app/generator/integration-impl.js +0 -147
- package/dist/app/generator/integration-instance.js +0 -85
- package/dist/app/generator/message.js +0 -47
- package/dist/app/generator/module.js +0 -115
- package/dist/app/generator/strings.js +0 -38
- package/dist/app/generator/typings.js +0 -16
- package/dist/app/index.js +0 -82
- package/dist/app/integration-ref.js +0 -61
- package/dist/app/project.js +0 -486
- package/dist/app/typings.js +0 -16
- package/dist/app/user.js +0 -237
- package/dist/esbuild-utils.js +0 -89
- package/dist/event-emitter.js +0 -62
- package/dist/path-utils.js +0 -72
- package/dist/require-utils.js +0 -49
- package/dist/update-notif.js +0 -47
- package/dist/utils/string-utils.js +0 -68
- package/dist/watcher.js +0 -68
- package/templates/echo-bot/.botpress/project.cache.json +0 -1
package/dist/watcher.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
-
var watcher_exports = {};
|
|
26
|
-
__export(watcher_exports, {
|
|
27
|
-
FileWatcher: () => FileWatcher
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(watcher_exports);
|
|
30
|
-
var import_watcher = __toESM(require("@parcel/watcher"));
|
|
31
|
-
var import_event_emitter = require("./event-emitter");
|
|
32
|
-
class FileWatcher {
|
|
33
|
-
constructor(subscription, errorEmitter) {
|
|
34
|
-
this.subscription = subscription;
|
|
35
|
-
this.errorEmitter = errorEmitter;
|
|
36
|
-
}
|
|
37
|
-
static async watch(dir, fn, opt) {
|
|
38
|
-
const eventEmitter = new import_event_emitter.EventEmitter();
|
|
39
|
-
const subscription = await import_watcher.default.subscribe(
|
|
40
|
-
dir,
|
|
41
|
-
async (err, events) => {
|
|
42
|
-
if (err) {
|
|
43
|
-
eventEmitter.emit("error", err);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
await fn(events);
|
|
48
|
-
} catch (thrown) {
|
|
49
|
-
eventEmitter.emit("error", thrown);
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
opt
|
|
53
|
-
);
|
|
54
|
-
return new FileWatcher(subscription, eventEmitter);
|
|
55
|
-
}
|
|
56
|
-
async close() {
|
|
57
|
-
await this.subscription.unsubscribe();
|
|
58
|
-
this.errorEmitter.emit("close", {});
|
|
59
|
-
}
|
|
60
|
-
wait = () => new Promise((resolve, reject) => {
|
|
61
|
-
this.errorEmitter.once("error", reject);
|
|
62
|
-
this.errorEmitter.once("close", resolve);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
-
0 && (module.exports = {
|
|
67
|
-
FileWatcher
|
|
68
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|