@botpress/adk 2.0.4 → 3.0.0-beta.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.
Files changed (324) hide show
  1. package/dist/agent-project/agent-project.d.ts +5 -0
  2. package/dist/agent-project/agent-project.d.ts.map +1 -1
  3. package/dist/agent-project/agent-resolver.d.ts.map +1 -1
  4. package/dist/agent-project/types.d.ts +8 -88
  5. package/dist/agent-project/types.d.ts.map +1 -1
  6. package/dist/agent0/config/schema.d.ts +8 -130
  7. package/dist/agent0/config/schema.d.ts.map +1 -1
  8. package/dist/agent0/index.js +280 -63
  9. package/dist/agent0/index.js.map +17 -14
  10. package/dist/agent0/providers/source.d.ts.map +1 -1
  11. package/dist/agent0/runtime/client.d.ts +2 -1
  12. package/dist/agent0/runtime/client.d.ts.map +1 -1
  13. package/dist/agent0/runtime/engine.d.ts +2 -0
  14. package/dist/agent0/runtime/engine.d.ts.map +1 -1
  15. package/dist/agent0/runtime/manager.d.ts +2 -1
  16. package/dist/agent0/runtime/manager.d.ts.map +1 -1
  17. package/dist/agent0/types.d.ts +41 -1
  18. package/dist/agent0/types.d.ts.map +1 -1
  19. package/dist/auth/index.d.ts +1 -1
  20. package/dist/auth/index.d.ts.map +1 -1
  21. package/dist/bot-generator/dev-id-manager.d.ts +6 -0
  22. package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
  23. package/dist/bot-generator/generator.d.ts +1 -1
  24. package/dist/bot-generator/generator.d.ts.map +1 -1
  25. package/dist/bot-generator/install-package.d.ts +22 -0
  26. package/dist/bot-generator/install-package.d.ts.map +1 -0
  27. package/dist/bot-generator/integration-sync.d.ts +6 -20
  28. package/dist/bot-generator/integration-sync.d.ts.map +1 -1
  29. package/dist/bot-generator/interface-sync.d.ts +6 -20
  30. package/dist/bot-generator/interface-sync.d.ts.map +1 -1
  31. package/dist/bot-generator/plugin-sync.d.ts +5 -20
  32. package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
  33. package/dist/build/__fixtures__/generated-import-bot/bot.definition.d.ts +14 -0
  34. package/dist/build/__fixtures__/generated-import-bot/bot.definition.d.ts.map +1 -0
  35. package/dist/build/__fixtures__/generated-import-bot/src/index.d.ts +3 -0
  36. package/dist/build/__fixtures__/generated-import-bot/src/index.d.ts.map +1 -0
  37. package/dist/build/__fixtures__/minimal-bot/bot.definition.d.ts +26 -0
  38. package/dist/build/__fixtures__/minimal-bot/bot.definition.d.ts.map +1 -0
  39. package/dist/build/__fixtures__/minimal-bot/src/index.d.ts +6 -0
  40. package/dist/build/__fixtures__/minimal-bot/src/index.d.ts.map +1 -0
  41. package/dist/build/bot-builder.d.ts +48 -0
  42. package/dist/build/bot-builder.d.ts.map +1 -0
  43. package/dist/build/definition-inputs.d.ts +21 -0
  44. package/dist/build/definition-inputs.d.ts.map +1 -0
  45. package/dist/build/definition-loader.d.ts +14 -0
  46. package/dist/build/definition-loader.d.ts.map +1 -0
  47. package/dist/chat-bundle.cjs +23 -22
  48. package/dist/codegen/bot-implementation/bot-implementation.d.ts +9 -0
  49. package/dist/codegen/bot-implementation/bot-implementation.d.ts.map +1 -0
  50. package/dist/codegen/bot-implementation/bot-plugins/index.d.ts +8 -0
  51. package/dist/codegen/bot-implementation/bot-plugins/index.d.ts.map +1 -0
  52. package/dist/codegen/bot-implementation/bot-plugins/plugin-module.d.ts +14 -0
  53. package/dist/codegen/bot-implementation/bot-plugins/plugin-module.d.ts.map +1 -0
  54. package/dist/codegen/bot-implementation/bot-typings/actions-module.d.ts +22 -0
  55. package/dist/codegen/bot-implementation/bot-typings/actions-module.d.ts.map +1 -0
  56. package/dist/codegen/bot-implementation/bot-typings/events-module.d.ts +11 -0
  57. package/dist/codegen/bot-implementation/bot-typings/events-module.d.ts.map +1 -0
  58. package/dist/codegen/bot-implementation/bot-typings/index.d.ts +8 -0
  59. package/dist/codegen/bot-implementation/bot-typings/index.d.ts.map +1 -0
  60. package/dist/codegen/bot-implementation/bot-typings/states-module.d.ts +18 -0
  61. package/dist/codegen/bot-implementation/bot-typings/states-module.d.ts.map +1 -0
  62. package/dist/codegen/bot-implementation/bot-typings/tables-module.d.ts +11 -0
  63. package/dist/codegen/bot-implementation/bot-typings/tables-module.d.ts.map +1 -0
  64. package/dist/codegen/bot-implementation/bot-typings/workflows-module.d.ts +28 -0
  65. package/dist/codegen/bot-implementation/bot-typings/workflows-module.d.ts.map +1 -0
  66. package/dist/codegen/bot-implementation/index.d.ts +4 -0
  67. package/dist/codegen/bot-implementation/index.d.ts.map +1 -0
  68. package/dist/codegen/casing.d.ts +11 -0
  69. package/dist/codegen/casing.d.ts.map +1 -0
  70. package/dist/codegen/consts.d.ts +19 -0
  71. package/dist/codegen/consts.d.ts.map +1 -0
  72. package/dist/codegen/generators.d.ts +16 -0
  73. package/dist/codegen/generators.d.ts.map +1 -0
  74. package/dist/codegen/index.d.ts +9 -0
  75. package/dist/codegen/index.d.ts.map +1 -0
  76. package/dist/codegen/integration-implementation/index.d.ts +4 -0
  77. package/dist/codegen/integration-implementation/index.d.ts.map +1 -0
  78. package/dist/codegen/integration-implementation/integration-implementation.d.ts +8 -0
  79. package/dist/codegen/integration-implementation/integration-implementation.d.ts.map +1 -0
  80. package/dist/codegen/integration-implementation/integration-typings/actions-module.d.ts +22 -0
  81. package/dist/codegen/integration-implementation/integration-typings/actions-module.d.ts.map +1 -0
  82. package/dist/codegen/integration-implementation/integration-typings/channels-module.d.ts +6 -0
  83. package/dist/codegen/integration-implementation/integration-typings/channels-module.d.ts.map +1 -0
  84. package/dist/codegen/integration-implementation/integration-typings/configuration-module.d.ts +8 -0
  85. package/dist/codegen/integration-implementation/integration-typings/configuration-module.d.ts.map +1 -0
  86. package/dist/codegen/integration-implementation/integration-typings/configurations-module.d.ts +11 -0
  87. package/dist/codegen/integration-implementation/integration-typings/configurations-module.d.ts.map +1 -0
  88. package/dist/codegen/integration-implementation/integration-typings/entities-module.d.ts +11 -0
  89. package/dist/codegen/integration-implementation/integration-typings/entities-module.d.ts.map +1 -0
  90. package/dist/codegen/integration-implementation/integration-typings/events-module.d.ts +11 -0
  91. package/dist/codegen/integration-implementation/integration-typings/events-module.d.ts.map +1 -0
  92. package/dist/codegen/integration-implementation/integration-typings/index.d.ts +9 -0
  93. package/dist/codegen/integration-implementation/integration-typings/index.d.ts.map +1 -0
  94. package/dist/codegen/integration-implementation/integration-typings/states-module.d.ts +18 -0
  95. package/dist/codegen/integration-implementation/integration-typings/states-module.d.ts.map +1 -0
  96. package/dist/codegen/integration-package/index.d.ts +3 -0
  97. package/dist/codegen/integration-package/index.d.ts.map +1 -0
  98. package/dist/codegen/integration-package/integration-package-definition/actions-module.d.ts +22 -0
  99. package/dist/codegen/integration-package/integration-package-definition/actions-module.d.ts.map +1 -0
  100. package/dist/codegen/integration-package/integration-package-definition/channels-module.d.ts +6 -0
  101. package/dist/codegen/integration-package/integration-package-definition/channels-module.d.ts.map +1 -0
  102. package/dist/codegen/integration-package/integration-package-definition/configuration-module.d.ts +8 -0
  103. package/dist/codegen/integration-package/integration-package-definition/configuration-module.d.ts.map +1 -0
  104. package/dist/codegen/integration-package/integration-package-definition/configurations-module.d.ts +11 -0
  105. package/dist/codegen/integration-package/integration-package-definition/configurations-module.d.ts.map +1 -0
  106. package/dist/codegen/integration-package/integration-package-definition/entities-module.d.ts +11 -0
  107. package/dist/codegen/integration-package/integration-package-definition/entities-module.d.ts.map +1 -0
  108. package/dist/codegen/integration-package/integration-package-definition/events-module.d.ts +11 -0
  109. package/dist/codegen/integration-package/integration-package-definition/events-module.d.ts.map +1 -0
  110. package/dist/codegen/integration-package/integration-package-definition/index.d.ts +9 -0
  111. package/dist/codegen/integration-package/integration-package-definition/index.d.ts.map +1 -0
  112. package/dist/codegen/integration-package/integration-package-definition/interfaces-module.d.ts +11 -0
  113. package/dist/codegen/integration-package/integration-package-definition/interfaces-module.d.ts.map +1 -0
  114. package/dist/codegen/integration-package/integration-package-definition/states-module.d.ts +11 -0
  115. package/dist/codegen/integration-package/integration-package-definition/states-module.d.ts.map +1 -0
  116. package/dist/codegen/integration-package/integration-package-definition/typings.d.ts +11 -0
  117. package/dist/codegen/integration-package/integration-package-definition/typings.d.ts.map +1 -0
  118. package/dist/codegen/interface-implementation/index.d.ts +5 -0
  119. package/dist/codegen/interface-implementation/index.d.ts.map +1 -0
  120. package/dist/codegen/interface-implementation/integration-typings/actions-module.d.ts +22 -0
  121. package/dist/codegen/interface-implementation/integration-typings/actions-module.d.ts.map +1 -0
  122. package/dist/codegen/interface-implementation/integration-typings/channels-module.d.ts +6 -0
  123. package/dist/codegen/interface-implementation/integration-typings/channels-module.d.ts.map +1 -0
  124. package/dist/codegen/interface-implementation/integration-typings/entities-module.d.ts +11 -0
  125. package/dist/codegen/interface-implementation/integration-typings/entities-module.d.ts.map +1 -0
  126. package/dist/codegen/interface-implementation/integration-typings/events-module.d.ts +11 -0
  127. package/dist/codegen/interface-implementation/integration-typings/events-module.d.ts.map +1 -0
  128. package/dist/codegen/interface-implementation/integration-typings/index.d.ts +9 -0
  129. package/dist/codegen/interface-implementation/integration-typings/index.d.ts.map +1 -0
  130. package/dist/codegen/interface-package/index.d.ts +3 -0
  131. package/dist/codegen/interface-package/index.d.ts.map +1 -0
  132. package/dist/codegen/interface-package/interface-package-definition/actions-module.d.ts +22 -0
  133. package/dist/codegen/interface-package/interface-package-definition/actions-module.d.ts.map +1 -0
  134. package/dist/codegen/interface-package/interface-package-definition/channels-module.d.ts +6 -0
  135. package/dist/codegen/interface-package/interface-package-definition/channels-module.d.ts.map +1 -0
  136. package/dist/codegen/interface-package/interface-package-definition/entities-module.d.ts +11 -0
  137. package/dist/codegen/interface-package/interface-package-definition/entities-module.d.ts.map +1 -0
  138. package/dist/codegen/interface-package/interface-package-definition/events-module.d.ts +11 -0
  139. package/dist/codegen/interface-package/interface-package-definition/events-module.d.ts.map +1 -0
  140. package/dist/codegen/interface-package/interface-package-definition/index.d.ts +9 -0
  141. package/dist/codegen/interface-package/interface-package-definition/index.d.ts.map +1 -0
  142. package/dist/codegen/interface-package/interface-package-definition/typings.d.ts +8 -0
  143. package/dist/codegen/interface-package/interface-package-definition/typings.d.ts.map +1 -0
  144. package/dist/codegen/module.d.ts +54 -0
  145. package/dist/codegen/module.d.ts.map +1 -0
  146. package/dist/codegen/paths.d.ts +8 -0
  147. package/dist/codegen/paths.d.ts.map +1 -0
  148. package/dist/codegen/plugin-implementation/index.d.ts +4 -0
  149. package/dist/codegen/plugin-implementation/index.d.ts.map +1 -0
  150. package/dist/codegen/plugin-implementation/plugin-implementation.d.ts +8 -0
  151. package/dist/codegen/plugin-implementation/plugin-implementation.d.ts.map +1 -0
  152. package/dist/codegen/plugin-implementation/plugin-typings/actions-module.d.ts +22 -0
  153. package/dist/codegen/plugin-implementation/plugin-typings/actions-module.d.ts.map +1 -0
  154. package/dist/codegen/plugin-implementation/plugin-typings/configuration-module.d.ts +8 -0
  155. package/dist/codegen/plugin-implementation/plugin-typings/configuration-module.d.ts.map +1 -0
  156. package/dist/codegen/plugin-implementation/plugin-typings/conversation-module.d.ts +8 -0
  157. package/dist/codegen/plugin-implementation/plugin-typings/conversation-module.d.ts.map +1 -0
  158. package/dist/codegen/plugin-implementation/plugin-typings/events-module.d.ts +11 -0
  159. package/dist/codegen/plugin-implementation/plugin-typings/events-module.d.ts.map +1 -0
  160. package/dist/codegen/plugin-implementation/plugin-typings/index.d.ts +9 -0
  161. package/dist/codegen/plugin-implementation/plugin-typings/index.d.ts.map +1 -0
  162. package/dist/codegen/plugin-implementation/plugin-typings/message-module.d.ts +8 -0
  163. package/dist/codegen/plugin-implementation/plugin-typings/message-module.d.ts.map +1 -0
  164. package/dist/codegen/plugin-implementation/plugin-typings/states-module.d.ts +18 -0
  165. package/dist/codegen/plugin-implementation/plugin-typings/states-module.d.ts.map +1 -0
  166. package/dist/codegen/plugin-implementation/plugin-typings/tables-module.d.ts +11 -0
  167. package/dist/codegen/plugin-implementation/plugin-typings/tables-module.d.ts.map +1 -0
  168. package/dist/codegen/plugin-implementation/plugin-typings/user-module.d.ts +8 -0
  169. package/dist/codegen/plugin-implementation/plugin-typings/user-module.d.ts.map +1 -0
  170. package/dist/codegen/plugin-implementation/plugin-typings/workflows-module.d.ts +28 -0
  171. package/dist/codegen/plugin-implementation/plugin-typings/workflows-module.d.ts.map +1 -0
  172. package/dist/codegen/plugin-package/index.d.ts +3 -0
  173. package/dist/codegen/plugin-package/index.d.ts.map +1 -0
  174. package/dist/codegen/plugin-package/plugin-package-definition/actions-module.d.ts +22 -0
  175. package/dist/codegen/plugin-package/plugin-package-definition/actions-module.d.ts.map +1 -0
  176. package/dist/codegen/plugin-package/plugin-package-definition/configuration-module.d.ts +8 -0
  177. package/dist/codegen/plugin-package/plugin-package-definition/configuration-module.d.ts.map +1 -0
  178. package/dist/codegen/plugin-package/plugin-package-definition/events-module.d.ts +11 -0
  179. package/dist/codegen/plugin-package/plugin-package-definition/events-module.d.ts.map +1 -0
  180. package/dist/codegen/plugin-package/plugin-package-definition/index.d.ts +9 -0
  181. package/dist/codegen/plugin-package/plugin-package-definition/index.d.ts.map +1 -0
  182. package/dist/codegen/plugin-package/plugin-package-definition/interfaces-module.d.ts +8 -0
  183. package/dist/codegen/plugin-package/plugin-package-definition/interfaces-module.d.ts.map +1 -0
  184. package/dist/codegen/plugin-package/plugin-package-definition/recurring-events-module.d.ts +6 -0
  185. package/dist/codegen/plugin-package/plugin-package-definition/recurring-events-module.d.ts.map +1 -0
  186. package/dist/codegen/plugin-package/plugin-package-definition/states-module.d.ts +11 -0
  187. package/dist/codegen/plugin-package/plugin-package-definition/states-module.d.ts.map +1 -0
  188. package/dist/codegen/plugin-package/plugin-package-definition/typings.d.ts +8 -0
  189. package/dist/codegen/plugin-package/plugin-package-definition/typings.d.ts.map +1 -0
  190. package/dist/codegen/schema.d.ts +8 -0
  191. package/dist/codegen/schema.d.ts.map +1 -0
  192. package/dist/codegen/secret-module.d.ts +17 -0
  193. package/dist/codegen/secret-module.d.ts.map +1 -0
  194. package/dist/codegen/strings.d.ts +6 -0
  195. package/dist/codegen/strings.d.ts.map +1 -0
  196. package/dist/codegen/type-utils.d.ts +9 -0
  197. package/dist/codegen/type-utils.d.ts.map +1 -0
  198. package/dist/codegen/typings.d.ts +167 -0
  199. package/dist/codegen/typings.d.ts.map +1 -0
  200. package/dist/codegen/utils.d.ts +12 -0
  201. package/dist/codegen/utils.d.ts.map +1 -0
  202. package/dist/commands/base-command.d.ts.map +1 -1
  203. package/dist/commands/index.d.ts +1 -12
  204. package/dist/commands/index.d.ts.map +1 -1
  205. package/dist/commands/native-command.d.ts +39 -0
  206. package/dist/commands/native-command.d.ts.map +1 -0
  207. package/dist/constants.d.ts +1 -0
  208. package/dist/constants.d.ts.map +1 -1
  209. package/dist/dependencies/catalog/catalog-service.d.ts +2 -0
  210. package/dist/dependencies/catalog/catalog-service.d.ts.map +1 -1
  211. package/dist/dependencies/catalog/client-factory.d.ts +7 -10
  212. package/dist/dependencies/catalog/client-factory.d.ts.map +1 -1
  213. package/dist/dependencies/catalog/integration-source.d.ts +1 -0
  214. package/dist/dependencies/catalog/integration-source.d.ts.map +1 -1
  215. package/dist/dependencies/catalog/interface-source.d.ts +1 -0
  216. package/dist/dependencies/catalog/interface-source.d.ts.map +1 -1
  217. package/dist/dependencies/catalog/plugin-source.d.ts +7 -0
  218. package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -1
  219. package/dist/dependencies/catalog/resolution-cache.d.ts +8 -6
  220. package/dist/dependencies/catalog/resolution-cache.d.ts.map +1 -1
  221. package/dist/dependencies/dependency-manager.d.ts +13 -0
  222. package/dist/dependencies/dependency-manager.d.ts.map +1 -1
  223. package/dist/dependencies/index.js +502 -267
  224. package/dist/dependencies/index.js.map +24 -24
  225. package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
  226. package/dist/dependencies/snapshot-store.d.ts.map +1 -1
  227. package/dist/dependencies/types.d.ts +23 -318
  228. package/dist/dependencies/types.d.ts.map +1 -1
  229. package/dist/deploy/attributes.d.ts +16 -0
  230. package/dist/deploy/attributes.d.ts.map +1 -0
  231. package/dist/deploy/bot-body.d.ts +26 -0
  232. package/dist/deploy/bot-body.d.ts.map +1 -0
  233. package/dist/deploy/errors.d.ts +9 -0
  234. package/dist/deploy/errors.d.ts.map +1 -0
  235. package/dist/deploy/integration-utils.d.ts +11 -0
  236. package/dist/deploy/integration-utils.d.ts.map +1 -0
  237. package/dist/deploy/records.d.ts +14 -0
  238. package/dist/deploy/records.d.ts.map +1 -0
  239. package/dist/deploy/schema-utils.d.ts +16 -0
  240. package/dist/deploy/schema-utils.d.ts.map +1 -0
  241. package/dist/deploy-manifest/index.d.ts +23 -491
  242. package/dist/deploy-manifest/index.d.ts.map +1 -1
  243. package/dist/file-watcher/watcher.d.ts +18 -4
  244. package/dist/file-watcher/watcher.d.ts.map +1 -1
  245. package/dist/generators/tests.d.ts.map +1 -1
  246. package/dist/index.d.ts +11 -4
  247. package/dist/index.d.ts.map +1 -1
  248. package/dist/index.js +15846 -10935
  249. package/dist/index.js.map +128 -48
  250. package/dist/knowledge/manager.d.ts.map +1 -1
  251. package/dist/native-deploy/deploy-bot.d.ts +32 -0
  252. package/dist/native-deploy/deploy-bot.d.ts.map +1 -0
  253. package/dist/native-deploy/prepare-dependencies.d.ts +13 -0
  254. package/dist/native-deploy/prepare-dependencies.d.ts.map +1 -0
  255. package/dist/native-dev/dev-runtime.d.ts +159 -0
  256. package/dist/native-dev/dev-runtime.d.ts.map +1 -0
  257. package/dist/native-dev/event-emitter.d.ts +8 -0
  258. package/dist/native-dev/event-emitter.d.ts.map +1 -0
  259. package/dist/native-dev/tunnel.d.ts +56 -0
  260. package/dist/native-dev/tunnel.d.ts.map +1 -0
  261. package/dist/native-dev/worker/child-wrapper.d.ts +24 -0
  262. package/dist/native-dev/worker/child-wrapper.d.ts.map +1 -0
  263. package/dist/native-dev/worker/config.d.ts +21 -0
  264. package/dist/native-dev/worker/config.d.ts.map +1 -0
  265. package/dist/native-dev/worker/worker-state.d.ts +31 -0
  266. package/dist/native-dev/worker/worker-state.d.ts.map +1 -0
  267. package/dist/native-dev/worker/worker.d.ts +32 -0
  268. package/dist/native-dev/worker/worker.d.ts.map +1 -0
  269. package/dist/{commands/bp-dev-worker-env.d.ts → native-dev/worker-env.d.ts} +1 -1
  270. package/dist/native-dev/worker-env.d.ts.map +1 -0
  271. package/dist/plugins/manager.d.ts +6 -0
  272. package/dist/plugins/manager.d.ts.map +1 -1
  273. package/dist/preflight/checker.d.ts +1 -1
  274. package/dist/preflight/checker.d.ts.map +1 -1
  275. package/dist/preflight/types.d.ts +1 -1
  276. package/dist/preflight/types.d.ts.map +1 -1
  277. package/dist/runner/script-runner.d.ts +0 -4
  278. package/dist/runner/script-runner.d.ts.map +1 -1
  279. package/dist/secrets/index.d.ts +5 -2
  280. package/dist/secrets/index.d.ts.map +1 -1
  281. package/dist/secrets/local.d.ts +28 -0
  282. package/dist/secrets/local.d.ts.map +1 -0
  283. package/dist/secrets/remote.d.ts +22 -0
  284. package/dist/secrets/remote.d.ts.map +1 -0
  285. package/dist/secrets/status.d.ts +24 -0
  286. package/dist/secrets/status.d.ts.map +1 -0
  287. package/dist/secrets/validation.d.ts +11 -0
  288. package/dist/secrets/validation.d.ts.map +1 -0
  289. package/dist/templates/README.md +6 -1
  290. package/dist/templates/blank/README.md +5 -0
  291. package/dist/templates/botpress-desk/README.md +5 -0
  292. package/dist/templates/crm-enrichment/README.md +5 -0
  293. package/dist/templates/hello-world/README.md +5 -0
  294. package/dist/templates/knowledge-assistant/README.md +5 -0
  295. package/dist/templates/slack-triage/README.md +5 -0
  296. package/dist/utils/adk-ignore.d.ts +17 -0
  297. package/dist/utils/adk-ignore.d.ts.map +1 -0
  298. package/dist/utils/json-ordering.d.ts +1 -1
  299. package/dist/utils/json-ordering.d.ts.map +1 -1
  300. package/dist/utils/ref-parser.d.ts +17 -0
  301. package/dist/utils/ref-parser.d.ts.map +1 -0
  302. package/dist/utils/source-map-optimizer.d.ts +4 -4
  303. package/package.json +11 -12
  304. package/dist/auth/bp-cli-import.d.ts +0 -16
  305. package/dist/auth/bp-cli-import.d.ts.map +0 -1
  306. package/dist/commands/bp-add-command.d.ts +0 -19
  307. package/dist/commands/bp-add-command.d.ts.map +0 -1
  308. package/dist/commands/bp-build-command.d.ts +0 -14
  309. package/dist/commands/bp-build-command.d.ts.map +0 -1
  310. package/dist/commands/bp-chat-command.d.ts +0 -18
  311. package/dist/commands/bp-chat-command.d.ts.map +0 -1
  312. package/dist/commands/bp-cli.d.ts +0 -14
  313. package/dist/commands/bp-cli.d.ts.map +0 -1
  314. package/dist/commands/bp-cli.js +0 -147
  315. package/dist/commands/bp-cli.js.map +0 -12
  316. package/dist/commands/bp-deploy-command.d.ts +0 -21
  317. package/dist/commands/bp-deploy-command.d.ts.map +0 -1
  318. package/dist/commands/bp-dev-command.d.ts +0 -89
  319. package/dist/commands/bp-dev-command.d.ts.map +0 -1
  320. package/dist/commands/bp-dev-stderr.d.ts +0 -30
  321. package/dist/commands/bp-dev-stderr.d.ts.map +0 -1
  322. package/dist/commands/bp-dev-worker-env.d.ts.map +0 -1
  323. package/dist/secrets/manager.d.ts +0 -44
  324. package/dist/secrets/manager.d.ts.map +0 -1
@@ -1,89 +0,0 @@
1
- import { BaseCommand } from './base-command.js';
2
- export interface BpDevCommandOptions {
3
- port: string;
4
- botPath: string;
5
- agentPath: string;
6
- workspaceId: string;
7
- credentials: {
8
- token: string;
9
- apiUrl: string;
10
- };
11
- /** The dev bot ID if already known (from agent.local.json) */
12
- devBotId?: string;
13
- sourceMap?: boolean;
14
- /** When `false`, pass `--no-watch` to `bp dev`. Requires @botpress/cli >= 6.8.6. */
15
- watch?: boolean;
16
- /** Bot configuration to inject as environment variable */
17
- configuration?: Record<string, unknown>;
18
- /** Secret values to inject as SECRET_* environment variables */
19
- secrets?: Record<string, string>;
20
- /** Auto-negotiated port for the internal CLI span ingest server (HttpSpanExporter) */
21
- spanIngestPort: number;
22
- /** Port for standard OTLP export to external tools (default 4318) */
23
- otlpPort?: number;
24
- /** Bot name from agent.config.ts, used for OTLP service.name */
25
- botName?: string;
26
- }
27
- export type BpDevProgressEvent = {
28
- type: 'generating';
29
- startTime: number;
30
- endTime?: number;
31
- } | {
32
- type: 'bundling';
33
- startTime: number;
34
- endTime?: number;
35
- data?: {
36
- buildTime: number;
37
- };
38
- } | {
39
- type: 'deploying';
40
- startTime: number;
41
- endTime?: number;
42
- data?: {
43
- botId: string;
44
- tunnelUrl: string;
45
- };
46
- } | {
47
- type: 'listening';
48
- startTime: number;
49
- data: {
50
- port: number;
51
- };
52
- };
53
- export declare class BpDevCommand extends BaseCommand<BpDevProgressEvent> {
54
- private options;
55
- private childProcess;
56
- private killed;
57
- private stderrLines;
58
- private readonly MAX_STDERR_LINES;
59
- private progressEvents;
60
- constructor(options: BpDevCommandOptions);
61
- run(): Promise<void>;
62
- private parseOutput;
63
- private optimizeSourceMapIfExists;
64
- /**
65
- * The PID of the spawned `bp dev` child process, or null if not yet started.
66
- * Used by `adk ps` to display bot runtime process information.
67
- */
68
- get pid(): number | null;
69
- /**
70
- * Signal the entire `bp dev` process tree (parent + worker subprocesses).
71
- *
72
- * SIGTERM on the direct child alone leaves worker grandchildren holding
73
- * the dev server port, causing EADDRINUSE on respawn. `tree-kill` walks
74
- * the process tree via `pgrep` / `taskkill /T` for cross-platform reach.
75
- */
76
- kill(signal?: NodeJS.Signals): void;
77
- /**
78
- * Kill the full process tree and wait until the child is reaped.
79
- *
80
- * Escalates to SIGKILL if the tree doesn't exit within 2s, so a stuck
81
- * worker can't block the respawn. Callers can spawn a new instance on
82
- * the same port immediately after this resolves.
83
- */
84
- waitForExit(): Promise<void>;
85
- restart(): Promise<BpDevCommand>;
86
- getProgressEvent(type: BpDevProgressEvent['type']): BpDevProgressEvent | undefined;
87
- getAllProgressEvents(): BpDevProgressEvent[];
88
- }
89
- //# sourceMappingURL=bp-dev-command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bp-dev-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAK/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oFAAoF;IACpF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,sFAAsF;IACtF,cAAc,EAAE,MAAM,CAAA;IACtB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,kBAAkB,GAC1B;IACE,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GACD;IACE,IAAI,EAAE,UAAU,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,GACD;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,GACD;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA;AAEL,qBAAa,YAAa,SAAQ,WAAW,CAAC,kBAAkB,CAAC;IASnD,OAAO,CAAC,OAAO;IAR3B,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAK;IAGtC,OAAO,CAAC,cAAc,CAAiE;gBAEnE,OAAO,EAAE,mBAAmB;IAI1C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA+L1B,OAAO,CAAC,WAAW;YA8GL,yBAAyB;IAqBvC;;;OAGG;IACH,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;IAED;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,GAAE,MAAM,CAAC,OAAmB,GAAG,IAAI;IAW9C;;;;;;OAMG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAmB5B,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;IAOtC,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,kBAAkB,GAAG,SAAS;IAIlF,oBAAoB,IAAI,kBAAkB,EAAE;CAG7C"}
@@ -1,30 +0,0 @@
1
- /**
2
- * Marker for `bp dev`'s per-request tunnel-forward failure (logged when a request reaches the
3
- * tunnel while the local worker is momentarily down — typically the rebuild/restart window).
4
- * The current `bp dev` output may stop at this prefix; richer versions can append request/cause
5
- * details after it. Match the prefix only so both shapes are classified the same way.
6
- *
7
- * Keep in sync with packages/cli/src/commands/adk-dev-events.ts so fatal stderr
8
- * classification and non-interactive event normalization recognize the same marker.
9
- */
10
- export declare const REQUEST_HANDLING_ERROR_MARKER: RegExp;
11
- /**
12
- * Classify a chunk of `bp dev` stderr as a fatal startup error, or null if not fatal.
13
- *
14
- * `econnrefused`/`connection refused` is only treated as fatal (the Botpress API being
15
- * unreachable) when the chunk is NOT a per-request tunnel-forward failure. A single forwarded
16
- * request failing because the worker is mid-restart is self-healing and must never tear down the
17
- * whole dev session. If `bp dev` includes a richer cause chain in that message, it can contain
18
- * `ECONNREFUSED`, which would otherwise trip this rule.
19
- */
20
- export declare function classifyFatalStderr(text: string, port: string): string | null;
21
- export interface RecoverableRegistrationFailure {
22
- /** Integration alias `bp` reported as `registration_failed`. */
23
- name: string;
24
- /** `bp`'s `statusReason` for the failure (OAuth, missing config, …); '' when none was printed. */
25
- reason: string;
26
- }
27
- export declare function classifyRecoverableDeployError(text: string): {
28
- failures: RecoverableRegistrationFailure[];
29
- } | null;
30
- //# sourceMappingURL=bp-dev-stderr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bp-dev-stderr.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-stderr.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,QAA8C,CAAA;AAExF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkB7E;AA2BD,MAAM,WAAW,8BAA8B;IAC7C,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAA;IACZ,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,8BAA8B,EAAE,CAAA;CAAE,GAAG,IAAI,CAgBlH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"bp-dev-worker-env.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-worker-env.ts"],"names":[],"mappings":"AAAA,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;AAkB7C,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKnF;AAED,wBAAgB,4BAA4B,CAAC,GAAG,GAAE,GAAiB,GAAG,OAAO,CAM5E;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,GAAE,GAAiB,GAAG,OAAO,CAE3F;AAED,wBAAgB,oBAAoB,CAAC,GAAG,GAAE,GAAiB,GAAG,MAAM,CAWnE"}
@@ -1,44 +0,0 @@
1
- export type Environment = 'dev' | 'prod';
2
- export declare class SecretsManager {
3
- private storePath;
4
- constructor(projectPath: string);
5
- private readStore;
6
- private writeStore;
7
- /**
8
- * List secret names and their values for the given environment.
9
- * Returns names only (not values) for display purposes.
10
- */
11
- list(env: Environment): Promise<string[]>;
12
- /**
13
- * Get declared secret key-value pairs for the given environment.
14
- * Used internally to inject into bp dev/deploy.
15
- *
16
- * Secrets present in the local store but not listed in `declaredSecrets`
17
- * (i.e. orphans from a removed declaration) are filtered out so they are
18
- * never injected into the bot process or forwarded to `bp dev`/`bp deploy`.
19
- * The local file is not modified — call `delete` to remove a value for good.
20
- */
21
- getAll(env: Environment, declaredSecrets: Record<string, {
22
- optional?: boolean;
23
- description?: string;
24
- }>): Promise<Record<string, string>>;
25
- /**
26
- * Set a secret value in the local store.
27
- */
28
- set(key: string, value: string, env: Environment): Promise<void>;
29
- /**
30
- * Delete a secret from the local store.
31
- */
32
- delete(key: string, env: Environment): Promise<void>;
33
- /**
34
- * Compare declared secrets against what's stored locally.
35
- */
36
- getMissing(declaredSecrets: Record<string, {
37
- optional?: boolean;
38
- description?: string;
39
- }>, storedSecrets: Record<string, string>): {
40
- required: string[];
41
- optional: string[];
42
- };
43
- }
44
- //# sourceMappingURL=manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/secrets/manager.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAA;AAExC,qBAAa,cAAc;IACzB,OAAO,CAAC,SAAS,CAAQ;gBAEb,WAAW,EAAE,MAAM;YAIjB,SAAS;YAkDT,UAAU;IAaxB;;;OAGG;IACG,IAAI,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAK/C;;;;;;;;OAQG;IACG,MAAM,CACV,GAAG,EAAE,WAAW,EAChB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAC5E,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAMlC;;OAEG;IACG,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtE;;OAEG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAM1D;;OAEG;IACH,UAAU,CACR,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAC7E,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE;CAiB9C"}