Skip to content

Commit bcac443

Browse files
committed
fix(cli): ship LiteXML skill chapters
1 parent f8b1a20 commit bcac443

5 files changed

Lines changed: 23 additions & 8 deletions

File tree

packages/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ The variant (`article` / `note`) is auto-detected from the envelope root. Overri
694694

695695
## Skill bundle
696696

697-
`mxs skill` exposes the bundled AI-agent documentation directly from the CLI binary. Chapters are shipped inside the published `@mx-space/cli` package; liteXML chapters are pulled live from `@haklex/rich-litexml` at runtime (requires `@haklex/rich-litexml@>=0.16.0`).
697+
`mxs skill` exposes the bundled AI-agent documentation directly from the CLI binary. Chapters are shipped inside the published `@mx-space/cli` package; liteXML chapters are pulled live from `@haklex/rich-litexml` at runtime (requires `@haklex/rich-litexml@>=0.36.1`).
698698

699699
| Command | Behaviour |
700700
| -------------------------------- | ---------------------------------------------------------- |

packages/cli/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mx-space/cli",
3-
"version": "0.15.0",
3+
"version": "0.15.1",
44
"description": "Command line interface for mx-space (mx-core) \u2014 auth, content, configuration",
55
"keywords": [
66
"mx-space",
@@ -59,6 +59,9 @@
5959
"test:watch": "vitest",
6060
"typecheck": "tsc -p tsconfig.json --noEmit"
6161
},
62+
"dependencies": {
63+
"@haklex/rich-litexml": "^0.36.1"
64+
},
6265
"devDependencies": {
6366
"@clack/prompts": "^1.7.0",
6467
"@effect/cli": "0.77.0",
@@ -67,7 +70,6 @@
6770
"@effect/vitest": "0.30.0",
6871
"@haklex/rich-compose": "0.36.0",
6972
"@haklex/rich-headless": "0.36.0",
70-
"@haklex/rich-litexml": "0.36.0",
7173
"@haklex/rich-litexml-cli": "0.36.0",
7274
"@lexical/headless": "^0.49.0",
7375
"@mx-space/api-client": "workspace:*",

packages/cli/skills/safety.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Use this reference for every mutation, deletion, publication change, or failed c
4949
| `validation.xml` | Invalid LiteXML envelope. | Check root tag, `<meta>`, `<content>`, nested tags, and line detail. |
5050
| `resource.not_found` | Wrong slug/id, deleted resource, or wrong target. | Re-run list/get on the confirmed target. |
5151
| `profile.write_requires_explicit` | Active profile is flagged production; mutation refused without `--profile`. | Pass `--profile <name>` explicitly, or `mxs profile mark <name> --no-production`. |
52-
| `skill.chapter_not_found` | Requested chapter slug is not in the registry. | `mxs skill` to list; for `litexml-*` upgrade `@haklex/rich-litexml` to ≥0.16.0. |
52+
| `skill.chapter_not_found` | Requested chapter slug is not in the registry. | `mxs skill` to list; for `litexml-*` upgrade `@haklex/rich-litexml` to ≥0.36.1. |
5353
| `EDITOR is not set` | Interactive edit requested without editor. | Set `EDITOR` or use flags/file instead. |
5454
| Large noisy JSON output | Raw document payload is too verbose. | Use `--output llm` for read-back and `--json` for mutations. |
5555
| Link or embed URLs become empty during dry-run | LiteXML round-trip lost node attributes or the agent is using an older CLI build. | Stop before writing; update/fix the CLI and repeat dry-run before mutation. |

packages/cli/src/services/Skill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ const make = Effect.gen(function* () {
479479
slug,
480480
message: `no skill chapter with slug '${slug}'`,
481481
hint: isLitexml
482-
? 'upgrade @haklex/rich-litexml to >=0.16.0 to ship liteXML chapters'
482+
? 'upgrade @haklex/rich-litexml to >=0.36.1 to ship liteXML chapters'
483483
: 'run `mxs skill` to list available chapters',
484484
}),
485485
)

pnpm-lock.yaml

Lines changed: 16 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)