@kaynooo/cli-guard 0.14.7 → 0.14.11

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -3
  2. package/package.json +6 -6
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
- #!/usr/bin/env -S bun --no-env-file --config=/dev/null
2
- // @bun
1
+ #!/bin/sh
2
+ // @bun 2>/dev/null; exec bun --no-env-file --config=/dev/null "$0" "$@"
3
3
  var __esm = (fn, res, err) => () => {
4
4
  if (fn)
5
5
  try {
@@ -4796,7 +4796,7 @@ var BINS = {
4796
4796
  doctor: "`doctor`: checks this host's @kaynooo/cli-* install, one line per check with its fix: each bin's version against the registry, tea's login, the Claude Code hooks, the Bun floor (`--json`); run it when a bin lacks a command or a flag its docs name.",
4797
4797
  cli: "`cli list`: every @kaynooo/cli-* bin in one line, what it does and what it is reached for instead of, read from each bin's own --help (`--json` adds the synopsis and examples); run it to find the bin that fits a task.",
4798
4798
  dl: "`dl <url>`: downloads into a new folder and prints the path, size, final URL and sha256, with the diff of a text file since its last download; `--sha256 <hex>` or `--sums <url>` checks it, `-x` extracts, `--bin [name]` installs into ~/.local/bin, `--exec --sha256 <sha>` runs a script exactly as read, `dl ls` lists what it installed or ran; use it instead of `curl | sh`, `curl -LO` and `sha256sum -c`.",
4799
- page: "`page check <file|url>...`: shoots each page full-page at 1440 and 400px (`-w`) in a local Chromium, prints the PNG paths, then one `<target> <width>px <kind> <selector>: <measure>` line per defect: sideways overflow, console errors, failed requests, text in a fallback font (naming the one drawn), tap targets under 44px on phones and 24px elsewhere, text touching its box edge, broken images, layout shift over 0.1; `page diff <mockup> <built>` writes a side-by-side and a pixel-diff PNG per width with the differing regions boxed and listed; use it instead of judging screenshots by eye or a one-off Playwright script; it never starts the app.",
4799
+ page: '`page check <file|url>...`: shoots each page full-page at 1440 and 400px (`-w`) in a local Chromium, prints the PNG paths, then one `<target> <width>px <kind> <selector>: <measure>` line per defect: sideways overflow, console errors, failed requests, text in a fallback font (naming the one drawn), text under WCAG AA contrast, tap targets under 44px on phones and 24px elsewhere, text touching its box edge, broken images, layout shift over 0.1, a redirect to a login page; a page behind a login takes `--cookie name=value`, `-H "Authorization: \u2026"` or `--storage-state <file>`; `page diff <mockup> <built>` writes a side-by-side and a pixel-diff PNG per width with the differing regions boxed and listed; `page shift <before> <after>` pairs the elements of both pages and prints one line per cause of a move or resize (a grown header is one line, not one per element it pushed); use it instead of judging screenshots by eye or a one-off Playwright script; it never starts the app.',
4800
4800
  out: "`out -- <cmd>`: folds long output, keeping the errors and saving the full log; run noisy builds, installs, tests and linters through it.",
4801
4801
  changelog: "`changelog --dry`: the release notes since the last tag, grouped from the conventional commits, without publishing them; `changelog` publishes them as the Forgejo release of the tag at HEAD, `changelog undo [tag]` takes a release back."
4802
4802
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaynooo/cli-guard",
3
3
  "type": "module",
4
- "version": "0.14.7",
4
+ "version": "0.14.11",
5
5
  "description": "guard: the safety rules a Claude Code Bash call is held to (git, remote machines, SQL writes, env files, package managers, commit messages), each refusal naming the route.",
6
6
  "author": "Kaynooo <contact@kaynooo.fr>",
7
7
  "license": "MIT",
@@ -32,14 +32,14 @@
32
32
  "registry": "https://git.kaynooo.fr/api/packages/kaynooo/npm/"
33
33
  },
34
34
  "scripts": {
35
- "build": "$npm_execpath build src/cli.ts --target bun --outdir dist",
35
+ "build": "$npm_execpath build src/cli.ts --target bun --outdir dist && $npm_execpath ../../scripts/shell-shebang.ts",
36
36
  "guard": "$npm_execpath src/cli.ts"
37
37
  },
38
38
  "devDependencies": {
39
- "@kaynooo/cli-db": "0.13.4",
40
- "@kaynooo/cli-edit": "0.11.5",
41
- "@kaynooo/cli-env": "0.15.3",
42
- "@kaynooo/cli-git": "0.19.0",
39
+ "@kaynooo/cli-db": "0.13.5",
40
+ "@kaynooo/cli-edit": "0.11.6",
41
+ "@kaynooo/cli-env": "0.15.4",
42
+ "@kaynooo/cli-git": "0.19.1",
43
43
  "@kaynooo/cli-kit": "0.46.4",
44
44
  "@kaynooo/cli-out": "0.14.8",
45
45
  "@kaynooo/cli-pkg": "0.18.0"