Skip to content

feat(skills): rebuild and reload plugins from a script - #174

Merged
sleeyax merged 1 commit into
mainfrom
feat/rebuild-plugins-script
Nov 9, 2026
Merged

sleeyax merged 1 commit into
mainfrom
feat/rebuild-plugins-script

Conversation

@sleeyax

@sleeyax sleeyax commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

Moves the build and reload half of update-plugins into scripts/rebuild-plugins.sh, so a machine-wide update script can run it unattended.
The skill becomes a thin wrapper that keeps the pull, the terminal for a reload that would end its own session, and the report.

What the script does

  • Finds every plugin the daemon runs from this checkout, through paseo plugin ls --json.
  • Runs each manifest's build from the plugin's directory, with one pnpm install --frozen-lockfile for the whole workspace.
  • Reloads each plugin and treats anything but running as a failure, printing its logs and exiting non-zero.
  • Stops before any reload if a build fails.
  • Skips the reload of the provider hosting the session and prints the command to run instead.

It leaves git alone and works on the checkout as it stands, so each caller keeps its own rules for pulling.

Behaviour changes

  • claude-tty is no longer reloaded last.
    That order only protected a run hosted on that provider, which the hosting-provider check covers, and it keeps a plugin due to be phased out out of the script.
  • A failed build now stops all reloads, not only the failed plugin's.

Testing

Ran the script against a sandbox with stubbed paseo and pnpm: a normal run, a run hosted on one of the plugins, a reload returning error, and a failing build.
It has not been run against a live daemon, because a reload closes open sessions.

Nothing in update-plugins needs an agent's judgment, and a machine-wide update script has to run it unattended without spending tokens or broad permissions.
scripts/rebuild-plugins.sh now owns the builds and reloads, and works on the checkout as it stands so each caller keeps its own git rules.
The skill keeps the pull, the terminal for a reload that would end its own session, and the report.
Reloading claude-tty last is gone: it only protected a run hosted on that provider, which the hosting-provider check already covers, and claude-tty is due to be phased out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sleeyax
sleeyax merged commit 6cd0ffd into main Nov 9, 2026
1 check 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