summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgs/claude-remote.nix26
1 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/claude-remote.nix b/pkgs/claude-remote.nix
index 501edcd..48ac7ed 100644
--- a/pkgs/claude-remote.nix
+++ b/pkgs/claude-remote.nix
@@ -57,16 +57,16 @@ let
inspect NAME
A remote, in more detail: its unit, directory, trust, claude.ai
session, and its terminal's last lines.
- start NAME [--type=remote|interactive]
- restart NAME [--type=remote|interactive]
+ start NAME [--type=server|interactive]
+ restart NAME [--type=server|interactive]
Start a remote (or restart it); a dynamic one lasts, across
- reboots, until stop. --type: a Remote Control server (remote),
+ reboots, until stop. --type: a Remote Control server (server),
or an interactive session with Remote Control (interactive;
--interactive for short), with more memory and CPU, and its
session archived on claude.ai while it's stopped. A new one is
- made so (default: remote); an existing one of the other type
+ made so (default: server); an existing one of the other type
changes (stopped, if it runs): to interactive, it resumes its
- latest session; to remote, the session it had as one. Without
+ latest session; to server, the session it had as one. Without
--type, a remote starts as the type it is. Not for a static
one, whose type is the system's configuration's.
stop NAME
@@ -162,7 +162,7 @@ let
fi
}
type_of() {
- if is_interactive "$1"; then echo interactive; else echo remote; fi
+ if is_interactive "$1"; then echo interactive; else echo server; fi
}
valid() {
case $1 in "" | .* | */* | *[[:space:]]*) return 1 ;; esac
@@ -330,7 +330,7 @@ let
read -r -p "$1 [y/N] " a
case $a in y | Y | yes) ;; *) die "not done" ;; esac
}
- # NAME, as a remote of TYPE (remote, interactive) from now on: stopped,
+ # NAME, as a remote of TYPE (server, interactive) from now on: stopped,
# if it runs, and left so. To an interactive session, it resumes its
# latest session (its latest transcript), or else starts a new one; to
# a Remote Control server, its session id goes (kept, as a dot file,
@@ -676,13 +676,13 @@ let
for a; do
case $a in
--interactive) type=interactive ;;
- --type=remote | --type=interactive) type=''${a#--type=} ;;
- --type=*) die "$cmd: $a: the type is remote or interactive" ;;
+ --type=server | --type=interactive) type=''${a#--type=} ;;
+ --type=*) die "$cmd: $a: the type is server or interactive" ;;
-*) die "$cmd: $a: no such option (claude-remote -h)" ;;
*) args+=("$a")
esac
done
- test ''${#args[@]} = 1 || die "$cmd NAME [--type=remote|interactive] (claude-remote -h)"
+ test ''${#args[@]} = 1 || die "$cmd NAME [--type=server|interactive] (claude-remote -h)"
n=''${args[0]}
name_arg "$n"
# before the login, the unit would be skipped, and not come back
@@ -690,7 +690,7 @@ let
die "there's no login yet: runuser -l claude -c 'claude auth login' (then the remotes start)"
# of the type asked for: a new one, made so; an existing one of the
# other type, changed (stopped, if it runs); without --type, of the
- # type it is (a new one, remote)
+ # type it is (a new one, a server)
if test -n "$type" && test "$(type_of "$n")" != "$type"; then
if test -d "$remotes/$n" || test -d "$(project "$n")"; then
change_type "$n" "$type"
@@ -754,9 +754,9 @@ let
# --type=TYPE (which bash splits into --type, =, TYPE)
local prev=''${COMP_WORDS[COMP_CWORD-1]}
if [ "$cur" = = ] && [ "$prev" = --type ]; then
- COMPREPLY=(remote interactive)
+ COMPREPLY=(server interactive)
elif [ "$prev" = = ] && [ "''${COMP_WORDS[COMP_CWORD-2]}" = --type ]; then
- COMPREPLY=($(compgen -W "remote interactive" -- "$cur"))
+ COMPREPLY=($(compgen -W "server interactive" -- "$cur"))
else
COMPREPLY=($(compgen -W "--type= --interactive" -- "$cur"))
[ "''${COMPREPLY[*]}" != --type= ] || compopt -o nospace