Skip to content

Add pak v1: format spec, core, remote, wasm and CLI - #2

Merged
shawnthehumble merged 1 commit into
mainfrom
feat/pak-v1
Nov 25, 2026
Merged

shawnthehumble merged 1 commit into
mainfrom
feat/pak-v1

Conversation

@noisethanks

Copy link
Copy Markdown
Contributor

Add pak v1: format spec, core library, remote, wasm and CLI

Format

  • docs/spec rev3.md: the format spec (manifest, tags, kinds and profiles, dependencies, installing, build integration, commands, scripts).
  • schema/pak.schema.json: JSON Schema for .pak.json, checked by tests/manifest_schema.rs.

Crates

  • pak-core (crates/core): every format rule (manifest parsing, packing, version resolution, lockfile, install planning, include roots and paths,
    conflict checks, messages). It does no disk, network or clock I/O; crates/core/clippy.toml fails the lint run if it does.
  • pak-remote (crates/remote): GitHub access for github:<owner>/<repo> installs.
  • pak-wasm (crates/wasm): pak-core for browsers.

CLI (src/)

  • Commands: init, install, remove, update, list, outdated, info, why, it (pack), path, verify, check, create, help.
  • Installs from GitHub tags, revision pins, local .pak files and local folders.
  • Bare pak install keeps every version pak.lock pins; --locked fails on a stale lockfile.
  • Install safety: rejects hostile archives, enforces size limits, refuses file names that clash on macOS/Windows or are Windows device names unless
    --allow-fsnames is passed.
  • prepack runs only with the author's approval (a terminal prompt or --allow-scripts).
  • Lockfile and install writes keep the previous state when a write fails.

Tests

  • Unit tests across pak-core and the CLI.
  • tests/stories/: 52 end-to-end user stories with fixtures, run by tests/stories.rs.

Tooling

  • .github/workflows/ci.yml: fmt, clippy (-D warnings), tests on Linux/macOS/Windows, and the wasm32 build.
  • devops/: build, install, tag, version, wasm and wasi scripts.
  • MIT license with REUSE metadata. Rust style guide in agents/rust-style.md.

Not in v1

search, publish, yank, login/logout

Testing

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace: 352 passed, 3 ignored (disk-full tests that need PAK_SMALL_DISK)
  • cargo build -p pak-wasm --target wasm32-unknown-unknown
  • devops/wasi

Add the pak package manager for retro C and assembly development.

- docs/spec rev3.md defines the format; schema/pak.schema.json validates
  .pak.json.
- pak-core holds the format rules (manifest, pack, resolve, lock,
  install plan, include and path rules, messages) and does no I/O.
- pak-remote talks to GitHub for git installs.
- pak-wasm exposes pak-core to browser-based tools.
- The pak binary implements init, install, remove, update, list,
  outdated, info, why, it, path, verify, check and create.
- tests/stories holds 52 end-to-end user stories with fixtures.
- CI runs fmt, clippy, tests and the wasm build on Linux, macOS and
  Windows.
@shawnthehumble
shawnthehumble merged commit 0867fb6 into main Nov 25, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants