Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion setup-monitor/OVERVIEW.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Setup Monitor shows your worktree's setup commands while they run, so a long dependency install is no longer silent. These are the commands under `worktree.setup` in `paseo.json`. Needs Paseo 0.13 or later.
Setup Monitor shows your worktree's setup commands while they run, so a long dependency install is no longer silent. These are the commands under `worktree.setup` in `paseo.json`. Needs Paseo 0.15 or later.

While setup runs, a button in the workspace header shows a spinner and a timer, even before the worktree has an agent. The timer counts from when setup started, in every window. Click it for a popover with the live log. When setup has more than one command, each gets a row with its status and how long it took. Click a row to see that command's log.

Expand Down
6 changes: 5 additions & 1 deletion setup-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# setup-monitor

Paseo 0.13 live view of worktree setup. Paseo already tracks `worktree.setup` from `paseo.json`. After 0.3 it only opens the built-in Setup tab when that script fails, so a long `npm install` is silent. This plugin reads the same `workspace_setup_status` stream and shows it while it runs.
Paseo 0.15 live view of worktree setup. Paseo already tracks `worktree.setup` from `paseo.json`. After 0.3 it only opens the built-in Setup tab when that script fails, so a long `npm install` is silent. This plugin reads the same `workspace_setup_status` stream and shows it while it runs.

- A button in the workspace top bar from the moment the worktree opens, before you've sent a message: a spinner and elapsed time while setup runs, then a green check or a red alert. It turns amber when Paseo holds setup back for a pull request from another repository. It stays until you dismiss it from the popover.
- Click it for a popover: each setup command with its status and duration, a live log, and the failure reason if it failed. Click a command to see its log. For a held-back setup, the popover explains why and has a Run setup button.
Expand Down Expand Up @@ -30,6 +30,10 @@ and popover share that result instead of making separate requests.

## Changelog

### 1.2.0

- [Improved] **Needs Paseo 0.15 or later.** Setup Monitor now uses the plugin hook names from Paseo 0.15, so it keeps working after Paseo drops the old names in April 2027. On an older Paseo, the version you already have keeps working. Nothing else changes.

### 1.1.1

- [Fixed] **Setup status on phones.** On a phone, Paseo lists the setup button as a row in the workspace ··· menu. That row now reads "Worktree setup 42s" or "Worktree setup failed". It used to read only "Worktree setup". The desktop tooltip shows the same words.
Expand Down
2 changes: 1 addition & 1 deletion setup-monitor/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getSetupStatus, runSetup } from "./shared/setup";
export default function contribute(server: PluginServerContext) {
server.handle(getSetupStatus, handleGetSetupStatus);
server.handle(runSetup, handleRunSetup);
server.on("workspace.created", handleWorkspaceCreated);
server.addHook("workspace.create.after", handleWorkspaceCreated);
return () => {
stopSetupProgressWatch();
};
Expand Down
50 changes: 27 additions & 23 deletions setup-monitor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions setup-monitor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stevecastaneda/paseo-setup-monitor",
"version": "1.1.1",
"version": "1.2.0",
"description": "Live worktree setup progress and logs from a button in the Paseo top bar.",
"keywords": [
"paseo",
Expand Down Expand Up @@ -41,8 +41,8 @@
"security-review": "node ../scripts/security-review.mjs"
},
"devDependencies": {
"@getpaseo/client": "0.13.0",
"@getpaseo/plugin": "0.13.0",
"@getpaseo/client": "0.17.3",
"@getpaseo/plugin": "0.17.3",
"@tanstack/react-query": "^5.90.11",
"@types/node": "^20.9.0",
"@types/react": "~19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion setup-monitor/paseo-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"icon": "icon.png",
"media": ["images/popover.png", "images/popover-failed.png", "images/button.png"],
"requirements": {
"paseo": ">=0.13.0"
"paseo": ">=0.15.0"
}
}
2 changes: 1 addition & 1 deletion setup-monitor/server/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ const runtimeWatcher = createSetupWatcher(runtimePort, recordSetupProgress);
const runtimeFetch = createSetupStatusFetcher(runtimePort);
const runtimeRun = createSetupRunner(runtimePort);

export function handleWorkspaceCreated(event: { workspace: { id: string } }): void {
export async function handleWorkspaceCreated(event: { workspace: { id: string } }): Promise<void> {
void runtimeWatcher.watch(event.workspace.id);
}

Expand Down
2 changes: 1 addition & 1 deletion shell-yeah/OVERVIEW.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Shell Yeah runs a shell command from the chat. Type `/sh` and a command, like `/sh npm test`. It runs as you, in the agent's folder, and the output streams into a card in the chat. The agent sees the output only if you press Send. It's Paseo's version of Claude Code's `!` mode. Needs Paseo 0.13 or later, and Node.js 22.18 or later on the computer running the Paseo daemon.
Shell Yeah runs a shell command from the chat. Type `/sh` and a command, like `/sh npm test`. It runs as you, in the agent's folder, and the output streams into a card in the chat. The agent sees the output only if you press Send. It's Paseo's version of Claude Code's `!` mode. Needs Paseo 0.15 or later, and Node.js 22.18 or later on the computer running the Paseo daemon.

It's also how an agent hands you a command it can't run itself: a login that needs your browser, a deploy behind your VPN, a publish that needs your 2FA code. The plugin tells each new agent to put such a command in a `sh run` code block, under a one-line comment that says what it does. When the reply ends, a card appears under it with the comment as its title, the command, and Run, Copy and Dismiss. Nothing runs until you press Run. The card warns you when a command runs as administrator, deletes files, throws away uncommitted changes, force-pushes, or runs a script from the internet.

Expand Down
6 changes: 5 additions & 1 deletion shell-yeah/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Shell Yeah

A plugin for Paseo 0.13 and later. Type `/sh` and a command in the message box to run it yourself, in the agent's folder, with live output in the chat. The agent sees the output only if you send it.
A plugin for Paseo 0.15 and later. Type `/sh` and a command in the message box to run it yourself, in the agent's folder, with live output in the chat. The agent sees the output only if you send it.

It's the Paseo version of Claude Code's `!` mode. It's also how an agent hands you a command it can't run itself: a login that needs your browser, a deploy behind your VPN, a publish that needs your 2FA code. The command shows up under the agent's reply with a **Run** button.

Expand Down Expand Up @@ -106,6 +106,10 @@ Enable plugins under **Settings → Plugins** on the Paseo host. You need Node.j

## Changelog

### 1.5.0

- [Improved] **Needs Paseo 0.15 or later.** Shell Yeah now uses the plugin hook names from Paseo 0.15, so it keeps working after Paseo drops the old names in April 2027. On an older Paseo, the version you already have keeps working. Nothing else changes.

### 1.4.2

- [Fixed] **Agents run the commands they're allowed to run.** Before, new agents handed you deploys, publishes and deletes as Run cards even when they could run those commands themselves. Now they hand you a command only when it needs your login, password or 2FA code, when their sandbox or permissions block it, or when you ask for one. Chats that started before you update keep the old rule.
Expand Down
7 changes: 3 additions & 4 deletions shell-yeah/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,23 @@ export default function contribute(server: PluginServerContext) {
});

// New agents only: one tagged block in the system prompt, merged after whatever is there.
server.before("agent.create", ({ request }) => ({
server.addHook("agent.create.before", async ({ request }) => ({
...request,
config: { ...request.config, systemPrompt: withHandoffPrompt(request.config.systemPrompt) },
}));

// Every agent: a finished turn that handed the user a command gets one proposal card per command.
server.on("agent.turn_ended", async (event, ctx) => {
server.addHook("agent.turn.after", async (event, ctx) => {
bind(ctx);
if (event.outcome.kind !== "completed") return;
// Paseo 0.13 sends the event with an empty timeline.
const ref = ctx.paseo.agents.ref(event.agent.id);
const turn = await fetchTurn((options) => ref.timeline.refetch(options), event.turnId).catch(() => null);
if (!turn) return;
await proposeFromReply({ registry: runs, agentId: event.agent.id, cwd: event.agent.cwd, turn, mode: "marked" });
});

// An archived chat is done with: its saved logs go with it. Archiving a workspace archives its chats.
server.on("agent.archived", ({ agent }) => logs.forget(agent.id));
server.addHook("agent.archive.after", ({ agent }) => logs.forget(agent.id));

return () => runs.shutdown();
}
50 changes: 27 additions & 23 deletions shell-yeah/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions shell-yeah/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stevecastaneda/paseo-shell-yeah",
"version": "1.4.2",
"version": "1.5.0",
"description": "Type /sh and a command to run it as you, in the agent's folder, with live output in the chat. The agent sees it only if you send it.",
"keywords": [
"command",
Expand Down Expand Up @@ -42,8 +42,8 @@
"security-review": "node ../scripts/security-review.mjs"
},
"devDependencies": {
"@getpaseo/client": "0.13.0",
"@getpaseo/plugin": "0.13.0",
"@getpaseo/client": "0.17.3",
"@getpaseo/plugin": "0.17.3",
"@tanstack/react-query": "^5.90.11",
"@types/node": "^20.9.0",
"@types/react": "~19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion shell-yeah/paseo-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"images/6-expanded.png"
],
"requirements": {
"paseo": ">=0.13.0"
"paseo": ">=0.15.0"
}
}
Loading
Loading