@mtreeai/msapling-cli 2.3.6-beta.36 → 2.3.6-beta.38

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 +56 -48
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10032,6 +10032,32 @@ var init_newproject = __esm({
10032
10032
  });
10033
10033
 
10034
10034
  // src/commands/toggles.ts
10035
+ function parseToggleArg(arg) {
10036
+ if (arg == null) return null;
10037
+ const v = arg.toLowerCase();
10038
+ if (v === "on" || v === "true" || v === "1" || v === "enable") return true;
10039
+ if (v === "off" || v === "false" || v === "0" || v === "disable") return false;
10040
+ return "invalid";
10041
+ }
10042
+ function makeToggle(name, key, label, description) {
10043
+ return {
10044
+ name,
10045
+ args: "[on|off]",
10046
+ description,
10047
+ category: "config",
10048
+ handler: (args2, context) => {
10049
+ const parsed = parseToggleArg(args2[0]);
10050
+ if (parsed === "invalid") {
10051
+ context.addMessage("error", `Invalid argument "${args2[0]}". Use: ${name} [on|off]`);
10052
+ return;
10053
+ }
10054
+ const current = sessionToggles.get(key);
10055
+ const next = parsed === null ? !current : parsed;
10056
+ sessionToggles.set(key, next);
10057
+ context.addMessage("system", `${label}: ${next ? "on" : "off"}`);
10058
+ }
10059
+ };
10060
+ }
10035
10061
  var sessionToggles, whoamiCommand, effortCommand, vimCommand, fastCommand, simpleCommand, filterCommand, shadowCommand;
10036
10062
  var init_toggles = __esm({
10037
10063
  "src/commands/toggles.ts"() {
@@ -10086,36 +10112,24 @@ var init_toggles = __esm({
10086
10112
  context.addMessage("system", `effort set to: ${arg}`);
10087
10113
  }
10088
10114
  };
10089
- vimCommand = {
10090
- name: "vim",
10091
- description: "Toggle vim mode for REPL input",
10092
- category: "config",
10093
- handler: (_args, context) => {
10094
- const current = sessionToggles.get("vimMode");
10095
- sessionToggles.set("vimMode", !current);
10096
- context.addMessage("system", `vim mode: ${!current ? "on" : "off"}`);
10097
- }
10098
- };
10099
- fastCommand = {
10100
- name: "fast",
10101
- description: "Toggle fast mode (reduces verbose UI elements)",
10102
- category: "config",
10103
- handler: (_args, context) => {
10104
- const current = sessionToggles.get("fastMode");
10105
- sessionToggles.set("fastMode", !current);
10106
- context.addMessage("system", `fast mode: ${!current ? "on" : "off"}`);
10107
- }
10108
- };
10109
- simpleCommand = {
10110
- name: "simple",
10111
- description: "Toggle simple mode (plain output, no tables)",
10112
- category: "config",
10113
- handler: (_args, context) => {
10114
- const current = sessionToggles.get("simpleMode");
10115
- sessionToggles.set("simpleMode", !current);
10116
- context.addMessage("system", `simple mode: ${!current ? "on" : "off"}`);
10117
- }
10118
- };
10115
+ vimCommand = makeToggle(
10116
+ "vim",
10117
+ "vimMode",
10118
+ "vim mode",
10119
+ "Toggle vim mode for REPL input (vim [on|off] to set explicitly)"
10120
+ );
10121
+ fastCommand = makeToggle(
10122
+ "fast",
10123
+ "fastMode",
10124
+ "fast mode",
10125
+ "Toggle fast mode (reduces verbose UI elements)"
10126
+ );
10127
+ simpleCommand = makeToggle(
10128
+ "simple",
10129
+ "simpleMode",
10130
+ "simple mode",
10131
+ "Toggle simple mode (plain output, no tables)"
10132
+ );
10119
10133
  filterCommand = {
10120
10134
  name: "filter",
10121
10135
  args: "[regex]",
@@ -10137,16 +10151,12 @@ var init_toggles = __esm({
10137
10151
  }
10138
10152
  }
10139
10153
  };
10140
- shadowCommand = {
10141
- name: "shadow",
10142
- description: "Toggle shadow mode (secondary LLM auditor for secret redaction)",
10143
- category: "config",
10144
- handler: (_args, context) => {
10145
- const current = sessionToggles.get("shadowMode");
10146
- sessionToggles.set("shadowMode", !current);
10147
- context.addMessage("system", `shadow mode: ${!current ? "on" : "off"}`);
10148
- }
10149
- };
10154
+ shadowCommand = makeToggle(
10155
+ "shadow",
10156
+ "shadowMode",
10157
+ "shadow mode",
10158
+ "Toggle shadow mode (secondary LLM auditor for secret redaction)"
10159
+ );
10150
10160
  }
10151
10161
  });
10152
10162
 
@@ -12370,7 +12380,7 @@ var init_version = __esm({
12370
12380
  description: "Show version information for CLI and core packages",
12371
12381
  category: "debug",
12372
12382
  handler: async (_args, context) => {
12373
- const cliVersion = true ? "2.3.6-beta.36" : "(dev)";
12383
+ const cliVersion = true ? "2.3.6-beta.38" : "(dev)";
12374
12384
  const coreVersion = true ? "2.3.2" : "(dev)";
12375
12385
  const runtime = process.version;
12376
12386
  context.addMessage("system", "MSapling Version Info");
@@ -12379,7 +12389,7 @@ var init_version = __esm({
12379
12389
  context.addMessage("system", row2("Core (@msapling/core)", coreVersion));
12380
12390
  context.addMessage("system", row2("Runtime (Node/Bun)", runtime));
12381
12391
  try {
12382
- const ts = "2026-06-02T15:16:34.864Z";
12392
+ const ts = "2026-06-02T15:24:09.781Z";
12383
12393
  if (ts && ts !== "__BUILD_TIMESTAMP__") {
12384
12394
  context.addMessage("system", row2("Build Timestamp", ts));
12385
12395
  }
@@ -13148,13 +13158,11 @@ var init_image = __esm({
13148
13158
  for (let i = 0; i < args2.length; i++) {
13149
13159
  if (args2[i] === "--model" && i + 1 < args2.length) {
13150
13160
  model = args2[++i];
13151
- continue;
13152
- }
13153
- if (args2[i] === "--output" && i + 1 < args2.length) {
13161
+ } else if (args2[i] === "--output" && i + 1 < args2.length) {
13154
13162
  outputFile = args2[++i];
13155
- continue;
13163
+ } else {
13164
+ prompt4 += (prompt4 ? " " : "") + args2[i];
13156
13165
  }
13157
- prompt4 += (prompt4 ? " " : "") + args2[i];
13158
13166
  }
13159
13167
  if (!prompt4) {
13160
13168
  context.addMessage("system", "Usage: /image <prompt> [--model MODEL] [--output FILE]");
@@ -17897,7 +17905,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
17897
17905
  var Header = () => /* @__PURE__ */ jsxs(Box, { borderStyle: "single", borderColor: "cyan", paddingX: 1, marginBottom: 1, children: [
17898
17906
  /* @__PURE__ */ jsxs(Text, { bold: true, color: "cyan", children: [
17899
17907
  "\u25CF MSapling CLI v",
17900
- "2.3.6-beta.36"
17908
+ "2.3.6-beta.38"
17901
17909
  ] }),
17902
17910
  /* @__PURE__ */ jsx(Box, { marginLeft: 2, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Platinum Tier Architecture" }) })
17903
17911
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtreeai/msapling-cli",
3
- "version": "2.3.6-beta.36",
3
+ "version": "2.3.6-beta.38",
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",