|
1 | 1 | import { test as base } from '@playwright/test'; |
2 | 2 | import { z } from 'zod'; |
3 | | -import { AutoConfig } from './types'; |
4 | | -import { context } from './context'; |
5 | | -import { sessionManager } from './session-manager'; |
6 | | -import { captureAutoCall, shutdown } from './analytics'; |
| 3 | +import { AutoConfig } from './types.js'; |
| 4 | +import { context } from './context.js'; |
| 5 | +import { sessionManager } from './session-manager.js'; |
| 6 | +import { captureAutoCall, shutdown } from './analytics.js'; |
7 | 7 | import { createReactAgent } from '@langchain/langgraph/prebuilt'; |
8 | 8 | import { HumanMessage } from '@langchain/core/messages'; |
9 | | -import { createLLMModel } from './llm'; |
| 9 | +import { createLLMModel } from './llm.js'; |
10 | 10 | import { Tool } from "@langchain/core/tools"; |
11 | | -import snapshot from './tools/snapshot'; |
12 | | -import navigateTools from './tools/navigate'; |
13 | | -import assertTools from './tools/assert'; |
14 | | -import consoleTools from './tools/console'; |
15 | | -import dialogTools from './tools/dialogs'; |
16 | | -import fileTools from './tools/files'; |
17 | | -import keyboardTools from './tools/keyboard'; |
18 | | -import networkTools from './tools/network'; |
19 | | -import tabTools from './tools/tabs'; |
20 | | -import testingTools from './tools/testing'; |
21 | | -import waitTools from './tools/wait'; |
22 | | -import commonTools from './tools/common'; |
23 | | - |
24 | | -import { createLangChainTool } from './tools/tool'; |
| 11 | +import snapshot from './tools/snapshot.js'; |
| 12 | +import navigateTools from './tools/navigate.js'; |
| 13 | +import assertTools from './tools/assert.js'; |
| 14 | +import consoleTools from './tools/console.js'; |
| 15 | +import dialogTools from './tools/dialogs.js'; |
| 16 | +import fileTools from './tools/files.js'; |
| 17 | +import keyboardTools from './tools/keyboard.js'; |
| 18 | +import networkTools from './tools/network.js'; |
| 19 | +import tabTools from './tools/tabs.js'; |
| 20 | +import testingTools from './tools/testing.js'; |
| 21 | +import waitTools from './tools/wait.js'; |
| 22 | +import commonTools from './tools/common.js'; |
| 23 | + |
| 24 | +import { createLangChainTool } from './tools/tool.js'; |
25 | 25 |
|
26 | 26 |
|
27 | 27 | // Convert our custom tools to LangChain tools |
@@ -376,5 +376,5 @@ process.on('beforeExit', async () => { |
376 | 376 | }); |
377 | 377 |
|
378 | 378 | // Export everything needed for the package |
379 | | -export { sessionManager } from './session-manager'; |
380 | | -export * from './types'; |
| 379 | +export { sessionManager } from './session-manager.js'; |
| 380 | +export * from './types.js'; |
0 commit comments