Skip to content
Open
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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Test bootstrap installers
run: |
bash -n packaging/install.sh
bash packaging/tests/test-install.sh

- name: Install the toolchain
run: |
rustup toolchain install stable --profile minimal --no-self-update
Expand Down Expand Up @@ -52,6 +57,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Run PowerShell installer fixtures
shell: pwsh
run: pwsh -NoProfile -File packaging/tests/test-install.ps1

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c
with:
Expand Down Expand Up @@ -82,6 +91,9 @@ jobs:
cargo install --git https://github.com/eggstack/eggpack --rev "$revision" --locked eggpack-cli
eggpack --version

- name: Check installer release contract
run: python3 scripts/check-installer-contract.py

- name: Check generated release workflow
run: >-
eggpack ci check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ jobs:
if-no-files-found: error
- name: Prepare staging payload
shell: bash
run: "'eggpack' 'ci' '_prepare-stage' '--contract' 'release/eggpack/distribution.toml' '--release-manifest' './eggpack-finalized/release-manifest.json' '--finalized-root' './eggpack-finalized/root' '--github-policy' 'eggpack-runtime/github-draft.json' '--install-policy' 'release/eggpack/install-policy.toml' '--output-dir' './eggpack-staging' '--output-payload' './eggpack-staging-payload.json'"
run: "'eggpack' 'ci' '_prepare-stage' '--contract' 'release/eggpack/distribution.toml' '--release-manifest' './eggpack-finalized/release-manifest.json' '--finalized-root' './eggpack-finalized/root' '--github-policy' 'eggpack-runtime/github-draft.json' '--install-policy' 'release/eggpack/install-policy.toml' '--output-dir' './eggpack-staging' '--output-payload' './eggpack-staging-payload.json' '--installer-presentation' 'release/eggpack/installer-presentation.json' '--source-root' '${{ github.workspace }}'"
- name: Stage GitHub draft release
shell: bash
env:
Expand Down
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,56 @@ need a separate provider API key.

## Install

Install the published CLI from crates.io:
Install the latest prebuilt release on Linux or macOS (Bash):

```sh
curl -fsSL https://github.com/eggstack/eggpass/releases/latest/download/install.sh | bash
```

To pin an exact stable release, use the matching release script and version:

```sh
curl -fsSL https://github.com/eggstack/eggpass/releases/download/vX.Y.Z/install.sh | bash -s -- --version X.Y.Z
```

On Windows, from PowerShell, download and run the latest installer:

```powershell
$installer = Join-Path $env:TEMP "eggpass-install.ps1"
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/eggstack/eggpass/releases/latest/download/install.ps1" -OutFile $installer
& $installer
```

For a pinned Windows release, change both the script URL to
`https://github.com/eggstack/eggpass/releases/download/vX.Y.Z/install.ps1` and
pass `-Version X.Y.Z` to the script. The installers verify the published SHA-256
sidecar and the candidate's exact `eggpass --version` identity before installing.
They default to a per-user directory (`~/.local/bin` on Unix or `%LOCALAPPDATA%\Eggpass`
on Windows); Bash can add a safe PATH block to a Bash/Zsh profile. The Bash
installer needs Bash, `curl`, and `sha256sum` or `shasum`; Windows needs
PowerShell 5.1 or later. Prebuilt installs do not require Rust. If the Windows
install directory is not already on PATH, add `%LOCALAPPDATA%\Eggpass` to PATH,
use the full executable path, or for the current PowerShell session run:

```powershell
$env:Path = "$env:LOCALAPPDATA\Eggpass;$env:Path"
```

A system-wide install requires an explicitly elevated shell (`--system` on Bash
or `-System` in PowerShell); neither installer invokes elevation for you. For
example, an explicit Unix system install is:

```sh
curl -fsSL https://github.com/eggstack/eggpass/releases/latest/download/install.sh | sudo bash -s -- --system
```

Unsupported targets fail rather than installing a binary without a supported
updater mapping. On a supported target, Cargo fallback is attempted only when the exact GitHub release
binary asset returns HTTP 404; it requests that same exact crate version, so a
brief crates.io publication lag requires retrying later. Other transport or
verification failures stop without fallback.

Cargo remains a separate supported install method:

```sh
cargo install eggpass
Expand Down
37 changes: 33 additions & 4 deletions docs/client-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,39 @@ curl http://127.0.0.1:8484/v1/responses \

## Thinking levels and tool calls

For Chat Completions, set `reasoning_effort` to a level listed for that model
in `/v1/models`. ChatGPT requests are translated to the Responses API. Returned
reasoning may be available in `reasoning_content`, depending on the provider
and model.
Discover per-model thinking levels with the authenticated `GET /v1/models`
request shown above. Eggpass keeps the provider's native metadata and adds a
common, additive projection when effort levels are published:

- ChatGPT native fields: `supported_reasoning_levels[].effort` and
`default_reasoning_level`.
- Grok native fields: `capabilities.reasoning_effort` and
`capabilities.default_reasoning_effort`.
- Eggpass's common fields: `reasoning.supported_efforts` and, only when the
provider supplies a default, `reasoning.default_effort`.

Effort labels (including new labels) and their provider order are preserved.
The common object is a sourced projection, not a claim of full OpenRouter
metadata conformance. Eggpass does not infer `default_enabled` or `mandatory`;
those behavioral properties are omitted because the supported provider
catalogue fields do not establish them. The previous
`capabilities.reasoning` alias is retained when no provider field already
occupies that location.

For Chat Completions, send `reasoning_effort` using a level listed for that
model. For example:

```json
{"model":"MODEL_ID_FROM_V1_MODELS","messages":[{"role":"user","content":"Think carefully about this."}],"reasoning_effort":"high"}
```

ChatGPT requests are translated to the Responses API's `reasoning.effort`;
Grok receives the Chat Completions effort value unchanged. Eggpass does not
validate levels locally, so the upstream remains authoritative when a value is
unsupported. Generic OpenAI-compatible clients may ignore custom model
metadata or may not show a thinking-level selector; client UI support varies.
Returned reasoning may be available in `reasoning_content`, depending on the
provider and model.

Tool calls use the Chat Completions format. The client should send the
assistant's tool call back with the tool result and its `tool_call_id`, as
Expand Down
20 changes: 16 additions & 4 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,22 @@ publication.
| Manifest file | `release-manifest.json` |

The release contains these five binary assets, a matching `.sha256` sidecar
for each, and the manifest:
for each, `release-manifest.json`, and four auxiliary installer assets:

- `eggpass-aarch64-apple-darwin`
- `eggpass-aarch64-unknown-linux-gnu`
- `eggpass-x86_64-apple-darwin`
- `eggpass-x86_64-pc-windows-msvc.exe`
- `eggpass-x86_64-unknown-linux-gnu`
- `install.sh` and `install.ps1` (Eggpass product wrappers)
- `install-exact.sh` and `install-exact.ps1` (Eggpack-generated exact bootstraps)

The Windows executable keeps its `.exe` suffix. Asset names are not
versioned so the `releases/latest/download/<name>` URLs remain stable.
versioned, so binary URLs and the latest installer URLs use
`releases/latest/download/<name>`. Pinned installer scripts select the exact
`vX.Y.Z` release; they do not fetch scripts from the repository's `main` branch.
The four installer files are auxiliary staging assets and are not members of
`release-manifest.json` or the five-target distribution contract.

## Prepare and stage a release

Expand Down Expand Up @@ -84,8 +90,14 @@ versioned so the `releases/latest/download/<name>` URLs remain stable.

5. Review the staged draft and download every asset into a clean local
verification directory. Confirm that:
- all five expected binaries, all five checksum sidecars, and
`release-manifest.json` are present;
- all five expected binaries, all five checksum sidecars,
`release-manifest.json`, and all four installer assets (`install.sh`,
`install.ps1`, `install-exact.sh`, and `install-exact.ps1`) are present;
- latest installer URLs select `releases/latest/download`, pinned installs
select the exact `releases/download/vX.Y.Z` tag, and no installer fetches
mutable source from `main`;
- the four installer files are auxiliary assets and do not appear as
artifacts or targets in `release-manifest.json`;
- `schema_version` is `1`, `product_id` is `eggpass`, `release_id` is the
plain package version, and `source_revision` matches the full commit the
tag peels to;
Expand Down
83 changes: 56 additions & 27 deletions docs/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,69 @@ eggpass update --check # show the proposed update without changing anything
restart a running server. Restart manually when you are ready; restarting ends
active streams.

## Verification
## Installers

For the selected release, the updater:
The Bash installer supports Linux and macOS on the published targets:

1. Refuses to replace a binary managed by Cargo. Cargo must update its own
installation.
2. Fetches the release manifest and the matching binary for this system.
3. Checks the download's size and SHA-256 against the manifest.
4. Runs the candidate with `--version` and checks the reported version.
5. Replaces the binary under a lock and rolls back if the operation fails.
```sh
curl -fsSL https://github.com/eggstack/eggpass/releases/latest/download/install.sh | bash
curl -fsSL https://github.com/eggstack/eggpass/releases/download/vX.Y.Z/install.sh | bash -s -- --version X.Y.Z
```

On Windows, download the release script, then run it in PowerShell:

The updater replaces only the binary it can prove it owns. If ownership or a
check cannot be established, it refuses the update.
```powershell
$installer = Join-Path $env:TEMP "eggpass-install.ps1"
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/eggstack/eggpass/releases/latest/download/install.ps1" -OutFile $installer
& $installer
```

For a pinned Windows release, use the matching `vX.Y.Z` script URL and pass
`-Version X.Y.Z`. Bash requires `curl` and `sha256sum` or `shasum`; PowerShell
5.1 or later is supported. Prebuilt installs need no Rust; exact-version Cargo
fallback requires Cargo and retries only the selected version. The default
destinations are `~/.local/bin` and `%LOCALAPPDATA%\Eggpass`. Bash can append a
safe PATH block to a Bash/Zsh profile; PowerShell prints PATH guidance, and the
Windows directory can be added to the user PATH or invoked by its full path.
System installs require explicit elevation (`--system` or `-System`).

## Installation-aware updates

The updater preserves the installation method:

- A binary installed by the Eggpass installer is self-managed. It uses Eggup's
existing release-manifest transaction, including exact size/digest checks,
candidate identity validation, lock ownership, atomic commit, and rollback.
- A Cargo-managed install is updated by Cargo only when `.crates.toml` proves
the root, installed version, package, and default crates.io source. The
updater first resolves an exact Eggpass release from GitHub, then requests
that exact version with `--locked --force --root`; it never directly replaces
a Cargo-owned binary. If the release was just published and crates.io has not
indexed that version yet, retry later; no older or floating version is used.
- On Windows, the running executable cannot be safely replaced by an in-process
Cargo update, so Eggpass prints the exact Cargo command to run after it exits.
- Path, Git, alternate-registry, malformed, or unrecognized Cargo sources are
not converted to crates.io installs. They remain manual-only, and `--check`
does not mutate any installation.

If ownership or source cannot be established, the updater refuses mutation.
For a successful Cargo update it re-reads Cargo's record and runs the installed
`eggpass --version`; success is reported only when both identify the requested
release.

## Integrity limit

The SHA-256 check detects corruption or a mismatch with the manifest. It does
not prove who published the manifest or binary. Releases are not signed by this
update process.

## Cargo installations

If you installed with Cargo, the updater refuses to replace that binary and
prints a command with `--locked --force --root` set to the detected Cargo
installation. Run that command unchanged so Cargo updates the correct
installation. For a default crates.io installation, the equivalent is:
## Cargo installation sources

```sh
cargo install eggpass --locked --force
```
Only a positively identified default crates.io install is eligible for automatic
Cargo delegation. Cargo's package record remains authoritative for its root and
source. If the install came from a local path, Git, an alternate registry, or
metadata that Eggpass cannot interpret, update it using the original Cargo
source options; Eggpass will not silently switch it to crates.io.

To reinstall from the current repository checkout instead:

Expand All @@ -49,11 +82,7 @@ cargo install --path . --locked --force

## Exact versions and rollback

An exact version can install an older release, so rollback uses the same
command:

```sh
eggpass update 0.1.0
```

The updater does not delete or overwrite published releases.
An exact version selects one published release, but `eggpass update` refuses
to downgrade a running build. To install an older stable release, use that
release's pinned installer URL and version instead. The updater does not delete
or overwrite published releases.
Loading
Loading