@gjermundgaraba/upup 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/{Tui-Ri-yz-Sx.mjs → Tui-gzEAPkJV.mjs} +1 -0
- package/dist/main.mjs +2109 -256
- package/native/dist/upup-sparkle.json +1 -1
- package/native/dist/upup-sparkle.zip +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,9 @@ upup system # tools installed on this machine
|
|
|
18
18
|
upup project [dir] # dependencies of the project containing dir
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
**System** lists operating-system updates from macOS Software Update and apt, macOS apps that update themselves,
|
|
21
|
+
**System** lists operating-system updates from macOS Software Update and apt, macOS apps that update themselves, tools from Homebrew (formulae and casks), npm, pnpm and Vite+ globals, Vite+ itself and its environment defaults, `cargo install`, `go install` and `uv tool`, and the inputs of your nix-darwin and Home Manager flakes. Only the package managers on your `PATH` are asked.
|
|
22
|
+
|
|
23
|
+
The nix-darwin flake is the one darwin-rebuild uses, `/etc/nix-darwin/flake.nix` and its `darwinConfigurations.<LocalHostName>`; the Home Manager flake is home-manager's, `~/.config/home-manager/flake.nix` (under `$XDG_CONFIG_HOME` when set) and its `homeConfigurations."$USER"`, or `"$USER@<host>"` where that exists. A Home Manager configuration inside nix-darwin updates with nix-darwin's flake. Each input of the flake itself that follows a branch of a GitHub, GitLab or SourceHut repository, or of any git repository, is offered the branch's newest commit, read with `git ls-remote`; an input pinned to a commit, a local path, a tarball, a FlakeHub release or one that goes through the flake registry is listed without an offer. Updating locks each selected input at exactly the listed commit with `nix flake lock --override-input`, so it goes on following its branch; the inputs that follow it move with it, and if anything else moves upup puts flake.lock back. upup then builds the configuration once, as you, and activates it: Home Manager as you, nix-darwin as root through sudo, as darwin-rebuild does. If the build fails, flake.lock is put back; if activation fails, upup activates the configuration that was running again and puts flake.lock back. upup won't switch a configuration that has changes that aren't active yet, since switching would activate them unaudited; switch to it yourself first. A difference that is only the configuration's own commit, as nix-darwin's template stamps into `system.configurationRevision`, doesn't count. `/etc/nix-darwin` must be writable by you, as nix-darwin's README sets it up. NixOS isn't supported yet.
|
|
22
24
|
|
|
23
25
|
Vite+ environment rows show configured global defaults for Node.js, npm, pnpm, Yarn and Bun. Exact Node.js defaults update within their current major. Yarn Classic stays on Yarn 1, since modern Yarn is a different published package; migrating to it is left to you. Other package managers update to their latest stable release. Floating defaults such as `latest` and `lts` show their configured selector and stay under Vite+’s automatic version selection. Updating installs the selected version and changes that tool’s default, preserving project pins and cached versions. Each default is checked immediately before updating, checked again after downloading and before switching, and verified afterward.
|
|
24
26
|
|
|
@@ -32,6 +34,8 @@ It also lists the GitHub Actions and reusable workflows that the repository's wo
|
|
|
32
34
|
|
|
33
35
|
It also lists the Node.js versions pinned exactly, once per version however many files pin it: `node-version` in the `actions/setup-node` steps of every workflow and action upup reads for GitHub Actions, and the first line that isn't blank or a comment in the `.node-version` and `.nvmrc` files of the directory, the folders below it and those between it and the repository's top that git tracks or doesn't ignore. An update moves to the newest release on the same major line from nodejs.org, keeping each file's `v` or quotes, since moving to another major line is a migration rather than an update. `22` and `lts/*` already follow their line and aren't listed; matrix entries, expressions and Dockerfile `FROM node:` images aren't read yet. Like OS updates, these aren't audited.
|
|
34
36
|
|
|
37
|
+
It also lists the inputs of each Nix flake's `flake.lock` in the directory or below it, offered and locked as the system list's are; updating edits only `flake.lock`.
|
|
38
|
+
|
|
35
39
|
The package manager a Node project declares, in `packageManager` (`pnpm@12.5.1`) or `devEngines.packageManager`, is listed too, each field as a row of its own, and moves like a dependency. Its current version is the one pnpm locked, or else the declared one; a range with no locked version isn't listed. Corepack's sha512 hash moves with the version, worked out from the registry's integrity for the release; a pin with another kind of hash is listed without an offer. Neither field can be removed from upup.
|
|
36
40
|
|
|
37
41
|
Current versions come from the package manager or lockfile. An offered update is the newest stable release; in a Node project, no newer than the one the registry tags `latest` and older than the project's minimum release age. When the registry can't be reached, the project's dependencies are listed without offers and one notice says why. Updating a declared range keeps its style (`^1.2.0` becomes `^1.4.0`), and the lockfile is reconciled and checked afterwards. Removing a project dependency edits the manifest and reconciles the same way. A file upup edits through a symlink, as in a dotfiles repository, is changed where the link points, so the link stays.
|
|
@@ -70,7 +74,7 @@ macOS may stop upup from quitting an app or replacing one until the app upup run
|
|
|
70
74
|
|
|
71
75
|
## Audits
|
|
72
76
|
|
|
73
|
-
An Audit asks a model whether an offered update is safe to take. upup downloads both versions from the package's registry (for npm, also each direct dependency whose declared version changed), verifies their checksums, extracts and diffs them, links each version to the source commit it was built from where it can (Sigstore-verified npm provenance, a matching GitHub release asset, or the commit the package declares, labelled by strength) and diffs that source too, and lets the model read that workspace through read, grep and list tools confined to it. A GitHub Action has no published package: upup fetches its repository with git at the commits the two tags point at and diffs those, committed bundles included. Tags can move, so an update is listed with the commit its tag points at: the Audit is of that commit and a pin is moved to exactly it, and once the tag points elsewhere upup won't audit it or move a pin to it until you refresh. A workflow that names a tag runs whatever the tag points at later. Changes in a file's mode, such as a script made executable, and the commits a submodule moved between are listed beside the diff; a submodule's own files are not fetched. An action whose repository is private, or which only the repository's own server has, is not audited. The model has no shell, network or write access. It answers with a verdict (`ok`, `caution`, `danger` or `no-verdict`), a rationale and findings.
|
|
77
|
+
An Audit asks a model whether an offered update is safe to take. upup downloads both versions from the package's registry (for npm, also each direct dependency whose declared version changed), verifies their checksums, extracts and diffs them, links each version to the source commit it was built from where it can (Sigstore-verified npm provenance, a matching GitHub release asset, or the commit the package declares, labelled by strength) and diffs that source too, and lets the model read that workspace through read, grep and list tools confined to it. A GitHub Action has no published package: upup fetches its repository with git at the commits the two tags point at and diffs those, committed bundles included. Tags can move, so an update is listed with the commit its tag points at: the Audit is of that commit and a pin is moved to exactly it, and once the tag points elsewhere upup won't audit it or move a pin to it until you refresh. A workflow that names a tag runs whatever the tag points at later. Changes in a file's mode, such as a script made executable, and the commits a submodule moved between are listed beside the diff; a submodule's own files are not fetched. An action whose repository is private, or which only the repository's own server has, is not audited. A flake input has no published package either. upup evaluates the configuration (for a project, its packages and development shells for this platform) before and after locking the input at the listed commit, writing nothing and building nothing: Nix runs with `--max-jobs 0`, and for a user Nix trusts, with no builders; where Nix's daemon has remote builders it won't let you turn off, also without import-from-derivation and without fetching sources. It compares the two closures by package: what only rebuilt because something it depends on changed, each change made the same way in many packages (listed once, in full), and the recipes that changed, among them the text of generated files such as activation scripts, `/etc` files and launchd plists; the local files (patches, scripts) new to the closure; the files that changed in each input the update moves (where over a thousand changed, as in most nixpkgs updates, those under a changed package's name); and the upstream sources of the packages your configuration names, fetched from your binary caches and never built, up to 256 MiB each. The Audit covers recipes and sources; the binaries Nix installs come from the caches your Nix trusts by their keys. A Report applies while the flake's files stay as they were, those of the git repository it is in included, so any edit there, even one that changes nothing Nix builds, needs a new one. An Audit of a nix-darwin or Home Manager input sends your own configuration's recipes, such as its `/etc` files and activation scripts, and the flake's path to the model's provider; a project's sends the project's. The model has no shell, network or write access. It answers with a verdict (`ok`, `caution`, `danger` or `no-verdict`), a rationale and findings.
|
|
74
78
|
|
|
75
79
|
Choose the model and thinking level in Settings (`,`) from every model [pi-ai](https://github.com/earendil-works/pi) knows. upup shares pi's credentials file, `~/.pi/agent/auth.json` (or `$PI_CODING_AGENT_DIR/auth.json`), so a provider you signed in to with pi works here, and keys or logins added in upup are visible to pi. With **audit first** on, `u` audits the selection and applies only the updates whose audit found `ok`. An update already audited as `caution`, `danger` or `no verdict` is marked in the confirmation instead, and confirming installs it anyway. Agents over MCP can still apply only `ok` updates, apart from OS and app updates and pinned Node.js versions.
|
|
76
80
|
|
|
@@ -84,7 +88,7 @@ Audits run four at a time, are stored under your user cache directory (`$XDG_CAC
|
|
|
84
88
|
claude mcp add upup -- upup mcp
|
|
85
89
|
```
|
|
86
90
|
|
|
87
|
-
Agents can't choose the audit model or add credentials; set those in the TUI. With audit first on, agents can apply only updates whose Audit found `ok`, except OS and app updates and pinned Node.js versions, which can't be audited and install as they do in the TUI. Agents can install OS updates,
|
|
91
|
+
Agents can't choose the audit model or add credentials; set those in the TUI. With audit first on, agents can apply only updates whose Audit found `ok`, except OS and app updates and pinned Node.js versions, which can't be audited and install as they do in the TUI. Agents can install OS updates, app updates that need root and nix-darwin's inputs only where sudo needs no password, since only the TUI can ask for one. An app that is open when an agent updates it fails its update instead of being quit.
|
|
88
92
|
|
|
89
93
|
## Keys
|
|
90
94
|
|
|
@@ -1285,6 +1285,7 @@ const providerLabels = /* @__PURE__ */ new Map([
|
|
|
1285
1285
|
["softwareupdate", "Software Update"],
|
|
1286
1286
|
["apps", "Apps"],
|
|
1287
1287
|
["github-actions", "GitHub Actions"],
|
|
1288
|
+
["home-manager", "Home Manager"],
|
|
1288
1289
|
["node-not-listed", "Node"],
|
|
1289
1290
|
["node-pins", "Node.js"]
|
|
1290
1291
|
]);
|