@mx-space/cli 0.6.8 → 0.7.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/dist/bin/mxs.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{mxs-CCNd5SIa.mjs → mxs-ClNF0UNu.mjs} +1900 -87
- package/package.json +2 -1
- package/skills/authoring.md +61 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Command line interface for mx-space (mx-core) — auth, content, configuration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mx-space",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"fast-xml-parser": "4.5.6",
|
|
62
62
|
"get-east-asian-width": "^1.6.0",
|
|
63
63
|
"lexical": "^0.44.0",
|
|
64
|
+
"minisearch": "^7.2.0",
|
|
64
65
|
"open": "^11.0.0",
|
|
65
66
|
"semver": "7.8.0",
|
|
66
67
|
"@mx-space/api-client": "5.0.2"
|
package/skills/authoring.md
CHANGED
|
@@ -164,6 +164,67 @@ mxs page update about --subtitle "Updated subtitle" --json
|
|
|
164
164
|
mxs page get about --output llm
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
+
## `meta` field — built-in presets
|
|
168
|
+
|
|
169
|
+
The `meta` column on posts, notes, and pages is a free-form JSON record;
|
|
170
|
+
mx-core does not validate keys. However a small set of keys are seeded as
|
|
171
|
+
**built-in presets** (`apps/core/src/modules/meta-preset/meta-preset.service.ts`)
|
|
172
|
+
and the frontend (Shiro / Yohaku) consumes them to render dedicated UI.
|
|
173
|
+
Prefer these keys for the documented purpose; do not invent parallel names.
|
|
174
|
+
|
|
175
|
+
| Key | Type | Frontend behavior |
|
|
176
|
+
| ---------- | --------------------- | ------------------------------------------------------------------ |
|
|
177
|
+
| `aiGen` | number or number[] | Renders an `AIGenBadge` disclosing AI involvement. See below. |
|
|
178
|
+
| `cover` | URL string | Used as the article / note cover image. |
|
|
179
|
+
| `banner` | object | Renders a notice banner above the body (`{type, message, className}`). |
|
|
180
|
+
| `keywords` | string[] | SEO keywords. |
|
|
181
|
+
| `style` | string | Named article style applied by the theme. |
|
|
182
|
+
|
|
183
|
+
### `meta.aiGen` — AI involvement disclosure
|
|
184
|
+
|
|
185
|
+
When an AI agent (Claude Code, Codex, a custom mxs caller, etc.) contributed to
|
|
186
|
+
a post / note / page, set `meta.aiGen` so the frontend can render the disclosure
|
|
187
|
+
badge. The value is a single preset number, or an array of preset numbers when
|
|
188
|
+
multiple kinds of AI involvement apply. Exclusive values (`-1` handmade, `2`
|
|
189
|
+
fully AI-generated) must not be combined with anything else.
|
|
190
|
+
|
|
191
|
+
| Value | Label | Exclusive |
|
|
192
|
+
| ----- | --------------------------- | --------- |
|
|
193
|
+
| `-1` | No AI (handcrafted) | yes |
|
|
194
|
+
| `0` | Writing assistance | no |
|
|
195
|
+
| `2` | Fully AI-generated | yes |
|
|
196
|
+
| `3` | Story organization | no |
|
|
197
|
+
| `4` | Title generation | no |
|
|
198
|
+
| `8` | AI-generated imagery | no |
|
|
199
|
+
| `9` | Dictation | no |
|
|
200
|
+
|
|
201
|
+
Legacy values `1` / `5` / `6` / `7` have been merged into `0` (assist) on the
|
|
202
|
+
frontend; read-side compatibility is kept but new content should use `0`.
|
|
203
|
+
|
|
204
|
+
Setting via the CLI:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
# Fully AI-generated body.
|
|
208
|
+
mxs post create --file ./post.xml --meta '{"aiGen":2}' --json
|
|
209
|
+
|
|
210
|
+
# Mixed involvement: writing assistance + title generation.
|
|
211
|
+
mxs note create --file ./note.xml --meta '{"aiGen":[0,4]}' --json
|
|
212
|
+
|
|
213
|
+
# Merge from a JSON file.
|
|
214
|
+
mxs post update aws-vless --meta 'file=./meta.json' --json
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Rules of thumb for agents:
|
|
218
|
+
|
|
219
|
+
- If you wrote the full body, set `aiGen: 2`.
|
|
220
|
+
- If you only refined wording, set `aiGen: 0` (or include `0` in the array).
|
|
221
|
+
- If a human authored the body and you only patched metadata (title, tags,
|
|
222
|
+
summary), do **not** set `aiGen` — leave the field untouched.
|
|
223
|
+
- If `meta.aiGen` is already set and you only patch unrelated fields, preserve
|
|
224
|
+
the existing value; do not strip it.
|
|
225
|
+
- Prefer the camelCase key `aiGen`. The frontend also accepts legacy `ai_gen`
|
|
226
|
+
for backward compatibility, but new writes must use `aiGen`.
|
|
227
|
+
|
|
167
228
|
## Read-back verification
|
|
168
229
|
|
|
169
230
|
| Resource | Minimum read-back checks |
|