Skip to content

Commit c43e4ac

Browse files
jzhujzhu
authored andcommitted
rename repo
1 parent 5adc597 commit c43e4ac

81 files changed

Lines changed: 566 additions & 560 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Example environment variables for code-assistant-manager
1+
# Example environment variables for code-agent-manager
22
# Copy this file to .env and fill in your secrets. Do NOT commit .env with real keys.
33
# Example:
44
# API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
# Flake8 configuration for code-assistant-manager
2+
# Flake8 configuration for code-agent-manager
33

44
# Compatibility with Black
55
max-line-length = 100

.specify/memory/constitution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ After any code changes, reinstall the project using the standard sequence:
4141
rm -rf dist/*
4242
./install.sh uninstall
4343
./install.sh
44-
cp ~/.config/code-assistant-manager/providers.json.bak ~/.config/code-assistant-manager/providers.json
44+
cp ~/.config/code-agent-manager/providers.json.bak ~/.config/code-agent-manager/providers.json
4545
```
4646

4747
### Quality Gates

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ This file documents repository-level expectations and instructions intended to g
1212
rm -rf dist/*
1313
./install.sh uninstall
1414
./install.sh
15-
cp ~/.config/code-assistant-manager/providers.json.bak ~/.config/code-assistant-manager/providers.json
15+
cp ~/.config/code-agent-manager/providers.json.bak ~/.config/code-agent-manager/providers.json
1616
```

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div align="center">
44

55
[![License](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
6-
[![Code Quality](https://img.shields.io/badge/code%20quality-A+-brightgreen.svg)](https://github.com/Chat2AnyLLM/code-assistant-manager/actions)
6+
[![Code Quality](https://img.shields.io/badge/code%20quality-A+-brightgreen.svg)](https://github.com/Chat2AnyLLM/code-agent-manager/actions)
77

88
**One CLI to Rule Them All.**
99
<br>
@@ -21,8 +21,8 @@ Since CAM is not yet published to PyPI, install it locally:
2121

2222
```bash
2323
# Clone the repository
24-
git clone https://github.com/Chat2AnyLLM/code-assistant-manager.git
25-
cd code-assistant-manager
24+
git clone https://github.com/Chat2AnyLLM/code-agent-manager.git
25+
cd code-agent-manager
2626

2727
# Run the install script
2828
./install.sh
@@ -35,11 +35,11 @@ cd code-assistant-manager
3535
./install.sh
3636

3737
# Or install from the web
38-
curl -fsSL https://raw.githubusercontent.com/Chat2AnyLLM/code-assistant-manager/main/install.sh | bash
38+
curl -fsSL https://raw.githubusercontent.com/Chat2AnyLLM/code-agent-manager/main/install.sh | bash
3939

4040
# Install from source directly
41-
git clone https://github.com/Chat2AnyLLM/code-assistant-manager.git
42-
cd code-assistant-manager
41+
git clone https://github.com/Chat2AnyLLM/code-agent-manager.git
42+
cd code-agent-manager
4343
pip install -e ".[dev]"
4444
```
4545

@@ -49,8 +49,8 @@ pip install -e ".[dev]"
4949

5050
1. **Create your base config files**:
5151
```bash
52-
mkdir -p ~/.config/code-assistant-manager
53-
cp code_assistant_manager/providers.json ~/.config/code-assistant-manager/providers.json
52+
mkdir -p ~/.config/code-agent-manager
53+
cp code_assistant_manager/providers.json ~/.config/code-agent-manager/providers.json
5454
touch ~/.env
5555
chmod 600 ~/.env
5656
```
@@ -79,17 +79,17 @@ pip install -e ".[dev]"
7979

8080
CAM uses these main configuration files:
8181

82-
- `~/.config/code-assistant-manager/providers.json`: endpoint/provider settings used by `cam`.
82+
- `~/.config/code-agent-manager/providers.json`: endpoint/provider settings used by `cam`.
8383
- `~/.env`: API keys and sensitive environment variables.
84-
- `~/.config/code-assistant-manager/config.yaml`: repository-source config for skills, agents, and plugins.
84+
- `~/.config/code-agent-manager/config.yaml`: repository-source config for skills, agents, and plugins.
8585

8686
### How `config.yaml` is used for skill/agent/plugin repos
8787

88-
- CAM loads `~/.config/code-assistant-manager/config.yaml` first; if missing, it falls back to bundled `code_assistant_manager/config.yaml`.
88+
- CAM loads `~/.config/code-agent-manager/config.yaml` first; if missing, it falls back to bundled `code_assistant_manager/config.yaml`.
8989
- The file defines source lists for `skills`, `agents`, and `plugins`.
9090
- Local JSON sources (`skill_repos.json`, `agent_repos.json`, `plugin_repos.json`) are loaded first.
9191
- Remote sources are merged after local sources and do not override existing local keys.
92-
- Remote responses are cached in `~/.cache/code-assistant-manager/repos` (TTL controlled by `config.yaml`).
92+
- Remote responses are cached in `~/.cache/code-agent-manager/repos` (TTL controlled by `config.yaml`).
9393

9494
---
9595

code_assistant_manager/agents/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def _download_repo(
307307
logger.debug(f"Trying to download: {url}")
308308

309309
try:
310-
req = Request(url, headers={"User-Agent": "code-assistant-manager"})
310+
req = Request(url, headers={"User-Agent": "code-agent-manager"})
311311
with urlopen(req, timeout=60) as response:
312312
zip_data = response.read()
313313

code_assistant_manager/agents/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ def __init__(self, config_dir: Optional[Path] = None):
106106
"""Initialize agent manager.
107107
108108
Args:
109-
config_dir: Configuration directory (defaults to ~/.config/code-assistant-manager)
109+
config_dir: Configuration directory (defaults to ~/.config/code-agent-manager)
110110
"""
111111
if config_dir is None:
112-
config_dir = Path.home() / ".config" / "code-assistant-manager"
112+
config_dir = Path.home() / ".config" / "code-agent-manager"
113113
self.config_dir = Path(config_dir)
114114
self.agents_file = self.config_dir / "agents.json"
115115
self.repos_file = self.config_dir / "agent_repos.json"

code_assistant_manager/cli/app.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _generate_bash_completion() -> str:
106106

107107
def _get_bash_completion_content() -> str:
108108
"""Get the bash completion script content."""
109-
return """# code-assistant-manager bash completion
109+
return """# code-agent-manager bash completion
110110
111111
_code_assistant_manager_completions()
112112
{
@@ -501,7 +501,7 @@ def _get_bash_completion_content() -> str:
501501
return 0
502502
}
503503
504-
complete -F _code_assistant_manager_completions code-assistant-manager
504+
complete -F _code_assistant_manager_completions code-agent-manager
505505
complete -F _code_assistant_manager_completions cam"""
506506

507507

@@ -512,9 +512,9 @@ def _generate_zsh_completion() -> str:
512512

513513
def _get_zsh_completion_content() -> str:
514514
"""Get the zsh completion script content."""
515-
return """# code-assistant-manager zsh completion
515+
return """# code-agent-manager zsh completion
516516
517-
#compdef code-assistant-manager cam
517+
#compdef code-agent-manager cam
518518
519519
_code_assistant_manager() {
520520
local -a commands tools mcp_server_commands config_commands prompt_commands skill_commands plugin_commands agent_commands extensions_commands global_flags
@@ -693,7 +693,7 @@ def _get_zsh_completion_content() -> str:
693693
694694
case $state in
695695
command)
696-
_describe -t commands 'code-assistant-manager command' commands
696+
_describe -t commands 'code-agent-manager command' commands
697697
;;
698698
args)
699699
case $words[1] in
@@ -951,35 +951,35 @@ def _get_zsh_completion_content() -> str:
951951

952952
def _generate_fish_completion() -> str:
953953
"""Generate fish completion script."""
954-
return """# code-assistant-manager fish completion
954+
return """# code-agent-manager fish completion
955955
956956
set -l __cam_commands launch l config cf mcp m prompt p skill s plugin pl agent ag extensions ext upgrade u install i uninstall un doctor d version v completion comp c
957957
set -l __cam_tools aichat claude codex copilot gemini droid qwen codebuddy iflow qodercli zed neovate crush cursor-agent ampcode
958958
set -l __cam_completion_shells bash zsh fish powershell pwsh
959959
960-
complete -c code-assistant-manager -f
960+
complete -c code-agent-manager -f
961961
complete -c cam -f
962962
963-
complete -c code-assistant-manager -n "__fish_use_subcommand" -a "$__cam_commands"
963+
complete -c code-agent-manager -n "__fish_use_subcommand" -a "$__cam_commands"
964964
complete -c cam -n "__fish_use_subcommand" -a "$__cam_commands"
965965
966-
complete -c code-assistant-manager -n "__fish_seen_subcommand_from launch l upgrade u install i uninstall un" -a "$__cam_tools"
966+
complete -c code-agent-manager -n "__fish_seen_subcommand_from launch l upgrade u install i uninstall un" -a "$__cam_tools"
967967
complete -c cam -n "__fish_seen_subcommand_from launch l upgrade u install i uninstall un" -a "$__cam_tools"
968968
969-
complete -c code-assistant-manager -n "__fish_seen_subcommand_from completion comp c" -a "$__cam_completion_shells"
969+
complete -c code-agent-manager -n "__fish_seen_subcommand_from completion comp c" -a "$__cam_completion_shells"
970970
complete -c cam -n "__fish_seen_subcommand_from completion comp c" -a "$__cam_completion_shells"
971971
"""
972972

973973

974974
def _generate_powershell_completion() -> str:
975975
"""Generate PowerShell completion script."""
976-
return """# code-assistant-manager powershell completion
976+
return """# code-agent-manager powershell completion
977977
978978
$codeAssistantCommands = @('launch','l','config','cf','mcp','m','prompt','p','skill','s','plugin','pl','agent','ag','extensions','ext','upgrade','u','install','i','uninstall','un','doctor','d','version','v','completion','comp','c')
979979
$codeAssistantTools = @('aichat','claude','codex','copilot','gemini','droid','qwen','codebuddy','iflow','qodercli','zed','neovate','crush','cursor-agent','ampcode')
980980
$completionShells = @('bash','zsh','fish','powershell','pwsh')
981981
982-
Register-ArgumentCompleter -Native -CommandName code-assistant-manager, cam -ScriptBlock {
982+
Register-ArgumentCompleter -Native -CommandName code-agent-manager, cam -ScriptBlock {
983983
param($wordToComplete, $commandAst, $cursorPosition)
984984
985985
$elements = $commandAst.CommandElements | ForEach-Object { $_.Value }
@@ -1061,12 +1061,12 @@ def completion(
10611061
if normalized_shell in ["bash", "zsh"]:
10621062
typer.echo("# Option 1: Add to ~/.bashrc or ~/.zshrc")
10631063
typer.echo(
1064-
f"# echo 'source <(code-assistant-manager completion {normalized_shell})' >> ~/.{normalized_shell}rc"
1064+
f"# echo 'source <(code-agent-manager completion {normalized_shell})' >> ~/.{normalized_shell}rc"
10651065
)
10661066
typer.echo("#")
10671067
typer.echo("# Option 2: Save to file and source it")
10681068
typer.echo(
1069-
f"# code-assistant-manager completion {normalized_shell} > ~/.{normalized_shell}_completion_code_assistant_manager"
1069+
f"# code-agent-manager completion {normalized_shell} > ~/.{normalized_shell}_completion_code_assistant_manager"
10701070
)
10711071
typer.echo(
10721072
f"# echo 'source ~/.{normalized_shell}_completion_code_assistant_manager' >> ~/.{normalized_shell}rc"
@@ -1078,15 +1078,15 @@ def completion(
10781078
elif normalized_shell == "fish":
10791079
typer.echo("# Option 1: Install to fish completions directory")
10801080
typer.echo(
1081-
"# code-assistant-manager completion fish > ~/.config/fish/completions/code-assistant-manager.fish"
1081+
"# code-agent-manager completion fish > ~/.config/fish/completions/code-agent-manager.fish"
10821082
)
10831083
typer.echo("#")
10841084
typer.echo("# Option 2: Load for current session only")
1085-
typer.echo("# source (code-assistant-manager completion fish | psub)")
1085+
typer.echo("# source (code-agent-manager completion fish | psub)")
10861086
else:
10871087
typer.echo("# Save to your PowerShell profile and reload")
10881088
typer.echo(
1089-
"# code-assistant-manager completion powershell | Out-File -Encoding utf8 -Append $PROFILE"
1089+
"# code-agent-manager completion powershell | Out-File -Encoding utf8 -Append $PROFILE"
10901090
)
10911091
typer.echo("# . $PROFILE")
10921092
typer.echo()
@@ -1499,7 +1499,7 @@ def doctor(
14991499
None, "--config", help="Path to config file"
15001500
),
15011501
):
1502-
"""Run diagnostic checks on the code-assistant-manager installation (alias: d)"""
1502+
"""Run diagnostic checks on the code-agent-manager installation (alias: d)"""
15031503
# Lazy imports for doctor command
15041504
from code_assistant_manager.config import ConfigManager
15051505
from code_assistant_manager.cli.doctor import run_doctor_checks
@@ -1729,7 +1729,7 @@ def version_command():
17291729
"""Show version information."""
17301730
from code_assistant_manager import __version__
17311731

1732-
typer.echo(f"code-assistant-manager version {__version__}")
1732+
typer.echo(f"code-agent-manager version {__version__}")
17331733
raise typer.Exit()
17341734

17351735

@@ -1814,7 +1814,7 @@ def list_config():
18141814
typer.echo(f"{Colors.CYAN}Code Assistant Manager (CAM):{Colors.RESET}")
18151815
home = Path.home()
18161816
cam_config_locations = [
1817-
home / ".config" / "code-assistant-manager" / "providers.json",
1817+
home / ".config" / "code-agent-manager" / "providers.json",
18181818
Path.cwd() / "providers.json",
18191819
home / "providers.json",
18201820
]

code_assistant_manager/cli/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def doctor(
130130
verbose: bool = VERBOSE_DOCTOR_OPTION,
131131
config: Optional[str] = CONFIG_FILE_OPTION,
132132
):
133-
"""Run diagnostic checks on the code-assistant-manager installation (alias: d)"""
133+
"""Run diagnostic checks on the code-agent-manager installation (alias: d)"""
134134

135135
# Lazy imports
136136
from code_assistant_manager.config import ConfigManager
@@ -361,7 +361,7 @@ def version_command():
361361
"""Show version information."""
362362
from code_assistant_manager import __version__
363363

364-
typer.echo(f"code-assistant-manager version {__version__}")
364+
typer.echo(f"code-agent-manager version {__version__}")
365365
raise typer.Exit()
366366

367367

code_assistant_manager/cli/completion_commands.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def completion(shell: str = SHELL_OPTION):
2626
typer.echo("#")
2727
typer.echo("# Option 1: Add to ~/.bashrc or ~/.zshrc")
2828
typer.echo(
29-
f"# echo 'source <(code-assistant-manager completion {shell})' >> ~/.{shell}rc"
29+
f"# echo 'source <(code-agent-manager completion {shell})' >> ~/.{shell}rc"
3030
)
3131
typer.echo("#")
3232
typer.echo("# Option 2: Save to file and source it")
3333
typer.echo(
34-
f"# code-assistant-manager completion {shell} > ~/.{shell}_completion_code_assistant_manager"
34+
f"# code-agent-manager completion {shell} > ~/.{shell}_completion_code_assistant_manager"
3535
)
3636
typer.echo(
3737
f"# echo 'source ~/.{shell}_completion_code_assistant_manager' >> ~/.{shell}rc"
@@ -70,7 +70,7 @@ def generate_completion_script(shell: str) -> str:
7070

7171
def _generate_bash_completion() -> str:
7272
"""Generate bash completion script."""
73-
return """# code-assistant-manager bash completion
73+
return """# code-agent-manager bash completion
7474
7575
_code_assistant_manager_completions()
7676
{
@@ -452,15 +452,15 @@ def _generate_bash_completion() -> str:
452452
return 0
453453
}
454454
455-
complete -F _code_assistant_manager_completions code-assistant-manager
455+
complete -F _code_assistant_manager_completions code-agent-manager
456456
complete -F _code_assistant_manager_completions cam"""
457457

458458

459459
def _generate_zsh_completion() -> str:
460460
"""Generate zsh completion script."""
461-
return """# code-assistant-manager zsh completion
461+
return """# code-agent-manager zsh completion
462462
463-
#compdef code-assistant-manager cam
463+
#compdef code-agent-manager cam
464464
465465
_code_assistant_manager() {
466466
local -a commands tools mcp_server_commands config_commands prompt_commands skill_commands plugin_commands agent_commands extensions_commands global_flags
@@ -619,7 +619,7 @@ def _generate_zsh_completion() -> str:
619619
620620
case $state in
621621
command)
622-
_describe -t commands 'code-assistant-manager command' commands
622+
_describe -t commands 'code-agent-manager command' commands
623623
;;
624624
args)
625625
case $words[1] in

0 commit comments

Comments
 (0)