@mimeticinc/mim-cli 0.1.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/LICENSE +21 -0
- package/README.md +83 -0
- package/dist/chunk-BE3RRPTQ.js +1181 -0
- package/dist/mim-bin.d.ts +1 -0
- package/dist/mim-bin.js +10 -0
- package/dist/mim-cli.d.ts +99 -0
- package/dist/mim-cli.js +47 -0
- package/dist/mim-mcp-stdio.d.ts +16 -0
- package/dist/mim-mcp-stdio.js +220 -0
- package/package.json +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rerun contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# mim , the Mimetic CLI
|
|
2
|
+
|
|
3
|
+
Mimetic in your terminal: pull your site audits, prioritized findings, code-fix PRs, and
|
|
4
|
+
session-replay insights straight into your shell , and into AI coding agents like Claude Code
|
|
5
|
+
and Codex.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# authenticate this machine (opens the browser, device-code flow)
|
|
9
|
+
npx -y --package @mimeticinc/mim-cli mim auth login
|
|
10
|
+
|
|
11
|
+
# then pull a growth-context pack for one of your projects
|
|
12
|
+
mim context --project yourstore.com
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Credentials are stored in `~/.mim/config.json` (chmod 600), scoped to the projects your account
|
|
16
|
+
owns. Requires Node 20+.
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
Run on demand with `npx` (no global install):
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx -y --package @mimeticinc/mim-cli mim <command>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
…or install the `mim` binary globally:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g @mimeticinc/mim-cli
|
|
30
|
+
mim auth login
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
|
|
35
|
+
| Command | What it does |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `mim auth login` | Device-code login (opens the browser). `--token <t>` stores an existing token. |
|
|
38
|
+
| `mim auth status` / `mim auth logout` | Show / clear local credentials. |
|
|
39
|
+
| `mim projects` | List the projects/sites on your account. |
|
|
40
|
+
| `mim context` | Print a growth-context pack for a project , ready to paste into an AI agent. |
|
|
41
|
+
| `mim recordings` | Recent session-replay summaries: what users did and where they hit friction. |
|
|
42
|
+
| `mim replay [session_id]` | One replay's issues + a redacted narrative. Defaults to the latest. |
|
|
43
|
+
| `mim findings` | The audit's prioritized findings and backlog. |
|
|
44
|
+
| `mim audit start <url> [--wait]` | Start an audit (reuses a running/completed one). `--wait` polls to completion. |
|
|
45
|
+
| `mim audit rerun <url>` | Force a fresh audit. |
|
|
46
|
+
| `mim audit status <id>` / `mim audit wait <id>` | Check / poll an audit. |
|
|
47
|
+
| `mim fixes list` | List fixable findings + PR/review state. |
|
|
48
|
+
| `mim fixes start <rank>` | Queue a code fix , Mimetic opens a PR with a preview link. |
|
|
49
|
+
| `mim fixes open <rank>` | Open the PR, preview, diff, or workflow for a fix. |
|
|
50
|
+
| `mim billing status` / `checkout` / `portal` | Stripe billing for a project. |
|
|
51
|
+
| `mim mcp install claude` / `mim mcp install codex` | Wire Mimetic into Claude Code / Codex. |
|
|
52
|
+
|
|
53
|
+
## Common options
|
|
54
|
+
|
|
55
|
+
| Option | |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `--project <key>` | Project/site key. Defaults to `MIM_PROJECT` or your saved default. |
|
|
58
|
+
| `--format <json\|markdown>` | Output format (`--json` is an alias for `--format json`). |
|
|
59
|
+
| `--limit <n>` | Items to request, up to 100 (default 20). |
|
|
60
|
+
| `--mode <slim\|full>` | Audit depth. `slim` (default, fast) or `full` (deeper, adds SDK intel). |
|
|
61
|
+
| `--wait` | With `audit start`/`rerun`, poll until completion. |
|
|
62
|
+
| `--api-base-url <url>` | API origin. Defaults to `MIM_API_BASE_URL` or `https://trymimetic.com`. |
|
|
63
|
+
|
|
64
|
+
## MCP (Claude Code / Codex)
|
|
65
|
+
|
|
66
|
+
Mimetic ships a read-only MCP server, so your coding agent can see what's broken and why ,
|
|
67
|
+
redacted session narratives and findings, never raw replay payloads.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
mim mcp install claude # or: mim mcp install codex
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Environment
|
|
74
|
+
|
|
75
|
+
`MIM_API_TOKEN`, `MIM_API_BASE_URL`, `MIM_PROJECT`, `MIM_CONFIG_DIR` (default `~/.mim`),
|
|
76
|
+
`MIM_TELEMETRY=0` to disable usage telemetry.
|
|
77
|
+
|
|
78
|
+
## Links
|
|
79
|
+
|
|
80
|
+
- Docs: https://trymimetic.com/api
|
|
81
|
+
- Agentic / x402 API: https://trymimetic.com/x402
|
|
82
|
+
|
|
83
|
+
MIT © Mimetic Inc
|