Merge main: ntfy removed, first-run messages kept

Resolved docs/install.md, internal/cli/app.go, internal/statusview and
scripts/setup-native.py: no ntfy anywhere (connection, status, installer
constants, troubleshooting ports), keeping the first-run next steps, the
unreachable-server and tool/Docker install hints. README drops the C
compiler (ntfy was its only user). The installer summary's password
wording is now per run (a reinstall in the same process no longer says
"you just chose"), and its test checks the URLs then the next steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 23:54:57 +00:00
337 changed files with 14221 additions and 5709 deletions
-6
View File
@@ -934,12 +934,6 @@ func (a App) Run(ctx context.Context, args []string) error {
}
case "connection":
fmt.Fprintln(a.Out, "Server:", o.url)
for _, n := range r.NotificationEndpoints {
fmt.Fprintf(a.Out, "ntfy: %s · topic %s\n", n.ServerURL, n.Topic)
}
if len(r.NotificationEndpoints) == 0 {
fmt.Fprintln(a.Out, "ntfy: not configured (phone notifications are off)")
}
if note := identityNote(r); note != "" {
fmt.Fprintln(a.Out, "Note:", note)
}
+4 -2
View File
@@ -62,17 +62,19 @@ func TestCLIHelpDoesNotNeedServer(t *testing.T) {
}
func TestCLIStatusAndStatistics(t *testing.T) {
t.Setenv("PIPELINES_NTFY_URL", "")
run, _, _ := setup(t)
output, err := run("status")
if err != nil {
t.Fatal(err)
}
for _, text := range []string{"Pipelines server", "ntfy", "not configured", "Port:"} {
for _, text := range []string{"Pipelines server", "Port:"} {
if !strings.Contains(output, text) {
t.Fatal("missing CLI status", text, output)
}
}
if strings.Contains(output, "ntfy") {
t.Fatal("CLI status still reports ntfy", output)
}
output, err = run("status", "--json")
if err != nil {
t.Fatal(err)
+2 -2
View File
@@ -32,7 +32,7 @@ func TestInstalledDockerDefaultAvoidsUnconfiguredServerAndHonorsOverrides(t *tes
if err := wsjson.Read(ctx, conn, &request); err != nil {
return
}
wsjson.Write(ctx, conn, protocol.Message{Type: protocol.Status, ID: request.ID, Status: &protocol.SystemStatus{Ntfy: protocol.ServiceStatus{Health: health}}})
wsjson.Write(ctx, conn, protocol.Message{Type: protocol.Status, ID: request.ID, Status: &protocol.SystemStatus{Hostname: health}})
}))
t.Cleanup(srv.Close)
return "ws" + strings.TrimPrefix(srv.URL, "http") + "/connect"
@@ -56,7 +56,7 @@ func TestInstalledDockerDefaultAvoidsUnconfiguredServerAndHonorsOverrides(t *tes
t.Fatal(err, stderr.String())
}
var status protocol.SystemStatus
if json.Unmarshal(out.Bytes(), &status) != nil || status.Ntfy.Health != want {
if json.Unmarshal(out.Bytes(), &status) != nil || status.Hostname != want {
t.Fatal("wrong server selected", out.String())
}
}
+3 -3
View File
@@ -48,8 +48,8 @@ var notes = map[string]string{
"repair-session-export": "Read-only native session readback for a settled run visit, using its exact recorded session/backend. Writes a versioned repair file and appends repair evidence, preserving originals and the run outcome. Empty/failed/partial repairs remain warnings; upstream session availability cannot be guaranteed.",
"version": "Identify the local CLI binary without connecting to a server. --version is an alias. Use ping --json to identify the running server separately.",
"ping": "Pong includes the running server's compiled build.version, build.commit and build.dirty (null when unknown). This identifies the server, not the client or runtime workspace. Older servers omit build. The client compares its own build/protocol against the server: a same-protocol build mismatch prints one warning to stderr, a server speaking a newer protocol fails the command, and a response carrying a field this client does not model prints a one-time unrecognized-field notice instead of dropping it silently.",
"connection": "Prints the server endpoint and phone notification endpoints. Like ping, it reports the client/server build relationship and warns or fails rather than silently proceeding against a mismatched server.",
"status": "Reports server, host and ntfy publishing health. The client compares its build/protocol against the server and warns once (or fails on a newer protocol) rather than proceeding silently.",
"connection": "Prints the server endpoint. Like ping, it reports the client/server build relationship and warns or fails rather than silently proceeding against a mismatched server.",
"status": "Reports server health, ports and the server computer's addresses. The client compares its build/protocol against the server and warns once (or fails on a newer protocol) rather than proceeding silently.",
"export": "Without a name, select pipelines with Space and save a ZIP in the current directory. --output writes a portable definition bundle; --all skips selection. One name without --output prints Markdown as before. No runs, credentials or old versions are exported.",
"import": "Select definitions from a ZIP. Identical existing definitions are skipped. For differing names, choose keep existing, keep both under a new name, or use imported as a new version (history retained). --on-conflict supplies an explicit automation policy; --yes only approves final publication. Schedules may activate; no run history is imported.",
"new": "Create an optional template copy or a single-stage starter. Opens the configured default harness; --harness opencode|pi|nvim overrides it. No submission is performed.",
@@ -80,7 +80,7 @@ var serviceHelp = map[string]string{
"skill": "pipelines skill install installs/updates the bundled workflow skill in OpenCode and detected Claude Code and Codex skill roots without changing login/config or user-modified skills. ./install includes this step.",
"service": "Configure per-user OS autostart: pipelines service enable. Runs use the directory you invoke pipelines run from. Use --print to preview, service status to inspect, and service disable before uninstalling. Linux uses systemd; macOS uses launchd. No sudo.",
"serve": "Run the native server in the foreground. Its flags are documented by pipelines serve --help. Installation never starts it automatically.",
"start": "Start the per-user native pipeline server and this installation's Docker ntfy together.",
"start": "Start the per-user native pipeline server and its authenticated web proxy.",
"stop": "Stop both services. Active execution is interrupted; file changes are not rolled back.",
"restart": "Stop, then start both services, retaining definitions, run history, and credentials.",
"doctor": "Check both health endpoints and host OpenCode API discovery; does not execute a model.",
+2 -2
View File
@@ -50,8 +50,8 @@ func TestEmptyListsExplainNextStepOnStderrOnly(t *testing.T) {
t.Fatalf("empty stats: %q", out)
}
out, _ = invoke("--url", url, "connection")
if !strings.Contains(out, "ntfy: not configured") {
t.Fatalf("connection without ntfy: %q", out)
if strings.Contains(strings.ToLower(out), "ntfy") {
t.Fatalf("connection still describes ntfy: %q", out)
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ EXECUTE
chat-adopt <session-id> Adopt an existing OpenCode, Claude Code or Codex chat
draft-delete <draft.md> Delete a selected retained draft and its metadata
connection Server and public phone connection (no secrets)
status Server/ntfy health, ports and server computer IPs
status Server health, ports and server computer IPs
stats All-history usage, pipeline counts and daily activity
ping Check connection and identify the running server build
version Identify this CLI build without connecting (--version)
+4 -4
View File
@@ -5,11 +5,11 @@ import (
"testing"
)
// TestMain isolates the package from an operator's real notification setup:
// these tests run real servers and runs, a developer shell may export the
// installed server's ntfy configuration, and no test may publish to it.
// TestMain isolates the package from the operator's environment: a developer
// shell may export the installed server's web origin, which tests must not
// pick up.
func TestMain(m *testing.M) {
for _, name := range []string{"PIPELINES_NTFY_URL", "PIPELINES_NTFY_PUBLIC_URL", "PIPELINES_NTFY_TOKEN", "PIPELINES_NTFY_TOKEN_FILE", "PIPELINES_WEB_PUBLIC_URL"} {
for _, name := range []string{"PIPELINES_WEB_PUBLIC_URL"} {
os.Unsetenv(name)
}
os.Exit(m.Run())