@mx-space/cli 0.12.0 → 0.12.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 CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { t as run } from "../mxs-C-ZguIBQ.mjs";
2
+ import { t as run } from "../mxs-PcmoYdgj.mjs";
3
3
  export { run };
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-C-ZguIBQ.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-PcmoYdgj.mjs";
2
2
  export { codeForTag, defaultGlobalFlags, defaultMessageFor, exitCodeForError, exitCodeForTag, parseGlobalFlags, run, tagToCode, toErrorEnvelope };
@@ -12575,7 +12575,7 @@ function customAlphabet(alphabet, size = 21) {
12575
12575
  return customRandom(alphabet, size, random);
12576
12576
  }
12577
12577
  //#endregion
12578
- //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.25.1/node_modules/@haklex/rich-litexml/dist/src-1idECb05.js
12578
+ //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.27.0/node_modules/@haklex/rich-litexml/dist/src-1idECb05.js
12579
12579
  var impl = null;
12580
12580
  function registerParseHTML(fn) {
12581
12581
  impl = fn;
@@ -24970,7 +24970,7 @@ function Document() {
24970
24970
  }
24971
24971
  setPrototypeOf(Document, Document$1).prototype = Document$1.prototype;
24972
24972
  //#endregion
24973
- //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.25.1/node_modules/@haklex/rich-litexml/dist/node.mjs
24973
+ //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.27.0/node_modules/@haklex/rich-litexml/dist/node.mjs
24974
24974
  registerParseHTML((html) => parseHTML(html).document);
24975
24975
  //#endregion
24976
24976
  //#region ../editor/src/core/litexml.ts
@@ -25110,7 +25110,7 @@ const TRANSFORMERS = mod$1.TRANSFORMERS;
25110
25110
  mod$1.UNORDERED_LIST;
25111
25111
  mod$1.registerMarkdownShortcuts;
25112
25112
  //#endregion
25113
- //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.25.1_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/transformers.mjs
25113
+ //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.27.0_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/transformers.mjs
25114
25114
  /**
25115
25115
  * Headless Markdown transformers — export-only (Lexical → Markdown).
25116
25116
  * Import stubs are no-ops; used only for $convertToMarkdownString.
@@ -25537,7 +25537,7 @@ function $toMarkdown() {
25537
25537
  return $convertToMarkdownString(allHeadlessTransformers);
25538
25538
  }
25539
25539
  //#endregion
25540
- //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.25.1_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/index.mjs
25540
+ //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.27.0_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/index.mjs
25541
25541
  var INTRINSIC_TYPES = [
25542
25542
  "root",
25543
25543
  "paragraph",
@@ -33200,12 +33200,17 @@ const toPostFlagInputs = (opts) => ({
33200
33200
  meta: unwrap$8(opts.meta),
33201
33201
  file: unwrap$8(opts.file)
33202
33202
  });
33203
- /** Extract the id from a server response — handles both `id` and `_id`. */
33203
+ /**
33204
+ * Extract the id from a server response — handles both `id` and `_id`,
33205
+ * and unwraps the outer `data` envelope mx-core wraps single-object
33206
+ * responses with (so `--open` works after `post create`).
33207
+ */
33204
33208
  const extractId$1 = (res) => {
33205
33209
  if (!res || typeof res !== "object") return void 0;
33206
33210
  const r = res;
33207
33211
  if (typeof r.id === "string") return r.id;
33208
33212
  if (typeof r._id === "string") return r._id;
33213
+ if (r.data && typeof r.data === "object") return extractId$1(r.data);
33209
33214
  };
33210
33215
  //#endregion
33211
33216
  //#region src/cli/note/_flags.ts
@@ -34908,6 +34913,7 @@ const extractId = (res) => {
34908
34913
  const r = res;
34909
34914
  if (typeof r.id === "string") return r.id;
34910
34915
  if (typeof r._id === "string") return r._id;
34916
+ if (r.data && typeof r.data === "object") return extractId(r.data);
34911
34917
  };
34912
34918
  const editableFieldsOf = (raw) => {
34913
34919
  const out = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Command line interface for mx-space (mx-core) — auth, content, configuration",
5
5
  "keywords": [
6
6
  "mx-space",
@@ -52,9 +52,9 @@
52
52
  "@effect/cli": "0.75.2",
53
53
  "@effect/platform": "0.96.1",
54
54
  "@effect/platform-node": "0.107.0",
55
- "@haklex/rich-headless": "0.24.0",
56
- "@haklex/rich-litexml": "0.24.0",
57
- "@haklex/rich-litexml-cli": "0.24.0",
55
+ "@haklex/rich-headless": "0.27.0",
56
+ "@haklex/rich-litexml": "0.27.0",
57
+ "@haklex/rich-litexml-cli": "0.27.0",
58
58
  "@lexical/headless": "^0.45.0",
59
59
  "better-auth": "^1.6.16",
60
60
  "effect": "3.21.3",