Metadata-Version: 2.4
Name: karmadue-guard
Version: 0.1.0
Summary: Thin wrapper for the karmadue-guard Node CLI: checks npm/npx/pnpm/yarn and pip/uv installs with KarmaDue's public check before they run. Requires Node.js 18+.
License-Expression: MIT
Project-URL: Homepage, https://karmadue.expo.app/docs/any-agent.html
Project-URL: Source, https://github.com/ashadow07/karmadue-integrations
Keywords: supply-chain,pip,npm,agents,security
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# karmadue-guard (PyPI)

A thin wrapper. It ships the same `karmadue-guard` Node CLI that is published on npm and runs it with your `node`. **It needs Node.js 18+**; without Node it prints `NOT CHECKED` and exits 2. It does not contain a separate Python checker.

```sh
pip install karmadue-guard
karmadue-guard install-shims          # shims for npm npx pnpm pnpx yarn pip pip3 uv uvx in ~/.karmadue/shims
export PATH="$HOME/.karmadue/shims:$PATH"
karmadue-guard check "pip install rsquests"   # exit 1: blocked
```

What it does: each shim asks KarmaDue's public check (`POST /v1/preflight`, no account) about every npm or PyPI package named on the command line. `deny` blocks; warnings print and run (`KARMADUE_WARN=block` to block); no answer prints a loud NOT CHECKED banner (`KARMADUE_STRICT=1` to block).

Limits, stated plainly:
- Not checked: `pip install -r/-c/-e`, `npm install`/`npm ci` with no names (lockfile/manifest installs), git/URL/local paths, and dependencies of the packages you name.
- Windows works only under WSL.
- KarmaDue's check is founder-operated and can be wrong or incomplete; it is not a security guarantee.
- Each check sends the package name and version to KarmaDue's public API.

Docs: https://karmadue.expo.app/docs/any-agent.html
