nexrall-code 0.5.18 → 0.5.20
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 +11 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12627,6 +12627,15 @@ Resolve the conflict (remove <<<<<<< / ======= / >>>>>>> markers and keep the in
|
|
|
12627
12627
|
const dirPath = typeof input.path === "string" ? input.path : ".";
|
|
12628
12628
|
try {
|
|
12629
12629
|
const resolved = resolvePath(dirPath, workDir);
|
|
12630
|
+
let stat2;
|
|
12631
|
+
try {
|
|
12632
|
+
stat2 = fs6.statSync(resolved);
|
|
12633
|
+
} catch {
|
|
12634
|
+
return { error: `Path not found: ${resolved}.` };
|
|
12635
|
+
}
|
|
12636
|
+
if (!stat2.isDirectory()) {
|
|
12637
|
+
return { error: `Path is a file, not a directory: ${resolved}. Use read_file to view its contents.` };
|
|
12638
|
+
}
|
|
12630
12639
|
const entries = fs6.readdirSync(resolved, { withFileTypes: true });
|
|
12631
12640
|
const dirs = entries.filter((e2) => e2.isDirectory()).sort((a, b) => a.name.localeCompare(b.name));
|
|
12632
12641
|
const files = entries.filter((e2) => !e2.isDirectory()).sort((a, b) => a.name.localeCompare(b.name));
|
|
@@ -12636,8 +12645,8 @@ Resolve the conflict (remove <<<<<<< / ======= / >>>>>>> markers and keep the in
|
|
|
12636
12645
|
}
|
|
12637
12646
|
for (const f3 of files) {
|
|
12638
12647
|
try {
|
|
12639
|
-
const
|
|
12640
|
-
const size = formatBytes(
|
|
12648
|
+
const stat3 = fs6.statSync(path5.join(resolved, f3.name));
|
|
12649
|
+
const size = formatBytes(stat3.size);
|
|
12641
12650
|
lines.push(`\u{1F4C4} ${f3.name} (${size})`);
|
|
12642
12651
|
} catch {
|
|
12643
12652
|
lines.push(`\u{1F4C4} ${f3.name}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexrall-code",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.20",
|
|
4
4
|
"description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"bin": {
|
|
22
|
-
"nex": "
|
|
22
|
+
"nex": "dist/index.js"
|
|
23
23
|
},
|
|
24
24
|
"main": "dist/index.js",
|
|
25
25
|
"files": [
|