@mtreeai/msapling-cli 2.3.6-beta.49 → 2.3.6-beta.50

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1228,16 +1228,14 @@ var init_src = __esm({
1228
1228
  });
1229
1229
  }
1230
1230
  // Card 12: MFA/TOTP
1231
- async enrollMFA(method) {
1232
- return await this.request("/api/mfa/enroll", {
1233
- method: "POST",
1234
- body: JSON.stringify({ method })
1231
+ async enrollMFA(_method) {
1232
+ return await this.request("/api/mfa/setup", {
1233
+ method: "POST"
1235
1234
  });
1236
1235
  }
1237
1236
  async verifyMFA(code) {
1238
- return await this.request("/api/mfa/verify", {
1239
- method: "POST",
1240
- body: JSON.stringify({ code })
1237
+ return await this.request(`/api/mfa/verify?code=${encodeURIComponent(code)}`, {
1238
+ method: "POST"
1241
1239
  });
1242
1240
  }
1243
1241
  // Card 13: MCP Client Surface
@@ -1543,10 +1541,9 @@ var init_src = __esm({
1543
1541
  };
1544
1542
  if (this.cookies.size > 0) verifyHeaders["Cookie"] = this.serializeCookies();
1545
1543
  if (csrf) verifyHeaders["X-CSRF-Token"] = csrf;
1546
- const response = await fetch(`${this.apiUrl}/api/mfa/login-verify`, {
1544
+ const response = await fetch(`${this.apiUrl}/api/mfa/login-verify?code=${encodeURIComponent(code)}`, {
1547
1545
  method: "POST",
1548
1546
  headers: verifyHeaders,
1549
- body: JSON.stringify({ code }),
1550
1547
  signal: controller.signal
1551
1548
  });
1552
1549
  clearTimeout(timeout);
@@ -12711,7 +12708,7 @@ var init_version = __esm({
12711
12708
  description: "Show version information for CLI and core packages",
12712
12709
  category: "debug",
12713
12710
  handler: async (_args, context) => {
12714
- const cliVersion = true ? "2.3.6-beta.49" : "(dev)";
12711
+ const cliVersion = true ? "2.3.6-beta.50" : "(dev)";
12715
12712
  const coreVersion = true ? "2.3.6-beta.43" : "(dev)";
12716
12713
  const runtime = process.version;
12717
12714
  context.addMessage("system", "MSapling Version Info");
@@ -12720,7 +12717,7 @@ var init_version = __esm({
12720
12717
  context.addMessage("system", row2("Core (@msapling/core)", coreVersion));
12721
12718
  context.addMessage("system", row2("Runtime (Node/Bun)", runtime));
12722
12719
  try {
12723
- const ts = "2026-06-20T08:28:18.242Z";
12720
+ const ts = "2026-06-21T07:14:12.878Z";
12724
12721
  if (ts && ts !== "__BUILD_TIMESTAMP__") {
12725
12722
  context.addMessage("system", row2("Build Timestamp", ts));
12726
12723
  }
@@ -18542,7 +18539,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
18542
18539
  var Header = () => /* @__PURE__ */ jsxs(Box, { borderStyle: "single", borderColor: "cyan", paddingX: 1, marginBottom: 1, children: [
18543
18540
  /* @__PURE__ */ jsxs(Text, { bold: true, color: "cyan", children: [
18544
18541
  "\u25CF MSapling CLI v",
18545
- "2.3.6-beta.49"
18542
+ "2.3.6-beta.50"
18546
18543
  ] }),
18547
18544
  /* @__PURE__ */ jsx(Box, { marginLeft: 2, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Platinum Tier Architecture" }) })
18548
18545
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtreeai/msapling-cli",
3
- "version": "2.3.6-beta.49",
3
+ "version": "2.3.6-beta.50",
4
4
  "description": "MSapling CLI — React/Ink terminal client for the MSapling backend (chat, projects, MDrive, agent tools). Proprietary; redistribution prohibited.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "MSapling Team",