@mtreeai/msapling-cli 2.3.6-beta.62 → 2.3.6-beta.63
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/index.js +10 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11394,6 +11394,9 @@ function isMissingPathError(error) {
|
|
|
11394
11394
|
const code = error?.code;
|
|
11395
11395
|
return code === void 0 || code === "ENOENT" || code === "ENOTDIR";
|
|
11396
11396
|
}
|
|
11397
|
+
function canonicalComparisonPath(value) {
|
|
11398
|
+
return /^[A-Za-z]:$/.test(value) ? `${value}\\` : value;
|
|
11399
|
+
}
|
|
11397
11400
|
function resolveThroughExistingAncestorSync(target, resolver) {
|
|
11398
11401
|
let cursor = target;
|
|
11399
11402
|
const suffix = [];
|
|
@@ -11503,7 +11506,7 @@ var init_Sandbox = __esm({
|
|
|
11503
11506
|
const normalizedTarget = isAbsolute16(targetPath) ? normalize14(targetPath) : resolve20(this.projectRoot, targetPath);
|
|
11504
11507
|
let resolvedRoot;
|
|
11505
11508
|
try {
|
|
11506
|
-
resolvedRoot = this.realpathSyncFn(this.projectRoot);
|
|
11509
|
+
resolvedRoot = canonicalComparisonPath(this.realpathSyncFn(this.projectRoot));
|
|
11507
11510
|
} catch (error) {
|
|
11508
11511
|
return { safe: false, reason: `Project root cannot be resolved safely: ${error.message}` };
|
|
11509
11512
|
}
|
|
@@ -11511,7 +11514,7 @@ var init_Sandbox = __esm({
|
|
|
11511
11514
|
if (!canonical.path) {
|
|
11512
11515
|
return { safe: false, reason: `Path cannot be resolved safely: ${canonical.error}` };
|
|
11513
11516
|
}
|
|
11514
|
-
const resolvedTarget = canonical.path;
|
|
11517
|
+
const resolvedTarget = canonicalComparisonPath(canonical.path);
|
|
11515
11518
|
const rel = relative14(resolvedRoot, resolvedTarget);
|
|
11516
11519
|
const isOutside = rel.startsWith("..") || isAbsolute16(rel);
|
|
11517
11520
|
if (isOutside) {
|
|
@@ -11534,7 +11537,7 @@ var init_Sandbox = __esm({
|
|
|
11534
11537
|
const normalizedTarget = isAbsolute16(targetPath) ? normalize14(targetPath) : resolve20(this.projectRoot, targetPath);
|
|
11535
11538
|
let resolvedRoot;
|
|
11536
11539
|
try {
|
|
11537
|
-
resolvedRoot = await realpath5(this.projectRoot);
|
|
11540
|
+
resolvedRoot = canonicalComparisonPath(await realpath5(this.projectRoot));
|
|
11538
11541
|
} catch (error) {
|
|
11539
11542
|
return { safe: false, reason: `Project root cannot be resolved safely: ${error.message}` };
|
|
11540
11543
|
}
|
|
@@ -11542,7 +11545,7 @@ var init_Sandbox = __esm({
|
|
|
11542
11545
|
if (!canonical.path) {
|
|
11543
11546
|
return { safe: false, reason: `Path cannot be resolved safely: ${canonical.error}` };
|
|
11544
11547
|
}
|
|
11545
|
-
const resolvedTarget = canonical.path;
|
|
11548
|
+
const resolvedTarget = canonicalComparisonPath(canonical.path);
|
|
11546
11549
|
const rel = relative14(resolvedRoot, resolvedTarget);
|
|
11547
11550
|
const isOutside = rel.startsWith("..") || isAbsolute16(rel);
|
|
11548
11551
|
if (isOutside) {
|
|
@@ -23770,7 +23773,7 @@ var init_version = __esm({
|
|
|
23770
23773
|
description: "Show version information for CLI and core packages",
|
|
23771
23774
|
category: "debug",
|
|
23772
23775
|
handler: async (_args, context) => {
|
|
23773
|
-
const cliVersion = true ? "2.3.6-beta.
|
|
23776
|
+
const cliVersion = true ? "2.3.6-beta.63" : "(dev)";
|
|
23774
23777
|
const coreVersion = true ? "2.3.6-beta.43" : "(dev)";
|
|
23775
23778
|
const runtime = process.version;
|
|
23776
23779
|
context.addMessage("system", "MSapling Version Info");
|
|
@@ -29819,11 +29822,11 @@ import { Box, Text } from "ink";
|
|
|
29819
29822
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29820
29823
|
var Header = ({ compact: compact2 = false }) => compact2 ? /* @__PURE__ */ jsxs(Text, { bold: true, color: "cyan", children: [
|
|
29821
29824
|
"\u25CF MSapling v",
|
|
29822
|
-
"2.3.6-beta.
|
|
29825
|
+
"2.3.6-beta.63"
|
|
29823
29826
|
] }) : /* @__PURE__ */ jsxs(Box, { width: "100%", borderStyle: "single", borderColor: "cyan", paddingX: 1, marginBottom: 1, children: [
|
|
29824
29827
|
/* @__PURE__ */ jsxs(Text, { bold: true, color: "cyan", children: [
|
|
29825
29828
|
"\u25CF MSapling CLI v",
|
|
29826
|
-
"2.3.6-beta.
|
|
29829
|
+
"2.3.6-beta.63"
|
|
29827
29830
|
] }),
|
|
29828
29831
|
/* @__PURE__ */ jsx(Box, { marginLeft: 2, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Platinum Tier Architecture" }) })
|
|
29829
29832
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtreeai/msapling-cli",
|
|
3
|
-
"version": "2.3.6-beta.
|
|
3
|
+
"version": "2.3.6-beta.63",
|
|
4
4
|
"description": "MSapling CLI by MTreeAI — React/Ink terminal client for the MSapling backend: chat, projects, MDrive, agent tools, MCP server.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "MSapling Team",
|