@agentxjs/devtools 2.0.0 → 3.0.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.
package/src/bdd/index.ts CHANGED
@@ -11,31 +11,26 @@
11
11
  * ```
12
12
  */
13
13
 
14
- export { createCucumberConfig, type CucumberConfigOptions } from "./cucumber.config";
15
-
16
- export {
17
- launchBrowser,
18
- getPage,
19
- resetPage,
20
- closePage,
21
- closeBrowser,
22
- waitForUrl,
23
- type BrowserOptions,
24
- } from "./playwright";
25
-
26
- export { startDevServer, stopDevServer, getDevServer, type DevServerOptions } from "./dev-server";
27
-
14
+ export { agentDocTester, type DocTesterOptions, type DocTestResult } from "./agent-doc-tester";
15
+ export { agentUiTester, type UiTesterOptions, type UiTestResult } from "./agent-ui-tester";
16
+ export { type CucumberConfigOptions, createCucumberConfig } from "./cucumber.config";
17
+ export { type DevServerOptions, getDevServer, startDevServer, stopDevServer } from "./dev-server";
28
18
  export {
29
- paths,
30
- getMonorepoPath,
31
- getPackagePath,
19
+ ensureDir,
32
20
  getBddPath,
33
21
  getFixturesPath,
22
+ getMonorepoPath,
23
+ getPackagePath,
34
24
  getTempPath,
35
- ensureDir,
25
+ paths,
36
26
  resetPaths,
37
27
  } from "./paths";
38
-
39
- export { agentUiTester, type UiTestResult, type UiTesterOptions } from "./agent-ui-tester";
40
-
41
- export { agentDocTester, type DocTestResult, type DocTesterOptions } from "./agent-doc-tester";
28
+ export {
29
+ type BrowserOptions,
30
+ closeBrowser,
31
+ closePage,
32
+ getPage,
33
+ launchBrowser,
34
+ resetPage,
35
+ waitForUrl,
36
+ } from "./playwright";
package/src/bdd/paths.ts CHANGED
@@ -4,9 +4,9 @@
4
4
  * Provides consistent path resolution across all packages.
5
5
  */
6
6
 
7
- import { resolve, dirname } from "node:path";
8
- import { existsSync, mkdtempSync, mkdirSync } from "node:fs";
7
+ import { existsSync, mkdirSync, mkdtempSync } from "node:fs";
9
8
  import { tmpdir } from "node:os";
9
+ import { dirname, resolve } from "node:path";
10
10
 
11
11
  // ============================================================================
12
12
  // Path Resolution
@@ -10,7 +10,7 @@
10
10
  * - resetPage() clears state between scenarios
11
11
  */
12
12
 
13
- import { chromium, Browser, Page } from "@playwright/test";
13
+ import { type Browser, chromium, type Page } from "@playwright/test";
14
14
 
15
15
  export interface BrowserOptions {
16
16
  headless?: boolean;
package/src/env.ts CHANGED
@@ -20,7 +20,7 @@
20
20
  */
21
21
 
22
22
  import { existsSync, readFileSync } from "node:fs";
23
- import { resolve, dirname } from "node:path";
23
+ import { dirname, resolve } from "node:path";
24
24
 
25
25
  // ============================================================================
26
26
  // Auto-load .env files from monorepo root
package/src/index.ts CHANGED
@@ -40,40 +40,35 @@
40
40
  * ```
41
41
  */
42
42
 
43
+ // Fixtures
44
+ export {
45
+ BUILTIN_FIXTURES,
46
+ EMPTY_RESPONSE,
47
+ ERROR_RESPONSE,
48
+ getFixture,
49
+ LONG_REPLY,
50
+ listFixtures,
51
+ SIMPLE_REPLY,
52
+ TOOL_CALL,
53
+ } from "../fixtures";
43
54
  // Devtools SDK (recommended)
44
55
  export {
45
- Devtools,
46
56
  createDevtools,
47
57
  createVcrCreateDriver,
58
+ Devtools,
48
59
  type DevtoolsConfig,
49
60
  type DriverOptions,
50
61
  type VcrCreateDriverConfig,
51
62
  } from "./Devtools";
52
-
63
+ // Environment
64
+ export { env } from "./env";
53
65
  // Mock Driver (low-level)
54
- export { MockDriver, createMockDriver } from "./mock/MockDriver";
55
-
66
+ export { createMockDriver, MockDriver } from "./mock/MockDriver";
56
67
  // Recording Driver (low-level)
57
68
  export {
58
- RecordingDriver,
59
69
  createRecordingDriver,
70
+ RecordingDriver,
60
71
  type RecordingDriverOptions,
61
72
  } from "./recorder/RecordingDriver";
62
-
63
- // Environment
64
- export { env } from "./env";
65
-
66
73
  // Types
67
74
  export type { Fixture, FixtureEvent, MockDriverOptions } from "./types";
68
-
69
- // Fixtures
70
- export {
71
- BUILTIN_FIXTURES,
72
- SIMPLE_REPLY,
73
- LONG_REPLY,
74
- TOOL_CALL,
75
- ERROR_RESPONSE,
76
- EMPTY_RESPONSE,
77
- getFixture,
78
- listFixtures,
79
- } from "../fixtures";
@@ -22,11 +22,11 @@
22
22
  * ```
23
23
  */
24
24
 
25
- import type { Driver, DriverConfig, DriverState, DriverStreamEvent } from "@agentxjs/core/driver";
26
25
  import type { UserMessage } from "@agentxjs/core/agent";
27
- import type { Fixture, FixtureEvent, MockDriverOptions } from "../types";
28
- import { BUILTIN_FIXTURES } from "../../fixtures";
26
+ import type { Driver, DriverConfig, DriverState, DriverStreamEvent } from "@agentxjs/core/driver";
29
27
  import { createLogger } from "commonxjs/logger";
28
+ import { BUILTIN_FIXTURES } from "../../fixtures";
29
+ import type { Fixture, FixtureEvent, MockDriverOptions } from "../types";
30
30
 
31
31
  const logger = createLogger("devtools/MockDriver");
32
32
 
package/src/mock/index.ts CHANGED
@@ -20,4 +20,4 @@
20
20
  * ```
21
21
  */
22
22
 
23
- export { MockDriver, createMockDriver } from "./MockDriver";
23
+ export { createMockDriver, MockDriver } from "./MockDriver";
@@ -31,10 +31,10 @@
31
31
  * ```
32
32
  */
33
33
 
34
- import type { Driver, DriverState, DriverStreamEvent } from "@agentxjs/core/driver";
35
34
  import type { UserMessage } from "@agentxjs/core/agent";
36
- import type { Fixture, FixtureEvent } from "../types";
35
+ import type { Driver, DriverState, DriverStreamEvent } from "@agentxjs/core/driver";
37
36
  import { createLogger } from "commonxjs/logger";
37
+ import type { Fixture, FixtureEvent } from "../types";
38
38
 
39
39
  const logger = createLogger("devtools/RecordingDriver");
40
40
 
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  export {
22
- RecordingDriver,
23
22
  createRecordingDriver,
23
+ RecordingDriver,
24
24
  type RecordingDriverOptions,
25
25
  } from "./RecordingDriver";