@veda-hq/pariksha 0.5.9 → 0.5.10

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 CHANGED
@@ -4,8 +4,8 @@
4
4
  test-quality ratchets. Part of [Veda](https://github.com/veda-hq/veda).
5
5
 
6
6
  ```sh
7
- npx @veda-hq/pariksha@0.5.9 <check> [flags]
8
- npx @veda-hq/pariksha@0.5.9 --version
7
+ npx @veda-hq/pariksha@0.5.10 <check> [flags]
8
+ npx @veda-hq/pariksha@0.5.10 --version
9
9
  ```
10
10
 
11
11
  Every check exits 0 when the repository passes, 1 when it refuses something
@@ -463,10 +463,28 @@ refusal; a requirements file it cannot read or parse, or one listing no key,
463
463
  exits 2.
464
464
 
465
465
  `baselines/claude-settings.json` (`@veda-hq/pariksha/baselines/claude-settings.json`)
466
- is the permission baseline every repository agents work in keeps: allow
467
- `mcp__ccd_pr__set_monitor`, deny `Bash(*--no-verify*)`, ask
468
- `Bash(*git push*--force*)` and `Bash(*git push* -f*)`. Point `--require` at it
469
- in the package's install. Permission globs are a coarse backstop: they cannot
466
+ is the permission baseline every repository agents work in keeps:
467
+
468
+ - allow: edits inside the checkout; selected git commands (`status`,
469
+ `diff`, `log`, `show`, `branch`, `ls-remote`, `worktree list`) and gh
470
+ commands (`pr view`, `pr list`, `pr checks`, `run view`, `run list`,
471
+ `issue list`, and `pr comment`, which posts: agents leave their evidence
472
+ and thread replies on their own pull requests); a draft pull request
473
+ (`git push -u origin`, `gh pr create --draft`, `gh pr ready`); the desktop
474
+ app's pull request tools (`mcp__ccd_pr__bind_pr`, `get_status`,
475
+ `set_monitor`); reading a browser page; and `send_message` to the session
476
+ that started this one;
477
+ - deny: `Bash(*--no-verify*)`;
478
+ - ask: every push that rewrites or deletes published history (`--force`,
479
+ `-f`, `--mirror`, `--delete`, `-d`, `--prune`, a `+` or empty-source `:`
480
+ refspec, and the abbreviations git accepts), `git branch -D`, and the
481
+ dependency commands `pnpm add`, `remove`, `update`, `npm install`,
482
+ `uninstall`, `update`, `yarn add` and `remove`. Ask beats allow, so these
483
+ hold inside the allowed `git push -u origin` and `git branch`. An edit of a
484
+ manifest is an edit like any other; the commands are what is asked.
485
+
486
+ Point `--require` at it in the package's install. A repository's own rules
487
+ go in its own requirements file beside it. Permission globs are a coarse backstop: they cannot
470
488
  tell `git commit -n` from `git log -n 5`, nor see `git -C dir push --force`.
471
489
  Parsing those is the job of a command guard such as kavach's `git_safety`.
472
490
  `permissions.defaultMode: "auto"` is not in it: Claude Code ignores `auto` in a
@@ -1,14 +1,60 @@
1
1
  {
2
2
  "permissions.allow": {
3
- "includes": ["mcp__ccd_pr__set_monitor"],
4
- "why": "an agent turns on the desktop app's CI monitor for the pull request it opens without a prompt"
3
+ "includes": [
4
+ "Edit(./**)",
5
+ "Write(./**)",
6
+ "NotebookEdit(./**)",
7
+ "Bash(git status:*)",
8
+ "Bash(git diff:*)",
9
+ "Bash(git log:*)",
10
+ "Bash(git show:*)",
11
+ "Bash(git branch:*)",
12
+ "Bash(git ls-remote:*)",
13
+ "Bash(git worktree list:*)",
14
+ "Bash(gh pr view:*)",
15
+ "Bash(gh pr list:*)",
16
+ "Bash(gh pr checks:*)",
17
+ "Bash(gh pr comment:*)",
18
+ "Bash(gh run view:*)",
19
+ "Bash(gh run list:*)",
20
+ "Bash(gh issue list:*)",
21
+ "Bash(git push -u origin:*)",
22
+ "Bash(gh pr create --draft:*)",
23
+ "Bash(gh pr ready:*)",
24
+ "mcp__ccd_pr__bind_pr",
25
+ "mcp__ccd_pr__get_status",
26
+ "mcp__ccd_pr__set_monitor",
27
+ "mcp__Claude_Browser__get_page_text",
28
+ "mcp__Claude_Browser__tabs_context",
29
+ "mcp__claude-code-remote__send_message"
30
+ ],
31
+ "why": "an agent edits inside its checkout, reads git and GitHub, publishes a draft pull request, binds it and turns on the desktop app's CI monitor, reads a page and reports to the session that started it, all without a prompt"
5
32
  },
6
33
  "permissions.deny": {
7
34
  "includes": ["Bash(*--no-verify*)"],
8
35
  "why": "no git command skips the repository's hooks"
9
36
  },
10
37
  "permissions.ask": {
11
- "includes": ["Bash(*git push*--force*)", "Bash(*git push* -f*)"],
12
- "why": "a force push rewrites published history, so a person approves each one"
38
+ "includes": [
39
+ "Bash(*git push*--force*)",
40
+ "Bash(*git push* -f*)",
41
+ "Bash(*git push*--for*)",
42
+ "Bash(*git push*--mi*)",
43
+ "Bash(*git push*--de*)",
44
+ "Bash(*git push*--pru*)",
45
+ "Bash(*git push* -d *)",
46
+ "Bash(*git push* +*)",
47
+ "Bash(*git push* :*)",
48
+ "Bash(*git branch* -D*)",
49
+ "Bash(pnpm add:*)",
50
+ "Bash(pnpm remove:*)",
51
+ "Bash(pnpm update:*)",
52
+ "Bash(npm install:*)",
53
+ "Bash(npm uninstall:*)",
54
+ "Bash(npm update:*)",
55
+ "Bash(yarn add:*)",
56
+ "Bash(yarn remove:*)"
57
+ ],
58
+ "why": "a person approves each push that rewrites or deletes published history (a force push, a mirror, a delete, a prune, a + or empty-source refspec, and their abbreviations), each forced delete of a local branch, and each dependency command (add, remove, update)"
13
59
  }
14
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veda-hq/pariksha",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Repository checks: doc drift, rule enforcement, test-quality ratchets. Checks: authority-citations, boundary, codec-registry, coverage-by-type, coverage-exemptions, doc-budgets, env-gate-switches, export-deletions, fault-injection-registry, required-settings. Also markdownlint rules for Markdown that renders mangled: @veda-hq/pariksha/markdownlint.",
5
5
  "keywords": [
6
6
  "repository checks",