@mx-space/cli 0.3.0 → 0.4.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 CHANGED
@@ -31,7 +31,7 @@ When the CLI cannot resolve an API URL, it starts an interactive onboarding prom
31
31
  | Flag | Effect |
32
32
  | ------------------ | ----------------------------------------------------------------------------- |
33
33
  | `--json` | Emit `{ ok: true, data }` on stdout. Takes precedence over `--output`. |
34
- | `--output <mode>` | Output mode. Supported: `pretty-json`, `json`, `readable`, `llm`, `envelope`. |
34
+ | `--output <mode>` | Output mode. Supported: `pretty-json`, `json`, `readable`, `llm`, `xml`. |
35
35
  | `--api-url <url>` | Override the configured mx-core API origin. |
36
36
  | `--token <token>` | Override the stored access token. |
37
37
  | `--api-key <key>` | Authenticate with an API key through the `x-api-key` header. |
@@ -41,7 +41,7 @@ When the CLI cannot resolve an API URL, it starts an interactive onboarding prom
41
41
  | `--dry-run` | Resolve payloads without mutating the server where supported. |
42
42
  | `--profile <name>` | Profile to use (overrides `MXS_PROFILE` and the active pointer). |
43
43
 
44
- `readable`, `llm`, and `envelope` are document output modes for `post get`, `note get`, and `page get`. `post list` additionally supports `readable` and `llm` for concise list summaries. Other commands keep their existing JSON-oriented output.
44
+ `readable`, `llm`, and `xml` are document output modes for `post get`, `note get`, and `page get`. `post list` additionally supports `readable` and `llm` for concise list summaries. Other commands keep their existing JSON-oriented output.
45
45
 
46
46
  ## Output Modes
47
47
 
@@ -51,9 +51,9 @@ When the CLI cannot resolve an API URL, it starts an interactive onboarding prom
51
51
  | `json` | `{ ok: true, data }` JSON envelope. | Scripts and structured automation. |
52
52
  | `readable` | Compact key-value metadata plus readable body. | Human terminal reading. |
53
53
  | `llm` | Same stable readable structure as `readable`. | AI-agent context with lower structural noise. |
54
- | `envelope` | `<mxpost>` or `<mxnote>` LiteXML envelope. | Editable document round trips. |
54
+ | `xml` | `<mxpost>` or `<mxnote>` LiteXML envelope. | Editable document round trips. |
55
55
 
56
- For Lexical documents, `readable`, `llm`, and `envelope` render the body as LiteXML through `@haklex/rich-litexml` instead of exposing Lexical JSON.
56
+ For Lexical documents, `readable`, `llm`, and `xml` render the body as LiteXML through `@haklex/rich-litexml` instead of exposing Lexical JSON.
57
57
 
58
58
  Example:
59
59
 
package/dist/bin/mxs.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { t as run } from "../mxs-BUOk42XP.mjs";
2
+ import { t as run } from "../mxs-BbNjmEgB.mjs";
3
3
  export { run };
package/dist/index.d.mts CHANGED
@@ -1471,8 +1471,8 @@ interface ErrorEnvelope {
1471
1471
  }
1472
1472
  declare const toErrorEnvelope: (err: CliError) => ErrorEnvelope;
1473
1473
  //#endregion
1474
- //#region src/services/Renderer.d.ts
1475
- type OutputMode = 'pretty-json' | 'json' | 'readable' | 'llm' | 'envelope';
1474
+ //#region src/services/Renderer/options.d.ts
1475
+ type OutputMode = 'pretty-json' | 'json' | 'readable' | 'llm' | 'xml';
1476
1476
  interface OutputOptions {
1477
1477
  readonly json: boolean;
1478
1478
  readonly output: OutputMode;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as defaultMessageFor, c as tagToCode, i as codeForTag, l as toErrorEnvelope, n as defaultGlobalFlags, o as exitCodeForError, r as parseGlobalFlags, s as exitCodeForTag, t as run } from "./mxs-BUOk42XP.mjs";
1
+ import { a as defaultMessageFor, c as tagToCode, i as codeForTag, l as toErrorEnvelope, n as defaultGlobalFlags, o as exitCodeForError, r as parseGlobalFlags, s as exitCodeForTag, t as run } from "./mxs-BbNjmEgB.mjs";
2
2
  export { codeForTag, defaultGlobalFlags, defaultMessageFor, exitCodeForError, exitCodeForTag, parseGlobalFlags, run, tagToCode, toErrorEnvelope };