@wabot-dev/framework 0.9.7 → 0.9.8
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.
|
@@ -37,11 +37,12 @@ import { RepositoryAdapterRegistry } from '../repository/RepositoryAdapterRegist
|
|
|
37
37
|
const logger = new Logger('wabot:project-runner');
|
|
38
38
|
const TEST_FILE_PATTERNS = /\.(test|spec|unit|integration|e2e|multiprocess)\.(ts|js)$/;
|
|
39
39
|
const DEFAULT_EXCLUDE = ['run.ts', 'cmd.ts'];
|
|
40
|
+
const MODULE_EXT = import.meta.url.endsWith('.ts') ? '.ts' : '.js';
|
|
40
41
|
const DEFAULT_CHAT_ADAPTERS = [
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
42
|
+
[`../../addon/chat-bot/openia/OpenaiChatAdapter${MODULE_EXT}`, 'OpenaiChatAdapter'],
|
|
43
|
+
[`../../addon/chat-bot/openrouter/OpenRouterChatAdapter${MODULE_EXT}`, 'OpenRouterChatAdapter'],
|
|
44
|
+
[`../../addon/chat-bot/anthropic/AnthropicChatAdapter${MODULE_EXT}`, 'AnthropicChatAdapter'],
|
|
45
|
+
[`../../addon/chat-bot/google/GoogleChatAdapter${MODULE_EXT}`, 'GoogleChatAdapter'],
|
|
45
46
|
];
|
|
46
47
|
class ProjectRunner {
|
|
47
48
|
directories;
|