mdedit-cli 0.1.3 → 0.2.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/README.md +45 -2
- package/dist/index.js +436 -225
- package/dist/index.js.map +1 -1
- package/openclaw.json +279 -0
- package/package.json +4 -2
- package/skill.md +210 -0
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# `mdedit-cli`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official command-line interface for [MD Editor](https://mdedit.ai).
|
|
4
|
+
|
|
5
|
+
Links:
|
|
6
|
+
- [CLI docs](https://docs.mdedit.ai/cli)
|
|
7
|
+
- [MD Editor homepage](https://mdedit.ai)
|
|
4
8
|
|
|
5
9
|
## Install
|
|
6
10
|
|
|
@@ -12,7 +16,7 @@ npm install -g mdedit-cli
|
|
|
12
16
|
|
|
13
17
|
All APIs require authentication. Create an API key here:
|
|
14
18
|
|
|
15
|
-
- https://docs.mdedit.ai/api-keys
|
|
19
|
+
- [API key docs](https://docs.mdedit.ai/api-keys)
|
|
16
20
|
|
|
17
21
|
## Configure
|
|
18
22
|
|
|
@@ -37,3 +41,42 @@ mdedit info
|
|
|
37
41
|
mdedit health
|
|
38
42
|
```
|
|
39
43
|
|
|
44
|
+
## Agent / AI tool integration
|
|
45
|
+
|
|
46
|
+
The CLI is designed to be used by AI agents without modification.
|
|
47
|
+
|
|
48
|
+
### Agent tips
|
|
49
|
+
|
|
50
|
+
- Use `--format json` for machine-readable output (human messages go to stderr)
|
|
51
|
+
- Pass all required flags on the command line to avoid interactive prompts
|
|
52
|
+
- Use `--yes` on destructive commands to skip confirmation
|
|
53
|
+
- Pipe content via `--file -` (stdin) or `--content-only` (stdout)
|
|
54
|
+
|
|
55
|
+
### Skill file
|
|
56
|
+
|
|
57
|
+
A comprehensive agent skill document is included with the CLI. It covers all commands, flags, workflows, and error handling in a format optimised for AI agents (Claude Code, Cursor, GitHub Copilot, etc.).
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# View the skill
|
|
61
|
+
mdedit skill show
|
|
62
|
+
|
|
63
|
+
# Install the skill into all detected agent config files
|
|
64
|
+
mdedit skill install
|
|
65
|
+
|
|
66
|
+
# Install into a specific tool only
|
|
67
|
+
mdedit skill install --target claude # → CLAUDE.md
|
|
68
|
+
mdedit skill install --target cursor # → .cursor/rules/mdedit.mdc
|
|
69
|
+
mdedit skill install --target codex # → .github/copilot-instructions.md
|
|
70
|
+
|
|
71
|
+
# Install to home-directory (global) targets
|
|
72
|
+
mdedit skill install --global
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### OpenClaw plugin
|
|
76
|
+
|
|
77
|
+
An `openclaw.json` plugin manifest is included in the package. It defines every CLI tool as a structured, machine-readable entry that OpenClaw-compatible agents can load directly.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Find the plugin manifest
|
|
81
|
+
node -e "console.log(require.resolve('mdedit-cli/openclaw.json'))"
|
|
82
|
+
```
|