Install Pipelines natively by default on macOS and Linux
Add scripts/setup-native.py and make ./install (and --native) build the server, the CLI and ntfy from source into ~/.local/share/pipelines, detect an existing host OpenCode and Pi instead of installing them, install the packaged authoring skill, migrate an existing Docker database and ntfy auth store, save the host client default and start both services. ./install --docker keeps the previous Docker server + ntfy installation unchanged. ntfy is compiled from its pinned Go module on every host because upstream publishes no macOS server binary (its darwin asset is built with -tags noserver); its cgo SQLite driver is why a C compiler is now required natively. The ntfy credential bootstrap and the client default writer are shared by both installers, installation.Load resolves symlinked prefixes, the Docker migration copies the SQLite write-ahead log so the newest definitions and runs are not lost, and the account subcommands read the generated configuration through NTFY_CONFIG_FILE. Verified on macOS: 115 Python tests, go build/vet/test, and scratch installs that migrate 9 pipelines and 31 runs, build ntfy v2.30.0 and start both services healthy on spare ports before stopping them.
This commit is contained in:
@@ -63,10 +63,13 @@ stay authoritative and a dirty source still rebuilds. If discovery, digest
|
||||
resolution or completeness cannot be established they stop with an error (keeping
|
||||
the last verified Dockerfile fallback pins); they never guess, fall back to a host
|
||||
runtime or install a stale pin.
|
||||
Without Docker setup, these commands stop and require `./install`. Container/host
|
||||
credentials and accounts remain independent and are reused on reinstall/reconfigure.
|
||||
Docker is the only supported runtime installation: run `./install`, with no mode flag.
|
||||
Fresh setup accepts `./install --harness pi` to skip OpenCode
|
||||
Without a Docker installation, `./install --opencode`/`--pi` stop and require an
|
||||
existing Docker setup; the native installation reuses the host OpenCode
|
||||
configuration. Container and host credentials and accounts remain independent and
|
||||
are reused on reinstall/reconfigure. `./install` installs natively by default
|
||||
(`--native` is equivalent); explicit `./install --docker` selects the Docker
|
||||
server + ntfy installation.
|
||||
Fresh setup accepts `./install --docker --harness pi` to skip OpenCode
|
||||
login. Existing setup can configure either harness independently. Pi setup does
|
||||
not run a generation check; `provider-check --harness pi --model PROVIDER/MODEL`
|
||||
is a separate confirmed, potentially chargeable check.
|
||||
|
||||
@@ -102,8 +102,10 @@ raw credential/session databases or publish private inspect output as diagnostic
|
||||
In a source checkout, `python3 scripts/smoke-first-install.py` checks a disposable
|
||||
source-built test binaries, draft/publication/transfer and restart persistence without
|
||||
inference, notifications or deployment. It is not a live-provider or phone test.
|
||||
That is a developer test fixture, not a native installation option. End-user
|
||||
installation is Docker-only through `./install`; no `--docker` flag is needed.
|
||||
That is a developer test fixture, not the native installer. End-user installation
|
||||
runs natively through `./install` by default (`scripts/setup-native.py`, with
|
||||
`--native` equivalent); the Docker server + ntfy installation is explicit with
|
||||
`./install --docker`.
|
||||
|
||||
In the TUI, Home advertises `/` search and `:` commands. Run Tab switches only
|
||||
Details ↔ Graph. `n/p` select recorded visits, including repeated stages; `d`
|
||||
|
||||
@@ -29,6 +29,12 @@ func Load(executable string) (*Config, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// The native installer and scripts/manage.py record the symlink-resolved
|
||||
// prefix, so resolve the same way here instead of rejecting a symlinked
|
||||
// HOME or prefix as "invalid".
|
||||
if resolved, err := filepath.EvalSymlinks(prefix); err == nil {
|
||||
prefix = resolved
|
||||
}
|
||||
data, err := os.ReadFile(filepath.Join(prefix, "pipelines-install.json"))
|
||||
if os.IsNotExist(err) {
|
||||
return nil, nil
|
||||
|
||||
Reference in New Issue
Block a user