mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-09-22 01:10:42 +02:00
docs: sync to Claude Code v2.1.257 (#180)
* docs: sync to Claude Code v2.1.257 Audit against Claude Code v2.1.257 (repo baseline was v2.1.245, 12 releases behind). Facts verified against the official docs and cross-checked against the locally installed 2.1.257 binary. Critical (P0): - lesson-quiz L06 Q9 asked how many hook events exist, offering 16/25/31/40. With the real answer now 33, no option was correct. Option C 31 -> 33; answer letter unchanged. - 03-skills taught SKILL.md `name`/`description` as required. Official docs now state all frontmatter fields are optional and `name` defaults to the directory name. Corrected in all five languages. Hook events 31 -> 33 (PreModelSwitch/PostModelSwitch, v2.1.251) across 30 occurrences in 22 files, including three that read 25. Delta proved by set-diff against the official event table: no phantom events. Both events added to the 06-hooks tables with matcher, blocking behavior and 30s timeout, plus detailed per-event sections. CLI corrections verified against the binary: - `claude plugin tag` takes a path, not a version - `claude plugin init` / `validate` require their arguments - `plugin init` scaffolds at ~/.claude/skills/<name>/, not project-local - `--channels` entries must be tagged plugin:<name>@<marketplace> - `--remote` is a deprecated alias for `--cloud` - no `claude remote-control` subcommand exists, only the --remote-control flag Also: CATALOG summary-table totals recomputed in all five languages (column 4 is a derived total, so the count change invalidated it); stale Opus 4.6/4.7 rosters aligned to canonical; self-assessment Advanced Features rescored 0-3 to stop a real gap being graded as mastery; 9 dangling quiz Review pointers repaired; new features documented (--restricted, Fable 5.1, experimental.cacheTtl, CLAUDE_CODE_SUBAGENT_MODEL_FORCE). Deliberately out of scope: pre-existing translation staleness whose fix is translation authorship rather than correction (ja/uk April-2026 root-doc bodies, zh stubs, vi/README stub, translated CATALOG "New Features"). Claude-Session: https://claude.ai/code/session_01128xfEd8W7c2cMRw6N7uiF * fix(hooks): complete the 31 → 33 hook-event propagation across all languages The v2.1.257 sync bumped the hook-event count in the lesson and catalog summaries but left 14 files still asserting 31, four of which the same commit restamped 2.1.257. It also bumped the prose count in claude_concepts_guide.md without adding the two rows, making that file contradict itself where it had been internally consistent before. Adds PreModelSwitch and PostModelSwitch (v2.1.251) everywhere an exhaustive enumeration exists, and corrects the count wherever a list is deliberately partial: - README.md / INDEX.md in en, ja, zh, uk and vi/INDEX.md — count 31 → 33 and both events added to the lifecycle group - resources.md in all five languages — count only; these lists end in "and more" and are partial by design - claude_concepts_guide.md — the two missing table rows Also brings every hook-event table up to the 33 its own summary row claims. The English CATALOG.md listed 29; the translated catalogs listed 25 and the ja/uk concept guides 27 and 28. Completing them required translating six events that had never reached the mirrors: Setup, UserPromptExpansion, PermissionDenied, PostToolBatch, MessageDisplay and DirectoryAdded. Summary-table arithmetic is untouched — those columns count example scripts, not events. Verified: no stale count survives outside CHANGELOG history, every exhaustive enumeration lists exactly 33, and pre-commit passes 23/23. Claude-Session: https://claude.ai/code/session_01UXmqJZNk1BR4uerJA85NiW
This commit is contained in:
+11
-8
@@ -44,7 +44,7 @@ graph TD
|
||||
| `claude mcp serve` | Запуск Claude Code як MCP-сервера | `claude mcp serve` |
|
||||
| `claude agents` | Список усіх налаштованих субагентів | `claude agents` |
|
||||
| `claude auto-mode defaults` | Вивести стандартні правила auto mode як JSON | `claude auto-mode defaults` |
|
||||
| `claude remote-control` | Запуск сервера Remote Control | `claude remote-control` |
|
||||
| `claude --remote-control [name]` | Запуск Remote Control (це прапорець, а не підкоманда; аліас `--rc`) | `claude --rc` |
|
||||
| `claude plugin` | Управління плагінами (встановлення, увімкнення, вимкнення) | `claude plugin install my-plugin` |
|
||||
| `claude auth login` | Вхід (підтримує `--email`, `--sso`) | `claude auth login --email user@example.com` |
|
||||
| `claude auth logout` | Вихід з поточного облікового запису | `claude auth logout` |
|
||||
@@ -61,13 +61,14 @@ graph TD
|
||||
| `-w, --worktree` | Запуск в ізольованому git worktree (робочому дереві) | `claude -w` |
|
||||
| `-n, --name` | Відображувана назва сесії | `claude -n "auth-refactor"` |
|
||||
| `--from-pr <number>` | Відновити сесії, привʼязані до GitHub PR | `claude --from-pr 42` |
|
||||
| `--remote "task"` | Створити веб-сесію на claude.ai | `claude --remote "implement API"` |
|
||||
| `--cloud [description\|session_id\|url]` | Створити хмарну сесію на claude.ai із заданим описом або приєднатися до наявної за session ID чи URL claude.ai/code | `claude --cloud "implement API"` |
|
||||
| `--remote "task"` | **Застарілий аліас для `--cloud`**, включно з формою приєднання до наявної сесії. Використовуйте `--cloud` | `claude --remote "implement API"` |
|
||||
| `--remote-control, --rc` | Інтерактивна сесія з Remote Control | `claude --rc` |
|
||||
| `--teleport` | Відновити веб-сесію локально | `claude --teleport` |
|
||||
| `--teammate-mode` | Режим відображення Agent Teams | `claude --teammate-mode tmux` |
|
||||
| `--bare` | Мінімальний режим (без хуків, навичок, плагінів, MCP, auto memory, CLAUDE.md) | `claude --bare` |
|
||||
| `--enable-auto-mode` | Розблокувати auto permission mode | `claude --enable-auto-mode` |
|
||||
| `--channels` | Підписка на MCP channel plugins | `claude --channels discord,telegram` |
|
||||
| `--channels` | Підписка на MCP channel plugins. Кожен запис має бути позначений як `plugin:<name>@<marketplace>`; голі імена відхиляються | `claude --channels plugin:discord@my-marketplace` |
|
||||
| `--chrome` / `--no-chrome` | Увімкнути/вимкнути інтеграцію з браузером Chrome | `claude --chrome` |
|
||||
| `--effort` | Встановити рівень зусиль мислення | `claude --effort high` |
|
||||
| `--init` / `--init-only` | Запуск хуків ініціалізації | `claude --init` |
|
||||
@@ -247,7 +248,7 @@ claude --settings '{"model":"opus","verbose":true}' "complex task"
|
||||
|-----------|------|---------|
|
||||
| `--mcp-config` | Завантажити MCP-сервери з JSON | `claude --mcp-config ./mcp.json` |
|
||||
| `--strict-mcp-config` | Використовувати тільки вказану MCP-конфігурацію | `claude --strict-mcp-config --mcp-config ./mcp.json` |
|
||||
| `--channels` | Підписка на MCP channel plugins | `claude --channels discord,telegram` |
|
||||
| `--channels` | Підписка на MCP channel plugins. Кожен запис має бути позначений як `plugin:<name>@<marketplace>`; голі імена відхиляються | `claude --channels plugin:discord@my-marketplace` |
|
||||
|
||||
### Приклади MCP
|
||||
|
||||
@@ -317,7 +318,7 @@ claude -r "feature-auth" --fork-session "test with different architecture"
|
||||
| `--enable-auto-mode` | Розблокувати auto permission mode | `claude --enable-auto-mode` |
|
||||
| `--effort` | Встановити рівень зусиль мислення | `claude --effort high` |
|
||||
| `--bare` | Мінімальний режим (без хуків, навичок, плагінів, MCP, auto memory, CLAUDE.md) | `claude --bare` |
|
||||
| `--channels` | Підписка на MCP channel plugins | `claude --channels discord` |
|
||||
| `--channels` | Підписка на MCP channel plugins (позначені як `plugin:<name>@<marketplace>`) | `claude --channels plugin:discord@my-marketplace` |
|
||||
| `--tmux` | Створити tmux-сесію для worktree | `claude --tmux` |
|
||||
| `--fork-session` | Створити новий ID сесії при відновленні | `claude --resume abc --fork-session` |
|
||||
| `--max-budget-usd` | Максимальні витрати (print mode); також зупиняє фонові subagent-и при досягненні ліміту (v2.1.217) | `claude -p --max-budget-usd 5.00 "query"` |
|
||||
@@ -836,6 +837,8 @@ claude -p --output-format json "query"
|
||||
*Частина серії посібників [Claude How To](../)*
|
||||
|
||||
---
|
||||
**Останнє оновлення**: 9 квітня 2026
|
||||
**Версія Claude Code**: 2.1.97
|
||||
**Сумісні моделі**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
|
||||
**Останнє оновлення**: 2 вересня 2026
|
||||
**Версія Claude Code**: 2.1.257
|
||||
**Джерела**:
|
||||
- https://code.claude.com/docs/en/cli-reference
|
||||
**Сумісні моделі**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
|
||||
|
||||
Reference in New Issue
Block a user