1
0

fix config

This commit is contained in:
2025-06-02 00:32:00 +09:00
parent 0f3776e75e
commit 81ae0037d9
12 changed files with 57 additions and 52 deletions

View File

@ -2,7 +2,7 @@
all: build
# Initial setup (creates venv in ~/.config/ai-shell)
# Initial setup (creates venv in ~/.config/syui/ai/shell)
setup:
@./scripts/setup.sh
@ -12,29 +12,29 @@ build:
# Run MCP server (after setup)
run-server:
@if [ ! -d "$$HOME/.config/ai-shell/venv" ]; then \
@if [ ! -d "$$HOME/.config/syui/ai/shell/venv" ]; then \
echo "Please run 'make setup' first"; \
exit 1; \
fi
@$$HOME/.config/ai-shell/bin/mcp-server
@$$HOME/.config/syui/ai/shell/bin/mcp-server
# Run CLI in development mode
run-cli:
cargo run
# Run ai-shell (after setup)
# Run aishell (after setup)
run:
@if [ ! -d "$$HOME/.config/ai-shell/venv" ]; then \
@if [ ! -d "$$HOME/.config/syui/ai/shell/venv" ]; then \
echo "Please run 'make setup' first"; \
exit 1; \
fi
@$$HOME/.config/ai-shell/bin/ai-shell
@$$HOME/.config/syui/ai/shell/bin/aishell
# Run tests
test:
cargo test
@if [ -d "$$HOME/.config/ai-shell/venv" ]; then \
source $$HOME/.config/ai-shell/venv/bin/activate && python -m pytest tests/; \
@if [ -d "$$HOME/.config/syui/ai/shell/venv" ]; then \
source $$HOME/.config/syui/ai/shell/venv/bin/activate && python -m pytest tests/; \
fi
# Clean build artifacts
@ -45,5 +45,5 @@ clean:
# Remove all installed files (complete uninstall)
uninstall:
rm -rf $$HOME/.config/ai-shell
rm -rf $$HOME/.config/syui/ai/shell
@echo "ai.shell has been uninstalled"