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.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
feat(cli): named `threads rename` verb for PATCH /api/threads
Abdurrahman Fakhrul504c61f2ea53
diff --git a/bin/mso b/bin/msoindex 9e711813..0627a0ae 100755--- a/bin/mso+++ b/bin/mso@@ -71,7 +71,7 @@# AI + state# ai <prompt…> One turn with the assistant# cockpit [project] Alfa/MSO runtime context; search with `cockpit search <query>`-# threads * Conversation history: list | show | rm+# threads * Conversation history: list | show | save | rename | rm# agent-sessions * Durable MSO Agent sessions: list | show | create# agents * Native local session agents: list | send | inbox# org * Organization chart: units, seats, reporting lines, targetsdiff --git a/docs/CLI.md b/docs/CLI.mdindex 6947bd56..50d1625c 100644--- a/docs/CLI.md+++ b/docs/CLI.md@@ -111,7 +111,7 @@ Commands:AI + stateai <prompt…> One turn with the assistantcockpit [project] Alfa/MSO runtime context; search with `cockpit search <query>`- threads * Conversation history: list | show | rm+ threads * Conversation history: list | show | save | rename | rmagent-sessions * Durable MSO Agent sessions: list | show | createagents * Native local session agents: list | send | inboxorg * Organization chart: units, seats, reporting lines, targetsdiff --git a/scripts/cli/commands-state.sh b/scripts/cli/commands-state.shindex 0131f87f..553f530d 100755--- a/scripts/cli/commands-state.sh+++ b/scripts/cli/commands-state.sh@@ -26,6 +26,7 @@ case "$cmd" inlist) jget "/api/threads" ;;show) jget "/api/threads?id=$(enc "${2:?id}")" ;;save) jpost "/api/threads" "${2:?json — {id,messages:[…]}}" ;;+ rename) jpatch "/api/threads" "${2:?json — {id,title}}" ;;rm) jdel "/api/threads?id=$(enc "${2:?id}")" ;;*) die "usage: mso $U_threads" ;;esac ;;diff --git a/scripts/cli/commands.sh b/scripts/cli/commands.shindex 91054dce..8705f79f 100755--- a/scripts/cli/commands.sh+++ b/scripts/cli/commands.sh@@ -41,7 +41,7 @@ U_reset="reset [--scope config|all] [--json] [--apply --confirm <preview-token>]U_uninstall="uninstall [--purge] [--remove-code] [--service name.service] [--json] [--apply --confirm <preview-token>]"U_update="update [--rebuild] | status | reconcile | log"U_cockpit="cockpit [project] | cockpit show [project] | cockpit search <query…>"-U_threads="threads list|show <id>|save <json>|rm <id>"+U_threads="threads list|show <id>|save <json>|rename <json>|rm <id>"U_agent_sessions="agent-sessions list [limit]|show <id>|create [title]"U_agents="agents list [current-session-id]|send <source-session-id> <target> <message> [message|task]|inbox <session-id> [--all]"U_org="org flow-custom-nodes|flow-nodes-move|flow-update|flow-replace|flow-node-upsert|flow-node-delete|flow-edge-upsert|flow-edge-delete <revision> <JSON with unitId|@file>|show|unit-upsert <revision> <JSON|@file>|seat-upsert <revision> <JSON|@file>|unit-delete <revision> <id>|seat-delete <revision> <id>|replace <revision> <JSON|@file>"diff --git a/scripts/cli/transport.sh b/scripts/cli/transport.shindex cb455f69..76bcf612 100755--- a/scripts/cli/transport.sh+++ b/scripts/cli/transport.sh@@ -92,6 +92,7 @@ enc() { jq -rn --arg v "$1" '$v|@uri'; }jget() { req "$B$1"; }jpost() { req -H 'content-type: application/json' -d "${2:-{\}}" "$B$1"; }jdel() { req -X DELETE -H 'content-type: application/json' -d "${2:-{\}}" "$B$1"; }+jpatch() { req -X PATCH -H 'content-type: application/json' -d "${2:-{\}}" "$B$1"; }# Build a JSON object from k=v pairs (numbers + booleans coerced).kv_args() { local j='{}' kv k v; for kv in "$@"; do k="${kv%%=*}"; v="${kv#*=}"if [[ "$v" =~ ^-?[0-9]+([.][0-9]+)?$ || "$v" == "true" || "$v" == "false" ]]; then