mdedit-cli 0.3.1 → 0.3.3
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/dist/index.js +376 -61
- package/dist/index.js.map +1 -1
- package/openclaw.json +1 -12
- package/package.json +11 -6
- package/skill.md +4 -7
package/openclaw.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema_version": "1.0",
|
|
3
3
|
"name": "mdedit",
|
|
4
4
|
"display_name": "MDEdit.ai",
|
|
5
|
-
"description": "Manage articles, reviews, suggestions, folders, workspaces, and API keys on mdedit.ai from any AI agent. Supports server-authoritative review workflows, markdown editing, and JSON output.",
|
|
5
|
+
"description": "Manage articles, reviews, suggestions, folders, workspaces, and existing API keys on mdedit.ai from any AI agent. Supports server-authoritative review workflows, markdown editing, and JSON output.",
|
|
6
6
|
"homepage_url": "https://mdedit.ai",
|
|
7
7
|
"docs_url": "https://docs.mdedit.ai/cli",
|
|
8
8
|
"auth": {
|
|
@@ -316,17 +316,6 @@
|
|
|
316
316
|
"command": "mdedit apikey list --format json",
|
|
317
317
|
"example": "mdedit apikey list --format json"
|
|
318
318
|
},
|
|
319
|
-
{
|
|
320
|
-
"name": "apikey_create",
|
|
321
|
-
"description": "Create a new API key",
|
|
322
|
-
"command": "mdedit apikey create --name <name> --format json",
|
|
323
|
-
"flags": {
|
|
324
|
-
"--name <name>": "Key name (required)",
|
|
325
|
-
"--description <desc>": "Key description",
|
|
326
|
-
"--expires <days>": "Expiration in days"
|
|
327
|
-
},
|
|
328
|
-
"example": "mdedit apikey create --name 'CI/CD Key' --expires 90 --format json"
|
|
329
|
-
},
|
|
330
319
|
{
|
|
331
320
|
"name": "apikey_revoke",
|
|
332
321
|
"description": "Revoke an API key by its ID",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdedit-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command-line interface for mdedit.ai.",
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"terminal"
|
|
18
18
|
],
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/mangoappstudio/mdedit.git",
|
|
23
|
+
"directory": "packages/mdedit-cli"
|
|
24
|
+
},
|
|
20
25
|
"engines": {
|
|
21
26
|
"node": ">=20"
|
|
22
27
|
},
|
|
@@ -39,19 +44,19 @@
|
|
|
39
44
|
"prepack": "yarn build"
|
|
40
45
|
},
|
|
41
46
|
"dependencies": {
|
|
42
|
-
"@mdedit/agent-client": "1.0.
|
|
43
|
-
"@mdedit/
|
|
44
|
-
"@
|
|
47
|
+
"@mdedit/agent-client": "1.0.2",
|
|
48
|
+
"@mdedit/sdk": "0.3.3",
|
|
49
|
+
"@napi-rs/keyring": "^1.3.0",
|
|
45
50
|
"chalk": "^5.6.2",
|
|
46
51
|
"commander": "^14.0.3",
|
|
47
52
|
"inquirer": "^8.2.7",
|
|
48
|
-
"uuid": "^
|
|
53
|
+
"uuid": "^14.0.1"
|
|
49
54
|
},
|
|
50
55
|
"devDependencies": {
|
|
51
56
|
"@hocuspocus/server": "^4.2.0",
|
|
57
|
+
"@mdedit/node-auth": "0.1.0",
|
|
52
58
|
"@types/inquirer": "^8.2.12",
|
|
53
59
|
"@types/node": "^20.10.5",
|
|
54
|
-
"@types/uuid": "^10.0.0",
|
|
55
60
|
"tsup": "^8.0.2",
|
|
56
61
|
"tsx": "^4.7.0",
|
|
57
62
|
"typescript": "^5.3.3",
|
package/skill.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# mdedit CLI — Agent Skill
|
|
2
2
|
|
|
3
|
-
> Use this skill to manage articles, folders, workspaces, and API keys on [mdedit.ai](https://mdedit.ai) directly from your terminal or from an AI agent.
|
|
3
|
+
> Use this skill to manage articles, folders, workspaces, and existing API keys on [mdedit.ai](https://mdedit.ai) directly from your terminal or from an AI agent.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -129,9 +129,7 @@ mdedit article export <articleId> --output article.zip
|
|
|
129
129
|
|
|
130
130
|
Reviewer keys should use least-privilege scopes:
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
mdedit apikey create --name "Review agent" --scopes articles:read,reviews:write
|
|
134
|
-
```
|
|
132
|
+
Create reviewer keys in mdedit.ai Settings → Integrations → API Keys. A reviewer key should usually use `articles:read,reviews:write`.
|
|
135
133
|
|
|
136
134
|
All review mutations are server-authored and retry-safe. Suggestions do not change article
|
|
137
135
|
text until accepted; `review accept` therefore requires `articles:write` in addition to the
|
|
@@ -155,11 +153,10 @@ Use `--target <file.md>` for package targets other than `content.md`.
|
|
|
155
153
|
|
|
156
154
|
### api-key
|
|
157
155
|
|
|
156
|
+
Create new API keys in mdedit.ai Settings → Integrations → API Keys. The CLI can list and revoke existing keys.
|
|
157
|
+
|
|
158
158
|
```bash
|
|
159
159
|
mdedit apikey list
|
|
160
|
-
mdedit apikey create --name "CI/CD Key" --description "Used in pipeline" --scopes articles:read,articles:write
|
|
161
|
-
mdedit apikey create --name "Publishing agent" --scopes articles:read,articles:write,publishing:write
|
|
162
|
-
mdedit apikey create --name "30-day key" --expires 30
|
|
163
160
|
mdedit apikey revoke <keyId> --yes
|
|
164
161
|
```
|
|
165
162
|
|