cc-safe-setup 30.0.4 → 30.0.5

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.
Files changed (3) hide show
  1. package/README.md +3 -1
  2. package/index.mjs +25 -6
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -518,7 +518,9 @@ Contributions are welcome. Each hook should be a single shell script with a test
518
518
  Every hook here exists because something broke first — a destroyed working tree, a credential
519
519
  read that should not have happened, an overnight cost spike. The incident behind each one, what
520
520
  the logs actually looked like, and what finally stopped it, are written up at length. Those
521
- write-ups are books, and they are listed in [docs/books.md](docs/books.md).
521
+ write-ups are books, and they are listed in [docs/books.md](docs/books.md). In English there are
522
+ seven, sold together as [Claude Code Operator's Library: Complete Edition](https://leanpub.com/b/cc-operators-complete)
523
+ (from $39); the Field Manual linked at the top of this file is one of them and its minimum price is zero.
522
524
 
523
525
  ## License
524
526
 
package/index.mjs CHANGED
@@ -7474,11 +7474,30 @@ async function main() {
7474
7474
  // 旧価格の派生値として腐っていた(6冊 × ¥700 = ¥4,200 のずれ)。¥19,800 へ更新はしない。
7475
7475
  // 次の値上げでも次の1冊でも同じように腐るうえ、この額は「売れた当時の値段の合計」ではないので、
7476
7476
  // 社会的証明として掲げると買い手に実態より大きく見せることになる。冊数だけなら腐らない。
7477
- console.log(' ' + c.blue + 'Zenn books (JP):' + c.reset + ' Author\'s own playbooks — 13 purchases since March 2026');
7478
- console.log(' ' + c.dim + ' Anthropic公式ガイドにない事故防止 (best-seller, 97 chapters, buyers get every later revision free)' + c.reset);
7479
- console.log(' ' + c.dim + ' https://zenn.dev/yurukusa/books/6076c23b1cb18b (free Chapters 1-3)' + c.reset);
7480
- console.log(' ' + c.dim + ' Claude Codeのトークン消費を半分にする (¥2,500, revenue #1)' + c.reset);
7481
- console.log(' ' + c.dim + ' https://zenn.dev/yurukusa/books/token-savings-guide (free Chapter 1)' + c.reset);
7477
+ // 2026-09-25: この面(14日で clone 971回・607人が通る)が案内していた本は、
7478
+ // 日本語の Zenn だけだった。npx を走らせる人の大半は英語圏で、同じ事故の記録の
7479
+ // 英語版が Leanpub に7冊 在るのに1本もリンクが無かった。実測の裏づけ=
7480
+ // 9月の売上 ¥15,173 の100%が Leanpub の束で、Zenn は2か月 ¥0。
7481
+ // 並べ替えの原則=(1)いちばん役に立つ無料の物を先頭に置く
7482
+ // (2)有料は「読む前に判断できる材料」(頁数と無料見本)だけ添えて1段 下げる。
7483
+ // 全文=~/ops/economics/leanpub-who-actually-paid-2026-09-25.md
7484
+ console.log(' ' + c.blue + 'Field Manual (free):' + c.reset + ' this repository\'s documentation laid out as a path');
7485
+ console.log(' ' + c.dim + ' The pre-flight checklist, what each guard actually refuses, how to make one fire on' + c.reset);
7486
+ console.log(' ' + c.dim + ' purpose so you can watch it work, and what to read in the log afterwards.' + c.reset);
7487
+ console.log(' ' + c.dim + ' 124 pages, minimum price zero. Everything in it is also in this repository.' + c.reset);
7488
+ console.log(' ' + c.dim + ' https://leanpub.com/claude-code-safety-field-manual' + c.reset);
7489
+ console.log();
7490
+ console.log(' ' + c.blue + 'Longer write-ups (EN):' + c.reset + ' the incident behind each hook, at length — six more titles');
7491
+ console.log(' ' + c.dim + ' Safety Mastery 66p / Migration Playbook 251p / Token Savings 89p /' + c.reset);
7492
+ console.log(' ' + c.dim + ' AGENTS.md Interop 49p / CLAUDE.md Under Test 86p / Claude Code Safety 68p.' + c.reset);
7493
+ console.log(' ' + c.dim + ' Every one has a free sample you can read before deciding.' + c.reset);
7494
+ console.log(' ' + c.dim + ' https://leanpub.com/b/cc-operators-complete (all seven together, from $39)' + c.reset);
7495
+ console.log();
7496
+ console.log(' ' + c.blue + 'Japanese editions:' + c.reset + ' 13 purchases since March 2026 — https://zenn.dev/yurukusa');
7497
+ console.log(' ' + c.dim + ' Anthropic公式ガイドにない事故防止 (97 chapters, free Chapters 1-3)' + c.reset);
7498
+ console.log(' ' + c.dim + ' https://zenn.dev/yurukusa/books/6076c23b1cb18b' + c.reset);
7499
+ console.log(' ' + c.dim + ' Claude Codeのトークン消費を半分にする (¥2,500, free Chapter 1)' + c.reset);
7500
+ console.log(' ' + c.dim + ' https://zenn.dev/yurukusa/books/token-savings-guide' + c.reset);
7482
7501
  // 2026-08-13: 12冊の露出と実売を突き合わせたら、いちばん高い ¥3,000 の企業パックは
7483
7502
  // Qiita 234本のうち0本からしか指されておらず、この面でも名前が出ず「10 more titles」に埋もれていた。
7484
7503
  // 生涯0件は市場の答えではなく、一度も機会を与えていないだけ。
@@ -7487,7 +7506,7 @@ async function main() {
7487
7506
  // 実測=~/ops/economics/exposure-vs-sales-2026-08-13.md
7488
7507
  console.log(' ' + c.dim + ' Claude Code チーム/企業導入 安全パック (¥3,000, 9 chapters — for whoever has to sign off on team use)' + c.reset);
7489
7508
  console.log(' ' + c.dim + ' https://zenn.dev/yurukusa/books/cc-team-safety-pack' + c.reset);
7490
- console.log(' ' + c.dim + ' 9 more titles at https://zenn.dev/yurukusa (Skills recipes, 800h log, AGENTS.md interop)' + c.reset);
7509
+ console.log(' ' + c.dim + ' 9 more titles at the same place (Skills recipes, 800h log, AGENTS.md interop)' + c.reset);
7491
7510
  console.log();
7492
7511
  console.log(' ' + c.blue + 'Recurring track:' + c.reset + ' CC Safety Lab Founder (¥500/mo, Ko-fi, grandfathered)');
7493
7512
  console.log(' ' + c.dim + ' Monthly digest of new failure clusters + cc-safe-setup hooks shipped that month.' + c.reset);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-safe-setup",
3
- "version": "30.0.4",
3
+ "version": "30.0.5",
4
4
  "description": "Safety hooks for Claude Code: PreToolUse/PostToolUse/Stop guards that block destructive or irreversible operations at the tool boundary and surface silent failures. Interactive installer, plain shell scripts, no npm dependencies (the hooks read their JSON input with jq, python3 or node).",
5
5
  "main": "index.mjs",
6
6
  "bin": {