-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_cli.sh
More file actions
executable file
·97 lines (84 loc) · 3.12 KB
/
Copy pathinstall_cli.sh
File metadata and controls
executable file
·97 lines (84 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env bash
#
# install.sh — Clone and install jupyter-ai-devrepo with all submodules.
#
# Prompts for a GitHub Password once and then re-uses it
# for cloning the main repo and all submodules via HTTPS.
#
# Prerequisites: git, uv, just
#
# Usage:
# chmod +x install.sh
# ./install.sh [target-directory]
#
# If target-directory is omitted, clones into ./jupyter-ai-devrepo
# USAGE
# From wherever you want the devrepo to live:
#
# ./install.sh # clones into ./jupyter-ai-devrepo #
# ./install.sh my-folder # clones into ./my-folder
set -euo pipefail
REPO_ORG="jupyter-ai-contrib"
REPO_NAME="jupyter-ai-devrepo"
TARGET_DIR="${1:-$REPO_NAME}"
# ── AI Persona Installation ──────────────────────────────────────────
echo ""
echo "============================================"
echo " Optional AI Persona Installation"
echo "============================================"
echo ""
ask_install() {
local name="$1"
read -rp "Install ${name}? [y/N] " answer
[[ "$answer" =~ ^[Yy]$ ]]
}
# @Claude
if ask_install "@Claude (claude-agent-acp via npm)"; then
echo "Installing claude-agent-acp ..."
npm install -g @agentclientprotocol/claude-agent-acp
read -rp " Set CLAUDE_CODE_EXECUTABLE path? (leave blank to use default): " claude_exec
if [[ -n "$claude_exec" ]]; then
export CLAUDE_CODE_EXECUTABLE="$claude_exec"
echo " CLAUDE_CODE_EXECUTABLE=${claude_exec}"
fi
fi
# @Kiro
if ask_install "@Kiro (kiro-cli >= 1.25.0 via kiro.dev)"; then
echo "Installing kiro-cli ..."
curl -fsSL https://cli.kiro.dev/install | bash
fi
# @Mistral-Vibe
if ask_install "@Mistral-Vibe (vibe-acp via uv)"; then
echo "Installing mistral-vibe ..."
uv tool install mistral-vibe
fi
# @OpenCode
if ask_install "@OpenCode (opencode-ai >= 1.0.0 via npm)"; then
echo "Installing opencode-ai ..."
npm install -g opencode-ai
fi
# @Codex
if ask_install "@Codex (codex-acp via npm)"; then
echo "Installing codex-acp ..."
npm install -g @zed-industries/codex-acp
fi
# @Goose
if ask_install "@Goose (goose-cli >= 1.8.0 via block/goose)"; then
echo "Installing goose ..."
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | CONFIGURE=false bash
fi
# ── Optional boto3 Installation ──────────────────────────────────────
if ask_install "boto3 (AWS SDK for Python)"; then
echo "Installing boto3 ..."
uv pip install boto3
fi
# ── Done ──────────────────────────────────────────────────────────────
echo ""
echo "============================================"
echo " Installation complete!"
echo ""
echo " To start JupyterLab:"
echo " cd ${TARGET_DIR}"
echo " source .venv/bin/activate"
echo " just start"
echo "============================================"