milieu-cli 0.4.0 → 0.4.1
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/README.md +12 -10
- package/dist/journey/cli.js +6 -1
- package/docs/journeys.md +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -22,8 +22,8 @@ You'll get a scored report showing what agents can discover about your product.
|
|
|
22
22
|
## Table of contents
|
|
23
23
|
|
|
24
24
|
- [Quick start](#quick-start)
|
|
25
|
-
- [Journeys](#journeys)
|
|
26
25
|
- [What is milieu?](#what-is-milieu)
|
|
26
|
+
- [Journeys](#journeys)
|
|
27
27
|
- [The 5 Bridges](#the-5-bridges)
|
|
28
28
|
- [Install](#install)
|
|
29
29
|
- [CI/CD integration](#cicd-integration)
|
|
@@ -35,6 +35,14 @@ You'll get a scored report showing what agents can discover about your product.
|
|
|
35
35
|
- [Requirements](#requirements)
|
|
36
36
|
- [License](#license)
|
|
37
37
|
|
|
38
|
+
## What is milieu?
|
|
39
|
+
|
|
40
|
+
*Milieu* is the totality of machine-readable signals that surround your product — the environment an AI agent encounters when it tries to discover, understand, and integrate with what you've built. It's not any single file or endpoint. It's robots.txt and OpenAPI specs and llms.txt and JSON-LD and developer docs and SDK references, all working together. It's the difference between a product that AI agents can use and one they walk past.
|
|
41
|
+
|
|
42
|
+
Good design made products usable for humans. Good milieu design makes products usable for agents.
|
|
43
|
+
|
|
44
|
+
milieu-cli measures this. It scans your product surface and tells you what AI agents can actually see.
|
|
45
|
+
|
|
38
46
|
## Journeys
|
|
39
47
|
|
|
40
48
|
**Can an agent follow your quickstart and retrieve its first catalog item?** A Journey tests a task like this against your docs and API. You define what success looks like. Milieu records the pages and responses the agent used and shows which checks passed or failed.
|
|
@@ -47,6 +55,8 @@ npx milieu-cli journey demo
|
|
|
47
55
|
|
|
48
56
|
`npx` fetches Milieu if needed. The demo then runs offline. Look for `catalog-quickstart / docs-missing`. The agent gets stuck because the guide omits `GET /v1/items`. The line `Direct API control: pass` tells you the endpoint works. Adding the missing instruction fixes the guide.
|
|
49
57
|
|
|
58
|
+
[Star Milieu on GitHub](https://github.com/simplyarun/milieu-cli) to save it for your next API review, or [share this demo](https://github.com/simplyarun/milieu-cli#journeys) with a teammate.
|
|
59
|
+
|
|
50
60
|
**Try it on your own product**
|
|
51
61
|
|
|
52
62
|
1. Create a case with `npx milieu-cli journey init catalog.json --kind api_read`.
|
|
@@ -71,14 +81,6 @@ Every Journey command accepts `--json`. For example, `milieu journey run --help
|
|
|
71
81
|
|
|
72
82
|
The [Journey guide](docs/journeys.md) covers case authoring and includes three credential-onboarding examples. The [maintainer qualification guide](docs/journey-qualification.md) covers fixture deployment, model runs and release checks.
|
|
73
83
|
|
|
74
|
-
## What is milieu?
|
|
75
|
-
|
|
76
|
-
*Milieu* is the totality of machine-readable signals that surround your product — the environment an AI agent encounters when it tries to discover, understand, and integrate with what you've built. It's not any single file or endpoint. It's robots.txt and OpenAPI specs and llms.txt and JSON-LD and developer docs and SDK references, all working together. It's the difference between a product that AI agents can use and one they walk past.
|
|
77
|
-
|
|
78
|
-
Good design made products usable for humans. Good milieu design makes products usable for agents.
|
|
79
|
-
|
|
80
|
-
milieu-cli measures this. It scans your product surface and tells you what AI agents can actually see.
|
|
81
|
-
|
|
82
84
|
## The 5 Bridges
|
|
83
85
|
|
|
84
86
|
Milieu evaluates your product through five progressive bridges. Each one represents a layer of machine legibility that AI agents need, from "can I reach you?" to "can I trust you?"
|
|
@@ -141,7 +143,7 @@ GPTBot and ClaudeBot collect training material. CCBot collects material for Comm
|
|
|
141
143
|
For a one-off run, use `npx milieu-cli` as in the quick start. To use the same version for baseline scans, comparisons and CI, pin it in your project.
|
|
142
144
|
|
|
143
145
|
```sh
|
|
144
|
-
npm install --save-dev --save-exact milieu-cli@0.4.
|
|
146
|
+
npm install --save-dev --save-exact milieu-cli@0.4.1
|
|
145
147
|
```
|
|
146
148
|
|
|
147
149
|
After installation, `npx milieu-cli` uses the project’s copy. Commit the package manifest and lockfile, then run `npm ci` in CI. For a global install, use `npm install -g milieu-cli`. Both `milieu` and `milieu-cli` work as commands after installation.
|
package/dist/journey/cli.js
CHANGED
|
@@ -140,8 +140,13 @@ export async function executeJourney(name, args, opts) {
|
|
|
140
140
|
case "demo": {
|
|
141
141
|
const demo = await runDemo();
|
|
142
142
|
emit(demo, demo.runs.map(run => renderRun(run)).join("\n\n"), opts.json);
|
|
143
|
-
if (!demo.ok)
|
|
143
|
+
if (!demo.ok) {
|
|
144
144
|
process.exitCode = 2;
|
|
145
|
+
}
|
|
146
|
+
else if (!opts.json && process.stdin.isTTY && process.stdout.isTTY && process.stderr.isTTY &&
|
|
147
|
+
process.env.CI === undefined && process.env.GITHUB_ACTIONS === undefined) {
|
|
148
|
+
process.stderr.write("Star Milieu for your next API review at https://github.com/simplyarun/milieu-cli\n");
|
|
149
|
+
}
|
|
145
150
|
break;
|
|
146
151
|
}
|
|
147
152
|
case "init": {
|
package/docs/journeys.md
CHANGED
|
@@ -4,7 +4,7 @@ A saved Journey run links each assertion to the document or API response the act
|
|
|
4
4
|
|
|
5
5
|
## Inspect one attempt offline
|
|
6
6
|
|
|
7
|
-
Install Milieu in your project with `npm install --save-dev --save-exact milieu-cli@0.4.
|
|
7
|
+
Install Milieu in your project with `npm install --save-dev --save-exact milieu-cli@0.4.1`, then save the demo output. The demo contains several runs. Extract the one whose API returned HTTP 200 without the expected array.
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
node -e "const fs=require('node:fs'),cp=require('node:child_process');fs.writeFileSync('demo.json',cp.execFileSync(process.execPath,['node_modules/milieu-cli/dist/cli/index.js','journey','demo','--json']))"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "milieu-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Check if AI agents can discover, understand, and use your product",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"vitest": "^4.1.12"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"chalk": "^
|
|
87
|
-
"commander": "^
|
|
86
|
+
"chalk": "^6.0.1",
|
|
87
|
+
"commander": "^15.1.0",
|
|
88
88
|
"js-yaml": "5.5.0",
|
|
89
89
|
"ora": "^9.3.0",
|
|
90
90
|
"parse5": "8.1.1",
|