@botpress/adk 1.6.3 → 1.6.4

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 (122) hide show
  1. package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
  2. package/dist/agent-init/index.d.ts.map +1 -1
  3. package/dist/agent-project/agent-project.d.ts +6 -6
  4. package/dist/agent-project/agent-project.d.ts.map +1 -1
  5. package/dist/agent-project/dependencies-json.d.ts +3 -3
  6. package/dist/agent-project/dependencies-json.d.ts.map +1 -1
  7. package/dist/agent-project/expand-exports.d.ts +1 -1
  8. package/dist/agent-project/expand-exports.d.ts.map +1 -1
  9. package/dist/agent-project/file-watcher.d.ts.map +1 -1
  10. package/dist/agent-project/index.d.ts.map +1 -1
  11. package/dist/agent-project/types.d.ts +7 -7
  12. package/dist/agent-project/types.d.ts.map +1 -1
  13. package/dist/agent-project/validation-errors.d.ts +2 -2
  14. package/dist/agent-project/validation-errors.d.ts.map +1 -1
  15. package/dist/assets/cache.d.ts.map +1 -1
  16. package/dist/assets/index.d.ts.map +1 -1
  17. package/dist/assets/manager.d.ts +1 -1
  18. package/dist/assets/manager.d.ts.map +1 -1
  19. package/dist/assets/types.d.ts.map +1 -1
  20. package/dist/assets/updater.d.ts +1 -1
  21. package/dist/assets/updater.d.ts.map +1 -1
  22. package/dist/auth/bp-cli-import.d.ts.map +1 -1
  23. package/dist/auth/credentials.d.ts.map +1 -1
  24. package/dist/auth/index.d.ts.map +1 -1
  25. package/dist/auth/service.d.ts.map +1 -1
  26. package/dist/bot-generator/dev-id-manager.d.ts +1 -1
  27. package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
  28. package/dist/bot-generator/generator.d.ts +1 -1
  29. package/dist/bot-generator/generator.d.ts.map +1 -1
  30. package/dist/bot-generator/index.d.ts +4 -4
  31. package/dist/bot-generator/index.d.ts.map +1 -1
  32. package/dist/bot-generator/integration-sync.d.ts.map +1 -1
  33. package/dist/bot-generator/interface-sync.d.ts.map +1 -1
  34. package/dist/commands/base-command.d.ts +1 -1
  35. package/dist/commands/base-command.d.ts.map +1 -1
  36. package/dist/commands/bp-add-command.d.ts +1 -1
  37. package/dist/commands/bp-add-command.d.ts.map +1 -1
  38. package/dist/commands/bp-build-command.d.ts +1 -1
  39. package/dist/commands/bp-build-command.d.ts.map +1 -1
  40. package/dist/commands/bp-chat-command.d.ts +1 -1
  41. package/dist/commands/bp-chat-command.d.ts.map +1 -1
  42. package/dist/commands/bp-cli.d.ts.map +1 -1
  43. package/dist/commands/bp-deploy-command.d.ts +1 -1
  44. package/dist/commands/bp-deploy-command.d.ts.map +1 -1
  45. package/dist/commands/bp-dev-command.d.ts +6 -6
  46. package/dist/commands/bp-dev-command.d.ts.map +1 -1
  47. package/dist/commands/index.d.ts +12 -12
  48. package/dist/commands/index.d.ts.map +1 -1
  49. package/dist/const.d.ts.map +1 -1
  50. package/dist/constants.d.ts +1 -1
  51. package/dist/constants.d.ts.map +1 -1
  52. package/dist/file-watcher/index.d.ts +2 -2
  53. package/dist/file-watcher/index.d.ts.map +1 -1
  54. package/dist/file-watcher/watcher.d.ts +4 -4
  55. package/dist/file-watcher/watcher.d.ts.map +1 -1
  56. package/dist/generators/action-types.d.ts +1 -1
  57. package/dist/generators/action-types.d.ts.map +1 -1
  58. package/dist/generators/assets.d.ts.map +1 -1
  59. package/dist/generators/conversation-types.d.ts +1 -1
  60. package/dist/generators/conversation-types.d.ts.map +1 -1
  61. package/dist/generators/event-types.d.ts +1 -1
  62. package/dist/generators/event-types.d.ts.map +1 -1
  63. package/dist/generators/index.d.ts +2 -2
  64. package/dist/generators/index.d.ts.map +1 -1
  65. package/dist/generators/integration-action-types.d.ts +1 -1
  66. package/dist/generators/integration-action-types.d.ts.map +1 -1
  67. package/dist/generators/integration-types.d.ts +1 -1
  68. package/dist/generators/integration-types.d.ts.map +1 -1
  69. package/dist/generators/interface-types.d.ts +1 -1
  70. package/dist/generators/interface-types.d.ts.map +1 -1
  71. package/dist/generators/state-types.d.ts +1 -1
  72. package/dist/generators/state-types.d.ts.map +1 -1
  73. package/dist/generators/table-types.d.ts +1 -1
  74. package/dist/generators/table-types.d.ts.map +1 -1
  75. package/dist/generators/tests.d.ts.map +1 -1
  76. package/dist/generators/trigger-types.d.ts +1 -1
  77. package/dist/generators/trigger-types.d.ts.map +1 -1
  78. package/dist/generators/utils.d.ts.map +1 -1
  79. package/dist/generators/workflow-types.d.ts +1 -1
  80. package/dist/generators/workflow-types.d.ts.map +1 -1
  81. package/dist/index.d.ts +24 -24
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +30 -77
  84. package/dist/index.js.map +60 -60
  85. package/dist/integrations/cache.d.ts +1 -1
  86. package/dist/integrations/cache.d.ts.map +1 -1
  87. package/dist/integrations/checker.d.ts +3 -3
  88. package/dist/integrations/checker.d.ts.map +1 -1
  89. package/dist/integrations/enhanced-cache.d.ts.map +1 -1
  90. package/dist/integrations/hub-cache.d.ts +2 -2
  91. package/dist/integrations/hub-cache.d.ts.map +1 -1
  92. package/dist/integrations/index.d.ts +12 -12
  93. package/dist/integrations/index.d.ts.map +1 -1
  94. package/dist/integrations/manager.d.ts +3 -3
  95. package/dist/integrations/manager.d.ts.map +1 -1
  96. package/dist/integrations/operations.d.ts.map +1 -1
  97. package/dist/integrations/types.d.ts +1 -1
  98. package/dist/integrations/types.d.ts.map +1 -1
  99. package/dist/interfaces/enhanced-cache.d.ts +1 -1
  100. package/dist/interfaces/enhanced-cache.d.ts.map +1 -1
  101. package/dist/interfaces/index.d.ts +7 -7
  102. package/dist/interfaces/index.d.ts.map +1 -1
  103. package/dist/interfaces/manager.d.ts +3 -3
  104. package/dist/interfaces/manager.d.ts.map +1 -1
  105. package/dist/interfaces/operations.d.ts.map +1 -1
  106. package/dist/interfaces/parser.d.ts +2 -2
  107. package/dist/interfaces/parser.d.ts.map +1 -1
  108. package/dist/interfaces/types.d.ts +1 -1
  109. package/dist/interfaces/types.d.ts.map +1 -1
  110. package/dist/tables/index.d.ts +2 -2
  111. package/dist/tables/index.d.ts.map +1 -1
  112. package/dist/tables/manager.d.ts +2 -2
  113. package/dist/tables/manager.d.ts.map +1 -1
  114. package/dist/tables/types.d.ts +1 -1
  115. package/dist/tables/types.d.ts.map +1 -1
  116. package/dist/test/cache.d.ts.map +1 -1
  117. package/dist/utils/fs.d.ts.map +1 -1
  118. package/dist/utils/json-ordering.d.ts.map +1 -1
  119. package/dist/utils/source-map-optimizer.d.ts.map +1 -1
  120. package/dist/workspace/index.d.ts.map +1 -1
  121. package/dist/workspace/workspace-cache.d.ts.map +1 -1
  122. package/package.json +3 -3
@@ -1,3 +1,3 @@
1
- export * from "./watcher";
2
- export type { FileChange, FileChangeEvent, WatchChangeType, FileWatcherOptions } from "./watcher";
1
+ export * from './watcher';
2
+ export type { FileChange, FileChangeEvent, WatchChangeType, FileWatcherOptions } from './watcher';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file-watcher/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file-watcher/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
@@ -1,5 +1,5 @@
1
- import { EventEmitter } from "events";
2
- export type WatchChangeType = "added" | "modified" | "deleted";
1
+ import { EventEmitter } from 'events';
2
+ export type WatchChangeType = 'added' | 'modified' | 'deleted';
3
3
  export interface FileChange {
4
4
  path: string;
5
5
  type: WatchChangeType;
@@ -65,10 +65,10 @@ export declare class FileWatcher extends EventEmitter {
65
65
  /**
66
66
  * Type-safe event listener
67
67
  */
68
- on(event: "change", listener: (event: FileChangeEvent) => void): this;
68
+ on(event: 'change', listener: (event: FileChangeEvent) => void): this;
69
69
  /**
70
70
  * Type-safe event emitter
71
71
  */
72
- emit(event: "change", data: FileChangeEvent): boolean;
72
+ emit(event: 'change', data: FileChangeEvent): boolean;
73
73
  }
74
74
  //# sourceMappingURL=watcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../src/file-watcher/watcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAItC,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,QAAQ,CAAoD;IACpE,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,cAAc,CAAsC;gBAEhD,OAAO,EAAE,kBAAkB;IAMvC;;OAEG;IACH,KAAK,IAAI,IAAI;IA0Bb;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAiBhC;;OAEG;IACH,OAAO,CAAC,SAAS;IAmBjB;;OAEG;IACH,OAAO,CAAC,cAAc;IAuBtB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAyCxB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAgB1B;;OAEG;IAC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G;IACH,OAAO,CAAC,kBAAkB;IAgB1B;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,IAAI,IAAI,IAAI;IAgBZ;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,GAAG,IAAI;IAIrE;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,GAAG,OAAO;CAGtD"}
@@ -1,3 +1,3 @@
1
- import { AgentProject } from "../agent-project/agent-project.js";
1
+ import { AgentProject } from '../agent-project/agent-project.js';
2
2
  export declare function generateActionTypes(project: AgentProject): Promise<void>;
3
3
  //# sourceMappingURL=action-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["../../src/generators/action-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CAyEf"}
1
+ {"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["../../src/generators/action-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAKhE,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAiE9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/generators/assets.ts"],"names":[],"mappings":"AAKA,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAS5E;AAED,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAqDf;AAED,wBAAsB,UAAU,CAC9B,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CA6Df"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/generators/assets.ts"],"names":[],"mappings":"AAKA,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAS5E;AAED,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiDpH;AAED,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAyDzG"}
@@ -1,3 +1,3 @@
1
- import { AgentProject } from "../agent-project/agent-project.js";
1
+ import { AgentProject } from '../agent-project/agent-project.js';
2
2
  export declare function generateConversationTypes(project: AgentProject): Promise<void>;
3
3
  //# sourceMappingURL=conversation-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-types.d.ts","sourceRoot":"","sources":["../../src/generators/conversation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA4Ff"}
1
+ {"version":3,"file":"conversation-types.d.ts","sourceRoot":"","sources":["../../src/generators/conversation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAKhE,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAoFpF"}
@@ -1,3 +1,3 @@
1
- import { AgentProject } from "../agent-project/agent-project.js";
1
+ import { AgentProject } from '../agent-project/agent-project.js';
2
2
  export declare function generateEventTypes(project: AgentProject): Promise<void>;
3
3
  //# sourceMappingURL=event-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../src/generators/event-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAgD7E"}
1
+ {"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../src/generators/event-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAKhE,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA8C7E"}
@@ -1,3 +1,3 @@
1
- export * from "./assets.js";
2
- export { generateIntegrationTypes } from "./integration-types.js";
1
+ export * from './assets.js';
2
+ export { generateIntegrationTypes } from './integration-types.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,3 +1,3 @@
1
- import { AgentProject } from "../agent-project/agent-project.js";
1
+ import { AgentProject } from '../agent-project/agent-project.js';
2
2
  export declare function generateIntegrationActionTypes(project: AgentProject): Promise<void>;
3
3
  //# sourceMappingURL=integration-action-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration-action-types.d.ts","sourceRoot":"","sources":["../../src/generators/integration-action-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,wBAAsB,8BAA8B,CAClD,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CAyCf"}
1
+ {"version":3,"file":"integration-action-types.d.ts","sourceRoot":"","sources":["../../src/generators/integration-action-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAKhE,wBAAsB,8BAA8B,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAqCzF"}
@@ -1,4 +1,4 @@
1
- import { ParsedIntegration } from "../integrations/types.js";
1
+ import { ParsedIntegration } from '../integrations/types.js';
2
2
  declare const getIntegrationNames: (integration: ParsedIntegration) => {
3
3
  typings: {
4
4
  index: string;
@@ -1 +1 @@
1
- {"version":3,"file":"integration-types.d.ts","sourceRoot":"","sources":["../../src/generators/integration-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAsB7D,QAAA,MAAM,mBAAmB,GAAI,aAAa,iBAAiB;;;;;;;;;;;;;;;CAezD,CAAC;AAEH,wBAAsB,wBAAwB,CAC5C,WAAW,EAAE,iBAAiB,GAC7B,OAAO,CAAC;IACT,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B,CAAC,CA0OD"}
1
+ {"version":3,"file":"integration-types.d.ts","sourceRoot":"","sources":["../../src/generators/integration-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAgB5D,QAAA,MAAM,mBAAmB,GAAI,aAAa,iBAAiB;;;;;;;;;;;;;;;CAezD,CAAA;AAEF,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC;IACtF,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA;IAC7C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC9B,CAAC,CAgND"}
@@ -1,4 +1,4 @@
1
- import { Integration, Interface } from "@botpress/client";
1
+ import { Integration, Interface } from '@botpress/client';
2
2
  export declare const sameMajorVersion: (a: string, b: string) => boolean;
3
3
  declare const getInterfaceNames: (int: Interface) => {
4
4
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"interface-types.d.ts","sourceRoot":"","sources":["../../src/generators/interface-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAa1D,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,OAIvD,CAAC;AA2BF,QAAA,MAAM,iBAAiB,GAAI,KAAK,SAAS;;;;;;;;;;CAUvC,CAAC;AAEH,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,SAAS,EACd,YAAY,EAAE,WAAW,EAAE,GAC1B,OAAO,CAAC;IACT,KAAK,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B,CAAC,CA8HD"}
1
+ {"version":3,"file":"interface-types.d.ts","sourceRoot":"","sources":["../../src/generators/interface-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAQzD,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,OAIvD,CAAA;AAqBD,QAAA,MAAM,iBAAiB,GAAI,KAAK,SAAS;;;;;;;;;;CAUvC,CAAA;AAEF,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,SAAS,EACd,YAAY,EAAE,WAAW,EAAE,GAC1B,OAAO,CAAC;IACT,KAAK,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAC3C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC9B,CAAC,CAsHD"}
@@ -1,3 +1,3 @@
1
- import { AgentProject } from "../agent-project/agent-project.js";
1
+ import { AgentProject } from '../agent-project/agent-project.js';
2
2
  export declare function generateStateTypes(project: AgentProject): Promise<void>;
3
3
  //# sourceMappingURL=state-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"state-types.d.ts","sourceRoot":"","sources":["../../src/generators/state-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA8C7E"}
1
+ {"version":3,"file":"state-types.d.ts","sourceRoot":"","sources":["../../src/generators/state-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAKhE,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA8C7E"}
@@ -1,4 +1,4 @@
1
- import { AgentProject } from "../agent-project/agent-project.js";
1
+ import { AgentProject } from '../agent-project/agent-project.js';
2
2
  export interface TableTypeInfo {
3
3
  name: string;
4
4
  columns: Record<string, {
@@ -1 +1 @@
1
- {"version":3,"file":"table-types.d.ts","sourceRoot":"","sources":["../../src/generators/table-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CACb,MAAM,EACN;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAC3D,CAAC;CACH;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6G7E"}
1
+ {"version":3,"file":"table-types.d.ts","sourceRoot":"","sources":["../../src/generators/table-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAKhE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CACpF;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAkG7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../src/generators/tests.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM,EAAE,SAAS,MAAM,oDAiBrE,CAAC;AAEL,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM;;;;;;;;iBAkBomt5B,CAAC;uBAA0H,CAAC;;;;;;;;iBAAuU,CAAC;uBAAyH,CAAC;;;;sBAAsM,CAAC;;;;;;;iBAA6S,CAAC;uBAA0H,CAAC;oBAAkC,CAAC;qBAAoC,CAAC;;;;;;;;;;;sBAA2Y,CAAC;;;;;;;iBAA8O,CAAC;uBAA2H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAr48M,CAAC;uBAA0H,CAAC;;;;;;;;iBAAuU,CAAC;uBAAyH,CAAC;;;;sBAAsM,CAAC;;;;;;;iBAA6S,CAAC;uBAA0H,CAAC;oBAAkC,CAAC;qBAAoC,CAAC;;;;;;;;;;;sBAA2Y,CAAC;;;;;;;iBAA8O,CAAC;uBAA2H,CAAC;;;;;;;;;;;;;;;;;;;;;;EADpv4sB,CAAC"}
1
+ {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../src/generators/tests.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM,EAAE,SAAS,MAAM,oDAiBrE,CAAA;AAEJ,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM;;;;;;;;iBAkB+mt5B,CAAC;uBAA0H,CAAC;;;;;;;;iBAAuU,CAAC;uBAAyH,CAAC;;;;sBAAsM,CAAC;;;;;;;iBAA6S,CAAC;uBAA0H,CAAC;oBAAkC,CAAC;qBAAoC,CAAC;;;;;;;;;;;sBAA2Y,CAAC;;;;;;;iBAA8O,CAAC;uBAA2H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAr48M,CAAC;uBAA0H,CAAC;;;;;;;;iBAAuU,CAAC;uBAAyH,CAAC;;;;sBAAsM,CAAC;;;;;;;iBAA6S,CAAC;uBAA0H,CAAC;oBAAkC,CAAC;qBAAoC,CAAC;;;;;;;;;;;sBAA2Y,CAAC;;;;;;;iBAA8O,CAAC;uBAA2H,CAAC;;;;;;;;;;;;;;;;;;;;;;EAD/v4sB,CAAA"}
@@ -1,3 +1,3 @@
1
- import { AgentProject } from "../agent-project/agent-project.js";
1
+ import { AgentProject } from '../agent-project/agent-project.js';
2
2
  export declare function generateTriggerTypes(project: AgentProject): Promise<void>;
3
3
  //# sourceMappingURL=trigger-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trigger-types.d.ts","sourceRoot":"","sources":["../../src/generators/trigger-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CAsDf"}
1
+ {"version":3,"file":"trigger-types.d.ts","sourceRoot":"","sources":["../../src/generators/trigger-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAKhE,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAkD/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/generators/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;CAWA,CAAC;AAE7B,eAAO,MAAM,UAAU,GACrB,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAuBhB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,IAAI,MAAM,KAAG,MAInD,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA6B1D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/generators/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;CAWA,CAAA;AAE5B,eAAO,MAAM,UAAU,GAAU,MAAM,MAAM,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,CAuBhF,CAAA;AAED,eAAO,MAAM,WAAW,UAAU,CAAA;AAElC,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,IAAI,MAAM,KAAG,MAInD,CAAA;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA6B1D"}
@@ -1,4 +1,4 @@
1
- import { AgentProject } from "../agent-project/index.js";
1
+ import { AgentProject } from '../agent-project/index.js';
2
2
  export type WorkflowTypeInfo = {
3
3
  name: string;
4
4
  input: string;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/generators/workflow-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAMF,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA4Ff"}
1
+ {"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/generators/workflow-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAKxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAMD,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAoFhF"}
package/dist/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- export { auth, bpCliImporter } from "./auth/index.js";
2
- export type { AuthAPI, LoginOptions, Credentials, Profile, AuthResult, } from "./auth/index.js";
3
- export * from "./commands/index.js";
4
- export { workspaceCache } from "./workspace/index.js";
5
- export { getRelativeTime } from "./utils/time.js";
6
- export { stringifyWithOrder, orderKeys, agentInfoKeyOrder, dependenciesKeyOrder, integrationKeyOrder, } from "./utils/json-ordering.js";
7
- export { AgentProject, ValidationErrors } from "./agent-project/index.js";
8
- export { ValidationErrorCode, ValidationSeverity, ProjectState, } from "./agent-project/index.js";
9
- export type { AgentConfig, Dependencies, AgentInfo, ProjectInfo, ValidationResult, ValidationError, BuildOutput, BuildEvent, BuildEventType, FileChangeEvent, FileChangeType, WatchOptions, Integration, IntegrationChange, IntegrationSyncResult, } from "./agent-project/index.js";
10
- export { AgentProjectGenerator } from "./agent-init/index.js";
11
- export { IntegrationManager, IntegrationParser, IntegrationCache, IntegrationOperations, IntegrationChecker, HubCache, } from "./integrations/index.js";
12
- export type { IntegrationRef, IntegrationDefinition, ParsedIntegration, IntegrationValidationResult, IntegrationCheckResult, IntegrationInstallStatus, IntegrationRegistrationStatus, AddIntegrationOptions, AddIntegrationResult, UpgradeIntegrationOptions, RemoveIntegrationOptions, IntegrationVersionInfo, HubCacheEntry, HubCacheData, } from "./integrations/index.js";
13
- export { InterfaceOperations, InterfaceManager, InterfaceParser, EnhancedInterfaceCache, } from "./interfaces/index.js";
14
- export type { AddInterfaceResult, InterfaceOperationsOptions, InterfaceManagerOptions, } from "./interfaces/index.js";
15
- export { AssetsManager } from "./assets/index.js";
16
- export type { AssetFile, LocalAssetFile, AssetSyncPlan, AssetSyncResult, AssetSyncItem, AssetSyncOperation, AssetSyncOptions, AssetsIndex, } from "./assets/index.js";
17
- export { generateAssetsTypes, generateAssetsRuntime, initAssets, } from "./generators/assets.js";
18
- export { generateIntegrationTypes } from "./generators/integration-types.js";
19
- export { BotGenerator, generateBotProject, DevIdManager, IntegrationSync, } from "./bot-generator/index.js";
20
- export type { BotGeneratorOptions, ProjectCache, IntegrationInfo, SyncResult, } from "./bot-generator/index.js";
21
- export { TableManager } from "./tables/index.js";
22
- export type { TableManagerOptions, TableSyncPlan, TableSyncResult, TableSyncOptions, TableSyncItem, TableSyncOperation, LocalTable, RemoteTable, } from "./tables/index.js";
23
- export { FileWatcher } from "./file-watcher/index.js";
24
- export type { WatchChangeType, FileChange, FileChangeEvent as FileWatcherChangeEvent, FileWatcherOptions, } from "./file-watcher/index.js";
1
+ export { auth, bpCliImporter } from './auth/index.js';
2
+ export type { AuthAPI, LoginOptions, Credentials, Profile, AuthResult } from './auth/index.js';
3
+ export * from './commands/index.js';
4
+ export { workspaceCache } from './workspace/index.js';
5
+ export { getRelativeTime } from './utils/time.js';
6
+ export { stringifyWithOrder, orderKeys, agentInfoKeyOrder, dependenciesKeyOrder, integrationKeyOrder, } from './utils/json-ordering.js';
7
+ export { AgentProject, ValidationErrors } from './agent-project/index.js';
8
+ export { ValidationErrorCode, ValidationSeverity, ProjectState } from './agent-project/index.js';
9
+ export type { AgentConfig, Dependencies, AgentInfo, ProjectInfo, ValidationResult, ValidationError, BuildOutput, BuildEvent, BuildEventType, FileChangeEvent, FileChangeType, WatchOptions, Integration, IntegrationChange, IntegrationSyncResult, } from './agent-project/index.js';
10
+ export { AgentProjectGenerator } from './agent-init/index.js';
11
+ export { IntegrationManager, IntegrationParser, IntegrationCache, IntegrationOperations, IntegrationChecker, HubCache, } from './integrations/index.js';
12
+ export type { IntegrationRef, IntegrationDefinition, ParsedIntegration, IntegrationValidationResult, IntegrationCheckResult, IntegrationInstallStatus, IntegrationRegistrationStatus, AddIntegrationOptions, AddIntegrationResult, UpgradeIntegrationOptions, RemoveIntegrationOptions, IntegrationVersionInfo, HubCacheEntry, HubCacheData, } from './integrations/index.js';
13
+ export { InterfaceOperations, InterfaceManager, InterfaceParser, EnhancedInterfaceCache } from './interfaces/index.js';
14
+ export type { AddInterfaceResult, InterfaceOperationsOptions, InterfaceManagerOptions } from './interfaces/index.js';
15
+ export { AssetsManager } from './assets/index.js';
16
+ export type { AssetFile, LocalAssetFile, AssetSyncPlan, AssetSyncResult, AssetSyncItem, AssetSyncOperation, AssetSyncOptions, AssetsIndex, } from './assets/index.js';
17
+ export { generateAssetsTypes, generateAssetsRuntime, initAssets } from './generators/assets.js';
18
+ export { generateIntegrationTypes } from './generators/integration-types.js';
19
+ export { BotGenerator, generateBotProject, DevIdManager, IntegrationSync } from './bot-generator/index.js';
20
+ export type { BotGeneratorOptions, ProjectCache, IntegrationInfo, SyncResult } from './bot-generator/index.js';
21
+ export { TableManager } from './tables/index.js';
22
+ export type { TableManagerOptions, TableSyncPlan, TableSyncResult, TableSyncOptions, TableSyncItem, TableSyncOperation, LocalTable, RemoteTable, } from './tables/index.js';
23
+ export { FileWatcher } from './file-watcher/index.js';
24
+ export type { WatchChangeType, FileChange, FileChangeEvent as FileWatcherChangeEvent, FileWatcherOptions, } from './file-watcher/index.js';
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EACV,OAAO,EACP,YAAY,EACZ,WAAW,EACX,OAAO,EACP,UAAU,GACX,MAAM,iBAAiB,CAAC;AAGzB,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,UAAU,EACV,cAAc,EACd,eAAe,EACf,cAAc,EACd,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAG9D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,2BAA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sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACtH,YAAY,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAGpH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,YAAY,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,GACZ,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAC/F,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAG5E,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1G,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAG9G,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,YAAY,EACV,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,WAAW,GACZ,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EACV,eAAe,EACf,UAAU,EACV,eAAe,IAAI,sBAAsB,EACzC,kBAAkB,GACnB,MAAM,yBAAyB,CAAA"}
package/dist/index.js CHANGED
@@ -1070,13 +1070,7 @@ class BpDevCommand extends BaseCommand {
1070
1070
  this.options = options;
1071
1071
  }
1072
1072
  async run() {
1073
- const {
1074
- port,
1075
- botPath,
1076
- workspaceId,
1077
- credentials,
1078
- sourceMap = true
1079
- } = this.options;
1073
+ const { port, botPath, workspaceId, credentials, sourceMap = true } = this.options;
1080
1074
  const { path: bpCommand } = await getBpCli(botPath);
1081
1075
  const bpArgs = [
1082
1076
  "dev",
@@ -1396,13 +1390,7 @@ function getRelativeTime(date) {
1396
1390
  // src/utils/json-ordering.ts
1397
1391
  var agentInfoKeyOrder = ["botId", "workspaceId", "devId"];
1398
1392
  var dependenciesKeyOrder = ["integrations"];
1399
- var integrationKeyOrder = [
1400
- "version",
1401
- "enabled",
1402
- "configurationType",
1403
- "connection",
1404
- "config"
1405
- ];
1393
+ var integrationKeyOrder = ["version", "enabled", "configurationType", "connection", "config"];
1406
1394
  function orderKeys(obj, keyOrder) {
1407
1395
  const objKeys = Object.keys(obj);
1408
1396
  const orderedKeys = [];
@@ -1450,12 +1438,7 @@ function stringifyWithOrder(obj, keyOrder, space = 2) {
1450
1438
  return JSON.stringify(orderedObj, null, space);
1451
1439
  }
1452
1440
  // src/agent-project/agent-project.ts
1453
- import {
1454
- BuiltInWorkflows,
1455
- Errors as Errors2,
1456
- Primitives as Primitives2,
1457
- setAdkCommand
1458
- } from "@botpress/runtime/internal";
1441
+ import { BuiltInWorkflows, Errors as Errors2, Primitives as Primitives2, setAdkCommand } from "@botpress/runtime/internal";
1459
1442
  import fs10 from "fs/promises";
1460
1443
  import path11 from "path";
1461
1444
  // src/assets/manager.ts
@@ -1652,10 +1635,7 @@ class AssetsManager {
1652
1635
  }
1653
1636
  }
1654
1637
  async createSyncPlan() {
1655
- const [localAssets, remoteAssets] = await Promise.all([
1656
- this.getLocalAssets(),
1657
- this.getRemoteAssets()
1658
- ]);
1638
+ const [localAssets, remoteAssets] = await Promise.all([this.getLocalAssets(), this.getRemoteAssets()]);
1659
1639
  const items = [];
1660
1640
  const remoteMap = new Map;
1661
1641
  for (const remote of remoteAssets) {
@@ -3937,14 +3917,8 @@ class AgentProject {
3937
3917
  }
3938
3918
  const errorsBySeverity = {
3939
3919
  errors: errors.filter((e) => e.severity === "error" /* ERROR */),
3940
- warnings: [
3941
- ...warnings,
3942
- ...errors.filter((e) => e.severity === "warning" /* WARNING */)
3943
- ],
3944
- info: [
3945
- ...info,
3946
- ...errors.filter((e) => e.severity === "info" /* INFO */)
3947
- ]
3920
+ warnings: [...warnings, ...errors.filter((e) => e.severity === "warning" /* WARNING */)],
3921
+ info: [...info, ...errors.filter((e) => e.severity === "info" /* INFO */)]
3948
3922
  };
3949
3923
  return {
3950
3924
  valid: errorsBySeverity.errors.length === 0,
@@ -4466,13 +4440,7 @@ class FileWatcher extends EventEmitter2 {
4466
4440
  this.watcher = undefined;
4467
4441
  }
4468
4442
  shouldIgnore(relativePath) {
4469
- const defaultIgnored = [
4470
- /^\.git\//,
4471
- /^node_modules\//,
4472
- /^dist\//,
4473
- /^\.adk\//,
4474
- /\.DS_Store$/
4475
- ];
4443
+ const defaultIgnored = [/^\.git\//, /^node_modules\//, /^dist\//, /^\.adk\//, /\.DS_Store$/];
4476
4444
  const allPatterns = [...defaultIgnored, ...this.ignoredPatterns];
4477
4445
  return allPatterns.some((pattern) => pattern.test(relativePath));
4478
4446
  }
@@ -4526,7 +4494,7 @@ class AgentProjectGenerator {
4526
4494
  deploy: "adk deploy"
4527
4495
  },
4528
4496
  dependencies: {
4529
- "@botpress/runtime": `^${"1.6.3"}`
4497
+ "@botpress/runtime": `^${"1.6.4"}`
4530
4498
  },
4531
4499
  devDependencies: {
4532
4500
  typescript: "^5.0.0"
@@ -4685,14 +4653,7 @@ A Botpress Agent built with the ADK.
4685
4653
  async createSourceStructure() {
4686
4654
  const srcPath = path14.join(this.projectPath, "src");
4687
4655
  fs11.mkdirSync(srcPath);
4688
- const subdirectories = [
4689
- "actions",
4690
- "conversations",
4691
- "knowledge",
4692
- "tables",
4693
- "triggers",
4694
- "workflows"
4695
- ];
4656
+ const subdirectories = ["actions", "conversations", "knowledge", "tables", "triggers", "workflows"];
4696
4657
  for (const subdir of subdirectories) {
4697
4658
  const subdirPath = path14.join(srcPath, subdir);
4698
4659
  fs11.mkdirSync(subdirPath);
@@ -5851,7 +5812,7 @@ class InterfaceSync {
5851
5812
  throw new Error('No workspace ID found. Please login with "adk login"');
5852
5813
  }
5853
5814
  const bpCli = await getBpCli(this.projectPath);
5854
- const command = bpCli.path;
5815
+ const bpPath = bpCli.path;
5855
5816
  return new Promise((resolve3, reject) => {
5856
5817
  const args = [
5857
5818
  "add",
@@ -5866,7 +5827,10 @@ class InterfaceSync {
5866
5827
  "--apiUrl",
5867
5828
  credentials.apiUrl
5868
5829
  ];
5869
- const child = spawn(command, args, {
5830
+ const isJsFile = bpPath.endsWith(".js");
5831
+ const command = isJsFile ? "node" : bpPath;
5832
+ const commandArgs = isJsFile ? [bpPath, ...args] : args;
5833
+ const child = spawn(command, commandArgs, {
5870
5834
  cwd: this.projectPath,
5871
5835
  stdio: "pipe"
5872
5836
  });
@@ -5938,13 +5902,13 @@ class InterfaceSync {
5938
5902
  // src/bot-generator/generator.ts
5939
5903
  init_utils();
5940
5904
  import { transforms as transforms3 } from "@botpress/sdk";
5941
- import {
5942
- BuiltInWorkflows as BuiltInWorkflows3,
5943
- Primitives as Primitives3
5944
- } from "@botpress/runtime/internal";
5905
+ import { BuiltInWorkflows as BuiltInWorkflows3, Primitives as Primitives3 } from "@botpress/runtime/internal";
5945
5906
  function isBuiltinWorkflow2(name) {
5946
5907
  return !!Object.values(BuiltInWorkflows3).find((x) => x.name === name);
5947
5908
  }
5909
+ function getImportPath(from, to) {
5910
+ return path29.relative(path29.dirname(from), to).replace(/\.ts$/, "").replace(/\\/g, "/");
5911
+ }
5948
5912
 
5949
5913
  class BotGenerator {
5950
5914
  projectPath;
@@ -6032,7 +5996,7 @@ class BotGenerator {
6032
5996
  for (const integration of integrations.integrations) {
6033
5997
  if (integration.enabled && integration.definition) {
6034
5998
  const types6 = await generateIntegrationTypes(integration);
6035
- const importPath = `./${path29.join("integrations", types6.names.paths.index)}`;
5999
+ const importPath = `./${path29.join("integrations", types6.names.paths.index).replace(/\\/g, "/")}`;
6036
6000
  aliases.add(`"${integration.alias}": import("${importPath}").${types6.names.typings.index}`);
6037
6001
  for (const [filePath, content] of Object.entries(types6.files)) {
6038
6002
  const fullPath = path29.join(this.projectPath, ".adk", "integrations", filePath);
@@ -6174,7 +6138,7 @@ declare module "@botpress/runtime/_types/state" {
6174
6138
  let files = new Set;
6175
6139
  for (const int of interfaces) {
6176
6140
  const types6 = await generateInterfaceTypes(int, integrations);
6177
- imports.add(`import { ${types6.names.typings.index} } from "./${path29.join("interfaces", types6.names.paths.index)}";`);
6141
+ imports.add(`import { ${types6.names.typings.index} } from "./${path29.join("interfaces", types6.names.paths.index).replace(/\\/g, "/")}";`);
6178
6142
  aliases.add(`"${types6.names.name}": ${types6.names.typings.index}`);
6179
6143
  for (const [filePath, content] of Object.entries(types6.files)) {
6180
6144
  const fullPath = path29.join(this.projectPath, ".adk", "interfaces", filePath);
@@ -6597,13 +6561,7 @@ declare module "@botpress/runtime/_types/state" {
6597
6561
  noPropertyAccessFromIndexSignature: false,
6598
6562
  noUnusedLocals: false
6599
6563
  },
6600
- include: [
6601
- ".botpress/**/*",
6602
- "src/**/*",
6603
- "bp_modules/**/*",
6604
- "./*.ts",
6605
- "./*.json"
6606
- ]
6564
+ include: [".botpress/**/*", "src/**/*", "bp_modules/**/*", "./*.ts", "./*.json"]
6607
6565
  };
6608
6566
  await createFile(path29.join(this.outputPath, "tsconfig.json"), JSON.stringify(tsConfig, null, 2));
6609
6567
  }
@@ -6663,7 +6621,7 @@ declare module "@botpress/runtime/_types/state" {
6663
6621
  for (const conversation of project.conversations) {
6664
6622
  if (!imports.has(conversation.path)) {
6665
6623
  const name = `conversations_${index++}`;
6666
- const importPath = path29.relative(path29.dirname(dest), path29.join(project.path, conversation.path)).replace(/\.ts$/, "");
6624
+ const importPath = getImportPath(dest, path29.join(project.path, conversation.path));
6667
6625
  imports.set(conversation.path, {
6668
6626
  name,
6669
6627
  statement: `import * as ${name} from "${importPath}";`
@@ -6696,7 +6654,7 @@ declare module "@botpress/runtime/_types/state" {
6696
6654
  for (const knowledge of project.knowledge) {
6697
6655
  if (!imports.has(knowledge.path)) {
6698
6656
  const name = `knowledge_${index++}`;
6699
- const importPath = path29.relative(path29.dirname(dest), path29.join(project.path, knowledge.path)).replace(/\.ts$/, "");
6657
+ const importPath = getImportPath(dest, path29.join(project.path, knowledge.path));
6700
6658
  imports.set(knowledge.path, {
6701
6659
  name,
6702
6660
  statement: `import * as ${name} from "${importPath}";`
@@ -6731,7 +6689,7 @@ declare module "@botpress/runtime/_types/state" {
6731
6689
  for (const trigger of project.triggers) {
6732
6690
  if (!imports.has(trigger.path)) {
6733
6691
  const name = `triggers_${index++}`;
6734
- const importPath = path29.relative(path29.dirname(dest), path29.join(project.path, trigger.path)).replace(/\.ts$/, "");
6692
+ const importPath = getImportPath(dest, path29.join(project.path, trigger.path));
6735
6693
  imports.set(trigger.path, {
6736
6694
  name,
6737
6695
  statement: `import * as ${name} from "${importPath}";`
@@ -6794,7 +6752,7 @@ declare module "@botpress/runtime/_types/state" {
6794
6752
  }
6795
6753
  if (!imports.has(workflow.path)) {
6796
6754
  const name = `workflows_${index++}`;
6797
- const importPath = path29.relative(path29.dirname(dest), path29.join(project.path, workflow.path)).replace(/\.ts$/, "");
6755
+ const importPath = getImportPath(dest, path29.join(project.path, workflow.path));
6798
6756
  const statement = `import * as ${name} from "${importPath}";`;
6799
6757
  imports.set(workflow.path, {
6800
6758
  name,
@@ -6835,7 +6793,7 @@ declare module "@botpress/runtime/_types/state" {
6835
6793
  for (const action of project.actions) {
6836
6794
  if (!imports.has(action.path)) {
6837
6795
  const name = `actions_${index++}`;
6838
- const importPath = path29.relative(path29.dirname(dest), path29.join(project.path, action.path)).replace(/\.ts$/, "");
6796
+ const importPath = getImportPath(dest, path29.join(project.path, action.path));
6839
6797
  imports.set(action.path, {
6840
6798
  name,
6841
6799
  statement: `import * as ${name} from "${importPath}";`
@@ -6868,7 +6826,7 @@ declare module "@botpress/runtime/_types/state" {
6868
6826
  for (const table of project.tables) {
6869
6827
  if (!imports.has(table.path)) {
6870
6828
  const name = `tables_${index++}`;
6871
- const importPath = path29.relative(path29.dirname(dest), path29.join(project.path, table.path)).replace(/\.ts$/, "");
6829
+ const importPath = getImportPath(dest, path29.join(project.path, table.path));
6872
6830
  imports.set(table.path, {
6873
6831
  name,
6874
6832
  statement: `import * as ${name} from "${importPath}";`
@@ -6895,7 +6853,7 @@ declare module "@botpress/runtime/_types/state" {
6895
6853
  }
6896
6854
  {
6897
6855
  const dest = path29.join(srcDir, "config.ts");
6898
- const importPath = path29.relative(path29.dirname(dest), path29.join(project.path, "agent.config.ts")).replace(/\.ts$/, "");
6856
+ const importPath = getImportPath(dest, path29.join(project.path, "agent.config.ts"));
6899
6857
  const content2 = `
6900
6858
  ////////////////////////////////////////////////////////
6901
6859
  // DO NOT EDIT THIS FILE DIRECTLY
@@ -7213,12 +7171,7 @@ class FileWatcher2 extends EventEmitter3 {
7213
7171
  this.debounceMs = options.debounceMs ?? 100;
7214
7172
  }
7215
7173
  start() {
7216
- const rootFiles = [
7217
- "dependencies.json",
7218
- "package.json",
7219
- "agent.json",
7220
- "agent.config.ts"
7221
- ];
7174
+ const rootFiles = ["dependencies.json", "package.json", "agent.json", "agent.config.ts"];
7222
7175
  for (const file of rootFiles) {
7223
7176
  const filePath = join7(this.projectPath, file);
7224
7177
  if (existsSync6(filePath)) {
@@ -7383,5 +7336,5 @@ export {
7383
7336
  AgentProject
7384
7337
  };
7385
7338
 
7386
- //# debugId=12981FCAEF2A0D3F64756E2164756E21
7339
+ //# debugId=CA80748018B27FA864756E2164756E21
7387
7340
  //# sourceMappingURL=index.js.map