@botonic/nx-plugin 2.30.0 → 2.31.1-alpha.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.
Files changed (127) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/executors.json +0 -5
  3. package/index.js +44 -0
  4. package/{src/executors/build-node-app/executor.js → libs/botonic/nx-plugin/src/executors/build-node-app/executor-impl.js} +3 -3
  5. package/libs/botonic/nx-plugin/src/executors/build-node-app/executor.js +27 -0
  6. package/{src/executors/delete-bot/executor.js → libs/botonic/nx-plugin/src/executors/delete-bot/executor-impl.js} +3 -5
  7. package/libs/botonic/nx-plugin/src/executors/delete-bot/executor.js +27 -0
  8. package/{src/executors/deploy-netlify-snapshot/executor.js → libs/botonic/nx-plugin/src/executors/deploy-netlify-snapshot/executor-impl.js} +3 -3
  9. package/libs/botonic/nx-plugin/src/executors/deploy-netlify-snapshot/executor.js +27 -0
  10. package/libs/botonic/nx-plugin/src/executors/deploy-to-hubtype/executor-impl.js +172 -0
  11. package/libs/botonic/nx-plugin/src/executors/deploy-to-hubtype/executor.js +27 -0
  12. package/{src/executors/e2e-webchat/executor.js → libs/botonic/nx-plugin/src/executors/e2e-webchat/executor-impl.js} +5 -5
  13. package/libs/botonic/nx-plugin/src/executors/e2e-webchat/executor.js +27 -0
  14. package/{src/executors/integrate-provider/executor.js → libs/botonic/nx-plugin/src/executors/integrate-provider/executor-impl.js} +3 -5
  15. package/libs/botonic/nx-plugin/src/executors/integrate-provider/executor.js +27 -0
  16. package/{src/executors/login-to-hubtype/executor.js → libs/botonic/nx-plugin/src/executors/login-to-hubtype/executor-impl.js} +3 -5
  17. package/libs/botonic/nx-plugin/src/executors/login-to-hubtype/executor.js +27 -0
  18. package/{src/executors/logout-from-hubtype/executor.js → libs/botonic/nx-plugin/src/executors/logout-from-hubtype/executor-impl.js} +5 -5
  19. package/libs/botonic/nx-plugin/src/executors/logout-from-hubtype/executor.js +27 -0
  20. package/{src/executors/run-lambda/executor.js → libs/botonic/nx-plugin/src/executors/run-lambda/executor-impl.js} +3 -3
  21. package/libs/botonic/nx-plugin/src/executors/run-lambda/executor.js +27 -0
  22. package/{src/executors/serve-bot/executor.js → libs/botonic/nx-plugin/src/executors/serve-bot/executor-impl.js} +145 -27
  23. package/libs/botonic/nx-plugin/src/executors/serve-bot/executor.js +27 -0
  24. package/{src/generators/action/generator.js → libs/botonic/nx-plugin/src/generators/action/generator-impl.js} +5 -5
  25. package/libs/botonic/nx-plugin/src/generators/action/generator.js +27 -0
  26. package/{src/generators/bot-app/generator.js → libs/botonic/nx-plugin/src/generators/bot-app/generator-impl.js} +6 -5
  27. package/libs/botonic/nx-plugin/src/generators/bot-app/generator.js +34 -0
  28. package/{src/generators/custom-message/generator.js → libs/botonic/nx-plugin/src/generators/custom-message/generator-impl.js} +5 -5
  29. package/libs/botonic/nx-plugin/src/generators/custom-message/generator.js +27 -0
  30. package/{src/generators/preset/generator.js → libs/botonic/nx-plugin/src/generators/preset/generator-impl.js} +5 -5
  31. package/libs/botonic/nx-plugin/src/generators/preset/generator.js +34 -0
  32. package/{src/generators/remove-custom-message/generator.js → libs/botonic/nx-plugin/src/generators/remove-custom-message/generator-impl.js} +5 -5
  33. package/libs/botonic/nx-plugin/src/generators/remove-custom-message/generator.js +27 -0
  34. package/{src/generators/webview/generator.js → libs/botonic/nx-plugin/src/generators/webview/generator-impl.js} +5 -5
  35. package/libs/botonic/nx-plugin/src/generators/webview/generator.js +27 -0
  36. package/{src → libs/botonic/nx-plugin/src}/index.js +3 -1
  37. package/{src → libs/botonic/nx-plugin/src}/lib/api-service.js +150 -82
  38. package/{src → libs/botonic/nx-plugin/src}/lib/constants.js +6 -9
  39. package/{src → libs/botonic/nx-plugin/src}/lib/credentials-handler.js +42 -24
  40. package/libs/botonic/nx-plugin/src/lib/delegate/delegate-executor.js +119 -0
  41. package/libs/botonic/nx-plugin/src/lib/delegate/delegate-generator.js +128 -0
  42. package/libs/botonic/nx-plugin/src/lib/serve-mode/index.js +183 -0
  43. package/{src → libs/botonic/nx-plugin/src}/lib/util/executor-helpers.js +494 -106
  44. package/{src → libs/botonic/nx-plugin/src}/plugin.js +5 -14
  45. package/migrations.json +1 -8
  46. package/package.json +7 -4
  47. package/src/executors/build-node-app/executor-impl.d.ts +5 -0
  48. package/src/executors/build-node-app/executor.d.ts +4 -2
  49. package/src/executors/delete-bot/executor-impl.d.ts +5 -0
  50. package/src/executors/delete-bot/executor.d.ts +4 -2
  51. package/src/executors/deploy-netlify-snapshot/executor-impl.d.ts +8 -0
  52. package/src/executors/deploy-netlify-snapshot/executor.d.ts +4 -5
  53. package/src/executors/deploy-to-hubtype/executor-impl.d.ts +5 -0
  54. package/src/executors/deploy-to-hubtype/executor.d.ts +4 -2
  55. package/src/executors/e2e-webchat/botonic-package-publish.spec.ts +7 -11
  56. package/src/executors/e2e-webchat/executor-impl.d.ts +5 -0
  57. package/src/executors/e2e-webchat/executor.d.ts +4 -2
  58. package/src/executors/integrate-provider/executor-impl.d.ts +5 -0
  59. package/src/executors/integrate-provider/executor.d.ts +4 -2
  60. package/src/executors/login-to-hubtype/executor-impl.d.ts +5 -0
  61. package/src/executors/login-to-hubtype/executor.d.ts +4 -2
  62. package/src/executors/logout-from-hubtype/executor-impl.d.ts +3 -0
  63. package/src/executors/logout-from-hubtype/executor.d.ts +5 -1
  64. package/src/executors/run-lambda/executor-impl.d.ts +5 -0
  65. package/src/executors/run-lambda/executor.d.ts +4 -2
  66. package/src/executors/serve-bot/executor-impl.d.ts +5 -0
  67. package/src/executors/serve-bot/executor.d.ts +4 -2
  68. package/src/executors/serve-bot/schema.json +13 -5
  69. package/src/generators/action/generator-impl.d.ts +4 -0
  70. package/src/generators/action/generator.d.ts +2 -3
  71. package/src/generators/bot-app/files/vite/node.config.ts.template +2 -7
  72. package/src/generators/bot-app/files/vite/webchat.config.ts.template +10 -2
  73. package/src/generators/bot-app/generator-impl.d.ts +4 -0
  74. package/src/generators/bot-app/generator.d.ts +2 -4
  75. package/src/generators/custom-message/generator-impl.d.ts +4 -0
  76. package/src/generators/custom-message/generator.d.ts +2 -3
  77. package/src/generators/preset/generator-impl.d.ts +4 -0
  78. package/src/generators/preset/generator.d.ts +2 -4
  79. package/src/generators/remove-custom-message/generator-impl.d.ts +4 -0
  80. package/src/generators/remove-custom-message/generator.d.ts +2 -3
  81. package/src/generators/webview/generator-impl.d.ts +4 -0
  82. package/src/generators/webview/generator.d.ts +2 -3
  83. package/src/index.d.ts +1 -0
  84. package/src/lib/api-service.d.ts +19 -20
  85. package/src/lib/constants.d.ts +2 -3
  86. package/src/lib/credentials-handler.d.ts +9 -18
  87. package/src/lib/delegate/delegate-executor.d.ts +6 -0
  88. package/src/lib/delegate/delegate-generator.d.ts +2 -0
  89. package/src/lib/interfaces.d.ts +10 -13
  90. package/src/lib/serve-mode/index.d.ts +25 -0
  91. package/src/lib/util/executor-helpers.d.ts +52 -23
  92. package/src/executors/deploy-local-runtime/executor.d.ts +0 -5
  93. package/src/executors/deploy-local-runtime/executor.js +0 -148
  94. package/src/executors/deploy-local-runtime/schema.json +0 -34
  95. package/src/executors/deploy-to-hubtype/executor.js +0 -308
  96. package/src/executors/serve-bot/schema.d.js +0 -16
  97. package/src/generators/bot-app/files/vite/botonic-ssr-deps.ts.template +0 -56
  98. package/src/generators/bot-app/files/vite/plugins/dev-log-viewer-html.plugin.ts.template +0 -65
  99. package/src/generators/preset/files/package.json +0 -26
  100. package/src/migrations/install-claude-update-skills/install-claude-update-skills.migration.d.ts +0 -2
  101. package/src/migrations/install-claude-update-skills/install-claude-update-skills.migration.js +0 -290
  102. /package/{src → libs/botonic/nx-plugin/src}/executors/build-node-app/schema.d.js +0 -0
  103. /package/{src → libs/botonic/nx-plugin/src}/executors/delete-bot/schema.d.js +0 -0
  104. /package/{src/executors/deploy-local-runtime → libs/botonic/nx-plugin/src/executors/deploy-netlify-snapshot}/schema.d.js +0 -0
  105. /package/{src/executors/deploy-netlify-snapshot → libs/botonic/nx-plugin/src/executors/deploy-to-hubtype}/schema.d.js +0 -0
  106. /package/{src/executors/deploy-to-hubtype → libs/botonic/nx-plugin/src/executors/e2e-webchat}/schema.d.js +0 -0
  107. /package/{src/executors/e2e-webchat → libs/botonic/nx-plugin/src/executors/integrate-provider}/schema.d.js +0 -0
  108. /package/{src/executors/integrate-provider → libs/botonic/nx-plugin/src/executors/login-to-hubtype}/schema.d.js +0 -0
  109. /package/{src/executors/login-to-hubtype → libs/botonic/nx-plugin/src/executors/logout-from-hubtype}/schema.d.js +0 -0
  110. /package/{src/executors/logout-from-hubtype → libs/botonic/nx-plugin/src/executors/run-lambda}/schema.d.js +0 -0
  111. /package/{src/executors/run-lambda → libs/botonic/nx-plugin/src/executors/serve-bot}/schema.d.js +0 -0
  112. /package/{src → libs/botonic/nx-plugin/src}/generators/action/schema.js +0 -0
  113. /package/{src → libs/botonic/nx-plugin/src}/generators/bot-app/schema.js +0 -0
  114. /package/{src → libs/botonic/nx-plugin/src}/generators/custom-message/schema.js +0 -0
  115. /package/{src → libs/botonic/nx-plugin/src}/generators/preset/schema.js +0 -0
  116. /package/{src → libs/botonic/nx-plugin/src}/generators/remove-custom-message/schema.js +0 -0
  117. /package/{src → libs/botonic/nx-plugin/src}/generators/shared/bot-app-utils.js +0 -0
  118. /package/{src → libs/botonic/nx-plugin/src}/generators/webview/schema.js +0 -0
  119. /package/{src → libs/botonic/nx-plugin/src}/lib/bot-config.js +0 -0
  120. /package/{src → libs/botonic/nx-plugin/src}/lib/cloudflared-tunnel.js +0 -0
  121. /package/{src → libs/botonic/nx-plugin/src}/lib/index.js +0 -0
  122. /package/{src → libs/botonic/nx-plugin/src}/lib/interfaces.js +0 -0
  123. /package/{src → libs/botonic/nx-plugin/src}/lib/util/file-system.js +0 -0
  124. /package/{src → libs/botonic/nx-plugin/src}/lib/util/sam-container-cleanup.js +0 -0
  125. /package/{src → libs/botonic/nx-plugin/src}/lib/util/sam-template.js +0 -0
  126. /package/{src → libs/botonic/nx-plugin/src}/lib/util/system.js +0 -0
  127. /package/{src → libs/botonic/nx-plugin/src}/migrations/utils/migration-utils.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 2.31.1-alpha.0 (2026-06-16)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **nx-plugin:** refactor executors/generators with version delegation ([2d797e5f8](https://github.com/metis-ai/hubtype-product/commit/2d797e5f8))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **nx-plugin:** remove deleted migration entry points from build config ([7c882d40f](https://github.com/metis-ai/hubtype-product/commit/7c882d40f))
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - David Hidalgo @Davidhidalgo
14
+
15
+ ## 2.31.0 (2026-06-15)
16
+
17
+ ### 🚀 Features
18
+
19
+ - refactored botonic/HT credentials stored and serve/deploy bots flow refinement ([#934](https://github.com/metis-ai/hubtype-product/pull/934))
20
+ - **lambda:** self-contained bundle with noExternal: true #BLT-2432 ([#936](https://github.com/metis-ai/hubtype-product/pull/936))
21
+ - **serve:** replace deploy-local-runtime with integrated dev session registration ([#921](https://github.com/metis-ai/hubtype-product/pull/921))
22
+
23
+ ### ❤️ Thank You
24
+
25
+ - David Hidalgo @Davidhidalgo
26
+ - Marc Rabat @vanbasten17
27
+
1
28
  ## 2.30.0 (2026-06-11)
2
29
 
3
30
  ### 🚀 Features
package/executors.json CHANGED
@@ -26,11 +26,6 @@
26
26
  "schema": "./src/executors/deploy-to-hubtype/schema.json",
27
27
  "description": "Deploy Botonic app to Hubtype"
28
28
  },
29
- "deploy-local-runtime": {
30
- "implementation": "./src/executors/deploy-local-runtime/executor",
31
- "schema": "./src/executors/deploy-local-runtime/schema.json",
32
- "description": "Deploy Botonic app to Hubtype Local Runtime"
33
- },
34
29
  "integrate-provider": {
35
30
  "implementation": "./src/executors/integrate-provider/executor",
36
31
  "schema": "./src/executors/integrate-provider/schema.json",
package/index.js ADDED
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ const Module = require("module");
3
+ const path = require("path");
4
+ const fs = require("fs");
5
+ const originalResolveFilename = Module._resolveFilename;
6
+ const distPath = __dirname;
7
+ const manifest = [{ "module": "@botonic/webchat-react/trigger", "exactMatch": "libs/botonic/webchat-react/src/trigger.js", "pattern": "libs/botonic/webchat-react/src/trigger.ts" }, { "module": "@botonic/webchat-core/messages", "exactMatch": "libs/botonic/webchat-core/src/lib/messages/index.js", "pattern": "libs/botonic/webchat-core/src/lib/messages/index.ts" }, { "module": "@lilara/foundations/*", "pattern": "libs/lilara/foundations/src/*" }, { "module": "@lilara/ui-web-react/flow-builder", "exactMatch": "libs/lilara/ui-web-react/src/lib/flow-builder/index.js", "pattern": "libs/lilara/ui-web-react/src/lib/flow-builder/index.ts" }, { "module": "@lilara/ui-web-react/styles.css", "pattern": "libs/lilara/ui-web-react/src/styles.css" }, { "module": "@hubtype/dashboard/feature-campaigns", "exactMatch": "libs/dashboard/feature-campaigns/src/index.js", "pattern": "libs/dashboard/feature-campaigns/src/index.ts" }, { "module": "@hubtype/dashboard/feature-contacts", "exactMatch": "libs/dashboard/feature-contacts/src/index.js", "pattern": "libs/dashboard/feature-contacts/src/index.ts" }, { "module": "@lilara/ui-web/defaults", "exactMatch": "libs/lilara/ui-web/src/lib/icon/icon-defaults.js", "pattern": "libs/lilara/ui-web/src/lib/icon/icon-defaults.ts" }, { "module": "@botonic/core", "exactMatch": "libs/botonic/core/src/index.js", "pattern": "libs/botonic/core/src/index.ts" }, { "module": "@botonic/nx-plugin", "exactMatch": "libs/botonic/nx-plugin/src/index.js", "pattern": "libs/botonic/nx-plugin/src/index.ts" }, { "module": "@botonic/plugin-ai-agents", "exactMatch": "libs/botonic/plugin-ai-agents/src/index.js", "pattern": "libs/botonic/plugin-ai-agents/src/index.ts" }, { "module": "@botonic/plugin-flow-builder", "exactMatch": "libs/botonic/plugin-flow-builder/src/index.js", "pattern": "libs/botonic/plugin-flow-builder/src/index.ts" }, { "module": "@botonic/plugin-hubtype-analytics", "exactMatch": "libs/botonic/plugin-hubtype-analytics/src/index.js", "pattern": "libs/botonic/plugin-hubtype-analytics/src/index.ts" }, { "module": "@botonic/plugin-hubtype-sdk", "exactMatch": "libs/botonic/plugin-hubtype-sdk/src/index.js", "pattern": "libs/botonic/plugin-hubtype-sdk/src/index.ts" }, { "module": "@botonic/plugin-inactivity", "exactMatch": "libs/botonic/plugin-inactivity/src/index.js", "pattern": "libs/botonic/plugin-inactivity/src/index.ts" }, { "module": "@botonic/plugin-knowledge-bases", "exactMatch": "libs/botonic/plugin-knowledge-bases/src/index.js", "pattern": "libs/botonic/plugin-knowledge-bases/src/index.ts" }, { "module": "@botonic/plugin-pre-handoff", "exactMatch": "libs/botonic/plugin-pre-handoff/src/index.js", "pattern": "libs/botonic/plugin-pre-handoff/src/index.ts" }, { "module": "@botonic/plugin-stop-store-user-input-flow", "exactMatch": "libs/botonic/plugin-stop-store-user-input-flow/src/index.js", "pattern": "libs/botonic/plugin-stop-store-user-input-flow/src/index.ts" }, { "module": "@botonic/shared", "exactMatch": "libs/botonic/shared/src/index.js", "pattern": "libs/botonic/shared/src/index.ts" }, { "module": "@botonic/webchat-core", "exactMatch": "libs/botonic/webchat-core/src/index.js", "pattern": "libs/botonic/webchat-core/src/index.ts" }, { "module": "@botonic/webchat-react", "exactMatch": "libs/botonic/webchat-react/src/index.js", "pattern": "libs/botonic/webchat-react/src/index.ts" }, { "module": "@botonic/webviews", "exactMatch": "libs/botonic/webviews/src/index.js", "pattern": "libs/botonic/webviews/src/index.ts" }, { "module": "@hubtype/data-access-analytics", "exactMatch": "libs/shared/data-access-analytics/src/index.js", "pattern": "libs/shared/data-access-analytics/src/index.ts" }, { "module": "@hubtype/data-access-api", "exactMatch": "libs/shared/data-access-api/src/index.js", "pattern": "libs/shared/data-access-api/src/index.ts" }, { "module": "@hubtype/data-access-models", "exactMatch": "libs/shared/data-access-models/src/index.js", "pattern": "libs/shared/data-access-models/src/index.ts" }, { "module": "@hubtype/data-access-realtime-services", "exactMatch": "libs/shared/data-access-realtime-services/src/index.js", "pattern": "libs/shared/data-access-realtime-services/src/index.ts" }, { "module": "@hubtype/data-access-services", "exactMatch": "libs/shared/data-access-services/src/index.js", "pattern": "libs/shared/data-access-services/src/index.ts" }, { "module": "@hubtype/feature-flow-builder", "exactMatch": "libs/dashboard/feature-flow-builder/src/index.js", "pattern": "libs/dashboard/feature-flow-builder/src/index.ts" }, { "module": "@hubtype/feature-knowledge-base", "exactMatch": "libs/dashboard/feature-knowledge-base/src/index.js", "pattern": "libs/dashboard/feature-knowledge-base/src/index.ts" }, { "module": "@hubtype/shared-models", "exactMatch": "libs/shared/models/src/index.js", "pattern": "libs/shared/models/src/index.ts" }, { "module": "@hubtype/util-auth-api-client", "exactMatch": "libs/shared/util-auth-api-client/src/index.js", "pattern": "libs/shared/util-auth-api-client/src/index.ts" }, { "module": "@hubtype/util-i18n", "exactMatch": "libs/shared/util-i18n/src/index.js", "pattern": "libs/shared/util-i18n/src/index.ts" }, { "module": "@hubtype/util-realtime-events-client", "exactMatch": "libs/shared/util-realtime-events-client/src/index.js", "pattern": "libs/shared/util-realtime-events-client/src/index.ts" }, { "module": "@hubtype/util-shared", "exactMatch": "libs/shared/util-shared/src/index.js", "pattern": "libs/shared/util-shared/src/index.ts" }, { "module": "@lilara/foundations", "exactMatch": "libs/lilara/foundations/src/index.js", "pattern": "libs/lilara/foundations/src/index.ts" }, { "module": "@lilara/ui-web", "exactMatch": "libs/lilara/ui-web/src/index.js", "pattern": "libs/lilara/ui-web/src/index.ts" }, { "module": "@lilara/ui-web-react", "exactMatch": "libs/lilara/ui-web-react/src/index.js", "pattern": "libs/lilara/ui-web-react/src/index.ts" }];
8
+ Module._resolveFilename = function(request, parent) {
9
+ let found;
10
+ for (const entry of manifest) {
11
+ if (request === entry.module && entry.exactMatch) {
12
+ const entry2 = manifest.find((x) => request === x.module || request.startsWith(x.module + "/"));
13
+ const candidate = path.join(distPath, entry2.exactMatch);
14
+ if (isFile(candidate)) {
15
+ found = candidate;
16
+ break;
17
+ }
18
+ } else {
19
+ const re = new RegExp(entry.module.replace(/\*$/, "(?<rest>.*)"));
20
+ const match = request.match(re);
21
+ if (match?.groups) {
22
+ const candidate = path.join(distPath, entry.pattern.replace("*", ""), match.groups.rest);
23
+ if (isFile(candidate)) {
24
+ found = candidate;
25
+ }
26
+ }
27
+ }
28
+ }
29
+ if (found) {
30
+ const modifiedArguments = [found, ...[].slice.call(arguments, 1)];
31
+ return originalResolveFilename.apply(this, modifiedArguments);
32
+ } else {
33
+ return originalResolveFilename.apply(this, arguments);
34
+ }
35
+ };
36
+ function isFile(s) {
37
+ try {
38
+ require.resolve(s);
39
+ return true;
40
+ } catch (_e) {
41
+ return false;
42
+ }
43
+ }
44
+ module.exports = require("./libs/botonic/nx-plugin/src/index.js");
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var executor_exports = {};
20
- __export(executor_exports, {
19
+ var executor_impl_exports = {};
20
+ __export(executor_impl_exports, {
21
21
  default: () => buildNodeAppExecutor
22
22
  });
23
- module.exports = __toCommonJS(executor_exports);
23
+ module.exports = __toCommonJS(executor_impl_exports);
24
24
  var import_child_process = require("child_process");
25
25
  var import_path = require("path");
26
26
  var import_util = require("util");
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_exports = {};
20
+ __export(executor_exports, {
21
+ default: () => buildNodeAppExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_exports);
24
+ var import_delegate_executor = require("../../lib/delegate/delegate-executor");
25
+ async function buildNodeAppExecutor(options, ctx) {
26
+ return (0, import_delegate_executor.runLocalExecutor)(__filename, "build-node-app", options, ctx);
27
+ }
@@ -16,13 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var executor_exports = {};
20
- __export(executor_exports, {
19
+ var executor_impl_exports = {};
20
+ __export(executor_impl_exports, {
21
21
  default: () => deleteBotExecutor
22
22
  });
23
- module.exports = __toCommonJS(executor_exports);
23
+ module.exports = __toCommonJS(executor_impl_exports);
24
24
  var import_enquirer = require("enquirer");
25
- var import_path = require("path");
26
25
  var import_api_service = require("../../lib/api-service");
27
26
  var import_executor_helpers = require("../../lib/util/executor-helpers");
28
27
  async function deleteBotExecutor(options, context) {
@@ -32,7 +31,6 @@ async function deleteBotExecutor(options, context) {
32
31
  try {
33
32
  const { targetEnvironment, environmentVariables } = (0, import_executor_helpers.resolveHubtypeEnvironment)(context, options);
34
33
  const botonicApiService = new import_api_service.BotonicAPIService({
35
- workspaceRoot: (0, import_path.resolve)(context.root),
36
34
  environmentVariables,
37
35
  targetEnvironment
38
36
  });
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_exports = {};
20
+ __export(executor_exports, {
21
+ default: () => deleteBotExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_exports);
24
+ var import_delegate_executor = require("../../lib/delegate/delegate-executor");
25
+ async function deleteBotExecutor(options, ctx) {
26
+ return (0, import_delegate_executor.runLocalExecutor)(__filename, "delete-bot", options, ctx);
27
+ }
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var executor_exports = {};
20
- __export(executor_exports, {
19
+ var executor_impl_exports = {};
20
+ __export(executor_impl_exports, {
21
21
  default: () => deployNetlifySnapshotExecutor
22
22
  });
23
- module.exports = __toCommonJS(executor_exports);
23
+ module.exports = __toCommonJS(executor_impl_exports);
24
24
  var import_child_process = require("child_process");
25
25
  var import_fs = require("fs");
26
26
  var import_path = require("path");
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_exports = {};
20
+ __export(executor_exports, {
21
+ default: () => deployNetlifySnapshotExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_exports);
24
+ var import_delegate_executor = require("../../lib/delegate/delegate-executor");
25
+ async function deployNetlifySnapshotExecutor(options, ctx) {
26
+ return (0, import_delegate_executor.runLocalExecutor)(__filename, "deploy-netlify-snapshot", options, ctx);
27
+ }
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_impl_exports = {};
20
+ __export(executor_impl_exports, {
21
+ default: () => deployToHubtypeExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_impl_exports);
24
+ var import_enquirer = require("enquirer");
25
+ var import_api_service = require("../../lib/api-service");
26
+ var import_executor_helpers = require("../../lib/util/executor-helpers");
27
+ const CREATE_PROD_CHOICE = "Create Production Bot";
28
+ function botLabel(bot) {
29
+ return bot.is_test ? `${bot.name} (Staging bot)` : `${bot.name} (Production bot)`;
30
+ }
31
+ let PROJECT_ROOT;
32
+ async function deployToHubtypeExecutor(options, context) {
33
+ if (!context.projectName) {
34
+ throw new Error("Project name is not defined in executor context");
35
+ }
36
+ PROJECT_ROOT = (0, import_executor_helpers.resolveProjectPath)(context);
37
+ try {
38
+ const { targetEnvironment, environmentVariables } = (0, import_executor_helpers.resolveHubtypeEnvironment)(context, options);
39
+ const botonicApiService = new import_api_service.BotonicAPIService({
40
+ projectRoot: PROJECT_ROOT,
41
+ environmentVariables,
42
+ targetEnvironment
43
+ });
44
+ const botName = options.botName;
45
+ if (!botonicApiService.oauth) {
46
+ if (options.email && options.password) {
47
+ await botonicApiService.login(options.email, options.password);
48
+ botonicApiService.saveAllCredentials();
49
+ } else {
50
+ await (0, import_executor_helpers.handleAuthentication)(botonicApiService);
51
+ }
52
+ }
53
+ await (0, import_executor_helpers.logWorkingAsAndEnvironment)(botonicApiService);
54
+ console.log(
55
+ `\u{1F680} Deploying to Hubtype... [${environmentVariables["VITE_HUBTYPE_API_URL"]}]
56
+ `
57
+ );
58
+ if (botName) {
59
+ await handleBotFromFlag(
60
+ botonicApiService,
61
+ botName,
62
+ options.createIfNotExists
63
+ );
64
+ } else {
65
+ await handleBotFlow(botonicApiService);
66
+ }
67
+ await (0, import_executor_helpers.deployBotToHubtype)(
68
+ botonicApiService,
69
+ PROJECT_ROOT,
70
+ context.projectName
71
+ );
72
+ return { success: true };
73
+ } catch (error) {
74
+ return (0, import_executor_helpers.handleExecutorError)(error, "Deployment");
75
+ }
76
+ }
77
+ async function handleBotFromFlag(botonicApiService, botName, createIfNotExists) {
78
+ const bots = await (0, import_executor_helpers.getAvailableBots)(botonicApiService);
79
+ const bot = bots.find((b) => b.name === botName);
80
+ if (bot) {
81
+ botonicApiService.setCurrentBot(bot);
82
+ } else {
83
+ if (createIfNotExists) {
84
+ console.log(
85
+ `\u{1F916} Bot "${botName}" doesn't exist. Creating it automatically...`
86
+ );
87
+ await createNewBot(botonicApiService, botName);
88
+ } else {
89
+ const response = await (0, import_enquirer.prompt)({
90
+ type: "confirm",
91
+ name: "create_bot_confirm",
92
+ message: `\u{1F916} Bot "${botName}" doesn't exist. Do you want to create it?`
93
+ });
94
+ if (response.create_bot_confirm) {
95
+ await createNewBot(botonicApiService, botName);
96
+ } else {
97
+ throw new Error(`Bot "${botName}" not found`);
98
+ }
99
+ }
100
+ }
101
+ }
102
+ async function handleBotFlow(botonicApiService) {
103
+ if (!botonicApiService.bot || !Object.keys(botonicApiService.bot).length) {
104
+ await newBotFlow(botonicApiService);
105
+ } else {
106
+ const resp = await botonicApiService.getBots();
107
+ const bots = resp.data.results;
108
+ const firstId = botonicApiService.bot.id;
109
+ bots.sort(
110
+ (x, y) => x.id === firstId ? -1 : y.id === firstId ? 1 : 0
111
+ );
112
+ await selectExistentBot(botonicApiService, bots);
113
+ }
114
+ }
115
+ async function newBotFlow(botonicApiService) {
116
+ const bots = await (0, import_executor_helpers.getAvailableBots)(botonicApiService);
117
+ if (!bots.length) {
118
+ await createNewBot(botonicApiService);
119
+ } else {
120
+ const response = await (0, import_enquirer.prompt)({
121
+ type: "confirm",
122
+ name: "create_bot_confirm",
123
+ message: "\u{1F916} Do you want to create a new bot?"
124
+ });
125
+ if (response.create_bot_confirm) {
126
+ await createNewBot(botonicApiService);
127
+ } else {
128
+ await selectExistentBot(botonicApiService, bots);
129
+ }
130
+ }
131
+ }
132
+ async function createNewBot(botonicApiService, botName) {
133
+ if (botName) {
134
+ await (0, import_executor_helpers.createNewBotWithName)(botonicApiService, botName);
135
+ } else {
136
+ console.log("\u{1F916} Let's create a new bot!\n");
137
+ const response = await (0, import_enquirer.prompt)({
138
+ type: "input",
139
+ name: "bot_name",
140
+ message: "\u{1F916} Bot name:",
141
+ validate: (input) => {
142
+ return input.length > 0 ? true : "Bot name cannot be empty";
143
+ }
144
+ });
145
+ await (0, import_executor_helpers.createNewBotWithName)(botonicApiService, response.bot_name);
146
+ }
147
+ }
148
+ async function selectExistentBot(botonicApiService, bots) {
149
+ console.log("\u{1F4CB} Select a bot to deploy:\n");
150
+ const response = await (0, import_enquirer.prompt)({
151
+ type: "select",
152
+ name: "bot_id",
153
+ message: "\u{1F916} Please select a bot:",
154
+ choices: [
155
+ ...bots.map((bot2) => ({
156
+ name: bot2.id,
157
+ message: botLabel(bot2)
158
+ })),
159
+ { name: CREATE_PROD_CHOICE, message: "+ Create Production Bot" }
160
+ ]
161
+ });
162
+ const selectedBotId = response.bot_id;
163
+ if (selectedBotId === CREATE_PROD_CHOICE) {
164
+ await createNewBot(botonicApiService);
165
+ return;
166
+ }
167
+ const bot = bots.find((b) => b.id === selectedBotId);
168
+ if (bot) {
169
+ botonicApiService.setCurrentBot(bot);
170
+ console.log(`\u2705 Selected bot: ${botLabel(bot)}`);
171
+ }
172
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_exports = {};
20
+ __export(executor_exports, {
21
+ default: () => deployToHubtypeExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_exports);
24
+ var import_delegate_executor = require("../../lib/delegate/delegate-executor");
25
+ async function deployToHubtypeExecutor(options, ctx) {
26
+ return (0, import_delegate_executor.runLocalExecutor)(__filename, "deploy-to-hubtype", options, ctx);
27
+ }
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var executor_exports = {};
30
- __export(executor_exports, {
29
+ var executor_impl_exports = {};
30
+ __export(executor_impl_exports, {
31
31
  default: () => e2eExecutor
32
32
  });
33
- module.exports = __toCommonJS(executor_exports);
33
+ module.exports = __toCommonJS(executor_impl_exports);
34
34
  var import_child_process = require("child_process");
35
35
  var import_fs = require("fs");
36
36
  var import_path = require("path");
37
- var import_executor = __toESM(require("../deploy-netlify-snapshot/executor"));
37
+ var import_executor_impl = __toESM(require("../deploy-netlify-snapshot/executor-impl"));
38
38
  const WEBCHAT_OUTPUT_DIR = "dist/webchat";
39
39
  async function e2eExecutor(options, context) {
40
40
  const projectRoot = context.projectsConfigurations?.projects[context.projectName ?? ""]?.root ?? "";
@@ -55,7 +55,7 @@ async function e2eExecutor(options, context) {
55
55
  const playwrightStep = options.dir ? "2/2" : "3/3";
56
56
  console.log(`
57
57
  \u{1F4E6} Step ${deployStep}: Deploying snapshot to Netlify...`);
58
- const deployResult = await (0, import_executor.default)(
58
+ const deployResult = await (0, import_executor_impl.default)(
59
59
  {
60
60
  dir,
61
61
  siteId: options.siteId,
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_exports = {};
20
+ __export(executor_exports, {
21
+ default: () => e2eWebchatExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_exports);
24
+ var import_delegate_executor = require("../../lib/delegate/delegate-executor");
25
+ async function e2eWebchatExecutor(options, ctx) {
26
+ return (0, import_delegate_executor.runLocalExecutor)(__filename, "e2e-webchat", options, ctx);
27
+ }
@@ -16,13 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var executor_exports = {};
20
- __export(executor_exports, {
19
+ var executor_impl_exports = {};
20
+ __export(executor_impl_exports, {
21
21
  default: () => integrateProviderExecutor
22
22
  });
23
- module.exports = __toCommonJS(executor_exports);
23
+ module.exports = __toCommonJS(executor_impl_exports);
24
24
  var import_enquirer = require("enquirer");
25
- var import_path = require("path");
26
25
  var import_api_service = require("../../lib/api-service");
27
26
  var import_executor_helpers = require("../../lib/util/executor-helpers");
28
27
  let PROJECT_ROOT;
@@ -32,7 +31,6 @@ async function integrateProviderExecutor(options, context) {
32
31
  const { targetEnvironment, environmentVariables } = (0, import_executor_helpers.resolveHubtypeEnvironment)(context, options);
33
32
  const botonicApiService = new import_api_service.BotonicAPIService({
34
33
  projectRoot: PROJECT_ROOT,
35
- workspaceRoot: (0, import_path.resolve)(context.root),
36
34
  environmentVariables,
37
35
  targetEnvironment
38
36
  });
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_exports = {};
20
+ __export(executor_exports, {
21
+ default: () => integrateProviderExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_exports);
24
+ var import_delegate_executor = require("../../lib/delegate/delegate-executor");
25
+ async function integrateProviderExecutor(options, ctx) {
26
+ return (0, import_delegate_executor.runLocalExecutor)(__filename, "integrate-provider", options, ctx);
27
+ }
@@ -16,13 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var executor_exports = {};
20
- __export(executor_exports, {
19
+ var executor_impl_exports = {};
20
+ __export(executor_impl_exports, {
21
21
  default: () => loginToHubtypeExecutor
22
22
  });
23
- module.exports = __toCommonJS(executor_exports);
23
+ module.exports = __toCommonJS(executor_impl_exports);
24
24
  var import_enquirer = require("enquirer");
25
- var import_path = require("path");
26
25
  var import_api_service = require("../../lib/api-service");
27
26
  var import_executor_helpers = require("../../lib/util/executor-helpers");
28
27
  async function loginToHubtypeExecutor(options, context) {
@@ -31,7 +30,6 @@ async function loginToHubtypeExecutor(options, context) {
31
30
  const { targetEnvironment, environmentVariables } = (0, import_executor_helpers.resolveHubtypeEnvironment)(context, options);
32
31
  const botonicApiService = new import_api_service.BotonicAPIService({
33
32
  projectRoot,
34
- workspaceRoot: (0, import_path.resolve)(context.root),
35
33
  environmentVariables,
36
34
  targetEnvironment
37
35
  });
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var executor_exports = {};
20
+ __export(executor_exports, {
21
+ default: () => loginToHubtypeExecutor
22
+ });
23
+ module.exports = __toCommonJS(executor_exports);
24
+ var import_delegate_executor = require("../../lib/delegate/delegate-executor");
25
+ async function loginToHubtypeExecutor(options, ctx) {
26
+ return (0, import_delegate_executor.runLocalExecutor)(__filename, "login-to-hubtype", options, ctx);
27
+ }
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var executor_exports = {};
20
- __export(executor_exports, {
19
+ var executor_impl_exports = {};
20
+ __export(executor_impl_exports, {
21
21
  default: () => logoutFromHubtypeExecutor
22
22
  });
23
- module.exports = __toCommonJS(executor_exports);
23
+ module.exports = __toCommonJS(executor_impl_exports);
24
24
  var import_fs_extra = require("fs-extra");
25
25
  var import_os = require("os");
26
26
  var import_path = require("path");
@@ -30,12 +30,12 @@ async function logoutFromHubtypeExecutor(options, context) {
30
30
  const homeCredsPath = (0, import_path.join)(
31
31
  (0, import_os.homedir)(),
32
32
  import_constants.BOTONIC_HOME_DIRNAME,
33
- import_constants.GLOBAL_CREDS_FILENAME
33
+ import_constants.ENV_CREDENTIALS_FILENAME
34
34
  );
35
35
  const workspaceCredsPath = (0, import_path.join)(
36
36
  (0, import_path.resolve)(context.root),
37
37
  import_constants.BOTONIC_HOME_DIRNAME,
38
- import_constants.GLOBAL_CREDS_FILENAME
38
+ import_constants.ENV_CREDENTIALS_FILENAME
39
39
  );
40
40
  let removed = false;
41
41
  if (await (0, import_fs_extra.pathExists)(workspaceCredsPath)) {