{"_id":"@aigx/cli","_rev":"2-98e9eb75813e24fd3a436b02b199d3db","name":"@aigx/cli","dist-tags":{"latest":"1.3.1"},"versions":{"1.3.0":{"name":"@aigx/cli","version":"1.3.0","keywords":["aigx","ai","agents","context","genome","cli","lint","claude","cursor","copilot","aider","code-generation"],"author":{"name":"Grégory Parisotto","email":"gregory@feex.it"},"license":"MIT","_id":"@aigx/cli@1.3.0","maintainers":[{"name":"lolner95","email":"gregory@feex.it"}],"homepage":"https://github.com/Lolner95/AIGX#readme","bugs":{"url":"https://github.com/Lolner95/AIGX/issues"},"bin":{"aigx":"bin/aigx.mjs"},"dist":{"shasum":"f58d7120aab652bf5a7e52770135c0f192fcee1c","tarball":"https://registry.npmjs.org/@aigx/cli/-/cli-1.3.0.tgz","fileCount":3,"integrity":"sha512-0qvswkZe+4wpjBeDMR8hFCJ7CKxAJhSHqoE368J9lDgDkKYQgpj9BbLOi/yBlHmOPTtpF1I0OfopTNRnSZavuA==","signatures":[{"sig":"MEQCIC9WqwjiwrKkNUOCCQxfcqBb606oFRS5Xwb6HN8EOnowAiAHjzE52r5hdCq2g9r1kL7bFe+A4Zi8tYZxUjaQWi3SXA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37299},"type":"module","engines":{"node":">=18"},"gitHead":"41eff48b25dfeee1db6aa8baf32731833f2bfc76","_npmUser":{"name":"lolner95","email":"gregory@feex.it"},"repository":{"url":"git+https://github.com/Lolner95/AIGX.git","type":"git","directory":"packages/aigx"},"_npmVersion":"11.6.2","description":"The AIGX (AI Genome Exchange) CLI — init, lint, resolve, doctor, format, and conformance-check your codebase's AI-agent genome. Zero dependencies.","directories":{},"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.3.0_1781977561705_0.8676760965293757","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@aigx/cli","version":"1.3.1","description":"The AIGX (AI Genome Exchange) CLI — init, lint, resolve, doctor, format, and conformance-check your codebase's AI-agent genome. Zero dependencies.","type":"module","bin":{"aigx":"bin/aigx.mjs"},"engines":{"node":">=18"},"keywords":["aigx","ai","agents","context","genome","cli","lint","claude","cursor","copilot","aider","code-generation"],"license":"MIT","author":{"name":"Grégory Parisotto","email":"gregory@feex.it"},"repository":{"type":"git","url":"git+https://github.com/Lolner95/AIGX.git","directory":"packages/aigx"},"homepage":"https://github.com/Lolner95/AIGX#readme","bugs":{"url":"https://github.com/Lolner95/AIGX/issues"},"gitHead":"41eff48b25dfeee1db6aa8baf32731833f2bfc76","_id":"@aigx/cli@1.3.1","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-CegE1uflpcFpOnvP6KvqP9KY958we4JApoxWAjG7Yb1Rv+OMXkTBkji8RWIljo00oHpfIVMoGV4JBLmtwUP1fg==","shasum":"b9d7bbd6e29cfe9d68655ee32b5f3bb4a9175d49","tarball":"https://registry.npmjs.org/@aigx/cli/-/cli-1.3.1.tgz","fileCount":3,"unpackedSize":37384,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDEtnoHHTIdeCmCAei//LTK4HUo612QHXJS1EWQpdgZzwIgIZf0Jyk8zMfH0Q+/Ceg25kKcp9hv8SCWJapCvKgB11k="}]},"_npmUser":{"name":"lolner95","email":"gregory@feex.it"},"directories":{},"maintainers":[{"name":"lolner95","email":"gregory@feex.it"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_1.3.1_1781977857296_0.021693190129196793"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-20T17:46:01.420Z","modified":"2026-06-20T17:50:57.581Z","1.3.0":"2026-06-20T17:46:01.835Z","1.3.1":"2026-06-20T17:50:57.444Z"},"bugs":{"url":"https://github.com/Lolner95/AIGX/issues"},"author":{"name":"Grégory Parisotto","email":"gregory@feex.it"},"license":"MIT","homepage":"https://github.com/Lolner95/AIGX#readme","keywords":["aigx","ai","agents","context","genome","cli","lint","claude","cursor","copilot","aider","code-generation"],"repository":{"type":"git","url":"git+https://github.com/Lolner95/AIGX.git","directory":"packages/aigx"},"description":"The AIGX (AI Genome Exchange) CLI — init, lint, resolve, doctor, format, and conformance-check your codebase's AI-agent genome. Zero dependencies.","maintainers":[{"name":"lolner95","email":"gregory@feex.it"}],"readme":"# @aigx/cli\n\nThe command-line tool for **AIGX — AI Genome Exchange**, the benchmark-validated, per-file context format\nfor AI coding agents. The installed command is `aigx`. Zero dependencies, Node 18+.\n\n```bash\nnpm install -g @aigx/cli   # provides the `aigx` command\n# or run without installing:\nnpx @aigx/cli <command>\n```\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| `aigx init [--minimal] [--force]` | Scaffold a `.aigx/` genome in the current directory. |\n| `aigx lint [--root DIR] [--json]` | Validate the genome(s); exits non-zero on errors (CI-ready). |\n| `aigx resolve <path> [--root DIR]` | Print the boundary for one file — role, forbid, gotcha, checks. O(1). |\n| `aigx doctor [--root DIR]` | Environment + genome health check with actionable hints. |\n| `aigx format [--root DIR] [--check]` | Normalize whitespace in `.aigx` files (parity-safe). |\n| `aigx check-conformance [--root DIR]` | Report conformance level (G1–G4, then the recommended practices). |\n\nGlobal: `--root DIR`, `--exclude DIR` (repeatable; also reads `.aigxignore`), `--version`, `--help`.\n\n## What `aigx lint` checks\n\n- Required files exist (`protocol.aigx`, ≥1 concern file, `files.aigx`)\n- Every `<check>` id resolves to a real `<rule id>`\n- Every `<file path>` exists on disk (catches renamed/moved/deleted files)\n- No duplicate rule ids\n- No `<file path>` escapes the repository root\n- (warnings) duplicate entries, high `<forbid>` density, unknown root elements\n\nWire it into CI so a moved file fails the build until its genome entry is fixed — the genome can't silently\nrot.\n\n## Example\n\n```bash\n$ aigx resolve src/features/meetings/bookMeeting.ts\nApplicable genome: .aigx\nRole:   Book a meeting (validate slot + contact)\nForbid: NEVER import @/features/suppliers/internal/*   [CRIT]\nGotcha: get contact_email from the suppliers PUBLIC api, never the internal mapper\nChecks: ARCH-no-deep-imports, DATA-integer-cents, TEST-failing-first\n```\n\n## Nested / monorepo genomes\n\n`aigx` discovers every `.aigx/` under `--root` and treats them as one hierarchical genome (paths resolve\nrelative to `--root`). To exclude independent nested genomes (vendored examples, separate sub-projects),\nlist them in a `.aigxignore` file or pass `--exclude DIR`.\n\n## Related\n\n- `npx create-aigx` — scaffold a genome **plus** all agent integrations (Cursor, Claude Code, Copilot, …)\n- [`@aigx/parser`](https://www.npmjs.com/package/@aigx/parser) — programmatic genome parsing\n- [`@aigx/lint`](https://www.npmjs.com/package/@aigx/lint) — programmatic validation\n\n## Specification\n\nFull normative spec: <https://github.com/Lolner95/AIGX/blob/main/standard/AIGX-1.1.md>\n\n## License\n\nMIT © Grégory Parisotto\n","readmeFilename":"README.md"}