Skip to content

Expand animation management, CLI, and local API; refresh installation and documentation - #2

Merged
vladimir-popov merged 43 commits into
mainfrom
list-of-animations
Nov 22, 2026
Merged

vladimir-popov merged 43 commits into
mainfrom
list-of-animations

Conversation

@vladimir-popov

@vladimir-popov vladimir-popov commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR expands Nyathing’s activity and animation controls, improves the CLI and local API, and simplifies application packaging and installation.

Key changes

  • Added active animation monitoring and elapsed-time display; activities can be controlled through the CLI and API.
  • Improved animation selection and resolution, including short names, file paths, default animations, and random selection.
  • Added a configuration editor, settings reload without interrupting active animations, and improved error diagnostics.
  • Refined activity timeouts and keepalive behavior; the API now supports caller-provided IDs and stable error codes.
  • Added CLI commands for server management and Bash/Zsh shell completion.
  • Updated packaging and installation with a unified installer, CLI archives for CI and releases, and Git-based development versioning.
  • Expanded the README and documentation for the server protocol and coding-agent integrations.

…rger assets

Add nyathing list to print valid animations in sorted order. Allow
 selecting animations by their name without the size suffix, choosing
 the 54x36 version when both sizes are available. Update the help and
 README with the new command and selection behavior.
Accept optional descriptions when starting activities and retain them
 through expiration, using “No description provided” when absent.
 Preserve timed-out activity details for later error reporting. Have the
 CLI describe each activity using the child command and its arguments
 joined by spaces.

 Add tests for API description forwarding, timeout retention and
fallback, and CLI formatting.
Resetting the disconnected count now also clears outstanding timeout
 records and refreshes the status indicator and its visibility. Replace
 the animated warning with a static timeout-error indicator showing the
 outstanding count. Add a lifecycle test for reset behavior.
Give expired activities stable IDs so errors can be acknowledged
 individually. Add a menu item and window for reviewing timeout
 descriptions, update the disconnected count as errors are
 acknowledged, and keep the main status item visible while idle.
 Refresh the error list and status item when lifecycle state changes.

 Add coverage for acknowledging individual timeouts with matching
 descriptions.
Prefer a valid user animation named random; otherwise choose
 uniformly from the available animations, falling back to the built-in
ghost when none are available. Add tests for selection, name precedence,
and fallback.
Allow start requests to override the configured keepalive interval and
 activity timeout, falling back to config defaults when omitted. Track
each activity’s timeout independently and document the optional API
fields. Update the CLI to pass its configured values.
Display active animation frames in place of the default app icon, then
 restore the icon when no activities remain. Move the version to its own
 section in the CLI help output.
Use a LaunchAgent to start, stop, and check the server from the
 terminal. Keep the server launch argument internal, update CLI help,
 and document the new commands in the README.
Separate error rows with dividers and add indentation before each
description.
 Close the errors window after the last warning is acknowledged.
Give each distinct animation its own menu bar item and hide the static
 icon while animations are active. Resolve random animation requests
 through the API, and send timing settings as JSON numbers so CLI
 activities are accepted by the server. Start the test animation runner
 in server mode.
Explain the --animation random option, including the precedence of
 animations named random_36x36.png and random_54x36.png, fallback
 selection, and the built-in ghost behavior when no valid animations
 are available.
Add nyathing completion zsh|bash to generate shell-specific completion
 scripts for CLI commands, server actions, and live animation names.
 Document shell setup in the README and test completions against the
 documented commands.
Check the LaunchAgent process rather than registration when reporting
 server status. Kickstart a registered but stopped job so server start
 can recover it. Remove the test assertion for the deleted explosion
 animation, and correct the newline in the shell completion error
message.
Explain why an animation cannot be used, including when it is missing,
 invalid, or specified as a path. Resolve the CLI executable through
 PATH when starting the server, and add a regression test. Add a
 make install target to install the app and CLI symlink.
 Show active task descriptions and their animation icons at the top of
 each status menu, ordered by start time. Refresh the menus as
activities start and stop, and clear ordering state when runtime state
resets.
Add field tables and request examples for each API command, and
 clarify the CLI and timeout behavior in the README. Align the server
 and CLI screenshots to the right.

 Simplify the menu by removing the disconnected-count reset action,
 shortening the About and Quit labels, and separating them. Remove the
 obsolete lifecycle reset method and its test.
Preserve each frame's aspect ratio while reducing its displayed height
to 22 pt. This makes 36×36 frames display at 22×22 pt and 54×36 frames
at 33×22 pt. Tests pass.
Set the default activity timeout to 30 seconds and remove per-activity
 timeout overrides from the API. Require clients to provide a valid
 keepalive interval shorter than the server timeout, with clear errors
 for missing or invalid values. Update the CLI, test script, README, and
 API tests to match the revised protocol.
Replace manual configuration reload with a form for editing settings.
Save changes to config.toml and reload settings and animations on accept.
Allow random as the configured default animation and update the README.
Derive frame sizes from filename suffixes instead of a fixed size list.
Bound frame dimensions, aspect ratio, frame count, and sprite sheet pixels
before decoding, and document the expanded format.
Look up short animation names in the configured animations folder,
selecting the largest valid matching frame. Treat other animation
values as file paths and load sprite sheets outside that folder.

Update API defaults, examples, and the test-animation script for path
handling, and cover short-name and external-file resolution.
Use the configured default animation when wrapping commands without an
explicit animation option, matching client-start behavior. Add a test
for omitted animation arguments.

Reorganize README sections around client and CLI usage, document
client descriptions, and link to the animation file format.
Validate install prefixes and restrict removals to expected targets.
Use isolated temporary directories for packaging and wrapper creation,
and clean them up only after checking their paths.

.
Allow clients to choose activity IDs and reject IDs that are already
active. Increase the default activity timeout to three minutes and
document the client option and configuration.

Add API coverage for custom IDs and duplicate-ID errors.
Add Codex and Claude Code hook examples using jq and custom
activity IDs. Add a contents section and update section headings
with matching monochrome symbols.

Include the referenced Codex and Claude Code icons.
Permit safe nested home paths such as RUNNER_TEMP and ~/.local
while continuing to reject the home directory itself, root, and
paths containing parent-directory traversal.
Make the installer detect bundled release files or build from the
repository, and use it from both the Makefile and release archive.
Remove the generated archive wrapper and obsolete second script.
@vladimir-popov
vladimir-popov force-pushed the list-of-animations branch 2 times, most recently from 7486c99 to 0cdd209 Compare November 21, 2026 14:49
Ignore Sources/Nyathing/Version.swift and generate it before builds.
 Use the exact Git tag without its v prefix, or the short commit
 hash when no exact tag is available.

.

.

.
Use the same resolver for configured and CLI animation selections.
Default to the short name nyathing and preserve full PNG paths chosen
in the configuration editor. Let the animation test script use the
server's default unless an animation is explicitly selected.
Resolve the configured default only when a start request omits the
animation. Reject invalid explicit selections without falling back,
and cover the precedence rules with a local API regression test.
Update the default animation and wait limit for future activities
 without restarting the local API server or clearing active state.

 Extend the API test to verify that an existing connection can send
 keepalives and stop an activity after applying new settings, while
 new activities use the updated default animation and wait limit.
Move elapsed time from the menu into a scrollable window that shows
activity IDs, icons, and descriptions. Capture elapsed time when the
window opens instead of updating it on a timer.

Allow users to cancel individual activities and report the reason
to the client on its next keepalive.
Keep human-readable messages alongside machine-readable codes and
document the response format in the README.

Reserve cancelled IDs for max_wait_time so both keepalive and stop
report cancellation and a new start cannot reuse the ID prematurely.

Remove the obsolete activity_timeout_seconds override and migration.
@vladimir-popov vladimir-popov changed the title Expand Nyathing CLI and replace the macOS installer with downloadable archivesList of animations Expand animation management, CLI, and local API; refresh installation and documentation Nov 22, 2026
@vladimir-popov
vladimir-popov merged commit 2036eda into main Nov 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant