Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

feat(cli): add MSO folder ASCII icon

Rahmancf722df70762
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index fc81ceae..d160321b 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -4,6 +4,12 @@
Newest first. `docs/PROGRESS.md` is the source of truth for *why* a change was made;
this is the *what*, and it is what Settings → About shows as “What's new”.
+## 2026-09-01
+
+**Added**
+
+- `cli` add MSO folder ASCII icon
+
## 2026-08-31
**Added**
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index 5da20313..387a372e 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -9,7 +9,7 @@ Running log of what shipped each phase. Newest at top.
What changed:
- bare `mso` now launches **MSO Agent**; `mso agent`/`mso chat` are explicit aliases and `mso model` connects or changes the AI provider before the agent starts;
-- the terminal presents original MSO ASCII, selected model, Available Tools, Available Skills and infrastructure readiness, then streams through the existing `/api/assistant` backend;
+- the terminal presents an original MSO folder + `>_` ASCII icon beside the large MSO wordmark (stacking on narrow terminals), selected model, Available Tools, Available Skills and infrastructure readiness, then streams through the existing `/api/assistant` backend;
- the terminal discovers the canonical MCP catalog through an Owner-only `/api/v1/agent-tools` bridge. Read tools may execute directly; every individual write/exec call pauses for an exact-call terminal approval (never a cached session-wide mutation grant) while server role/scope/rate-limit/audit checks remain authoritative;
- MCP toolset is **2026.08.31.1: 38 tools = 20 read + 13 write + 5 exec**. New provider tools cover redacted provider discovery/doctor, Dokploy project list/ensure, exact per-record Cloudflare DNS upsert, and exact Hostinger name/type RR-set replacement;
- provider credentials are stored separately in `~/.mso/private/infra-providers.json`: 0700 parent, 0600 file, `O_NOFOLLOW`, regular-file/owner/size checks, atomic locked writes, API summaries expose only the word `configured` for secret fields, and no raw secret enters model/MCP arguments;
diff --git a/scripts/mso-agent-contract.test.ts b/scripts/mso-agent-contract.test.ts
index 7be9c119..ef767c89 100644
--- a/scripts/mso-agent-contract.test.ts
+++ b/scripts/mso-agent-contract.test.ts
@@ -6,8 +6,11 @@ const files = ["mso-agent.mjs", "mso-agent-runtime.mjs"].map((name) => path.join
const src = files.map((file) => fs.readFileSync(file, "utf8")).join("\n");
describe("MSO terminal agent contract", () => {
- it("renders original MSO terminal branding and exposes setup shortcuts", () => {
+ it("renders the MSO folder-terminal icon, wordmark, and setup shortcuts", () => {
+ expect(src).toContain("╭──┘ ╰────────╮");
+ expect(src).toContain("│ >_ │");
expect(src).toContain("███╗ ███╗ ███████╗ ██████╗");
+ expect(src).toContain("process.stdout.columns < 72");
for (const command of ["/model", "/setup", "/providers", "/provider", "/doctor", "/tools", "/skills", "/clear", "/exit"]) expect(src).toContain(command);
});
diff --git a/scripts/mso-agent-runtime.mjs b/scripts/mso-agent-runtime.mjs
index 2ad413ca..96d31a7f 100644
--- a/scripts/mso-agent-runtime.mjs
+++ b/scripts/mso-agent-runtime.mjs
@@ -42,7 +42,15 @@ export async function api(path, init = {}) {
}
function logo() {
- const lines = [
+ const icon = [
+ " ╭──────╮ ",
+ "╭──┘ ╰────────╮ ",
+ "│ │ ",
+ "│ >_ │ ",
+ "│ │ ",
+ "╰──────────────────╯ ",
+ ];
+ const wordmark = [
"███╗ ███╗ ███████╗ ██████╗ ",
"████╗ ████║ ██╔════╝ ██╔═══██╗",
"██╔████╔██║ ███████╗ ██║ ██║",
@@ -50,7 +58,13 @@ function logo() {
"██║ ╚═╝ ██║ ███████║ ╚██████╔╝",
"╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ",
];
- return lines.map((line, i) => `${i < 2 ? C.a : i < 4 ? C.b : C.c}${C.bold}${line}${C.reset}`).join("\n");
+ const narrow = Number(process.stdout.columns || 0) > 0 && process.stdout.columns < 72;
+ const lines = narrow ? [...icon, "", ...wordmark] : wordmark.map((line, i) => `${icon[i]} ${line}`);
+ return lines.map((line, i) => {
+ if (!line) return line;
+ const phase = narrow ? i % 6 : i;
+ return `${phase < 2 ? C.a : phase < 4 ? C.b : C.c}${C.bold}${line}${C.reset}`;
+ }).join("\n");
}
function countSkills(data) { return Array.isArray(data?.skills) ? data.skills.length : 0; }