@mongodb-js/harness-tester 3.0.0-prerelease.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 (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +38 -0
package/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # @mongodb-js/harness-tester
2
+
3
+ Agent-only tooling for driving real LLM coding-agent CLIs interactively through their TUIs, with **no MCP or MongoDB dependencies**.
4
+
5
+ Harnesses today: [codex](https://github.com/openai/codex) and [claude](https://github.com/anthropics/claude-code), both driven inside [`@microsoft/tui-test`](https://github.com/microsoft/tui-test/blob/main/bindings/js/README.md)'s headless terminal emulator.
6
+
7
+ What lives here:
8
+
9
+ - `harness/codex/`, `harness/claude/` — per-agent config generation, TUI drive loops, and tool-call parsers (`AgentHarnessConfig` + `AgentHarness` implementations; the contract is in `harness/types.ts`). Turn text is raw terminal content, not an extracted reply — tests keyword-match it.
10
+ - `harness/shared.ts` — shared helpers (canonical path handling, transcript diffing, backend resolution, tool-name normalization).
11
+ - `useAgent({ harness })` — pure agent hook: temp workdir, availability skip gate, and base `AgentHarnessOptions` (model overrides, timeout).
12
+ - `AGENT_HARNESSES` — the registry of harness classes.
13
+
14
+ The MCP/MongoDB side of an e2e suite (in-process MongoDB MCP server, mongod spin-up, connection wiring) lives in `packages/e2e-tests` (`useMcpAgent`), which composes with the `useAgent` hook here. See that package's README.
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@mongodb-js/harness-tester",
3
+ "version": "3.0.0-prerelease.4",
4
+ "type": "module",
5
+ "description": "Tooling to drive real LLM coding-agent CLIs (codex, claude) interactively through their TUIs for end-to-end tests",
6
+ "license": "Apache-2.0",
7
+ "author": "MongoDB <info@mongodb.com>",
8
+ "repository": {
9
+ "url": "https://github.com/mongodb-js/mongodb-mcp-server.git",
10
+ "directory": "packages/harness-tester"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
+ },
18
+ "main": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc --build tsconfig.build.json",
25
+ "check": "tsc --noEmit --project tsconfig.json"
26
+ },
27
+ "dependencies": {
28
+ "@microsoft/tui-test": "0.1.0-beta.2",
29
+ "vitest": "^4.1.5"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "^25.6.0",
33
+ "typescript": "^5.9.2"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ }
38
+ }