Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "omg"
version = "0.1.232"
version = "0.2.0"
edition = "2024"
rust-version = "1.95.0"
description = "The Fastest Unified Package Manager for Arch Linux + All Language Runtimes"
Expand Down
42 changes: 30 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ only in a separate report.
| Boundary | OMG behavior |
| :--- | :--- |
| **OMG releases** | The installer verifies the release digest and GitHub build attestation before copying binaries. Self-update replaces `omg` and `omgd` from the same verified archive. |
| **Runtime downloads** | Each provider's available checksum or signature policy is applied before extraction. Staging is bounded, path-safe, and published only after validation. |
| **Runtime downloads** | Each provider's available checksum or signature policy is applied before extraction. Staging uses bounded deadlines, async subprocesses, and symlink-safe extraction, and publishes only after validation. |
| **Developer tools** | npm, Cargo, Go and Python tools review exact resolved registry versions before installation. Frozen artifacts retain their integrity checks; npm scripts require separate permission, Python accepts wheels, and Go disables automatic toolchain downloads and CGO. |
| **Install-time risk** | Known vulnerabilities show advisory links and require an exact foreground-terminal acceptance. Missing coverage is disclosed as Unknown and also requires acceptance; generic `--yes` cannot acknowledge either risk. |
| **Install-time risk** | Known vulnerabilities, malware packages, and zero-day / CISA KEV findings are screened through the OMG Advisories engine (`POST /v2/packages/assess/local`, with OSV fallback where needed) before installation across Arch, Debian/Ubuntu (including simulated APT transitive dependencies), Fedora, Homebrew, developer tools, and managed runtimes. Findings show advisory links and require an exact foreground-terminal acceptance. Missing coverage is disclosed as Unknown and also requires acceptance; generic `--yes` cannot acknowledge either risk. |
| **AUR source** | Recipes and source declarations are reviewed before execution. Builds use Bubblewrap with an isolated home, a cleared environment, and no network by default. |
| **AUR output** | Archive paths, links, metadata, hooks, capabilities, and setuid/setgid files are inspected. High-risk output requires explicit approval bound to the inspected archive. |
| **Vulnerability evidence** | Direct and daemon-backed scans share the same inventory and scoring code. OMG preserves published CVSS or advisory severity and does not invent a numeric score when upstream provides none. |
Expand Down Expand Up @@ -138,12 +138,12 @@ and uninstalling.

| Platform | Package path | Release status |
| :--- | :--- | :--- |
| Arch Linux x86_64 | ALPM plus first-class AUR pipeline | Supported; broadest package-security coverage |
| Debian 12 / Ubuntu 24.04 x86_64 | APT 6 database | Supported by published v0.1.224 release binaries |
| Debian 13 / Ubuntu 26.04 x86_64 | APT 7 database | Published v0.1.224 Trixie archive; QEMU guest lifecycle pending |
| Fedora x86_64 | Direct RPM state plus DNF repository operations | Experimental |
| Apple silicon macOS | Policy-gated Homebrew integration | Supported on ARM64 |
| Windows | A supported Linux distribution in WSL | No native Windows build |
| Arch Linux x86_64 | ALPM plus first-class AUR pipeline | Beta (`v0.2.0`); broadest package-security coverage |
| Debian 12 / Ubuntu 24.04 x86_64 | APT 6 database plus simulated APT transaction review | Beta (`v0.2.0`) |
| Debian 13 / Ubuntu 26.04 x86_64 | APT 7 (`debian-trixie`) database plus simulated APT transaction review | Beta (`v0.2.0`); QEMU guest lifecycle continues expanding |
| Fedora x86_64 | Direct RPM state plus DNF repository operations | Beta (`v0.2.0`) |
| Apple silicon macOS | Policy-gated Homebrew integration with install-time advisory review | Beta (`v0.2.0`) on ARM64 |
| Windows | A supported Linux distribution in WSL2 | No native Windows build |

Published releases do not currently target Intel macOS or Linux ARM64. Backend
availability also does not imply identical policy, audit, or rollback coverage;
Expand Down Expand Up @@ -175,13 +175,29 @@ omg history

Useful next reads:

- [Getting started](docs/getting-started.md) — a guided first session.
- [Quickstart](docs/quickstart.md) — runtimes and tasks in an existing project.
**Entry-level guides (start here if you are new to OMG or the terminal):**

- [Getting started](docs/getting-started.md) — a guided first session that assumes no prior terminal experience.
- [Quickstart](docs/quickstart.md) — runtimes and tasks in an existing project without changing system packages.
- [Cheat sheet](docs/cheatsheet.md) — everyday commands on one page.
- [Glossary](docs/glossary.md) — plain-language definitions of technical terms used in OMG docs.

**Expert-level reference (internals, security boundaries, and operations):**

- [Under the hood](docs/under-the-hood.md) — backends, caches, IPC, AUR gates, and the audit chain.
- [Security model](docs/security.md) — advisory verdicts, zero-day/KEV/malware gates, trust boundaries, and policy modes.
- [Architecture](docs/architecture.md) — process boundaries, daemon IPC, and storage layout.
- [CLI reference](docs/cli.md) — the complete command surface.
- [Release operations](docs/release-operations.md) — build provenance, R2 publishing, and rollback.
- [Troubleshooting](docs/troubleshooting.md) — safe diagnosis and recovery.

**AI & machine-readable documentation:**

- [Repository `llms.txt`](llms.txt) — concise structured index of this repository for coding agents and LLMs.
- [Public `llms.txt`](https://getomg.xyz/llms.txt) and [`llms-full.txt`](https://getomg.xyz/llms-full.txt) — structured index and complete plain-text handbook for AI ingestion.
- [Documentation manifest](https://getomg.xyz/docs/manifest.json) and [JSON search](https://getomg.xyz/docs/search.json?q=security) — section-level Markdown links and metadata.
- [Documentation MCP server](https://getomg.xyz/mcp) — Streamable HTTP MCP endpoint for searching and reading OMG docs directly from AI assistants.

## Tested like a system tool

The release gate checks more than parser acceptance. It builds backend-specific
Expand All @@ -198,8 +214,10 @@ actually exercised. See [QEMU evidence](docs/qemu-local.md) and

## Release status

OMG is approaching beta. The latest published release predates beta, and command
surfaces, configuration keys, and on-disk formats may change. Keep the native
OMG is in **public beta** (`v0.2.0`). Core package, runtime, developer-tool, and
install-time security workflows are live across Arch, Debian, Ubuntu, Fedora,
Apple Silicon macOS, and WSL2, while command surfaces, configuration keys, and
on-disk formats may still evolve as beta feedback arrives. Keep your native
package tool available as a recovery path. See [security](docs/security.md) and
[release readiness](docs/release-readiness.md) for current guarantees and limits.

Expand Down
11 changes: 9 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,23 @@ using it on a new system.

**New to the terminal?** Start with [Getting started](./getting-started.md). It explains the words and shows what you should see after each step. Look up anything unfamiliar in [the glossary](./glossary.md).

**OMG is approaching beta.** Its makers still change how it behaves. Keep your native package tools available, and use a machine you can reinstall while you try out package changes.
**OMG is in public beta (`v0.2.0`).** Command surfaces, configuration keys, and on-disk formats may still evolve as beta feedback arrives. Keep your native package tools available, and use a machine you can reinstall while you try out package changes.

## Start here
## Start here (entry-level)

1. [Getting started](./getting-started.md) — a first walkthrough that assumes nothing.
2. [Installation](./installation.md) — pick the right download and install OMG.
3. [Quickstart](./quickstart.md) — choose a runtime and run a task in a project you already have. It does not change system packages.
4. [Cheat sheet](./cheatsheet.md) — the everyday commands on one page.
5. [FAQ](./faq.md) — short, plain answers to common questions.

## For AI assistants and automated tools

- [Repository `llms.txt`](../llms.txt) — concise structured index of this repository.
- [Public `llms.txt`](https://getomg.xyz/llms.txt) and [`llms-full.txt`](https://getomg.xyz/llms-full.txt) — structured index and complete plain-text handbook.
- [Documentation manifest](https://getomg.xyz/docs/manifest.json) and [JSON search](https://getomg.xyz/docs/search.json?q=security) — machine-readable section links.
- [Documentation MCP server](https://getomg.xyz/mcp) — Streamable HTTP MCP endpoint for searching and reading OMG docs directly.

## Find the right guide

| You want to... | Read |
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ into your home folder.

**New to the terminal?** Read [Getting started](./getting-started.md) first. It explains the words on this page and shows you how to open a terminal. [The glossary](./glossary.md) explains any other term you meet.

> **Warning:** OMG is approaching beta, so its makers still change how it behaves. Use a machine you can reinstall (or a virtual machine) when you change system packages, and keep your native package tool (`pacman`, `apt`, `dnf`, or Homebrew) available while you try things.
> **Warning:** OMG is in public beta (`v0.2.0`), so command surfaces and configuration keys may still evolve. Use a machine you can reinstall (or a virtual machine) when you change system packages, and keep your native package tool (`pacman`, `apt`, `dnf`, or Homebrew) available while you try things.

## Which download do I need?

Expand Down
2 changes: 1 addition & 1 deletion docs/runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ An incremental Rust component or target addition must match the installed toolch

## Integrity and storage

Provider verification differs. Native archive managers use their supported published checksum or release-digest paths. Pi installation uses the shared managed npm dependency, advisory and signature checks with lifecycle scripts disabled. It requires an admitted OMG-managed Node installation. Do not bypass a failed download or checksum check to make an installation succeed.
Provider verification differs. Native archive managers use their supported published checksum or release-digest paths. Archive downloads and extraction run in bounded temporary staging directories with explicit network/extraction deadlines, async subprocess execution, and symlink-safe path checks before publishing the final version directory. Pi installation uses the shared managed npm dependency, advisory and signature checks with lifecycle scripts disabled. It requires an admitted OMG-managed Node installation. Do not bypass a failed download or checksum check to make an installation succeed.

New Node.js downloads authenticate `SHASUMS256.txt.asc` with OMG's bundled,
fingerprint-pinned active release certificates before selecting the exact archive
Expand Down
16 changes: 14 additions & 2 deletions docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,23 @@ The default scan reports findings without failing solely because it found them.

## Install-time vulnerability review

In v0.1.225, OMG checks proposed package versions and managed runtimes before installation or activation. Managed npm, Cargo, Go and Python tools include their resolved public-registry dependencies. Native transaction and provider coverage varies; Homebrew, unresolved sources and incomplete native mappings remain Unknown.
OMG checks proposed package versions, developer tools, and managed runtimes before installation or activation. Managed npm, Cargo, Go, and Python tools include their resolved public-registry dependencies.

For package and ecosystem screening, OMG queries the hosted OMG Advisories batch endpoint (`POST https://advisories.latham.cloud/v2/packages/assess/local`, up to 32 exact `{ ecosystem, name, version }` coordinates per batch, with `Cache-Control: no-cache` on admission checks) and falls back to OSV where needed. Each assessed coordinate receives a machine-readable `policy_verdict` enriched with documented zero-day exploitation evidence (`in_zero_day`), CISA KEV (`in_kev`), EUVD (`in_euvd`), and EPSS (`epss`):

| Verdict | Meaning | OMG install behavior |
| --- | --- | --- |
| `reject_malware` | Confirmed unbounded malware package | Refused in unattended mode; requires explicit risk review |
| `reject_exploited` | Confirmed documented zero-day or CISA KEV vulnerability | Refused in unattended mode; requires explicit risk review |
| `warn_vulnerable` | Matched vulnerability below a fixed version | Prompts with advisory IDs and links for explicit `accept <review-id>` |
| `warn_partial` | Incomplete version list or unresolved multi-branch range | Disclosed as Unknown/partial coverage; never silently treated as safe |
| `allow` | No matching advisory in the current index | Permitted if source, signature, and license policies also pass |

On Debian and Ubuntu, OMG simulates the APT transaction (`apt-get -s install`) before installation so both requested packages and their resolved transitive dependencies enter `PackageReview` (falling back to requested packages with an explicit coverage gap if simulation is unavailable). On macOS, Homebrew installs classify packages as `DistributionPackage` and pass through `PackageReview` with OSV fallback. Native transaction and provider coverage still varies; unresolved sources and incomplete native mappings remain Unknown.

When a review finds a disclosed vulnerability, OMG displays the affected version and advisory links. To proceed, the terminal owner must type the exact `accept <review-id>` response shown by the prompt. Missing coverage also requires explicit risk acceptance. Blank input, generic `--yes` and unattended execution do not accept either risk. Consent is checked again against the reviewed versions, artifacts, policy and caller before installation; it cannot bypass signature or integrity failures.

This covers operations performed through OMG. Public advisory feeds cannot establish the absence of undisclosed zero-days. EPSS scores help prioritize known CVEs; a low score does not prove safety. See the [v0.1.225 release notes](releases/v0.1.225.md) for backend-specific limits and upgrade requirements.
This covers operations performed through OMG. Public advisory feeds cannot establish the absence of undisclosed zero-days. EPSS scores help prioritize known CVEs; a low score does not prove safety. See the [v0.1.225 release notes](releases/v0.1.225.md) for historical backend-specific limits and upgrade requirements.

## Security grades

Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions llms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# OMG CLI (`omg-cli/omg`)

> One Rust CLI for system packages, 13 language runtimes, developer tools, project tasks, and install-time vulnerability evidence on Arch, Debian, Ubuntu, Fedora, Apple Silicon macOS, and WSL2. Native Windows is not supported.

Release channel: Public Beta (`v0.2.0`). Keep your native package manager (`pacman`, `apt`, `dnf`, or Homebrew) available as a recovery path.

## Quick facts for AI assistants

- **Binary pair:** `omg` (CLI) and `omgd` (optional local Unix-IPC daemon for warm caches and background refreshes).
- **Supported OS backends:** Arch Linux (`libalpm` + sandboxed Bubblewrap AUR pipeline), Debian 12/13 & Ubuntu 24.04/26.04 (native APT 6 / APT 7 + `apt-get -s` transitive simulation), Fedora (RPM DB + DNF), Apple Silicon macOS (policy-gated Homebrew). Windows is supported only inside WSL2.
- **Managed runtimes (13 native + Pi):** Node.js, Python, Go, Rust, Ruby, Java, Bun, Deno, Zig, .NET, Erlang, PHP, Swift, plus the Pi coding harness via managed npm.
- **Install-time security:** Screens exact package and runtime coordinates against `POST https://advisories.latham.cloud/v2/packages/assess/local` (with OSV fallback where needed), returning deterministic `policy_verdict` values (`reject_malware`, `reject_exploited`, `warn_vulnerable`, `warn_partial`, `allow`) enriched with zero-day exploitation evidence, CISA KEV, EUVD, and EPSS. Known risks and unknown coverage require explicit foreground-terminal acceptance (`accept <review-id>`); `--yes` never bypasses security review.
- **Source of truth for CLI flags:** `src/cli/args.rs` or `omg --all-commands --help`.

## Entry-level documentation

- [Documentation home](docs/index.md)
- [Getting started](docs/getting-started.md)
- [Installation](docs/installation.md)
- [Quickstart](docs/quickstart.md)
- [Cheat sheet](docs/cheatsheet.md)
- [Glossary](docs/glossary.md)
- [FAQ](docs/faq.md)

## Expert-level documentation

- [CLI reference](docs/cli.md)
- [Security model and evidence limits](docs/security.md)
- [Runtime management](docs/runtimes.md)
- [Packages](docs/packages.md) and [AUR policy](docs/aur.md)
- [Configuration and policy](docs/configuration.md)
- [Under the hood](docs/under-the-hood.md) and [Architecture](docs/architecture.md)
- [Daemon](docs/daemon.md), [IPC](docs/ipc.md), and [Cache](docs/cache.md)
- [Workflows](docs/workflows.md) and [Environment portability](docs/environment-portability.md)
- [Release operations](docs/release-operations.md) and [Release readiness](docs/release-readiness.md)
- [Troubleshooting](docs/troubleshooting.md)

## Hosted machine-readable endpoints (`getomg.xyz`)

- [Public `llms.txt`](https://getomg.xyz/llms.txt)
- [Complete plain-text handbook (`llms-full.txt`)](https://getomg.xyz/llms-full.txt)
- [Documentation manifest JSON](https://getomg.xyz/docs/manifest.json)
- [Documentation search JSON](https://getomg.xyz/docs/search.json?q=security)
- [Documentation MCP server (Streamable HTTP)](https://getomg.xyz/mcp)
2 changes: 1 addition & 1 deletion tests/e2e_system_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ fn test_version_flag() {

let output = result.stdout;
assert!(
output.contains("omg") && output.contains("0.1"),
output.contains("omg") && output.contains(env!("CARGO_PKG_VERSION")),
"Should show version"
);
}
Expand Down
Loading