@veda-hq/niyam 0.7.5 → 0.7.6
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 +11 -8
- package/dist/onboard.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1727,7 +1727,7 @@ tag and the commit. Install the attached package on each machine with pnpm,
|
|
|
1727
1727
|
once; nothing is built on install:
|
|
1728
1728
|
|
|
1729
1729
|
```bash
|
|
1730
|
-
pnpm add -g https://github.com/veda-hq/niyam/releases/download/v0.7.
|
|
1730
|
+
pnpm add -g https://github.com/veda-hq/niyam/releases/download/v0.7.6/veda-hq-niyam-0.7.6.tgz
|
|
1731
1731
|
```
|
|
1732
1732
|
|
|
1733
1733
|
The package puts one command on `PATH`, `niyam`. Since P-57 a release
|
|
@@ -1813,11 +1813,14 @@ which fails the lint until `pnpm lint --prune-suppressions` drops it.
|
|
|
1813
1813
|
|
|
1814
1814
|
### Guard
|
|
1815
1815
|
|
|
1816
|
-
|
|
1817
|
-
`
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1816
|
+
niyam runs the shared Guard (below) as every client does, through the caller
|
|
1817
|
+
`onboard` writes, `.github/workflows/niyam-guard.yml`, at the release
|
|
1818
|
+
`niyam.yml` pins; its check is `niyam-guard / judge` (#472). It runs on
|
|
1819
|
+
`pull_request_target`, so GitHub runs `main`'s copy of the caller, never the
|
|
1820
|
+
pull request's, and the Guard it calls runs from that release: a fix to
|
|
1821
|
+
`scripts/guard.mjs` (tested in `scripts/guard.test.mjs`) holds niyam's own
|
|
1822
|
+
pull requests once it is released. It reads the pull request's changed files
|
|
1823
|
+
from GitHub's API as data and never checks out its code. A change to a guard
|
|
1821
1824
|
file passes only when the pull request's slice names it in a `**Guards:**`
|
|
1822
1825
|
section, one already in the slice when the owner put `approved` on its Work
|
|
1823
1826
|
item (for a slice added later, when the owner's `Decision:` settled it):
|
|
@@ -1853,7 +1856,7 @@ niyam version, and a sha256 with it, to that release, tagged on
|
|
|
1853
1856
|
`veda-hq/niyam`'s `main`; and a Dependabot pull request whose every changed
|
|
1854
1857
|
line only moves a `uses:` to another full commit sha with its version
|
|
1855
1858
|
comment. Whatever the slice says, Guard refuses a pull request that adds a
|
|
1856
|
-
job reporting a check the default branch's ruleset requires,
|
|
1859
|
+
job reporting a check the default branch's ruleset requires, and any job
|
|
1857
1860
|
that could report the shared Guard's check, `niyam-guard / judge`, other than
|
|
1858
1861
|
its caller as `onboard` writes it. It fails closed: a truncated file list,
|
|
1859
1862
|
settings it cannot read, any read GitHub does not answer, or an event other
|
|
@@ -1881,7 +1884,7 @@ Actions, Policies allows it for that workflow, so `onboard` names that step
|
|
|
1881
1884
|
there.
|
|
1882
1885
|
|
|
1883
1886
|
Guard cannot judge a change to its own rules, so `.github/CODEOWNERS` names
|
|
1884
|
-
`@AlokBansal8` for the guard's files alone: `.github/workflows/guard.yml`,
|
|
1887
|
+
`@AlokBansal8` for the guard's files alone: the caller `.github/workflows/niyam-guard.yml`,
|
|
1885
1888
|
`.github/workflows/shared-guard.yml`, `scripts/guard.mjs`, `scripts/guard.test.mjs` and `.github/CODEOWNERS`
|
|
1886
1889
|
itself. With "Require review from Code Owners" on in the `main` ruleset, a
|
|
1887
1890
|
pull request that changes one of them waits for his approval. Every other
|
package/dist/onboard.js
CHANGED
|
@@ -1178,8 +1178,8 @@ function planHead(paint, head) {
|
|
|
1178
1178
|
* Sets up the client repository the working directory is in, run by its
|
|
1179
1179
|
* owner on a Mac `machine` has set up for the agent. It first works out
|
|
1180
1180
|
* everything it would change, changing nothing: the settings file, the
|
|
1181
|
-
* Claude Code settings, the workflow, the shared Guard's caller
|
|
1182
|
-
*
|
|
1181
|
+
* Claude Code settings, the workflow, the shared Guard's caller and the
|
|
1182
|
+
* cloud setup file, opened as the agent's pull request
|
|
1183
1183
|
* so the owner's checkout is never modified; the agent's push access; the
|
|
1184
1184
|
* work board (issue types, labels, Project, fields and views); the pre-push
|
|
1185
1185
|
* hook; and one signed test commit GitHub must show as Verified by the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veda-hq/niyam",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Work rules for repos that track work in GitHub Issues: setup, agent identity, push and PR checks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/node": "24.19.2",
|
|
29
29
|
"@veda-hq/dvara": "0.5.16",
|
|
30
30
|
"@veda-hq/pariksha": "0.5.20",
|
|
31
|
-
"@veda-hq/sarathi": "0.7.
|
|
31
|
+
"@veda-hq/sarathi": "0.7.8",
|
|
32
32
|
"typescript": "7.0.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|