nulladrift 0.8.0 → 0.10.0
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 +14 -6
- package/dist/index.js +437 -82
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -176,6 +176,12 @@ could not be audited and is not on that list, or is reached differently than whe
|
|
|
176
176
|
is reported as new drift even with the flag, so a pull request cannot add a server that
|
|
177
177
|
refuses the auditor and pass.
|
|
178
178
|
|
|
179
|
+
A server whose tool list could not be read in full is a failure too, for the same reason: a
|
|
180
|
+
listing that did not end within 64 pages, or a server that said its tools changed while they were
|
|
181
|
+
being read, on every pass. What was read is pinned and marked partial in the lock, and `check`
|
|
182
|
+
exits `2`. `--allow-partial`, or `policy.allowPartial` in the lock, makes it a warning. Only what
|
|
183
|
+
the protocol states counts; a server is never called partial from the name of one of its tools.
|
|
184
|
+
|
|
179
185
|
A server name defined differently in two config files (`.mcp.json` and `.vscode/mcp.json`,
|
|
180
186
|
say) fails the audit. Each client reads its own file, so checking one definition would vouch
|
|
181
187
|
for the others. Rename one, or make them the same.
|
|
@@ -364,9 +370,11 @@ captures every server's capability surface, and diffs it against the previous re
|
|
|
364
370
|
`crawl-state` branch. It needs no consent from anyone, has no self-selection, and reports in
|
|
365
371
|
changes per server-year, withholding the figure entirely until enough observation has
|
|
366
372
|
accumulated to support it. `--include-stdio` additionally runs registry packages inside a
|
|
367
|
-
container with no host mounts, no host environment, no privileges
|
|
368
|
-
|
|
369
|
-
|
|
373
|
+
container with no host mounts, no host environment, no privileges, a read-only root and no
|
|
374
|
+
network. Each package is fetched first, in a separate container that has the network and runs
|
|
375
|
+
none of the package's code (install scripts off); a package that needs an install script to work
|
|
376
|
+
is counted as unreachable. Without that flag those entries are skipped, and the report states
|
|
377
|
+
which population it actually measured.
|
|
370
378
|
|
|
371
379
|
## Environment variables
|
|
372
380
|
|
|
@@ -392,9 +400,9 @@ These are read, never required, and set by the CI provider rather than by you:
|
|
|
392
400
|
| Variable | What it is used for |
|
|
393
401
|
| --- | --- |
|
|
394
402
|
| `CI` | Marks a reading as made in CI rather than locally, and keeps telemetry from asking a question nobody is there to answer. `CI=false` counts as unset. |
|
|
395
|
-
| `GITHUB_REPOSITORY`, `CI_PROJECT_PATH`, `BUILD_REPOSITORY_NAME` | The project
|
|
396
|
-
| `GITHUB_REF_NAME`, `CI_COMMIT_REF_NAME` | The branch or tag `push` reports. |
|
|
397
|
-
| `GITHUB_SHA`, `CI_COMMIT_SHA` | The commit `push` reports. |
|
|
403
|
+
| `GITHUB_REPOSITORY`, `CI_PROJECT_PATH`, `BITBUCKET_REPO_FULL_NAME`, `BUILD_REPOSITORY_NAME`, `CIRCLE_PROJECT_USERNAME` with `CIRCLE_PROJECT_REPONAME`, `BUILDKITE_REPO` | The project `push` reports under, unless `--project` names one. Outside CI it comes from the git remote (`origin`), in the same `owner/repo` shape, so a laptop and its pipeline report to one project. Only with no remote is it the directory's name, and `push` says so. |
|
|
404
|
+
| `GITHUB_REF_NAME`, `CI_COMMIT_REF_NAME`, `BUILD_SOURCEBRANCH`, `BITBUCKET_BRANCH`, `BITBUCKET_TAG`, `CIRCLE_BRANCH`, `CIRCLE_TAG`, `BUILDKITE_BRANCH` | The branch or tag `push` reports, unless `--ref` names one. Outside CI, the checked-out branch. |
|
|
405
|
+
| `GITHUB_SHA`, `CI_COMMIT_SHA`, `BUILD_SOURCEVERSION`, `BITBUCKET_COMMIT`, `CIRCLE_SHA1`, `BUILDKITE_COMMIT` | The commit `push` reports, unless `--commit` names one. Outside CI, `HEAD`. The repository is read from `.git` directly; `git` is never run. |
|
|
398
406
|
| `GITHUB_ACTIONS`, `ACTIONS_ID_TOKEN_REQUEST_URL`, `ACTIONS_ID_TOKEN_REQUEST_TOKEN` | How `push` asks GitHub for the job's identity token. The last two exist only when the job has `id-token: write`. |
|
|
399
407
|
| `GITHUB_REF`, `GITHUB_API_URL` | Which pull request `check --comment` writes on, and the API to write through (GitHub Enterprise Server sets its own). |
|
|
400
408
|
|