refactor(cli): run local mode only (P1.1)

Team mode is not part of the community edition (ADR-0003), so the CLI
no longer detects or switches to it.

- Remove the mode detector, the --local and --team flags, the Clerk
  browser login (/login, /logout, /whoami) and /mode.
- Remove the /admin command and its team-server REST client.
- The welcome banner drops the Mode line.
- The installed-REPL test starts plain `waggle` and checks that the team
  commands are gone.
This commit is contained in:
shumeiko.it
2026-10-24 16:39:00 +02:00
parent d51ea0aed5
commit 697517d378
11 changed files with 11 additions and 657 deletions

View File

@@ -14,8 +14,6 @@ Waggle CLI — interactive AI agent with persistent memory
Usage:
waggle Start interactive REPL
waggle --model <name> Start with a specific model
waggle --local Force local mode (no server)
waggle --team Force team mode (requires login)
waggle --help Show this help message
Configuration:
@@ -25,7 +23,6 @@ Commands (inside REPL):
/model <name> Switch model
/models List available models
/identity Show agent identity
/admin <cmd> Admin commands (teams|jobs|cron|audit|stats)
/clear Clear conversation
/help Show commands
/exit Quit
@@ -45,12 +42,9 @@ if (modelIdx !== -1 && args[modelIdx + 1]) {
model = args[modelIdx + 1];
}
const local = args.includes('--local');
const team = args.includes('--team');
async function main(): Promise<void> {
const { startRepl } = await import('./repl.js');
await startRepl({ model, local, team });
await startRepl({ model });
}
main().catch((err) => {