1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Per-package-manager wrappers — cycle-7 Cli4. Day-1 scope per BD pick #4:
//! npm + pip + cargo + go (mvn + gem deferred to v0.1.1).
//!
//! Each wrapper parses the package manager's positional args, extracts
//! `(ecosystem, package, version)` triples, and surfaces them to the caller.
//! The caller (typically `cleanlib verdict --ecosystem <eco> --package <pkg> --version <ver>`) then calls
//! into `cleanlib_client::transport::Client::fetch_verdict` for the
//! verdict-aware gating decision.
//!
//! A future shell-init mode (`cleanlib shell-init {bash|zsh|fish}`, deferred
//! per CLEANLIB-82; not shipped in v0.1.x) will emit these wrappers as shell
//! functions for transparent gating; the function bodies delegate to
//! `cleanlib verdict --ecosystem ... --package ... --version ...` per-package.
//! Until that lands, users invoke the wrapper explicitly (e.g.
//! `cleanlib npm install <pkg>`) — see `commands/wrap.rs`.
/// Common output of every wrapper's arg parser — the set of package
/// references the wrapped command would install.