@mtreeai/msapling-cli 2.3.6-beta.41 → 2.3.6-beta.42

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 +19 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9772,10 +9772,22 @@ async function loginWithEmailPassword(email, context, preSuppliedPassword) {
9772
9772
  context.addMessage("system", `Logging in as ${email}...`);
9773
9773
  let password = preSuppliedPassword || process.env.MSAPLING_PASSWORD || "";
9774
9774
  if (!password) {
9775
- context.addMessage(
9776
- "system",
9777
- "NOTE: the interactive password prompt is known to leak keystrokes into the REPL input. Safer alternatives: /login <email> <password> OR set MSAPLING_PASSWORD env var OR use /login <token>."
9778
- );
9775
+ const inkAlreadyListening = process.stdin.listenerCount("data") > 0;
9776
+ if (inkAlreadyListening) {
9777
+ context.addMessage(
9778
+ "error",
9779
+ "Cannot prompt for password inside the REPL \u2014 Ink owns stdin and would corrupt the input."
9780
+ );
9781
+ context.addMessage(
9782
+ "system",
9783
+ "Use one of these instead:"
9784
+ );
9785
+ context.addMessage("system", ` /login ${email} <your-password>`);
9786
+ context.addMessage("system", ` or set the env var before launching: $env:MSAPLING_PASSWORD="..."`);
9787
+ context.addMessage("system", " or paste an API token: /login <token> (get one at msapling.com \u2192 Settings \u2192 API Keys)");
9788
+ context.addMessage("system", " or use a different login mode: /login github | /login guest");
9789
+ return;
9790
+ }
9779
9791
  try {
9780
9792
  password = await promptPassword("Password: ");
9781
9793
  if (!password) {
@@ -12395,7 +12407,7 @@ var init_version = __esm({
12395
12407
  description: "Show version information for CLI and core packages",
12396
12408
  category: "debug",
12397
12409
  handler: async (_args, context) => {
12398
- const cliVersion = true ? "2.3.6-beta.41" : "(dev)";
12410
+ const cliVersion = true ? "2.3.6-beta.42" : "(dev)";
12399
12411
  const coreVersion = true ? "2.3.2" : "(dev)";
12400
12412
  const runtime = process.version;
12401
12413
  context.addMessage("system", "MSapling Version Info");
@@ -12404,7 +12416,7 @@ var init_version = __esm({
12404
12416
  context.addMessage("system", row2("Core (@msapling/core)", coreVersion));
12405
12417
  context.addMessage("system", row2("Runtime (Node/Bun)", runtime));
12406
12418
  try {
12407
- const ts = "2026-06-02T15:47:25.597Z";
12419
+ const ts = "2026-06-02T16:20:01.508Z";
12408
12420
  if (ts && ts !== "__BUILD_TIMESTAMP__") {
12409
12421
  context.addMessage("system", row2("Build Timestamp", ts));
12410
12422
  }
@@ -17920,7 +17932,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
17920
17932
  var Header = () => /* @__PURE__ */ jsxs(Box, { borderStyle: "single", borderColor: "cyan", paddingX: 1, marginBottom: 1, children: [
17921
17933
  /* @__PURE__ */ jsxs(Text, { bold: true, color: "cyan", children: [
17922
17934
  "\u25CF MSapling CLI v",
17923
- "2.3.6-beta.41"
17935
+ "2.3.6-beta.42"
17924
17936
  ] }),
17925
17937
  /* @__PURE__ */ jsx(Box, { marginLeft: 2, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Platinum Tier Architecture" }) })
17926
17938
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtreeai/msapling-cli",
3
- "version": "2.3.6-beta.41",
3
+ "version": "2.3.6-beta.42",
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",