Skip to content

Commit 4a59743

Browse files
authored
Merge pull request #3 from mammouth-ai/mammouth-code-n1814
refactor: Renamed Mammouth CLI to Mammouth Code
2 parents 18d4e7d + ec3e6bc commit 4a59743

16 files changed

Lines changed: 61 additions & 61 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77
workflow_dispatch:
88
inputs:
99
version:
@@ -65,14 +65,14 @@ jobs:
6565
uses: softprops/action-gh-release@v2
6666
with:
6767
tag_name: v${{ steps.version.outputs.version }}
68-
name: Mammouth CLI v${{ steps.version.outputs.version }}
68+
name: Mammouth Code v${{ steps.version.outputs.version }}
6969
draft: false
7070
prerelease: false
7171
files: |
7272
packages/opencode/dist/*.tar.gz
7373
packages/opencode/dist/*.zip
7474
body: |
75-
## Mammouth CLI v${{ steps.version.outputs.version }}
75+
## Mammouth Code v${{ steps.version.outputs.version }}
7676
7777
### Installation
7878

install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
# Mammouth CLI Installer
4+
# Mammouth Code Installer
55
# Usage: curl -fsSL https://raw.githubusercontent.com/mammouth-ai/code/dev/install.sh | bash
66

77
REPO="mammouth-ai/code"
@@ -66,7 +66,7 @@ install() {
6666
detect_platform
6767
VERSION=$(get_latest_version)
6868

69-
info "Installing Mammouth CLI v${VERSION} for ${PLATFORM}..."
69+
info "Installing Mammouth Code v${VERSION} for ${PLATFORM}..."
7070

7171
# Create install directory
7272
mkdir -p "$INSTALL_DIR"
@@ -140,7 +140,7 @@ setup_path() {
140140

141141
# Check if already in PATH
142142
if echo "$PATH" | grep -q ".mammouth/bin"; then
143-
info "Mammouth CLI is ready! Run 'mammouth' to get started."
143+
info "Mammouth Code is ready! Run 'mammouth' to get started."
144144
return
145145
fi
146146

@@ -149,15 +149,15 @@ setup_path() {
149149
info "PATH already configured in $PROFILE"
150150
else
151151
echo "" >> "$PROFILE"
152-
echo "# Mammouth CLI" >> "$PROFILE"
152+
echo "# Mammouth Code" >> "$PROFILE"
153153
echo "$EXPORT_LINE" >> "$PROFILE"
154154
info "Added to PATH in $PROFILE"
155155
fi
156156

157157
echo ""
158158
info "Installation complete!"
159159
echo ""
160-
echo "To start using Mammouth CLI, either:"
160+
echo "To start using Mammouth Code, either:"
161161
echo " 1. Restart your terminal, or"
162162
echo " 2. Run: source $PROFILE"
163163
echo ""

packages/opencode/bin/mammouth

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function findBinary(startDir) {
7474
const resolved = findBinary(scriptDir)
7575
if (!resolved) {
7676
console.error(
77-
'It seems that your package manager failed to install the right version of Mammouth CLI for your platform. You can try manually installing the "' +
77+
'It seems that your package manager failed to install the right version of Mammouth Code for your platform. You can try manually installing the "' +
7878
base +
7979
'" package',
8080
)

packages/opencode/src/cli/cmd/pr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const PrCommand = cmd({
6868
const sessionMatch = prInfo.body.match(/https:\/\/opncd\.ai\/s\/([a-zA-Z0-9_-]+)/)
6969
if (sessionMatch) {
7070
const sessionUrl = sessionMatch[0]
71-
UI.println(`Found Mammouth CLI session: ${sessionUrl}`)
71+
UI.println(`Found Mammouth Code session: ${sessionUrl}`)
7272
UI.println(`Importing session...`)
7373

7474
const importResult = await $`mammouth import ${sessionUrl}`.nothrow()
@@ -88,7 +88,7 @@ export const PrCommand = cmd({
8888

8989
UI.println(`Successfully checked out PR #${prNumber} as branch '${localBranchName}'`)
9090
UI.println()
91-
UI.println("Starting Mammouth CLI...")
91+
UI.println("Starting Mammouth Code...")
9292
UI.println()
9393

9494
// Launch opencode TUI with session ID if available
@@ -102,7 +102,7 @@ export const PrCommand = cmd({
102102
await new Promise<void>((resolve, reject) => {
103103
opencodeProcess.on("exit", (code) => {
104104
if (code === 0) resolve()
105-
else reject(new Error(`Mammouth CLI exited with code ${code}`))
105+
else reject(new Error(`Mammouth Code exited with code ${code}`))
106106
})
107107
opencodeProcess.on("error", reject)
108108
})

packages/opencode/src/cli/cmd/serve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { Flag } from "../../flag/flag"
66
export const ServeCommand = cmd({
77
command: "serve",
88
builder: (yargs) => withNetworkOptions(yargs),
9-
describe: "starts a headless Mammouth CLI server",
9+
describe: "starts a headless Mammouth Code server",
1010
handler: async (args) => {
1111
if (!Flag.OPENCODE_SERVER_PASSWORD) {
1212
console.log("Warning: OPENCODE_SERVER_PASSWORD is not set; server is unsecured.")
1313
}
1414
const opts = await resolveNetworkOptions(args)
1515
const server = Server.listen(opts)
16-
console.log(`Mammouth CLI server listening on http://${server.hostname}:${server.port}`)
16+
console.log(`Mammouth Code server listening on http://${server.hostname}:${server.port}`)
1717
await new Promise(() => {})
1818
await server.stop()
1919
},

packages/opencode/src/cli/cmd/tui/app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ function App() {
220220
if (!terminalTitleEnabled() || Flag.OPENCODE_DISABLE_TERMINAL_TITLE) return
221221

222222
if (route.data.type === "home") {
223-
renderer.setTerminalTitle("Mammouth CLI")
223+
renderer.setTerminalTitle("Mammouth Code")
224224
return
225225
}
226226

227227
if (route.data.type === "session") {
228228
const session = sync.session.get(route.data.sessionID)
229229
if (!session || SessionApi.isDefaultTitle(session.title)) {
230-
renderer.setTerminalTitle("Mammouth CLI")
230+
renderer.setTerminalTitle("Mammouth Code")
231231
return
232232
}
233233

@@ -660,7 +660,7 @@ function App() {
660660
toast.show({
661661
variant: "info",
662662
title: "Update Available",
663-
message: `Mammouth CLI v${evt.properties.version} is available. Run 'mammouth upgrade' to update manually.`,
663+
message: `Mammouth Code v${evt.properties.version} is available. Run 'mammouth upgrade' to update manually.`,
664664
duration: 10000,
665665
})
666666
})

packages/opencode/src/cli/cmd/tui/component/dialog-status.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function DialogStatus() {
4545
</text>
4646
<text fg={theme.textMuted}>esc</text>
4747
</box>
48-
<text fg={theme.textMuted}>Mammouth CLI v{Installation.VERSION}</text>
48+
<text fg={theme.textMuted}>Mammouth Code v{Installation.VERSION}</text>
4949
<Show when={Object.keys(sync.data.mcp).length > 0} fallback={<text fg={theme.text}>No MCP Servers</text>}>
5050
<box>
5151
<text fg={theme.text}>{Object.keys(sync.data.mcp).length} MCP Servers</text>
@@ -76,7 +76,7 @@ export function DialogStatus() {
7676
<Match when={item.status === "failed" && item}>{(val) => val().error}</Match>
7777
<Match when={item.status === "disabled"}>Disabled in configuration</Match>
7878
<Match when={(item.status as string) === "needs_auth"}>
79-
Needs authentication (run: mammouth-cli mcp auth {key})
79+
Needs authentication (run: mammouth mcp auth {key})
8080
</Match>
8181
<Match when={(item.status as string) === "needs_client_registration" && item}>
8282
{(val) => (val() as { error: string }).error}

packages/opencode/src/cli/cmd/tui/component/tips.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,26 @@ const TIPS = [
8686
"Override any keybind in config via the {highlight}keybinds{/highlight} section",
8787
"Set any keybind to {highlight}none{/highlight} to disable it completely",
8888
"Configure local or remote MCP servers in the {highlight}mcp{/highlight} config section",
89-
"Mammouth CLI auto-handles OAuth for remote MCP servers requiring auth",
89+
"Mammouth Code auto-handles OAuth for remote MCP servers requiring auth",
9090
"Add {highlight}.md{/highlight} files to {highlight}.mammouth/command/{/highlight} to define reusable custom prompts",
9191
"Use {highlight}$ARGUMENTS{/highlight}, {highlight}$1{/highlight}, {highlight}$2{/highlight} in custom commands for dynamic input",
9292
"Add {highlight}.md{/highlight} files to {highlight}.mammouth/agent/{/highlight} for specialized AI personas",
9393
"Configure per-agent permissions for {highlight}edit{/highlight}, {highlight}bash{/highlight}, and {highlight}webfetch{/highlight} tools",
9494
'Set {highlight}"rm -rf *": "deny"{/highlight} to block destructive commands',
95-
"Mammouth CLI auto-formats files using prettier, gofmt, ruff, and more",
95+
"Mammouth Code auto-formats files using prettier, gofmt, ruff, and more",
9696
'Set {highlight}"formatter": false{/highlight} in config to disable all auto-formatting',
9797
"Define custom formatter commands with file extensions in config",
98-
"Mammouth CLI uses LSP servers for intelligent code analysis",
98+
"Mammouth Code uses LSP servers for intelligent code analysis",
9999
"Create {highlight}.ts{/highlight} files in {highlight}.mammouth/tools/{/highlight} to define new LLM tools",
100100
"Tool definitions can invoke scripts written in Python, Go, etc",
101101
"Add {highlight}.ts{/highlight} files to {highlight}.mammouth/plugin/{/highlight} for event hooks",
102102
"Use plugins to send OS notifications when sessions complete",
103-
"Create a plugin to prevent Mammouth CLI from reading sensitive files",
103+
"Create a plugin to prevent Mammouth Code from reading sensitive files",
104104
"Use {highlight}mammouth run{/highlight} for non-interactive scripting",
105105
"Use {highlight}mammouth --continue{/highlight} to resume the last session",
106106
"Use {highlight}mammouth run -f file.ts{/highlight} to attach files via CLI",
107107
"Use {highlight}--format json{/highlight} for machine-readable output in scripts",
108-
"Run {highlight}mammouth serve{/highlight} for headless API access to Mammouth CLI",
108+
"Run {highlight}mammouth serve{/highlight} for headless API access to Mammouth Code",
109109
"Use {highlight}mammouth run --attach{/highlight} to connect to a running server",
110110
"Run {highlight}mammouth upgrade{/highlight} to update to the latest version",
111111
"Run {highlight}mammouth auth list{/highlight} to see all configured providers",

packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export function Sidebar(props: { sessionID: string; overlay?: boolean }) {
284284
285285
</text>
286286
</box>
287-
<text fg={theme.textMuted}>Mammouth CLI asks for your Mammouth API key so you can start ASAP.</text>
287+
<text fg={theme.textMuted}>Mammouth Code asks for your Mammouth API key so you can start ASAP.</text>
288288
{/* <text fg={theme.textMuted}>
289289
Commented out, Mammouth fork
290290
Connect from 75+ providers to use other models, including Claude, GPT, Gemini etc
@@ -303,7 +303,7 @@ export function Sidebar(props: { sessionID: string; overlay?: boolean }) {
303303
<text fg={theme.textMuted}>
304304
<span style={{ fg: theme.success }}></span>{" "}
305305
<span style={{ fg: theme.text }}>
306-
<b>Mammouth CLI</b>
306+
<b>Mammouth Code</b>
307307
</span>{" "}
308308
<span>{Installation.VERSION}</span>
309309
</text>

packages/opencode/src/cli/cmd/uninstall.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface RemovalTargets {
2323

2424
export const UninstallCommand = {
2525
command: "uninstall",
26-
describe: "uninstall Mammouth CLI and remove all related files",
26+
describe: "uninstall Mammouth Code and remove all related files",
2727
builder: (yargs: Argv) =>
2828
yargs
2929
.option("keep-config", {
@@ -54,7 +54,7 @@ export const UninstallCommand = {
5454
UI.empty()
5555
UI.println(UI.logo(" "))
5656
UI.empty()
57-
prompts.intro("Uninstall Mammouth CLI")
57+
prompts.intro("Uninstall Mammouth Code")
5858

5959
const method = await Installation.method()
6060
prompts.log.info(`Installation method: ${method}`)
@@ -135,8 +135,8 @@ async function showRemovalSummary(targets: RemovalTargets, method: Installation.
135135
brew: "brew uninstall mammouth",
136136
choco: "choco uninstall mammouth",
137137
scoop: "scoop uninstall mammouth",
138-
paru: "paru -R mammouth-cli",
139-
yay: "yay -R mammouth-cli",
138+
paru: "paru -R mammouth-code",
139+
yay: "yay -R mammouth-code",
140140
}
141141
prompts.log.info(` ✓ Package: ${cmds[method] || method}`)
142142
}
@@ -188,8 +188,8 @@ async function executeUninstall(method: Installation.Method, targets: RemovalTar
188188
brew: ["brew", "uninstall", "mammouth"],
189189
choco: ["choco", "uninstall", "mammouth"],
190190
scoop: ["scoop", "uninstall", "mammouth"],
191-
paru: ["paru", "-R", "mammouth-cli"],
192-
yay: ["yay", "-R", "mammouth-cli"],
191+
paru: ["paru", "-R", "mammouth-code"],
192+
yay: ["yay", "-R", "mammouth-code"],
193193
}
194194

195195
const cmd = cmds[method]
@@ -235,7 +235,7 @@ async function executeUninstall(method: Installation.Method, targets: RemovalTar
235235
}
236236

237237
UI.empty()
238-
prompts.log.success("Thank you for using Mammouth CLI!")
238+
prompts.log.success("Thank you for using Mammouth Code!")
239239
}
240240

241241
async function getShellConfigFile(): Promise<string | null> {

0 commit comments

Comments
 (0)