Repository navigation
fix: use Paseo 0.15's hook names in Shell Yeah, Setup Monitor and Time Since; require Paseo 0.15 - #142
Merged
Conversation
…bump to 1.5.0 Paseo 0.15 renamed the plugin hooks and drops the old names after 2027-04-30. Shell Yeah now registers agent.create.before, agent.turn.after and agent.archive.after through addHook, needs Paseo 0.15, and builds against the 0.17.3 SDK. Turn-end payloads carry no history on any supported Paseo, so the tests no longer feed one in.
…5; bump to 1.2.0 Paseo 0.15 renamed the plugin hooks and drops the old names after 2027-04-30. Setup Monitor now registers workspace.create.after through addHook, needs Paseo 0.15, and builds against the 0.17.3 SDK.
…bump to 1.2.0 Paseo 0.15 renamed the plugin hooks and drops the old names after 2027-04-30. Time Since now registers agent.turn.after and agent.archive.after through addHook, needs Paseo 0.15, and builds against the 0.17.3 SDK.
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.
Why
Paseo 0.15 renamed the plugin hooks, and the old names stop working after April 30, 2027. Shell Yeah, Setup Monitor and Time Since still use the old names. When Paseo removes them, Shell Yeah would stop adding command cards and its system prompt, Setup Monitor would stop watching new worktrees, and Time Since would stop recording turn ends. Progress made the same move in #140.
What changed
addHookunder the new names:agent.create.before,agent.turn.afterandagent.archive.after.workspace.create.after.agent.turn.afterandagent.archive.after.Versions follow CONTRIBUTING.md, where raising the minimum Paseo is a middle-number bump: Shell Yeah 1.5.0, Setup Monitor 1.2.0, Time Since 1.2.0.
Verification
check:installpass. Tests: Shell Yeah 127 pass, 0 fail, 4 skipped (terminal tests that skip themselves on this machine). Setup Monitor 31 of 31 pass. Time Since 20 of 20 pass.addHook,onandbeforereach the same registration, so Shell Yeah'sagent.create.beforehook still changes the request as before.Security review report: shell-yeah-1.5.0
Security review: @stevecastaneda/paseo-shell-yeah@1.5.0
I found no release blockers in Shell Yeah 1.5.0. I worked from the source only: I ran nothing, including the tests, and changed no files.
What changed
The only code change is in
index.server.ts: three hook registrations (lines 72, 78, 88) move to Paseo 0.15's hook names. I checked the plugin SDK innode_modules/@getpaseo/plugin/dist/server/lifecycle.js:19-54. The old calls now just forward to the new names:on("agent.turn_ended")becomesagent.turn.afteron("agent.archived")becomesagent.archive.afterbefore("agent.create")becomesagent.create.beforeSo each hook gets the same data, at the same time, as it did in 1.4.2. The handlers' bodies didn't change.
agent.turn.after: the 0.15 data dropstimeline. 1.4.2 never read it either; it already fetched the turn withref.timeline.refetch. The card's folder still comes from Paseo'sevent.agent.cwd, not from anything the agent writes.agent.create.before: it returns{...request, config}, so the request'senvandmetadatapass through unchanged. Only the system prompt changes, as before.agent.archive.after: it still callslogs.forget(agent.id), and the agent ID comes from Paseo.The other changed files are docs, version numbers, a comment (
claude.ts,limits.ts), tests, and development-only dependencies, none of which ship as code. Test files are left out of the package by!**/*.test.ts.Places that touch files, programs, HTML or the network
server/proc.ts:101,:134, starting the command's shell. It starts only from theshell-yeah.startcall, which the client makes when you type/shor press Run or Rerun. The shell path comes from yourSHELL(checked against a short list of known shells), or/bin/bashor/bin/sh. On Windows it'spwsh.exefrom yourPATH, or the system's own PowerShell. None of that comes from the repo, so it's safe.server/proc.ts:218,taskkill. It runs from the daemon's own folder, not the repo, with a fixed set of arguments. Safe.server/proc.ts:85, the test start that checks the terminal works. Fixed commands, run from/or the Windows system folder. Safe.server/proc.ts:66, loadingnode-pty. It loads from Paseo's own install, or from the plugin's packages. It never loads from the repo, so it's safe.server/proc.ts:188,openSyncon the command's terminal device. The device path comes from node-pty, not from the repo. Safe.server/shells.ts:81-116, the Run window checking whether a word is a program. It only checks whether files exist and can run (accessSync); it never runs them. On Windows it refuses network paths outside the agent's folder, so looking one up can't send your login to another computer. Safe.server/system.ts:22-36, writing and deleting files. All of it happens under~/.local/state/shell-yeah/logs, or%LOCALAPPDATA%on Windows. It refuses absolute names and.., and won't go through a link. Safe.server/logs.ts:34-47, saving and cleaning up logs. Agent IDs and run IDs are turned into safe file names (anything unusual becomes a hash), and the command becomes letters, numbers and dashes. Cleanup only removes.logfiles and empty folders under that log folder. Safe.server/runs.ts:534,stat(cwd). It only reads. Safe.server/claude.ts:520,access(logPath). The path is one the plugin made itself. Safe.server/claude.ts:545-551, Send. The output goes only to the agent you're looking at, and only when you press Send. It's a text attachment, so it doesn't look like something you typed, and Paseo wraps it in<bash-stdout>. Safe.server/claude.ts:487-516, the attach menu. It lists only the plugin's own runs, and the link it gives is afile://URL to the run's folder. Safe.server/claude.ts:89-130, turning an agent's reply into Run cards. Nothing runs until you press Run. Text with hidden characters is refused: control characters, characters that reorder text, and line or paragraph separators. Lone carriage returns become normal line breaks. Safe.client/run-row.tsx:101, the Run button. The card shows the whole command (shared/view.ts:95-116, the full command, not folded), plus warnings for risky commands. The only thing split off as a title is a first line starting with#, which the shell skips as a comment (shared/text.ts:16-19). Safe.dangerouslySetInnerHTML, opened links or network calls. It only calls the plugin's own server functions. Safe.No release blockers found.
Security review report: setup-monitor-1.2.0
Security review: @stevecastaneda/paseo-setup-monitor@1.2.0
I found no release blockers in setup-monitor 1.2.0. I worked from the source only: I didn't run the tests,
npm pack, or the plugin.What changed. Apart from formatting, the version bump and the move to Paseo 0.15, the only change in behaviour is in
index.server.ts:8. The oldserver.on("workspace.created", …)is nowserver.addHook("workspace.create.after", …). Paseo's SDK maps the old name straight to the new one (lifecycle.d.ts:254). The event data is the same ({ workspace }), and Paseo doesn't wait for this hook (lifecycle.d.ts:213). The handler atserver/daemon.ts:339is nowasync, but it still only starts a setup watch and returns. It takes no new input and reaches nothing new. The other code changes are formatting only, plus a test helper that was renamed and moved.Every place the plugin touches files, programs, HTML or the network:
client/,server/,shared/or the index files, so nothing can be redirected through links,..paths or.git.workspace.setup.run.request(server/daemon.ts:152), covered under "Run setup" below.blockedSource.headRepositoryall show as plain React Native<Text>(client/popover.tsx:109-223). Nothing renders HTML, runs scripts or opens a link.server/daemon.ts:18-34): the plugin only talks to its own Paseo daemon throughprocess.send/process.on("message"). No sockets, HTTP or outside hosts.server/daemon.ts:119): fixed message types whose only fields are a workspace ID and a request ID. Nothing private is sent.server/daemon.ts:41-79,shared/setup.ts:29): every reply is checked against a schema (with zod), and logs are cut to 8,000 characters.client/buttons.tsx:65,174): these call the plugin's own two server handlers with a workspace ID from Paseo's workspace list.paseo.jsondo show up. They sit in the log box and command rows under a "Setup…" heading, so they read as setup output, not as the user's own work. The plugin keeps nothing (no settings or history), and the "dismissed" state is in memory only.client/popover.tsx:144-165→server/daemon.ts:343): this is the one judgement call, and it hasn't changed since the published 1.1.1.workspace.setup.run.requestto the daemon itself, so the plugin adds no new power.No release blockers found.
Security review report: time-since-1.2.0
Security review: @stevecastaneda/paseo-time-since@1.2.0
I found no release blockers in
@stevecastaneda/paseo-time-since1.2.0. I reasoned everything from the source and ran nothing, including the tests.Scope. I read every shipped source file:
index.server.ts,index.client.tsx, everything inserver/,client/andshared/, pluspackage.json. The test files are left out of the package by!**/*.test.ts.What changed. Apart from re-formatting, there are three real changes:
server.on("agent.turn_ended"/"agent.archived")becameserver.addHook("agent.turn.after"/"agent.archive.after")(server/last-reply.ts:14-15). The handlers now return the store promise with.catch(report)attached, so a failed write is logged and never rejects into the daemon.server/system.ts.Places that touch files, programs, HTML or the network:
server/settings.storage.ts:9(settingsRootFromEnvironment): the data root comes fromPASEO_HOMEor~/.paseo. Those are the user's own environment, not the attacker's, and no repo or workspace path is used anywhere.server/settings.storage.ts:19(readFileof<root>/plugin-data/time-since/settings.json): the path is fixed. Its contents are parsed with zod into two booleans and go only back to the client.server/settings.storage.ts:40(write of settings.json throughwriteFileAtomicIn): the path is fixed and the content issettingsSchema.parseoutput, which is two booleans. TheupdateSettingsinput is also limited to optional booleans, so the toggles can't carry text into what the plugin shows.server/last-reply.storage.ts:17(readFileof<root>/plugin-data/time-since/last-reply.json): the path is fixed, and the contents are checked as a string-to-string record. A broken file starts over and is never shown as text.server/last-reply.storage.ts:32(write of last-reply.json): the path is fixed. Keys are agent ids from daemon hook payloads and values arenew Date().toISOString(), so neither comes from agent-written text. A__proto__key would only hit a setter that ignores a string, which pollutes nothing.server/system.ts:23-33(writeFileAtomicIn:mkdir, write a temp file beside the target,rename,rmon failure): the only callers passdirnameandbasenameof the fixed in-root path. The..and link checks never run against anything attacker-controlled, and every write stays inside the plugin's own data folder. Nothing touches the worktree or.git.server/write-lock.ts: an in-memory map keyed by the two fixed paths. It does no I/O itself.server/last-reply.ts:14-15(the new hooks): they read onlyagent.idand write the current time, so the agent's messages and tool output are never read or stored.client/ticker.tsx:176-198andclient/settings-panel.tsx:13(plugin RPCs to its own server for settings get/update and last-reply list): these talk only to the local plugin server, with no outside network.client/ticker.tsx:119-123(timeline subscription): it reads onlyevent.type,item.typeandtimestamp. Message text is never read or shown.client/directory.ts:24-101andclient/ticker.tsx:228-240(agent directory subscription through the Paseo client): only ids,workspaceId, status and timestamps are used.client/ticker.tsx:133and:141-160(composer pill label): the label is built byformatTimeSincePillLabelfrom parsed dates, so it's always a number-and-unit string or…. The title is constant.client/ticker.tsx:83(popover): it showsDate.toLocaleString()of a value that passedDate.parse, or the fixed text "None yet". These are React NativeTextnodes, not HTML.client/settings-panel.tsx: fixed labels plushost.labelfrom Paseo, all asTextnodes. It has no HTML, links, web views oropenURL.child_process,execorspawn), and it opens nothing with the system's default app.No release blockers found.