Repository navigation
feat(task-runner): run a project's own scripts from a sidebar panel - #176
Merged
Merged
Conversation
Add a Tasks panel in the Explorer that lists package.json scripts, Makefile targets, Nx targets and .vscode/tasks.json tasks. Discovery reads files as text, and only runs the repo's own nx after the user asks for inferred targets. Tasks run in plugin-owned terminals inside an sh wrapper that prints an exit marker, since the SDK cannot report a terminal's status. A trailing exit keeps zsh from exec-ing a single-command task, which lost the terminal and the marker on real daemons. JSONC is read by hand because jsonc-parser's UMD build fails to load in the daemon's bundle. Refs #124 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A group's rows now sit inset under a line dropping from its chevron, so it is clear which package a task belongs to. A workspace with one group stays flat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read the packages list of pnpm-workspace.yaml by hand, so the plugin has no runtime dependency and no build step, and installing it no longer needs pnpm on the daemon's PATH. Running a task never needed pnpm, since each task uses its project's own package manager. The README now leaves rationale to the ADRs and drops what the panel already shows, and it names monorepo terminals correctly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel shows how to use it, so the README now only lists what the plugin supports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… for Keep only what the panel does not show: where to open it, inferred Nx targets, and the tasks.json fields that are read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run Task... now focuses the search box, where the arrow keys pick a task and Enter runs it. Recently run tasks are listed first, under Recent, and a Rerun Last Task Command Center item runs the last one again. Recent tasks are kept per workspace in the Paseo home's plugin data, because the plugin's server can read its settings but not write them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collapsed sections are keyed by section, so a package named Recent keeps its own state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It now matches the package names listed below it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The icon sits after the chevron, so the section still collapses and its guide line still drops from the chevron. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # .release-please-manifest.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A Tasks panel in the Explorer lists what a project already defines and runs it in one step.
The daemon removes a terminal when its process exits and reports no exit code, so status comes from a wrapper:
Monorepo tasks are named
task: <group>: <label>rather thantask: <label>, so two packages with abuildkeep separate terminals.Closes #124
Evidence
C-c: no marker, and the terminal disappeared.After: with the trailing
exit, zsh and bash both print the marker, keep the terminal, and stay usable after someone types a fake marker into the leftover shell.jsonc-parserpassed typecheck and tests but failed plugin load withCannot find module './impl/format'.After: the plugin reaches
runningon Paseo 0.15.0.pnpm testinplugins/task-runner: 78 pass, 0 fail, coveringdiscoverTasksover real temp directories andTaskRunsover a fake terminal port.{ graph: { nodes } }shape and the naming of unnamed projects were checked against a realnx graph.Not verified: the panel has not been looked at in the Paseo app, so layout and interaction are untested.
Merge Danger
Door: two-way
A new plugin that can be removed or disabled.
Blast Radius: isolated
Outside
plugins/task-runnerthis only adds a README row, release-please entries and lockfile lines. Once installed, starting a task runs that project's own script on the daemon host, as the user asked for.