@antonior/claude-code-setup 2.0.0 → 2.0.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/README.md +28 -0
- package/bin/install.js +1 -0
- package/files/commands/updateClaudeNpm.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,6 +41,7 @@ The installer installs these for you if missing:
|
|
|
41
41
|
| `jq` | hooks (JSON parsing) | **Required** — install aborts without it. |
|
|
42
42
|
| `python3` | `transcript-search` MCP + video-FPS hook | Best-effort — feature stays dormant if it can't install. |
|
|
43
43
|
| `ffmpeg` | `claude-video-vision` MCP | Best-effort. |
|
|
44
|
+
| `tmux` | optional `cr` tmux launch workflow (lives in shell config, not shipped) | Best-effort. |
|
|
44
45
|
| `git`, `eslint`, `tsc` | commit-scan / lint / typecheck hooks | Optional — hooks no-op cleanly when absent. |
|
|
45
46
|
|
|
46
47
|
## What it installs (into `~/.claude/`)
|
|
@@ -85,6 +86,33 @@ The installer reproduces **100% of the configuration and behaviour**. Two things
|
|
|
85
86
|
1. **Log into Claude Code** (your account — you'd do this on any new machine anyway).
|
|
86
87
|
2. **Give `claude-video-vision` your own API key** if you use video analysis.
|
|
87
88
|
|
|
89
|
+
## Shell workflow (optional, not shipped)
|
|
90
|
+
|
|
91
|
+
The package mirrors `~/.claude` only, so anything in your shell config (`~/.zshrc`) is **not** shipped. Add it per machine. These two bits drive how I launch Claude:
|
|
92
|
+
|
|
93
|
+
**Start Claude in bypass mode** (skips per-tool permission prompts). Note: `skipDangerousModePermissionPrompt` in `settings.json` only suppresses the warning; this alias is what actually starts a session in bypass mode:
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
alias claude="claude --dangerously-skip-permissions"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**`cr` — launch Claude inside a tmux session** (named after the current directory, or pass a name: `cr myname`):
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
cr() {
|
|
103
|
+
local session="${1:-$(basename "$PWD")}"
|
|
104
|
+
if tmux has-session -t "$session" 2>/dev/null; then
|
|
105
|
+
tmux attach-session -t "$session"
|
|
106
|
+
else
|
|
107
|
+
tmux new-session -s "$session" -d -c "$PWD"
|
|
108
|
+
tmux send-keys -t "$session" "claude --dangerously-skip-permissions --remote-control '$session'" Enter
|
|
109
|
+
tmux attach-session -t "$session"
|
|
110
|
+
fi
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
`cr` needs `tmux`, which the installer now installs best effort (see the dependencies table). After editing `~/.zshrc`, run `source ~/.zshrc` or open a new terminal.
|
|
115
|
+
|
|
88
116
|
## Maintaining (for me)
|
|
89
117
|
|
|
90
118
|
The package is an exact mirror of my own `~/.claude`. To refresh it from my live config and publish:
|
package/bin/install.js
CHANGED
|
@@ -24,7 +24,7 @@ The allowlist in `scripts/sync-from-local.sh` already encodes this. Do NOT widen
|
|
|
24
24
|
2. **Clone fresh** into a temp dir: `gh repo clone RadosavAntonio/claude-code-setup <tmp>` (or `git pull` if already cloned). Work there.
|
|
25
25
|
3. **Sync.** Run `bash scripts/sync-from-local.sh`. It rebuilds `files/` as an exact mirror of my current allowlisted config.
|
|
26
26
|
4. **No-op guard.** `git add -A`, then `git diff --cached --quiet`. If it reports no changes, STOP and tell me "already in sync, nothing to publish." Do not bump or publish.
|
|
27
|
-
5. **Secret gate.**
|
|
27
|
+
5. **Secret gate.** From the clone, run `bash scripts/scan-staged.sh`. It scans the staged diff for token signatures (AWS, GitHub, Slack, OpenAI, PEM keys, JWTs, generic `key/secret/token=...`) and exits non-zero if it finds any. Do NOT rely on `/scan-secrets` here — the shell cwd may not be this repo, so a skill that scans the current dir would falsely report clean. If the script exits non-zero, STOP and show me — do not publish.
|
|
28
28
|
6. **Bump.** `npm version patch --no-git-tag-version`.
|
|
29
29
|
7. **Commit + push.** Commit with a normal-English message summarising the diff (end with the `Co-Authored-By: Claude ...` line), push to `main`.
|
|
30
30
|
8. **Publish.** `npm publish --access public`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antonior/claude-code-setup",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Install Antonio's full Claude Code setup: hooks, slash commands, skills, statusline, settings, and MCP servers (transcript-search + video-vision)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"claude-code-setup": "bin/install.js"
|