mdedit-cli 0.2.1 → 0.3.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 +26 -0
- package/dist/index.js +312 -18
- package/dist/index.js.map +1 -1
- package/openclaw.json +36 -1
- package/package.json +3 -3
- package/skill.md +8 -0
package/openclaw.json
CHANGED
|
@@ -77,9 +77,44 @@
|
|
|
77
77
|
"--folder <id>": "Place in a folder",
|
|
78
78
|
"--file <path>": "Read initial content from file (use - for stdin)",
|
|
79
79
|
"--content <text>": "Inline content string",
|
|
80
|
+
"--publish": "Publish the created article to a public mded.it link",
|
|
81
|
+
"--slug <slug>": "Custom public-link slug (requires --publish)",
|
|
82
|
+
"--yes": "Skip public-publishing confirmation",
|
|
80
83
|
"--workspace <id>": "Workspace ID"
|
|
81
84
|
},
|
|
82
|
-
"example": "
|
|
85
|
+
"example": "mdedit article create --title 'My Post' --file post.md --publish --yes --format json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "article_publish",
|
|
89
|
+
"description": "Publish or update an article at a public mded.it link. Requires publishing:write.",
|
|
90
|
+
"command": "mdedit article publish <articleId> --yes --format json",
|
|
91
|
+
"flags": {
|
|
92
|
+
"--slug <slug>": "Custom public-link slug",
|
|
93
|
+
"--seo-title <title>": "SEO/social title for the public page",
|
|
94
|
+
"--seo-description <description>": "SEO/social description for the public page",
|
|
95
|
+
"--yes": "Confirm that anyone with the link may view the document",
|
|
96
|
+
"--workspace <id>": "Workspace ID"
|
|
97
|
+
},
|
|
98
|
+
"example": "mdedit article publish abc123 --slug public-draft --yes --format json"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "article_publish_status",
|
|
102
|
+
"description": "Get an article's public-link status, URL, metadata, and view count. Requires publishing:read.",
|
|
103
|
+
"command": "mdedit article publish-status <articleId> --format json",
|
|
104
|
+
"flags": {
|
|
105
|
+
"--workspace <id>": "Workspace ID"
|
|
106
|
+
},
|
|
107
|
+
"example": "mdedit article publish-status abc123 --format json"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "article_unpublish",
|
|
111
|
+
"description": "Disable an article's public link. Requires publishing:write.",
|
|
112
|
+
"command": "mdedit article unpublish <articleId> --yes --format json",
|
|
113
|
+
"flags": {
|
|
114
|
+
"--yes": "Confirm that the public link should stop working",
|
|
115
|
+
"--workspace <id>": "Workspace ID"
|
|
116
|
+
},
|
|
117
|
+
"example": "mdedit article unpublish abc123 --yes --format json"
|
|
83
118
|
},
|
|
84
119
|
{
|
|
85
120
|
"name": "article_update",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdedit-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command-line interface for mdedit.ai.",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"prepack": "yarn build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@mdedit/agent-client": "0.
|
|
43
|
-
"@mdedit/sdk": "0.
|
|
42
|
+
"@mdedit/agent-client": "0.2.0",
|
|
43
|
+
"@mdedit/sdk": "0.3.0",
|
|
44
44
|
"chalk": "^5.6.2",
|
|
45
45
|
"commander": "^14.0.3",
|
|
46
46
|
"inquirer": "^8.2.7",
|
package/skill.md
CHANGED
|
@@ -94,6 +94,7 @@ mdedit article create --title "My Article"
|
|
|
94
94
|
mdedit article create --title "My Article" --folder <folderId> --file article.md
|
|
95
95
|
mdedit article create --title "My Article" --content "# Hello world"
|
|
96
96
|
echo "# Hello" | mdedit article create --title "My Article" --file -
|
|
97
|
+
mdedit article create --file article.md --publish --yes
|
|
97
98
|
|
|
98
99
|
# Update
|
|
99
100
|
mdedit article update <articleId> --title "New Title"
|
|
@@ -111,6 +112,12 @@ mdedit article edit <articleId> --ops-file ops.json --format json
|
|
|
111
112
|
mdedit article watch <articleId>
|
|
112
113
|
mdedit article watch <articleId> --agent claude-code --poll-interval 5000
|
|
113
114
|
|
|
115
|
+
# Publish a deliberate public snapshot (requires publishing:write)
|
|
116
|
+
mdedit article publish <articleId> --yes
|
|
117
|
+
mdedit article publish <articleId> --slug my-document --yes
|
|
118
|
+
mdedit article publish-status <articleId> --format json
|
|
119
|
+
mdedit article unpublish <articleId> --yes
|
|
120
|
+
|
|
114
121
|
# Delete
|
|
115
122
|
mdedit article delete <articleId> --yes
|
|
116
123
|
|
|
@@ -151,6 +158,7 @@ Use `--target <file.md>` for package targets other than `content.md`.
|
|
|
151
158
|
```bash
|
|
152
159
|
mdedit apikey list
|
|
153
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
|
|
154
162
|
mdedit apikey create --name "30-day key" --expires 30
|
|
155
163
|
mdedit apikey revoke <keyId> --yes
|
|
156
164
|
```
|