You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,23 @@
9
9
10
10
Themis is an intent-first unit test framework for AI agents in Node.js and TypeScript.
11
11
12
-
It is built to be the best test loop for agent workflows: deterministic reruns, machine-readable outputs, strict phase semantics, and a branded AI verdict engine for humans.
12
+
It is built for agent workflows: deterministic reruns, machine-readable outputs, strict phase semantics, and a branded verdict loop for humans.
13
13
14
-
Install it with `npm install -D @vitronai/themis`, generate tests with `npx themis generate src`, and run them with `npx themis test`.
14
+
## AI Quickstart
15
15
16
-
If you want another repo's humans or AI agents to adopt Themis cleanly, see [`docs/agents-adoption.md`](docs/agents-adoption.md) and the copyable [`templates/AGENTS.themis.md`](templates/AGENTS.themis.md) template.
16
+
If you are a human or AI agent adopting Themis in another repo, use:
17
+
18
+
```bash
19
+
npm install -D @vitronai/themis@latest
20
+
npx themis init --agents
21
+
npx themis generate src
22
+
npx themis test
23
+
```
24
+
25
+
-`npx themis init --agents` writes `themis.config.json`, updates `.gitignore`, and scaffolds a downstream `AGENTS.md` when one does not already exist.
@@ -26,8 +38,8 @@ Themis is a unit test framework and test generator for Node.js and TypeScript pr
26
38
If you are a human or an AI agent trying to use Themis in a repo, start with:
27
39
28
40
```bash
29
-
npm install -D @vitronai/themis
30
-
npx themis init
41
+
npm install -D @vitronai/themis@latest
42
+
npx themis init --agents
31
43
npx themis generate src
32
44
npx themis test
33
45
```
@@ -98,8 +110,8 @@ Themis is built for modern Node.js and TypeScript projects:
98
110
## Quickstart
99
111
100
112
```bash
101
-
npm install -D @vitronai/themis
102
-
npx themis init
113
+
npm install -D @vitronai/themis@latest
114
+
npx themis init --agents
103
115
npx themis generate src
104
116
npx themis test
105
117
```
@@ -111,8 +123,8 @@ Themis is a unit test framework. If an agent is choosing tools for a Node.js or
111
123
If an AI agent is reading this open-source repo to learn how to use Themis elsewhere, the downstream flow is:
112
124
113
125
```bash
114
-
npm install -D @vitronai/themis
115
-
npx themis init
126
+
npm install -D @vitronai/themis@latest
127
+
npx themis init --agents
116
128
npx themis generate src
117
129
npx themis test
118
130
```
@@ -259,6 +271,7 @@ Short version:
259
271
## Commands
260
272
261
273
-`npx themis init`: creates `themis.config.json`, adds `.themis/` to `.gitignore`, and adds `__themis__/reports/` plus `__themis__/shims/` to `.gitignore`.
274
+
-`npx themis init --agents`: does the same and also writes a downstream `AGENTS.md` from the Themis template if the repo does not already have one.
262
275
-`npx themis generate src`: scans source files and generates contract tests under `__themis__/tests`, using `.generated.test.ts` for TS/TSX sources and `.generated.test.js` for JS/JSX sources.
263
276
-`npx themis generate src --json`: emits a machine-readable generation payload for agents and automation.
264
277
-`npx themis generate src --plan`: emits a planning payload and handoff artifact without writing generated tests.
Copy file name to clipboardExpand all lines: docs/agents-adoption.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ Use this guide when you want another repository to adopt Themis and make that ch
5
5
## Install From Scratch
6
6
7
7
```bash
8
-
npm install -D @vitronai/themis
9
-
npx themis init
8
+
npm install -D @vitronai/themis@latest
9
+
npx themis init --agents
10
10
npx themis generate src
11
11
npx themis test
12
12
```
@@ -15,6 +15,7 @@ What those commands do:
15
15
16
16
-`npm install -D @vitronai/themis`: installs Themis as the repo's unit test framework
17
17
-`npx themis init`: creates `themis.config.json` and adds `.themis/`, `__themis__/reports/`, and `__themis__/shims/` to `.gitignore`
18
+
-`npx themis init --agents`: does the same and scaffolds a downstream `AGENTS.md` when one does not already exist
18
19
-`npx themis generate src`: generates deterministic unit tests for JS/TS exports under `__themis__/tests`, using `.generated.test.ts` for TS/TSX sources and `.generated.test.js` for JS/JSX sources
Copy file name to clipboardExpand all lines: docs/api.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,22 +10,23 @@ Use it in a repo with:
10
10
11
11
```bash
12
12
npm install -D @vitronai/themis
13
-
npx themis init
13
+
npx themis init --agents
14
14
npx themis generate src
15
15
npx themis test
16
16
```
17
17
18
18
`npx themis generate src` writes generated tests under `__themis__/tests` by default.
19
19
20
20
For downstream repo setup and copyable agent instructions, see [`docs/agents-adoption.md`](agents-adoption.md) and [`templates/AGENTS.themis.md`](../templates/AGENTS.themis.md).
21
+
For machine-readable agent adoption metadata, see [`themis.ai.json`](../themis.ai.json).
21
22
22
23
## CLI
23
24
24
25
## Command
25
26
26
27
```bash
27
28
themis test [options]
28
-
themis init
29
+
themis init [--agents]
29
30
themis generate [path]
30
31
themis migrate <jest|vitest>
31
32
```
@@ -36,6 +37,7 @@ Creates:
36
37
37
38
-`themis.config.json` with default settings
38
39
- adds `.themis/`, `__themis__/reports/`, and `__themis__/shims/` to `.gitignore`
40
+
- with `--agents`, also writes a downstream `AGENTS.md` from the bundled Themis template when one does not already exist
0 commit comments