Commit Graph

8 Commits

Author SHA1 Message Date
Дмитрий dd238e52f4 feat(scripts): verify.sh — .brain-version + sha256 + strict-secrets check
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 00:57:03 +03:00
Дмитрий ba0a28b2a0 feat(scripts): install-plugins.sh — marketplace add + plugin install + SHA verify
Uses corrected Claude CLI subcommand shape:
  claude plugin marketplace add <repo>   (NOT `claude marketplace add`)
  claude plugin marketplace list
  claude plugin install <name@marketplace>
  claude plugin info <name@marketplace> --json

Includes fallback for environments where `claude` CLI is not in PATH
(VSCode-extension install on Windows): logs manual edit instructions
and exits 0 so the parent installer can continue.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 00:53:48 +03:00
Дмитрий 042316ea6a feat(scripts): setup-secrets.sh — placeholder resolution with --secret/--skip/--list modes
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 00:52:54 +03:00
Дмитрий c37fd3c9e2 feat(scripts): merge-mcp.sh — preserves laravel-boost, replaces brain-managed MCP
Uses jq --slurpfile pattern (NOT broken `.[1].mcpServers` form from plan):
  jq --slurpfile brain "$brain_mcp" \
     '.mcpServers = ((.mcpServers // {}) + $brain[0].mcpServers)' "$target"

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 00:52:05 +03:00
Дмитрий 0ba32c29dc feat(scripts): merge-settings.sh — jq merge with preservation of theme/editorMode
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 00:50:56 +03:00
Дмитрий 9557109a17 feat(scripts): common.sh helpers (log_*, require_cmd, make_backup_dir)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 00:49:39 +03:00
Дмитрий ed9bade863 feat: extract brain artifacts from Liderra + ~/.claude/
project-files/:
- CLAUDE.md.template (266 lines)
- docs/Pravila_raboty_Claude.template.md (720 lines)
- docs/Plugin_stack_rules.template.md (916 lines)
- docs/Tooling.template.md (613 lines)
- docs/CHANGELOG_claude_md.template.md
- docs/visualizations/hooks-skills-plugins-map.html (3122 lines)
- .mcp.json.template (universal: playwright/github/semgrep; laravel-boost dropped)

user-level-files/:
- hooks/ (10 Python files: skill-marker, skill-check, economy-* x8)
- settings-fragment.json (enabledPlugins + permissions + hooks only)
- marketplaces.json (3 sources)
- plugins-manifest.json (4 plugins pinned with gitCommitSha)
- mcp-user.template.json (magic with <<MAGIC_API_KEY>> placeholder)

Gitleaks scan: 0 findings.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 00:46:51 +03:00
Дмитрий 1e68fa9361 chore: initial brain repository scaffold
Initialize claude-brain repository with .gitignore and experiments/
placeholder directory.

- .gitignore covers Python artifacts, experiments WIP, secret resolution
  artifacts (*-resolved.json, .brain-deferred-secrets.txt), OS/editor files
- experiments/README.md + .gitkeep preserves directory while ignoring contents
2026-05-11 00:43:26 +03:00