@agentxjs/devtools 2.0.0 → 2.0.2
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/dist/bdd/cli.js +2 -2
- package/dist/bdd/cli.js.map +1 -1
- package/dist/bdd/index.d.ts +81 -81
- package/dist/bdd/index.js +167 -165
- package/dist/bdd/index.js.map +1 -1
- package/dist/{chunk-J6L73HM5.js → chunk-SVPPRUN5.js} +1 -1
- package/dist/{chunk-J6L73HM5.js.map → chunk-SVPPRUN5.js.map} +1 -1
- package/dist/{chunk-S7J75AXG.js → chunk-Y6RXZINS.js} +2 -2
- package/dist/{chunk-S7J75AXG.js.map → chunk-Y6RXZINS.js.map} +1 -1
- package/dist/{chunk-DR45HEV4.js → chunk-YFONF7SD.js} +1 -1
- package/dist/{chunk-DR45HEV4.js.map → chunk-YFONF7SD.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +1 -1
- package/dist/mock/index.js +1 -1
- package/dist/recorder/index.d.ts +1 -1
- package/dist/recorder/index.js +1 -1
- package/package.json +6 -6
- package/src/Devtools.ts +6 -6
- package/src/bdd/agent-doc-tester.ts +1 -1
- package/src/bdd/agent-ui-tester.ts +1 -1
- package/src/bdd/cli.ts +2 -2
- package/src/bdd/dev-server.ts +1 -1
- package/src/bdd/index.ts +17 -22
- package/src/bdd/paths.ts +2 -2
- package/src/bdd/playwright.ts +1 -1
- package/src/env.ts +1 -1
- package/src/index.ts +16 -21
- package/src/mock/MockDriver.ts +3 -3
- package/src/mock/index.ts +1 -1
- package/src/recorder/RecordingDriver.ts +2 -2
- package/src/recorder/index.ts +1 -1
package/src/bdd/index.ts
CHANGED
|
@@ -11,31 +11,26 @@
|
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
export {
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
|
|
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
|
-
|
|
30
|
-
getMonorepoPath,
|
|
31
|
-
getPackagePath,
|
|
19
|
+
ensureDir,
|
|
32
20
|
getBddPath,
|
|
33
21
|
getFixturesPath,
|
|
22
|
+
getMonorepoPath,
|
|
23
|
+
getPackagePath,
|
|
34
24
|
getTempPath,
|
|
35
|
-
|
|
25
|
+
paths,
|
|
36
26
|
resetPaths,
|
|
37
27
|
} from "./paths";
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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 {
|
|
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
|
package/src/bdd/playwright.ts
CHANGED
package/src/env.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import { existsSync, readFileSync } from "node:fs";
|
|
23
|
-
import {
|
|
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 {
|
|
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";
|
package/src/mock/MockDriver.ts
CHANGED
|
@@ -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 {
|
|
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
|
@@ -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 {
|
|
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
|
|