@qazuor/claude-code-config 0.6.2 → 0.6.3

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/dist/bin.cjs CHANGED
@@ -5523,12 +5523,13 @@ var DEFAULT_DENY_RULES = [
5523
5523
  "Write(/sbin/**)",
5524
5524
  "Write(/var/**)",
5525
5525
  "Write(/tmp/**)",
5526
- // Dangerous commands
5526
+ // Dangerous commands - use exact matches or :* prefix
5527
5527
  "Bash(rm -rf /)",
5528
- "Bash(sudo *)",
5529
- "Bash(chmod 777 *)",
5530
- "Bash(curl * | bash)",
5531
- "Bash(wget * | bash)",
5528
+ "Bash(sudo:*)",
5529
+ "Bash(chmod 777:*)",
5530
+ // Note: Can't deny "curl * | bash" pattern - use specific denies instead
5531
+ "Bash(curl:*)",
5532
+ "Bash(wget:*)",
5532
5533
  // Sensitive files
5533
5534
  "Write(.env)",
5534
5535
  "Write(.env.*)",
@@ -5594,64 +5595,69 @@ function generateAllowRules(config) {
5594
5595
  }
5595
5596
  if (config.git.readOnly) {
5596
5597
  rules.push(
5597
- "Bash(git status*)",
5598
- "Bash(git diff*)",
5599
- "Bash(git log*)",
5600
- "Bash(git show*)",
5601
- "Bash(git branch*)"
5598
+ "Bash(git status:*)",
5599
+ "Bash(git diff:*)",
5600
+ "Bash(git log:*)",
5601
+ "Bash(git show:*)",
5602
+ "Bash(git branch:*)"
5602
5603
  );
5603
5604
  }
5604
5605
  if (config.git.staging) {
5605
- rules.push("Bash(git add*)");
5606
+ rules.push("Bash(git add:*)");
5606
5607
  }
5607
5608
  if (config.git.commit) {
5608
- rules.push("Bash(git commit*)");
5609
+ rules.push("Bash(git commit:*)");
5609
5610
  }
5610
5611
  if (config.git.push) {
5611
- rules.push("Bash(git push*)");
5612
+ rules.push("Bash(git push:*)");
5612
5613
  }
5613
5614
  if (config.git.branching) {
5614
- rules.push("Bash(git checkout*)", "Bash(git branch*)", "Bash(git merge*)", "Bash(git rebase*)");
5615
+ rules.push(
5616
+ "Bash(git checkout:*)",
5617
+ "Bash(git branch:*)",
5618
+ "Bash(git merge:*)",
5619
+ "Bash(git rebase:*)"
5620
+ );
5615
5621
  }
5616
5622
  if (config.bash.packageManager) {
5617
5623
  rules.push(
5618
- "Bash(pnpm *)",
5619
- "Bash(npm *)",
5620
- "Bash(yarn *)",
5621
- "Bash(bun *)",
5622
- "Bash(npx *)",
5623
- "Bash(bunx *)"
5624
+ "Bash(pnpm:*)",
5625
+ "Bash(npm:*)",
5626
+ "Bash(yarn:*)",
5627
+ "Bash(bun:*)",
5628
+ "Bash(npx:*)",
5629
+ "Bash(bunx:*)"
5624
5630
  );
5625
5631
  }
5626
5632
  if (config.bash.testing) {
5627
5633
  rules.push(
5628
- "Bash(vitest*)",
5629
- "Bash(jest*)",
5630
- "Bash(playwright*)",
5631
- "Bash(cypress*)",
5632
- "Bash(pnpm test*)",
5633
- "Bash(npm test*)",
5634
- "Bash(pnpm run test*)",
5635
- "Bash(npm run test*)"
5634
+ "Bash(vitest:*)",
5635
+ "Bash(jest:*)",
5636
+ "Bash(playwright:*)",
5637
+ "Bash(cypress:*)",
5638
+ "Bash(pnpm test:*)",
5639
+ "Bash(npm test:*)",
5640
+ "Bash(pnpm run test:*)",
5641
+ "Bash(npm run test:*)"
5636
5642
  );
5637
5643
  }
5638
5644
  if (config.bash.building) {
5639
5645
  rules.push(
5640
- "Bash(pnpm build*)",
5641
- "Bash(npm run build*)",
5642
- "Bash(pnpm run build*)",
5643
- "Bash(tsc*)",
5644
- "Bash(tsup*)",
5645
- "Bash(vite build*)",
5646
- "Bash(next build*)",
5647
- "Bash(astro build*)"
5646
+ "Bash(pnpm build:*)",
5647
+ "Bash(npm run build:*)",
5648
+ "Bash(pnpm run build:*)",
5649
+ "Bash(tsc:*)",
5650
+ "Bash(tsup:*)",
5651
+ "Bash(vite build:*)",
5652
+ "Bash(next build:*)",
5653
+ "Bash(astro build:*)"
5648
5654
  );
5649
5655
  }
5650
5656
  if (config.bash.docker) {
5651
- rules.push("Bash(docker *)", "Bash(docker-compose *)");
5657
+ rules.push("Bash(docker:*)", "Bash(docker-compose:*)");
5652
5658
  }
5653
5659
  if (config.bash.arbitrary) {
5654
- rules.push("Bash(*)");
5660
+ rules.push("Bash");
5655
5661
  }
5656
5662
  if (config.web.fetch) {
5657
5663
  rules.push("WebFetch");