Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c94c964
List valid animations and accept short animation names, preferring la…
vladimir-popov Nov 19, 2026
7adf56a
Forward activity descriptions through the start API
vladimir-popov Nov 19, 2026
a5e2506
Clear timeout errors when resetting disconnect count
vladimir-popov Nov 19, 2026
c97d386
Add an interface for acknowledging timeout errors
vladimir-popov Nov 19, 2026
85a3672
Implement random animation selection
vladimir-popov Nov 19, 2026
b881b7e
Formatting
vladimir-popov Nov 19, 2026
592581f
Add per-activity keepalive and timeout settings to API
vladimir-popov Nov 19, 2026
722fcbb
Show animations in the main menu bar status item
vladimir-popov Nov 19, 2026
5055e41
Add CLI commands to manage the background server
vladimir-popov Nov 19, 2026
d49ea4f
Improve the timeout errors list
vladimir-popov Nov 19, 2026
3e63957
Show concurrent animations side by side
vladimir-popov Nov 19, 2026
3907b9b
Document random animation selection
vladimir-popov Nov 19, 2026
3781f15
Add Bash and Zsh shell completion
vladimir-popov Nov 19, 2026
5f6e663
Fix server status and restart
vladimir-popov Nov 19, 2026
0b697b5
Improve CLI diagnostics and executable resolution
vladimir-popov Nov 19, 2026
93d7e9d
List active animations in status menus
vladimir-popov Nov 19, 2026
6cfc6a8
Hide the View Errors menu item when no errors are pending
vladimir-popov Nov 19, 2026
9c54329
Document the server protocol and refine menu presentation
vladimir-popov Nov 20, 2026
8bbd264
Scale animation frames to 22 pt tall
vladimir-popov Nov 20, 2026
05d5e6e
Make activity timeout server-controlled
vladimir-popov Nov 20, 2026
02c955d
Add a visual configuration editor
vladimir-popov Nov 20, 2026
e3a2a5e
Generalize animation sprite frame dimensions
vladimir-popov Nov 20, 2026
7546780
Resolve animation names and file paths
vladimir-popov Nov 20, 2026
f3e6f71
List animations by short name
vladimir-popov Nov 20, 2026
fb55279
Revise activity keepalive timeout behavior
vladimir-popov Nov 20, 2026
9e88773
Add client commands for activity control
vladimir-popov Nov 20, 2026
651251c
Improve timeout errors and animation picker
vladimir-popov Nov 20, 2026
a93b87c
Use configured animation as CLI default
vladimir-popov Nov 21, 2026
02d7bd4
Package CLI archives for CI and releases
vladimir-popov Nov 21, 2026
f28c729
Refine CLI archive workflow
vladimir-popov Nov 21, 2026
edf94be
Harden script cleanup paths
vladimir-popov Nov 21, 2026
80b1bb7
Support caller-provided activity IDs
vladimir-popov Nov 21, 2026
9cf7e33
Document coding-agent integrations
vladimir-popov Nov 21, 2026
cdd3cac
Allow install prefixes under the home directory
vladimir-popov Nov 21, 2026
4f4bc57
Use a single installer script
vladimir-popov Nov 21, 2026
6856332
Use Git metadata for development version
vladimir-popov Nov 21, 2026
f6c93fb
Stop tracking generated version source
vladimir-popov Nov 21, 2026
8ea6355
Resolve default animations like CLI selections
vladimir-popov Nov 21, 2026
9c6e4cf
Skip default animation validation for explicit selections
vladimir-popov Nov 21, 2026
58b9ce4
Reload configuration without interrupting active animations
vladimir-popov Nov 21, 2026
015bf33
Show elapsed time in active task menu
vladimir-popov Nov 21, 2026
1f8c18b
Add an active animations window
vladimir-popov Nov 22, 2026
90ae40d
Add stable local API error codes
vladimir-popov Nov 22, 2026
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
47 changes: 38 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: CI

on:
push:
branches: [main]
branches: ["**"]
tags: ["v*"]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -16,12 +17,42 @@ jobs:
runs-on: macos-26
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Check formatting
run: make lint
- name: Generate version
run: bash Scripts/generate-version.sh
- name: Run tests
run: swift test

build-cli-artifact:
name: Build downloadable CLI archive
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/'))
needs: test
runs-on: macos-26
steps:
- name: Check out selected branch
uses: actions/checkout@v5
- name: Build CLI archive
run: Scripts/package-cli.sh
- name: Test installed archive
shell: bash
run: |
prefix="$RUNNER_TEMP/nyathing-prefix"
config="$RUNNER_TEMP/nyathing-config"
mkdir -p "$prefix" "$config"
PREFIX="$prefix" bash out/nyathing-macos-arm64/install.sh
XDG_CONFIG_HOME="$config" "$prefix/bin/nyathing" list
test -x "$prefix/libexec/nyathing/nyathing"
test -d "$prefix/libexec/nyathing/Nyathing_Nyathing.bundle"
- name: Upload CLI archive
uses: actions/upload-artifact@v6
with:
name: nyathing-macos-arm64
path: out/nyathing-macos-arm64/*
if-no-files-found: error
retention-days: 14

release:
name: Build and publish tagged release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
Expand All @@ -31,7 +62,7 @@ jobs:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Validate release tag and target branch
Expand All @@ -49,16 +80,14 @@ jobs:
exit 1
fi
echo "value=${tag#v}" >> "$GITHUB_OUTPUT"
- name: Build installer package
env:
VERSION: ${{ steps.version.outputs.value }}
run: Scripts/build-pkg.sh
- name: Build CLI archive
run: Scripts/package-cli.sh
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ github.ref_name }}
target_commitish: ${{ github.sha }}
name: Nyathing ${{ steps.version.outputs.value }}
generate_release_notes: true
files: out/Nyathing-${{ steps.version.outputs.value }}.pkg
files: out/nyathing-macos-arm64.tar.gz
fail_on_unmatched_files: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.agents/
.build/
Sources/Nyathing/Version.swift
.swiftpm/
out/
dist/
Expand Down
31 changes: 17 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
SHELL := /bin/bash
.DEFAULT_GOAL := help

.PHONY: help format lint test package run install-app install-cli-link uninstall
.PHONY: help format lint test archive run install uninstall reinstall

help:
@printf '%s\n' \
'Targets:' \
' format Format Swift files in Sources/ and Tests/' \
' lint Check Swift formatting' \
' test Run the Swift test suite' \
' package Build the macOS installer package' \
' run Run animations for five seconds (ANIMATIONS="a b" optional)' \
' install-app Build and install Nyathing.app in /Applications' \
' install-cli-link Create the /usr/local/bin/nyathing symlink' \
' uninstall Force-remove the app, CLI command, and user data'
' archive Build a downloadable CLI archive' \
' run Run animations (DURATION=5 seconds; ANIMATIONS="a b" optional)' \
' install Build and install the CLI in $(PREFIX)/bin' \
' uninstall Remove the CLI and legacy app (keeps user data)' \
' reinstall Reinstall Nyathing using the selected PREFIX'

format:
@find Sources Tests -type f -name '*.swift' -print0 | xargs -0 swift format format --in-place
Expand All @@ -24,18 +24,21 @@ lint:
test:
swift test

package:
Scripts/build-pkg.sh
archive:
bash Scripts/package-cli.sh

install-app:
bash Scripts/install-app.sh
PREFIX ?= /usr/local

install-cli-link:
bash Scripts/install-cli-link.sh
install:
PREFIX='$(PREFIX)' bash Scripts/install.sh

uninstall:
bash Scripts/force-uninstall.sh
PREFIX='$(PREFIX)' bash Scripts/force-uninstall.sh

reinstall: uninstall install

DURATION ?= 5

run:
swift build
ANIMATION='$(ANIMATION)' ANIMATIONS='$(ANIMATIONS)' python3 Scripts/run-test-animation.py
ANIMATION='$(ANIMATION)' ANIMATIONS='$(ANIMATIONS)' DURATION='$(DURATION)' python3 Scripts/run-test-animation.py
Loading
Loading