configs-all 1.0.0
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/.claude/settings.local.json +3 -0
- package/CLAUDE.md +94 -0
- package/README.md +424 -0
- package/TERMINAL_SHORTCUTS.md +96 -0
- package/WINDOWS_COMPATIBILITY.md +85 -0
- package/WINDOWS_MCP_SETUP.md +133 -0
- package/apps/RectangleConfig.plist +0 -0
- package/apps/Synergy +84 -0
- package/apps/iStat Menus Settings.ismp7 +0 -0
- package/claude/CLAUDE.md +228 -0
- package/claude/commands/changelog.md +36 -0
- package/claude/commands/commit.md +29 -0
- package/claude/commands/context.md +112 -0
- package/claude/commands/dash.md +37 -0
- package/claude/commands/deploy-check.md +37 -0
- package/claude/commands/deps.md +26 -0
- package/claude/commands/duplo.md +56 -0
- package/claude/commands/explain.md +43 -0
- package/claude/commands/fix-and-test.md +46 -0
- package/claude/commands/game-debug.md +66 -0
- package/claude/commands/games.md +53 -0
- package/claude/commands/go.md +147 -0
- package/claude/commands/guard.md +102 -0
- package/claude/commands/handoff.md +66 -0
- package/claude/commands/incident.md +144 -0
- package/claude/commands/init.md +78 -0
- package/claude/commands/k8s-debug.md +31 -0
- package/claude/commands/lint.md +27 -0
- package/claude/commands/merge-all.md +115 -0
- package/claude/commands/merge.md +129 -0
- package/claude/commands/mikpc.md +54 -0
- package/claude/commands/morning.md +72 -0
- package/claude/commands/partymode.md +105 -0
- package/claude/commands/plans.md +88 -0
- package/claude/commands/pr.md +41 -0
- package/claude/commands/prep.md +132 -0
- package/claude/commands/push-sync.md +82 -0
- package/claude/commands/push.md +34 -0
- package/claude/commands/research.md +73 -0
- package/claude/commands/retro.md +95 -0
- package/claude/commands/review-pr.md +96 -0
- package/claude/commands/review.md +41 -0
- package/claude/commands/scaffold-agent.md +45 -0
- package/claude/commands/setup.md +92 -0
- package/claude/commands/ship-prod.md +97 -0
- package/claude/commands/ship.md +82 -0
- package/claude/commands/simplify.md +42 -0
- package/claude/commands/spike.md +110 -0
- package/claude/commands/status.md +37 -0
- package/claude/commands/sync.md +72 -0
- package/claude/commands/test.md +29 -0
- package/claude/commands/triage.md +72 -0
- package/claude/desktop/claude_desktop_config.json +9 -0
- package/claude/hooks.json +15 -0
- package/claude/mcp-servers.duplo.json +8 -0
- package/claude/mcp-servers.json +62 -0
- package/claude/scripts/psdebug.ps1 +7 -0
- package/claude/settings.json +38 -0
- package/claude/settings.local.json +4 -0
- package/claude/statusline-command.sh +94 -0
- package/claude/templates/CLAUDE-k8s-devops.md +58 -0
- package/claude/templates/CLAUDE-python-agent.md +47 -0
- package/claude/templates/CLAUDE-typescript-frontend.md +50 -0
- package/docker/ai-stack/docker-compose.yml +76 -0
- package/docker/ai-stack/searxng/limiter.toml +3 -0
- package/docker/ai-stack/searxng/settings.yml +39 -0
- package/docker/cli/config.json.template +15 -0
- package/docker/cli/daemon.json +9 -0
- package/docker/cli/features.json +3 -0
- package/docker/mcp/catalog.json +9 -0
- package/docker/mcp/catalogs/docker-mcp.yaml +15107 -0
- package/docker/mcp/config.yaml +0 -0
- package/docker/mcp/registry.yaml +37 -0
- package/docker/mcp/tools.yaml +0 -0
- package/docs/context/.gitkeep +0 -0
- package/docs/context/2026-03-02-configs.md +142 -0
- package/docs/handoff/.gitkeep +0 -0
- package/docs/incidents/.gitkeep +0 -0
- package/docs/plans/2026-02-28-autonomous-command-suite-design.md +250 -0
- package/docs/plans/2026-02-28-autonomous-command-suite.md +682 -0
- package/docs/plans/2026-03-01-ai-stack-split-architecture.md +72 -0
- package/docs/plans/2026-03-02-ai-stack-expansion.md +33 -0
- package/docs/plans/2026-03-02-merge-commands-design.md +58 -0
- package/docs/plans/2026-03-02-merge-commands.md +354 -0
- package/docs/research/.gitkeep +0 -0
- package/docs/research/2026-03-02-configs-repo-architecture.md +152 -0
- package/docs/retros/.gitkeep +0 -0
- package/docs/retros/2026-03-01-ai-stack-split-architecture.md +38 -0
- package/docs/spikes/.gitkeep +0 -0
- package/gh/config.yml +16 -0
- package/gh/hosts.yml +5 -0
- package/gh/main.json +103 -0
- package/ghostty/config +90 -0
- package/git/config/base.gitconfig +46 -0
- package/git/config/chiefmikey.gitconfig +11 -0
- package/git/config/personal.gitconfig +10 -0
- package/git/config/work.gitconfig +14 -0
- package/ide/cursor/extensions.txt +111 -0
- package/ide/cursor/keybindings.json +307 -0
- package/ide/cursor/mcp.json +92 -0
- package/ide/cursor/settings.json +544 -0
- package/ide/vscode/extensions.txt +120 -0
- package/ide/vscode/insiders/extensions.txt +119 -0
- package/ide/vscode/insiders/keybindings.json +294 -0
- package/ide/vscode/insiders/settings.json +518 -0
- package/ide/vscode/keybindings.json +294 -0
- package/ide/vscode/settings.json +526 -0
- package/ide/vscode/vscode/extensions.txt +43 -0
- package/iterm/Mikey Pro.json +951 -0
- package/iterm/com.googlecode.iterm2.plist +5549 -0
- package/iterm/font/MesloLGS NF Bold Italic.ttf +0 -0
- package/iterm/font/MesloLGS NF Bold.ttf +0 -0
- package/iterm/font/MesloLGS NF Italic.ttf +0 -0
- package/iterm/font/MesloLGS NF Regular.ttf +0 -0
- package/package.json +15 -0
- package/scripts/ai/deploy-ai-stack.sh +119 -0
- package/scripts/ai/fix-ai-proxy.service +12 -0
- package/scripts/ai/fix-ai-proxy.sh +25 -0
- package/scripts/brew/search/brew-search-results.sh +19 -0
- package/scripts/brew/search/brew-search.sh +34 -0
- package/scripts/brew/upgrade/brew-upgrade-autoupdate.sh +5 -0
- package/scripts/brew/upgrade/brew-upgrade-full-auto.sh +89 -0
- package/scripts/brew/upgrade/brew-upgrade-full.sh +159 -0
- package/scripts/docker/cleanup/docker-cleanup-manage.sh +163 -0
- package/scripts/docker/cleanup/docker-cleanup.cron +12 -0
- package/scripts/docker/cleanup/docker-cleanup.sh +280 -0
- package/scripts/docker/install/README.md +23 -0
- package/scripts/docker/install/docker-al2.sh +7 -0
- package/scripts/docker/install/docker-compose-al2.sh +15 -0
- package/scripts/gh/auth/auth.sh +12 -0
- package/scripts/gh/config/gh-config.sh +3 -0
- package/scripts/gh/gist/gh-gist-create.sh +29 -0
- package/scripts/gh/gist/gh-gist-delete.sh +1 -0
- package/scripts/gh/gist/gh-gist-edit.sh +8 -0
- package/scripts/gh/gpg-key/gh-gpg-key-add.sh +3 -0
- package/scripts/gh/install/install.sh +7 -0
- package/scripts/gh/label/gh-label-clone.sh +0 -0
- package/scripts/gh/label/gh-label-create.sh +0 -0
- package/scripts/gh/label/gh-label-delete.sh +0 -0
- package/scripts/gh/label/gh-label-edit.sh +0 -0
- package/scripts/gh/label/gh-label-list.sh +0 -0
- package/scripts/gh/secret/gh-secret-delete.sh +24 -0
- package/scripts/gh/secret/gh-secret-set.sh +70 -0
- package/scripts/gh/ssh-key/gh-ssh-key-add.sh +8 -0
- package/scripts/git/add/git-add.sh +3 -0
- package/scripts/git/auth/README.md +11 -0
- package/scripts/git/auth/https.sh +20 -0
- package/scripts/git/auth/ssh-mac.sh +41 -0
- package/scripts/git/branch-delete/git-branch-delete.sh +16 -0
- package/scripts/git/checkout/git-checkout-stash.sh +32 -0
- package/scripts/git/temp/git-temp-pull.sh +6 -0
- package/scripts/git/temp/git-temp-push.sh +5 -0
- package/scripts/install/fresh.zsh +34 -0
- package/scripts/install/full-install.zsh +193 -0
- package/scripts/linux/codedeploy/README.md +19 -0
- package/scripts/linux/codedeploy/linux-codedeploy-al2.sh +13 -0
- package/scripts/linux/codedeploy/linux-codedeploy-index.sh +16 -0
- package/scripts/linux/codedeploy/linux-codedeploy-ubuntu.sh +14 -0
- package/scripts/linux/coredns/README.md +17 -0
- package/scripts/linux/coredns/linux-coredns-al2.sh +29 -0
- package/scripts/linux/wifi/01-netconf.yaml +21 -0
- package/scripts/linux/wifi/wifi-ubuntu.sh +17 -0
- package/scripts/mac/dock-sort/mac-dock-sort.sh +87 -0
- package/scripts/mac/dropbox-ignore/mac-dropbox-ignore.sh +12 -0
- package/scripts/mac/sudo-askpass/mac-sudo-askpass.sh +50 -0
- package/scripts/mac/sudo-askpass/setup-sudo-password.sh +49 -0
- package/scripts/mac/upgrade/mac-upgrade.sh +21 -0
- package/scripts/mac/vpn/mac-vpn.sh +4 -0
- package/scripts/mcp/aws-mcp-wrapper.ps1 +97 -0
- package/scripts/mcp/aws-mcp-wrapper.sh +53 -0
- package/scripts/mcp/duplo-mcp-wrapper.sh +31 -0
- package/scripts/mcp/filesystem-mcp-wrapper.ps1 +43 -0
- package/scripts/mcp/filesystem-mcp-wrapper.sh +34 -0
- package/scripts/mcp/git-mcp-wrapper.ps1 +42 -0
- package/scripts/mcp/git-mcp-wrapper.sh +33 -0
- package/scripts/mcp/github-mcp-wrapper.ps1 +43 -0
- package/scripts/mcp/github-mcp-wrapper.sh +19 -0
- package/scripts/mcp/kubernetes-mcp-wrapper.ps1 +22 -0
- package/scripts/mcp/kubernetes-mcp-wrapper.sh +16 -0
- package/scripts/mcp/mcp-launcher.ps1 +56 -0
- package/scripts/mcp/mcp-launcher.sh +71 -0
- package/scripts/mcp/mongodb-mcp-wrapper.ps1 +26 -0
- package/scripts/mcp/mongodb-mcp-wrapper.sh +17 -0
- package/scripts/mcp/notion-mcp-wrapper.ps1 +23 -0
- package/scripts/mcp/notion-mcp-wrapper.sh +14 -0
- package/scripts/mcp/postgres-mcp-wrapper.ps1 +23 -0
- package/scripts/mcp/postgres-mcp-wrapper.sh +16 -0
- package/scripts/npm/ncu/npm-ncu.sh +24 -0
- package/scripts/npm/upgrade/npm-upgrade.sh +51 -0
- package/scripts/qmk/build_reviung41.sh +28 -0
- package/scripts/qmk/sync_unicorne.sh +44 -0
- package/scripts/sync/README.md +64 -0
- package/scripts/sync/config-common.zsh +882 -0
- package/scripts/sync/pull-configs.ps1 +33 -0
- package/scripts/sync/pull-configs.zsh +278 -0
- package/scripts/sync/push-configs.ps1 +91 -0
- package/scripts/sync/push-configs.zsh +384 -0
- package/shell/alias/alias-d.zsh +333 -0
- package/shell/alias/alias.zsh +36 -0
- package/shell/alias/categories/development.zsh +157 -0
- package/shell/alias/categories/environment.zsh +13 -0
- package/shell/alias/categories/git.zsh +40 -0
- package/shell/alias/categories/github-functions.zsh +459 -0
- package/shell/alias/categories/network.zsh +46 -0
- package/shell/alias/categories/path.zsh +46 -0
- package/shell/alias/categories/system.zsh +78 -0
- package/shell/alias/categories/wolfe-server.zsh +11 -0
- package/shell/powershell/Microsoft.PowerShell_profile.ps1 +208 -0
- package/shell/zsh/.p10k.zsh +1832 -0
- package/shell/zsh/.zshrc +87 -0
- package/shell/zsh/config/completion.zsh +31 -0
- package/shell/zsh/config/functions.zsh +31 -0
- package/shell/zsh/config/keybindings.zsh +13 -0
- package/shell/zsh/config/options.zsh +56 -0
- package/shell/zsh/config/plugins.zsh +83 -0
- package/shell/zsh/config/variables.zsh +191 -0
- package/shell/zsh/powerlevel10k.zsh-theme +83 -0
- package/shell/zsh/zsh-autosuggestions.zsh +871 -0
- package/ssh/config +46 -0
- package/ssh/config.duplo +21 -0
- package/ssh/config.mikpc +35 -0
- package/ssh/personal_signing.pub +1 -0
- package/templates/.envrc.example +34 -0
- package/templates/.envrc.quickstart +17 -0
- package/wezterm/wezterm.lua +249 -0
- package/wsl/.wslconfig +3 -0
- package/wsl/wsl.conf +18 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Claude Code status line - p10k inspired, single line
|
|
3
|
+
# dir user@host git model ctx cache tokens duration diff cost
|
|
4
|
+
|
|
5
|
+
input=$(cat)
|
|
6
|
+
|
|
7
|
+
# ─── Extract values ───────────────────────────────────────────
|
|
8
|
+
cwd=$(echo "$input" | jq -r '.cwd // .workspace.current_dir // ""')
|
|
9
|
+
model=$(echo "$input" | jq -r '.model.display_name // ""')
|
|
10
|
+
used_pct=$(echo "$input" | jq -r '.context_window.used_percentage // empty')
|
|
11
|
+
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // empty')
|
|
12
|
+
duration_ms=$(echo "$input" | jq -r '.cost.total_duration_ms // empty')
|
|
13
|
+
api_duration_ms=$(echo "$input" | jq -r '.cost.total_api_duration_ms // empty')
|
|
14
|
+
input_tokens=$(echo "$input" | jq -r '.context_window.total_input_tokens // empty')
|
|
15
|
+
output_tokens=$(echo "$input" | jq -r '.context_window.total_output_tokens // empty')
|
|
16
|
+
cache_read=$(echo "$input" | jq -r '.context_window.current_usage.cache_read_input_tokens // empty')
|
|
17
|
+
cache_create=$(echo "$input" | jq -r '.context_window.current_usage.cache_creation_input_tokens // empty')
|
|
18
|
+
lines_added=$(echo "$input" | jq -r '.cost.total_lines_added // empty')
|
|
19
|
+
lines_removed=$(echo "$input" | jq -r '.cost.total_lines_removed // empty')
|
|
20
|
+
|
|
21
|
+
# ─── Colors ───────────────────────────────────────────────────
|
|
22
|
+
DIM="\033[90m"
|
|
23
|
+
RST="\033[0m"
|
|
24
|
+
SEP=" "
|
|
25
|
+
|
|
26
|
+
# ─── Helpers ──────────────────────────────────────────────────
|
|
27
|
+
fmt_duration() {
|
|
28
|
+
_sec=$(($1 / 1000))
|
|
29
|
+
_hr=$((_sec / 3600))
|
|
30
|
+
_min=$(( (_sec % 3600) / 60 ))
|
|
31
|
+
if [ "$_hr" -gt 0 ]; then
|
|
32
|
+
printf "%dh%dm" "$_hr" "$_min"
|
|
33
|
+
else
|
|
34
|
+
printf "%dm" "$_min"
|
|
35
|
+
fi
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
# ─── Build status line ───────────────────────────────────────
|
|
39
|
+
user=$(whoami)
|
|
40
|
+
host=$(hostname -s)
|
|
41
|
+
home="$HOME"
|
|
42
|
+
short_dir=$(echo "$cwd" | sed "s|^$home|~|")
|
|
43
|
+
|
|
44
|
+
printf "${DIM}%s${RST}" "$short_dir"
|
|
45
|
+
printf "${SEP}${DIM}%s@%s${RST}" "$user" "$host"
|
|
46
|
+
|
|
47
|
+
if git -C "$cwd" rev-parse --is-inside-work-tree --no-optional-locks >/dev/null 2>&1; then
|
|
48
|
+
branch=$(git -C "$cwd" symbolic-ref --short HEAD 2>/dev/null || git -C "$cwd" rev-parse --short HEAD 2>/dev/null)
|
|
49
|
+
[ -n "$branch" ] && printf "${SEP}${DIM}%s${RST}" "$branch"
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
[ -n "$model" ] && printf "${SEP}${DIM}%s${RST}" "$(echo "$model" | tr -d ' ')"
|
|
53
|
+
|
|
54
|
+
if [ -n "$used_pct" ]; then
|
|
55
|
+
used_int=$(printf "%.0f" "$used_pct")
|
|
56
|
+
printf "${SEP}${DIM}%sx${RST}" "$used_int"
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
if [ -n "$cache_read" ] && [ -n "$input_tokens" ]; then
|
|
60
|
+
all_input=$((input_tokens + ${cache_read:-0} + ${cache_create:-0}))
|
|
61
|
+
if [ "$all_input" -gt 0 ]; then
|
|
62
|
+
cache_pct=$(echo "$cache_read $all_input" | awk '{printf "%.0f", ($1/$2)*100}')
|
|
63
|
+
printf "${SEP}${DIM}%sc${RST}" "$cache_pct"
|
|
64
|
+
fi
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
if [ -n "$input_tokens" ] && [ -n "$output_tokens" ]; then
|
|
68
|
+
in_k=$(echo "$input_tokens" | awk '{printf "%.0f", $1/1000}')
|
|
69
|
+
out_k=$(echo "$output_tokens" | awk '{printf "%.0f", $1/1000}')
|
|
70
|
+
printf "${SEP}${DIM}%s/%sk${RST}" "$in_k" "$out_k"
|
|
71
|
+
fi
|
|
72
|
+
|
|
73
|
+
if [ -n "$duration_ms" ]; then
|
|
74
|
+
dur=$(fmt_duration "$duration_ms")
|
|
75
|
+
if [ -n "$api_duration_ms" ]; then
|
|
76
|
+
api_dur=$(fmt_duration "$api_duration_ms")
|
|
77
|
+
printf "${SEP}${DIM}%s(%s)${RST}" "$dur" "$api_dur"
|
|
78
|
+
else
|
|
79
|
+
printf "${SEP}${DIM}%s${RST}" "$dur"
|
|
80
|
+
fi
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
if [ -n "$lines_added" ] && [ -n "$lines_removed" ]; then
|
|
84
|
+
if [ "$lines_added" != "0" ] || [ "$lines_removed" != "0" ]; then
|
|
85
|
+
printf "${SEP}${DIM}+%s-%s${RST}" "$lines_added" "$lines_removed"
|
|
86
|
+
fi
|
|
87
|
+
fi
|
|
88
|
+
|
|
89
|
+
if [ -n "$cost" ]; then
|
|
90
|
+
cost_fmt=$(printf "%.2f" "$cost")
|
|
91
|
+
printf "${SEP}${DIM}\$%s${RST}" "$cost_fmt"
|
|
92
|
+
fi
|
|
93
|
+
|
|
94
|
+
printf "\n"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Project CLAUDE.md - K8s/DevOps Infrastructure
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
<!-- Describe this infrastructure repo in 1-2 sentences -->
|
|
5
|
+
|
|
6
|
+
## Tech Stack
|
|
7
|
+
- Orchestration: Kubernetes
|
|
8
|
+
- IaC: Helm charts / raw K8s manifests / Terraform
|
|
9
|
+
- Cloud: AWS (EKS, ECR, S3, IAM)
|
|
10
|
+
- CI/CD: <!-- GitHub Actions / GitLab CI / etc. -->
|
|
11
|
+
- Monitoring: <!-- CloudWatch / Datadog / Prometheus / etc. -->
|
|
12
|
+
|
|
13
|
+
## Architecture
|
|
14
|
+
```
|
|
15
|
+
├── charts/ # Helm charts
|
|
16
|
+
│ └── app-name/
|
|
17
|
+
│ ├── Chart.yaml
|
|
18
|
+
│ ├── values.yaml
|
|
19
|
+
│ └── templates/
|
|
20
|
+
├── manifests/ # Raw K8s manifests
|
|
21
|
+
│ ├── base/
|
|
22
|
+
│ └── overlays/
|
|
23
|
+
│ ├── dev/
|
|
24
|
+
│ ├── staging/
|
|
25
|
+
│ └── prod/
|
|
26
|
+
├── terraform/ # Terraform configs
|
|
27
|
+
├── scripts/ # Automation scripts
|
|
28
|
+
├── dockerfiles/ # Dockerfiles for services
|
|
29
|
+
└── .github/workflows/ # CI/CD pipelines
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Commands
|
|
33
|
+
```bash
|
|
34
|
+
kubectl apply -f manifests/ --dry-run=client # Validate before applying
|
|
35
|
+
kubectl apply -f manifests/ # Apply manifests
|
|
36
|
+
helm upgrade --install <release> charts/<chart> -f values-<env>.yaml --dry-run
|
|
37
|
+
helm upgrade --install <release> charts/<chart> -f values-<env>.yaml
|
|
38
|
+
terraform plan # Preview infra changes
|
|
39
|
+
terraform apply # Apply infra changes
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Conventions
|
|
43
|
+
- Every manifest must have labels: `app`, `env`, `version`, `managed-by`
|
|
44
|
+
- All Deployments must have resource requests AND limits
|
|
45
|
+
- Secrets via K8s Secrets only (never in ConfigMaps, never in code)
|
|
46
|
+
- All changes go through PR review before applying to staging/prod
|
|
47
|
+
- Use `--dry-run=client` before every `kubectl apply`
|
|
48
|
+
- Rolling update strategy for zero-downtime deployments
|
|
49
|
+
- HPA for production workloads
|
|
50
|
+
- PodDisruptionBudget for critical services
|
|
51
|
+
|
|
52
|
+
## Common Mistakes to Avoid
|
|
53
|
+
<!-- Add patterns that cause issues in this environment -->
|
|
54
|
+
- Don't apply to prod without dry-run and review
|
|
55
|
+
- Don't use `latest` tag in production - always pin image versions
|
|
56
|
+
- Don't forget to update ConfigMap AND restart pods
|
|
57
|
+
- Don't set CPU limits too tight - causes throttling
|
|
58
|
+
- Don't hardcode image registry URLs - use variables/Helm values
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Project CLAUDE.md - Python Agent
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
<!-- Describe what this agent does in 1-2 sentences -->
|
|
5
|
+
|
|
6
|
+
## Tech Stack
|
|
7
|
+
- Language: Python 3.11+
|
|
8
|
+
- Data Validation: Pydantic v2
|
|
9
|
+
- HTTP Client: httpx / requests
|
|
10
|
+
- Testing: pytest
|
|
11
|
+
- Formatting: ruff (format + lint)
|
|
12
|
+
|
|
13
|
+
## Architecture
|
|
14
|
+
```
|
|
15
|
+
├── agent.py # Main agent entry point and orchestration
|
|
16
|
+
├── config.py # Pydantic Settings for env-based config
|
|
17
|
+
├── models.py # Pydantic data models
|
|
18
|
+
├── utils.py # Shared utilities
|
|
19
|
+
├── Dockerfile # Multi-stage production build
|
|
20
|
+
├── requirements.txt # Pinned dependencies
|
|
21
|
+
└── tests/
|
|
22
|
+
├── conftest.py
|
|
23
|
+
└── test_agent.py
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
```bash
|
|
28
|
+
python -m pytest tests/ -v # Run tests
|
|
29
|
+
ruff check . --fix # Lint and auto-fix
|
|
30
|
+
ruff format . # Format code
|
|
31
|
+
python -m agent # Run agent locally
|
|
32
|
+
docker build -t agent-name . # Build container
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Conventions
|
|
36
|
+
- All config via environment variables, validated by Pydantic Settings
|
|
37
|
+
- Structured JSON logging via `logging` + `json` formatter
|
|
38
|
+
- Every operation must be idempotent (safe to retry)
|
|
39
|
+
- Handle partial failures: if step 3 of 5 fails, steps 1-2 should not leave broken state
|
|
40
|
+
- Secrets never logged, never in plain config
|
|
41
|
+
- Use `typing` annotations on all function signatures
|
|
42
|
+
|
|
43
|
+
## Common Mistakes to Avoid
|
|
44
|
+
<!-- Add patterns Claude gets wrong in this project -->
|
|
45
|
+
- Don't use bare `except:` - always catch specific exceptions
|
|
46
|
+
- Don't use `print()` - use `logging.getLogger(__name__)`
|
|
47
|
+
- Don't forget to close httpx clients (use context managers)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Project CLAUDE.md - TypeScript Frontend
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
<!-- Describe what this project does in 1-2 sentences -->
|
|
5
|
+
|
|
6
|
+
## Tech Stack
|
|
7
|
+
- Framework: Angular / React (delete one)
|
|
8
|
+
- Language: TypeScript (strict mode)
|
|
9
|
+
- Styling: SCSS / Tailwind / CSS Modules (pick one)
|
|
10
|
+
- State Management: <!-- e.g., NgRx, RxJS, Redux, Zustand, Context -->
|
|
11
|
+
- API Layer: <!-- e.g., HttpClient, Axios, fetch wrapper -->
|
|
12
|
+
- Testing: Jest + Testing Library / Cypress / Playwright
|
|
13
|
+
|
|
14
|
+
## Architecture
|
|
15
|
+
<!-- Describe the project structure -->
|
|
16
|
+
- `src/components/` or `src/app/` - UI components
|
|
17
|
+
- `src/services/` - API and business logic services
|
|
18
|
+
- `src/models/` or `src/types/` - TypeScript interfaces/types
|
|
19
|
+
- `src/utils/` - Shared utilities
|
|
20
|
+
|
|
21
|
+
## Commands
|
|
22
|
+
```bash
|
|
23
|
+
npm install # Install dependencies
|
|
24
|
+
npm run start # Dev server
|
|
25
|
+
npm run build # Production build
|
|
26
|
+
npm run test # Run tests
|
|
27
|
+
npm run lint # Lint check
|
|
28
|
+
npm run lint:fix # Auto-fix lint issues
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Conventions
|
|
32
|
+
- Components use standalone pattern (Angular) / functional components (React)
|
|
33
|
+
- All API calls go through service classes, never directly in components
|
|
34
|
+
- Forms use reactive forms (Angular) / controlled components (React)
|
|
35
|
+
- Errors display via toast/snackbar service, never raw alerts
|
|
36
|
+
- All routes are lazy-loaded
|
|
37
|
+
- Environment-specific config in environment files, never hardcoded
|
|
38
|
+
|
|
39
|
+
## Common Mistakes to Avoid
|
|
40
|
+
<!-- Add patterns Claude gets wrong in this project -->
|
|
41
|
+
- Don't use `any` type - use proper interfaces
|
|
42
|
+
- Don't subscribe in Angular components without unsubscribing (use takeUntilDestroyed or async pipe)
|
|
43
|
+
- Don't use index as React key for dynamic lists
|
|
44
|
+
- Don't import from barrel files in the same module (circular deps)
|
|
45
|
+
|
|
46
|
+
## Database (if applicable)
|
|
47
|
+
- MongoDB via TypeORM
|
|
48
|
+
- Entity files in `src/entities/`
|
|
49
|
+
- Repository pattern for data access
|
|
50
|
+
- Always use ObjectId type correctly (import from typeorm or mongodb)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# GPU Compute Stack for mikpc (RTX 5090, 32GB VRAM)
|
|
2
|
+
# Web UIs run on wolfe-server — this is compute-only
|
|
3
|
+
# Speaches (voice) moved to wolfe-server (RTX 3060)
|
|
4
|
+
# Ollama runs natively in WSL as a systemd service (not Docker)
|
|
5
|
+
# Deploy: ./scripts/ai/deploy-ai-stack.sh (from Mac) or docker compose up -d (on mikpc)
|
|
6
|
+
#
|
|
7
|
+
# Port Map:
|
|
8
|
+
# 7860 ACE-Step (Music Gen)
|
|
9
|
+
# 8188 ComfyUI (Image Gen)
|
|
10
|
+
|
|
11
|
+
services:
|
|
12
|
+
# ── ComfyUI ────────────────────────────────────────────────
|
|
13
|
+
# Image generation — FLUX.1, Stable Diffusion, ControlNet, LoRAs
|
|
14
|
+
# UI: http://localhost:8188
|
|
15
|
+
comfyui:
|
|
16
|
+
image: yanwk/comfyui-boot:cu128-slim
|
|
17
|
+
container_name: comfyui
|
|
18
|
+
restart: unless-stopped
|
|
19
|
+
ports:
|
|
20
|
+
- "8188:8188"
|
|
21
|
+
environment:
|
|
22
|
+
- CLI_ARGS=--listen 0.0.0.0 --disable-xformers --preview-method auto
|
|
23
|
+
- PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True,max_split_size_mb:512
|
|
24
|
+
- CUDA_VISIBLE_DEVICES=0
|
|
25
|
+
volumes:
|
|
26
|
+
- /usr/lib/wsl/lib:/usr/lib/wsl/lib:ro
|
|
27
|
+
- comfyui-models:/root/ComfyUI/models
|
|
28
|
+
- comfyui-output:/root/ComfyUI/output
|
|
29
|
+
- comfyui-input:/root/ComfyUI/input
|
|
30
|
+
- comfyui-custom-nodes:/root/ComfyUI/custom_nodes
|
|
31
|
+
- comfyui-hf-cache:/root/.cache/huggingface/hub
|
|
32
|
+
ipc: host
|
|
33
|
+
deploy:
|
|
34
|
+
resources:
|
|
35
|
+
reservations:
|
|
36
|
+
devices:
|
|
37
|
+
- driver: nvidia
|
|
38
|
+
count: 1
|
|
39
|
+
capabilities: [gpu]
|
|
40
|
+
networks:
|
|
41
|
+
- ai-compute
|
|
42
|
+
|
|
43
|
+
# ── ACE-Step ───────────────────────────────────────────────
|
|
44
|
+
# Music generation from text prompts (<10s per full song)
|
|
45
|
+
# UI: http://localhost:7860
|
|
46
|
+
ace-step:
|
|
47
|
+
image: ghcr.io/dotnetautor/ace-step-1.5-docker:latest
|
|
48
|
+
container_name: ace-step
|
|
49
|
+
restart: unless-stopped
|
|
50
|
+
ports:
|
|
51
|
+
- "7860:7860"
|
|
52
|
+
volumes:
|
|
53
|
+
- ace-step-output:/app/output
|
|
54
|
+
- ace-step-checkpoints:/workspace/ace_music_platform/source_tree/checkpoints
|
|
55
|
+
deploy:
|
|
56
|
+
resources:
|
|
57
|
+
reservations:
|
|
58
|
+
devices:
|
|
59
|
+
- driver: nvidia
|
|
60
|
+
count: 1
|
|
61
|
+
capabilities: [gpu]
|
|
62
|
+
networks:
|
|
63
|
+
- ai-compute
|
|
64
|
+
|
|
65
|
+
networks:
|
|
66
|
+
ai-compute:
|
|
67
|
+
name: ai-compute
|
|
68
|
+
|
|
69
|
+
volumes:
|
|
70
|
+
comfyui-models:
|
|
71
|
+
comfyui-output:
|
|
72
|
+
comfyui-input:
|
|
73
|
+
comfyui-custom-nodes:
|
|
74
|
+
comfyui-hf-cache:
|
|
75
|
+
ace-step-output:
|
|
76
|
+
ace-step-checkpoints:
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
use_default_settings: true
|
|
2
|
+
|
|
3
|
+
general:
|
|
4
|
+
instance_name: "SearXNG (mikpc)"
|
|
5
|
+
|
|
6
|
+
search:
|
|
7
|
+
safe_search: 0
|
|
8
|
+
autocomplete: "duckduckgo"
|
|
9
|
+
formats:
|
|
10
|
+
- html
|
|
11
|
+
- json
|
|
12
|
+
|
|
13
|
+
server:
|
|
14
|
+
secret_key: "79c4e024cdc86cf1b5fa02c1626a6ab23158586cbd7c7d5cdab2d1b04e2cf370"
|
|
15
|
+
bind_address: "0.0.0.0"
|
|
16
|
+
port: 8080
|
|
17
|
+
limiter: false
|
|
18
|
+
|
|
19
|
+
ui:
|
|
20
|
+
static_use_hash: true
|
|
21
|
+
default_theme: simple
|
|
22
|
+
theme_args:
|
|
23
|
+
simple_style: dark
|
|
24
|
+
|
|
25
|
+
engines:
|
|
26
|
+
- name: duckduckgo
|
|
27
|
+
disabled: false
|
|
28
|
+
- name: google
|
|
29
|
+
disabled: false
|
|
30
|
+
- name: bing
|
|
31
|
+
disabled: false
|
|
32
|
+
- name: wikipedia
|
|
33
|
+
disabled: false
|
|
34
|
+
- name: github
|
|
35
|
+
disabled: false
|
|
36
|
+
- name: stackoverflow
|
|
37
|
+
disabled: false
|
|
38
|
+
- name: arxiv
|
|
39
|
+
disabled: false
|