claudepod 1.1.2 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/.env +18 -0
- package/.devcontainer/CHANGELOG.md +68 -0
- package/.devcontainer/CLAUDE.md +100 -0
- package/.devcontainer/README.md +220 -0
- package/.devcontainer/config/main-system-prompt.md +118 -0
- package/.devcontainer/config/settings.json +41 -0
- package/.devcontainer/devcontainer.json +71 -113
- package/.devcontainer/features/README.md +113 -0
- package/.devcontainer/features/ast-grep/README.md +24 -0
- package/.devcontainer/features/ast-grep/devcontainer-feature.json +24 -0
- package/.devcontainer/features/ast-grep/install.sh +51 -0
- package/.devcontainer/features/ccstatusline/README.md +296 -0
- package/.devcontainer/features/ccstatusline/devcontainer-feature.json +19 -0
- package/.devcontainer/features/ccstatusline/install.sh +290 -0
- package/.devcontainer/features/ccusage/README.md +205 -0
- package/.devcontainer/features/ccusage/devcontainer-feature.json +38 -0
- package/.devcontainer/features/ccusage/install.sh +132 -0
- package/.devcontainer/features/claude-code/README.md +498 -0
- package/.devcontainer/features/claude-code/config/settings.json +36 -0
- package/.devcontainer/features/claude-code/config/system-prompt.md +118 -0
- package/.devcontainer/features/claude-code/config/world-building-sp.md +1432 -0
- package/.devcontainer/features/claude-code/devcontainer-feature.json +42 -0
- package/.devcontainer/features/claude-code/install.sh +466 -0
- package/.devcontainer/features/claude-monitor/README.md +74 -0
- package/.devcontainer/features/claude-monitor/devcontainer-feature.json +38 -0
- package/.devcontainer/features/claude-monitor/install.sh +99 -0
- package/.devcontainer/features/lsp-servers/README.md +85 -0
- package/.devcontainer/features/lsp-servers/devcontainer-feature.json +34 -0
- package/.devcontainer/features/lsp-servers/install.sh +92 -0
- package/.devcontainer/features/mcp-qdrant/CHANGES.md +399 -0
- package/.devcontainer/features/mcp-qdrant/README.md +474 -0
- package/.devcontainer/features/mcp-qdrant/devcontainer-feature.json +57 -0
- package/.devcontainer/features/mcp-qdrant/install.sh +295 -0
- package/.devcontainer/features/mcp-qdrant/poststart-hook.sh +129 -0
- package/.devcontainer/features/mcp-reasoner/README.md +177 -0
- package/.devcontainer/features/mcp-reasoner/devcontainer-feature.json +20 -0
- package/.devcontainer/features/mcp-reasoner/install.sh +177 -0
- package/.devcontainer/features/mcp-reasoner/poststart-hook.sh +67 -0
- package/.devcontainer/features/splitrail/README.md +140 -0
- package/.devcontainer/features/splitrail/devcontainer-feature.json +34 -0
- package/.devcontainer/features/splitrail/install.sh +129 -0
- package/.devcontainer/features/tree-sitter/README.md +138 -0
- package/.devcontainer/features/tree-sitter/devcontainer-feature.json +52 -0
- package/.devcontainer/features/tree-sitter/install.sh +173 -0
- package/.devcontainer/scripts/setup-aliases.sh +52 -0
- package/.devcontainer/scripts/setup-config.sh +28 -0
- package/.devcontainer/scripts/setup-irie-claude.sh +32 -0
- package/.devcontainer/scripts/setup-lsp.sh +20 -0
- package/.devcontainer/scripts/setup-plugins.sh +31 -0
- package/.devcontainer/scripts/setup.sh +60 -0
- package/README.md +153 -187
- package/package.json +6 -10
- package/setup.js +2 -2
- package/.devcontainer/config/claude/mcp.json +0 -76
- package/.devcontainer/config/claude/mcp.json.template +0 -117
- package/.devcontainer/config/claude/output-styles/strict-development.md +0 -158
- package/.devcontainer/config/claude/settings.json +0 -10
- package/.devcontainer/config/claude/system-prompt.md +0 -3
- package/.devcontainer/config/searxng/ods_config.json +0 -22
- package/.devcontainer/config/searxng/searxng_env_template +0 -71
- package/.devcontainer/config/serena/serena_config.yml +0 -72
- package/.devcontainer/config/taskmaster/config.json +0 -37
- package/.devcontainer/ods_config.json +0 -21
- package/.devcontainer/post-create.sh +0 -1077
- package/.devcontainer/post-start.sh +0 -551
- package/.devcontainer/sanitize-system-prompt.sh +0 -31
- package/.devcontainer/scripts/config/claude-core.sh +0 -210
- package/.devcontainer/scripts/config/searxng.sh +0 -411
- package/.devcontainer/scripts/config/serena.sh +0 -47
- package/.devcontainer/scripts/config/taskmaster.sh +0 -41
- package/.devcontainer/scripts/generate-mcp-config.js +0 -205
- package/.devcontainer/scripts/install/claude-code.sh +0 -112
- package/.devcontainer/scripts/shell/zsh-config.sh +0 -271
- package/.devcontainer/scripts/utils.sh +0 -44
- package/.devcontainer/setup-zsh.sh +0 -234
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# ZSH Configuration Script for ClaudePod
|
|
3
|
-
# This script enhances the ZSH setup with plugins, themes, and productivity features
|
|
4
|
-
|
|
5
|
-
set -euo pipefail
|
|
6
|
-
|
|
7
|
-
# Clear npm prefix environment variables that conflict with NVM
|
|
8
|
-
unset npm_config_prefix 2>/dev/null || true
|
|
9
|
-
unset NPM_CONFIG_PREFIX 2>/dev/null || true
|
|
10
|
-
|
|
11
|
-
echo "🐚 Setting up enhanced ZSH configuration..."
|
|
12
|
-
|
|
13
|
-
# State tracking directory
|
|
14
|
-
STATE_DIR="/workspace/.devcontainer/state"
|
|
15
|
-
|
|
16
|
-
# Function to create state marker
|
|
17
|
-
create_state_marker() {
|
|
18
|
-
local component="$1"
|
|
19
|
-
local method="${2:-unknown}"
|
|
20
|
-
|
|
21
|
-
mkdir -p "$STATE_DIR"
|
|
22
|
-
echo "$(date '+%Y-%m-%d %H:%M:%S') - $method" > "$STATE_DIR/${component}.installed"
|
|
23
|
-
chown -R node:node "$STATE_DIR"
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
# Function to check if component is already installed
|
|
27
|
-
is_component_installed() {
|
|
28
|
-
local component="$1"
|
|
29
|
-
|
|
30
|
-
[ -f "$STATE_DIR/${component}.installed" ]
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
# Variables
|
|
34
|
-
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
|
|
35
|
-
NODE_USER="node"
|
|
36
|
-
|
|
37
|
-
# Source shell configuration modules
|
|
38
|
-
source "/workspace/.devcontainer/scripts/shell/zsh-config.sh"
|
|
39
|
-
|
|
40
|
-
# Function to install ZSH plugin
|
|
41
|
-
install_zsh_plugin() {
|
|
42
|
-
local plugin_name="$1"
|
|
43
|
-
local plugin_repo="$2"
|
|
44
|
-
local plugin_dir="$ZSH_CUSTOM/plugins/$plugin_name"
|
|
45
|
-
|
|
46
|
-
if [ ! -d "$plugin_dir" ]; then
|
|
47
|
-
echo "📦 Installing ZSH plugin: $plugin_name"
|
|
48
|
-
git clone "https://github.com/$plugin_repo.git" "$plugin_dir" || {
|
|
49
|
-
echo "⚠️ Failed to install $plugin_name plugin"
|
|
50
|
-
return 1
|
|
51
|
-
}
|
|
52
|
-
else
|
|
53
|
-
echo "✅ ZSH plugin $plugin_name already installed"
|
|
54
|
-
fi
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
# Function to install Powerlevel10k theme
|
|
58
|
-
install_powerlevel10k() {
|
|
59
|
-
local theme_dir="$ZSH_CUSTOM/themes/powerlevel10k"
|
|
60
|
-
|
|
61
|
-
if [ ! -d "$theme_dir" ]; then
|
|
62
|
-
echo "🎨 Installing Powerlevel10k theme..."
|
|
63
|
-
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "$theme_dir" || {
|
|
64
|
-
echo "⚠️ Failed to install Powerlevel10k theme"
|
|
65
|
-
return 1
|
|
66
|
-
}
|
|
67
|
-
else
|
|
68
|
-
echo "✅ Powerlevel10k theme already installed"
|
|
69
|
-
fi
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
# ZSH configuration is now handled by focused generator functions:
|
|
73
|
-
# - generate_zsh_basic_config(): Basic ZSH settings, plugins, history
|
|
74
|
-
# - generate_zsh_aliases(): All alias definitions
|
|
75
|
-
# - generate_zsh_functions(): Shell utility functions
|
|
76
|
-
# - generate_zsh_welcome(): Welcome message and final configuration
|
|
77
|
-
# - create_zshrc(): Main orchestrator function
|
|
78
|
-
# See: /workspace/.devcontainer/scripts/shell/zsh-config.sh
|
|
79
|
-
|
|
80
|
-
# Note: The actual create_zshrc() function is now imported from the module above
|
|
81
|
-
|
|
82
|
-
# Function to create Powerlevel10k configuration
|
|
83
|
-
create_p10k_config() {
|
|
84
|
-
echo "⚡ Creating Powerlevel10k configuration..."
|
|
85
|
-
|
|
86
|
-
cat > "$HOME/.p10k.zsh" << 'EOF'
|
|
87
|
-
# Powerlevel10k configuration for ClaudePod
|
|
88
|
-
'builtin' 'local' '-a' 'p10k_config_opts'
|
|
89
|
-
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
|
|
90
|
-
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
|
|
91
|
-
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
|
|
92
|
-
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
|
|
93
|
-
|
|
94
|
-
() {
|
|
95
|
-
emulate -L zsh -o extended_glob
|
|
96
|
-
|
|
97
|
-
# Unset all configuration options (safely).
|
|
98
|
-
local var
|
|
99
|
-
for var in ${(M)${(k)parameters[@]}:#POWERLEVEL9K_*}; do
|
|
100
|
-
unset $var
|
|
101
|
-
done
|
|
102
|
-
|
|
103
|
-
# The list of segments shown on the left. Fill it with the most important segments.
|
|
104
|
-
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
|
105
|
-
os_icon # os identifier
|
|
106
|
-
dir # current directory
|
|
107
|
-
vcs # git status
|
|
108
|
-
prompt_char # prompt symbol
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
# The list of segments shown on the right. Fill it with less important segments.
|
|
112
|
-
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
|
113
|
-
status # exit code of the last command
|
|
114
|
-
command_execution_time # duration of the last command
|
|
115
|
-
background_jobs # presence of background jobs
|
|
116
|
-
direnv # direnv status (https://direnv.net/)
|
|
117
|
-
asdf # asdf version manager (https://github.com/asdf-vm/asdf)
|
|
118
|
-
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
|
|
119
|
-
anaconda # conda environment (https://conda.io/)
|
|
120
|
-
pyenv # python environment (https://github.com/pyenv/pyenv)
|
|
121
|
-
goenv # go environment (https://github.com/syndbg/goenv)
|
|
122
|
-
nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
|
|
123
|
-
nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
|
|
124
|
-
nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
|
|
125
|
-
node_version # node.js version
|
|
126
|
-
time # current time
|
|
127
|
-
)
|
|
128
|
-
|
|
129
|
-
# Basic style options that define the overall look of your prompt.
|
|
130
|
-
typeset -g POWERLEVEL9K_BACKGROUND= # transparent background
|
|
131
|
-
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_{LEFT,RIGHT}_WHITESPACE= # no surrounding whitespace
|
|
132
|
-
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SUBSEGMENT_SEPARATOR=' ' # separate segments with a space
|
|
133
|
-
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol
|
|
134
|
-
typeset -g POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION= # no segment icons
|
|
135
|
-
|
|
136
|
-
# Directory colors
|
|
137
|
-
typeset -g POWERLEVEL9K_DIR_BACKGROUND=4
|
|
138
|
-
typeset -g POWERLEVEL9K_DIR_FOREGROUND=254
|
|
139
|
-
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250
|
|
140
|
-
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255
|
|
141
|
-
typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true
|
|
142
|
-
|
|
143
|
-
# Git colors
|
|
144
|
-
typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2
|
|
145
|
-
typeset -g POWERLEVEL9K_VCS_CLEAN_FOREGROUND=0
|
|
146
|
-
typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=3
|
|
147
|
-
typeset -g POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND=0
|
|
148
|
-
typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=1
|
|
149
|
-
typeset -g POWERLEVEL9K_VCS_MODIFIED_FOREGROUND=0
|
|
150
|
-
|
|
151
|
-
# Prompt character
|
|
152
|
-
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=76
|
|
153
|
-
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=196
|
|
154
|
-
|
|
155
|
-
# Time format
|
|
156
|
-
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
|
|
157
|
-
|
|
158
|
-
# Command execution time threshold
|
|
159
|
-
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
|
|
160
|
-
|
|
161
|
-
# Node.js version display
|
|
162
|
-
typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
# Apply configuration
|
|
166
|
-
(( ! $#p10k_config_opts )) || setopt ${p10k_config_opts[@]}
|
|
167
|
-
'builtin' 'unset' 'p10k_config_opts'
|
|
168
|
-
EOF
|
|
169
|
-
|
|
170
|
-
echo "✅ Powerlevel10k configuration created"
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
# Main setup function
|
|
174
|
-
main() {
|
|
175
|
-
# Check if ZSH setup is already complete
|
|
176
|
-
if is_component_installed "zsh-setup"; then
|
|
177
|
-
echo "✅ ZSH enhancement already complete (marker found)"
|
|
178
|
-
if [ -f "$HOME/.zshrc" ] && [ -d "$HOME/.oh-my-zsh/custom/themes/powerlevel10k" ]; then
|
|
179
|
-
echo "✓ .zshrc and Powerlevel10k theme verified"
|
|
180
|
-
return 0
|
|
181
|
-
else
|
|
182
|
-
echo "⚠️ Marker exists but files missing, re-running setup..."
|
|
183
|
-
rm -f "$STATE_DIR/zsh-setup.installed"
|
|
184
|
-
fi
|
|
185
|
-
fi
|
|
186
|
-
|
|
187
|
-
echo "🐚 Starting ZSH enhancement setup..."
|
|
188
|
-
|
|
189
|
-
# Ensure we're running as the correct user
|
|
190
|
-
if [ "$(whoami)" != "$NODE_USER" ]; then
|
|
191
|
-
echo "❌ This script should run as user $NODE_USER"
|
|
192
|
-
exit 1
|
|
193
|
-
fi
|
|
194
|
-
|
|
195
|
-
# Check if Oh My Zsh is installed
|
|
196
|
-
if [ ! -d "$HOME/.oh-my-zsh" ]; then
|
|
197
|
-
echo "❌ Oh My Zsh not found. Ensure the common-utils feature installed it."
|
|
198
|
-
exit 1
|
|
199
|
-
fi
|
|
200
|
-
|
|
201
|
-
# Source NVM for this process
|
|
202
|
-
export NVM_DIR="/usr/local/share/nvm"
|
|
203
|
-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
204
|
-
|
|
205
|
-
# Install Powerlevel10k theme
|
|
206
|
-
install_powerlevel10k
|
|
207
|
-
|
|
208
|
-
# Install useful ZSH plugins (with error handling)
|
|
209
|
-
echo "📦 Installing ZSH plugins..."
|
|
210
|
-
install_zsh_plugin "zsh-autosuggestions" "zsh-users/zsh-autosuggestions" || echo "⚠️ Failed to install zsh-autosuggestions"
|
|
211
|
-
install_zsh_plugin "zsh-syntax-highlighting" "zsh-users/zsh-syntax-highlighting" || echo "⚠️ Failed to install zsh-syntax-highlighting"
|
|
212
|
-
install_zsh_plugin "zsh-completions" "zsh-users/zsh-completions" || echo "⚠️ Failed to install zsh-completions"
|
|
213
|
-
install_zsh_plugin "fast-syntax-highlighting" "zdharma-continuum/fast-syntax-highlighting" || echo "⚠️ Failed to install fast-syntax-highlighting"
|
|
214
|
-
install_zsh_plugin "history-substring-search" "zsh-users/zsh-history-substring-search" || echo "⚠️ Failed to install history-substring-search"
|
|
215
|
-
|
|
216
|
-
# Create enhanced .zshrc
|
|
217
|
-
create_zshrc
|
|
218
|
-
|
|
219
|
-
# Create Powerlevel10k configuration
|
|
220
|
-
create_p10k_config
|
|
221
|
-
|
|
222
|
-
# Set ZSH as default shell
|
|
223
|
-
echo "🔧 Setting ZSH as default shell..."
|
|
224
|
-
if [ -f "/usr/bin/zsh" ]; then
|
|
225
|
-
sudo chsh -s /usr/bin/zsh "$NODE_USER" || echo "⚠️ Could not change default shell"
|
|
226
|
-
fi
|
|
227
|
-
|
|
228
|
-
create_state_marker "zsh-setup" "plugins+theme+config"
|
|
229
|
-
echo "✅ ZSH enhancement setup complete!"
|
|
230
|
-
echo "💡 Restart your terminal or run 'source ~/.zshrc' to apply changes"
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
# Execute main function
|
|
234
|
-
main
|