@wirecat/cli-base 0.80.3 → 0.80.4

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/CHANGELOG.md CHANGED
@@ -8,6 +8,16 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b
8
8
  Every entry says what changed as a caller sees it, why, and what to watch for — the rules are
9
9
  [`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog).
10
10
 
11
+ ## 0.80.4 — 07.11.2026
12
+
13
+ ### Fixed
14
+
15
+ - **`cli-dev repo-check` skips the ruleset of a private repository on GitHub's free plan** with a line on stderr:
16
+ GitHub answers 403 "Upgrade to GitHub Pro or make this repository public", and such a repository cannot have one.
17
+ Any other 403 still fails, and the cron and parity checks still run.
18
+ - **`cli-dev release-pr --body` and `cli-dev live --file` take an absolute path**, such as a CI runner's temporary
19
+ folder; 0.80.3 joined it onto the working folder.
20
+
11
21
  ## 0.80.3 — 07.11.2026
12
22
 
13
23
  ### Added
@@ -1,5 +1,5 @@
1
1
  import { appendFileSync, existsSync, readFileSync } from "node:fs";
2
- import { dirname, join } from "node:path";
2
+ import { dirname, join, resolve } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { parseArgs } from "node:util";
5
5
  import { packageVersion } from "../release/index.js";
@@ -64,7 +64,7 @@ const live = (args, io, shell) => {
64
64
  file: { type: "string", default: LIVE_FILE },
65
65
  },
66
66
  });
67
- const file = join(io.cwd, values.file);
67
+ const file = resolve(io.cwd, values.file);
68
68
  const version = values.version ?? packageVersion(io.cwd);
69
69
  if (action === "check") {
70
70
  const records = existsSync(file) ? parseLiveRecords(readFileSync(file, "utf8")) : [];
@@ -107,7 +107,7 @@ const releasePr = (args, io, shell) => {
107
107
  return 2;
108
108
  }
109
109
  const baseVersion = String(JSON.parse(base.out).version);
110
- const problems = releasePrProblems(readFileSync(join(io.cwd, values.body), "utf8"), baseVersion, packageVersion(io.cwd));
110
+ const problems = releasePrProblems(readFileSync(resolve(io.cwd, values.body), "utf8"), baseVersion, packageVersion(io.cwd));
111
111
  for (const problem of problems)
112
112
  io.err(problem);
113
113
  if (problems.length === 0)
@@ -124,6 +124,9 @@ export const rulesetProblems = (shell, slug) => {
124
124
  return { problems: [], skipped: "gh is not signed in (set GH_TOKEN in CI)" };
125
125
  if (!status)
126
126
  return { problems: [], skipped: `GitHub could not be reached: ${answer.out.split("\n")[0] ?? ""}` };
127
+ // A private repository on the free plan cannot have rulesets at all (NEED-2331).
128
+ if (status === "403" && answer.out.includes("Upgrade to GitHub Pro or make this repository public"))
129
+ return { problems: [], skipped: "a private repository on GitHub's free plan has no rulesets" };
127
130
  return {
128
131
  problems: [
129
132
  `GitHub answered ${status} for ${slug}'s rules on main: ` +
@@ -119,8 +119,8 @@ installing that command; nothing else is registered anywhere.
119
119
 
120
120
  `cli-dev repo-check --cli <name>` checks steps 1, 3 and 4 on every pull request of a CLI made from cli-template
121
121
  (`ci.yml:repo-setup`): the ruleset's four rules on `main`, a monthly minute no other repository holds, and the CLI in
122
- a parity group. It reads the ruleset with `gh` and the job's `GITHUB_TOKEN`; without a login or a network it says so
123
- and skips that part, and fails on the rest.
122
+ a parity group. It reads the ruleset with `gh` and the job's `GITHUB_TOKEN`; without a login or a network, or for a private
123
+ repository on GitHub's free plan, which cannot have rulesets, it says so and skips that part, and fails on the rest.
124
124
 
125
125
  The listings beyond npm (ClawHub, the MCP Registry, the Claude plugin, the docs site, Glama) are a checklist in
126
126
  [Publishing](../PUBLISHING.md#a-new-cli).
@@ -404,7 +404,7 @@ builds a context of its own.
404
404
  - **Example:** gcal's `src/program.ts` passes `configuration` to the definition and to
405
405
  `appMcpCommand(IDENTITY, configuration, …)`. With `{ "deals": "deny" }` in the profile, `b24 work deals list`
406
406
  exits 5 (`permission_error`) and sends nothing. cli-template's `contracts/plan.json` has
407
- `"deny": { "profile": "personal", "skip": {…} }`, so every CLI made from it runs the check on each pull request.
407
+ `"deny": { "profile": "personal" }`, so every CLI made from it runs the check on each pull request.
408
408
  - **Exceptions:** known gaps, as of 2026-11-07: beeline's definition passes only `resolveSettings`, and the MCP
409
409
  servers of b24 and beeline call `toolsFromCommands` without `permissions`.
410
410
  - **Applies to:** every CLI on cli-core's `run()`. **Since:** cli-base 0.80.1. **Rulings:** none.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-base",
3
- "version": "0.80.3",
3
+ "version": "0.80.4",
4
4
  "description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",