Add Context Studio Wizard — project scaffolding CLI
- wizard.sh: interactive bash wizard that scaffolds new CS projects - lib/: utils, core install, project structure, workflow generation - templates/: Dockerfile, devcontainer.json, agent presets (minimal/standard), system.json, roles, hook rules - README: setup, usage, mobility workflow Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cd5b28919c
commit
09ff27be92
19 changed files with 1132 additions and 1 deletions
28
lib/core.sh
Normal file
28
lib/core.sh
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
# core.sh — manage the global context-studio-core installation
|
||||
|
||||
CS_CORE_REPO="git@github.com:KlausUllrich/context-studio-core.git"
|
||||
CS_HOME="${CS_HOME:-$HOME/.context-studio}"
|
||||
CS_CORE_DIR="$CS_HOME/core"
|
||||
|
||||
setup_core() {
|
||||
header "Context Studio Core"
|
||||
|
||||
if [[ -d "$CS_CORE_DIR/.git" ]]; then
|
||||
success "Core already installed at $CS_CORE_DIR"
|
||||
ask_yn _update "Update core to latest?" "n"
|
||||
if [[ "$_update" == "y" ]]; then
|
||||
info "Pulling latest core..."
|
||||
git -C "$CS_CORE_DIR" pull --ff-only \
|
||||
|| warn "Pull failed — continuing with existing version"
|
||||
success "Core updated"
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
|
||||
info "Cloning context-studio-core → $CS_CORE_DIR"
|
||||
mkdir -p "$CS_HOME"
|
||||
git clone "$CS_CORE_REPO" "$CS_CORE_DIR" \
|
||||
|| die "Failed to clone context-studio-core. Check your SSH key and network."
|
||||
success "Core installed at $CS_CORE_DIR"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue