diff --git a/plugins/guided-review/README.md b/plugins/guided-review/README.md index a5cac43..c7e9410 100644 --- a/plugins/guided-review/README.md +++ b/plugins/guided-review/README.md @@ -7,7 +7,7 @@ Each review gets its own Paseo workspace, checked out at the change, with a **Gu Requires: -- Paseo 0.13 or newer +- Paseo 0.15 or newer - `pnpm` on the daemon's `PATH` - Either or both: - [`gh`](https://cli.github.com/), logged in with `gh auth login`, to review pull requests on github.com; GitHub Enterprise is not supported diff --git a/plugins/guided-review/index.server.ts b/plugins/guided-review/index.server.ts index 58bd673..a048f6d 100644 --- a/plugins/guided-review/index.server.ts +++ b/plugins/guided-review/index.server.ts @@ -89,14 +89,14 @@ export default function contribute(server: PluginServerContext) { // The guide agent is read-only. Its provider's plan or read-only mode is the first guard and this // the second, since not every provider has such a mode; the generation job answers what it misses. - server.on("agent.permission_requested", async ({ agent, request }, context) => { + server.addHook("agent.permission.before", async ({ agent, request }, context) => { connected(context); await guideAgents .onPermissionRequested(agent.id, request) .catch((error: unknown) => log(`Answering a permission request of ${agent.id} failed: ${String(error)}`)); }); // Paseo archives a workspace's agents with it; this makes sure of the guide agents, whose guide ends there. - server.on("workspace.archived", async ({ workspace }, context) => { + server.addHook("workspace.archive.after", async ({ workspace }, context) => { connected(context); await service .workspaceArchived({ workspaceId: workspace.id }) diff --git a/plugins/guided-review/package.json b/plugins/guided-review/package.json index 65e3f04..bf028e0 100644 --- a/plugins/guided-review/package.json +++ b/plugins/guided-review/package.json @@ -8,8 +8,8 @@ "test": "node --test \"{client,server,shared}/**/*.test.ts\"" }, "devDependencies": { - "@getpaseo/client": "0.13.0", - "@getpaseo/plugin": "0.13.0", + "@getpaseo/client": "0.15.0", + "@getpaseo/plugin": "0.15.0", "@tanstack/react-query": "^5.90.11", "@types/markdown-it": "^14.2.0", "@types/node": "^26.2.0", diff --git a/plugins/guided-review/paseo-plugin.json b/plugins/guided-review/paseo-plugin.json index 8f954e6..bac3931 100644 --- a/plugins/guided-review/paseo-plugin.json +++ b/plugins/guided-review/paseo-plugin.json @@ -1,6 +1,6 @@ { "id": "guided-review", "description": "A trunk-first guide to a pull request, with a draft review built alongside it.", - "requirements": { "paseo": ">=0.13.0" }, + "requirements": { "paseo": ">=0.15.0" }, "build": [["pnpm", "install", "--frozen-lockfile"]] } diff --git a/plugins/guided-review/server/guide-agent/paseo.ts b/plugins/guided-review/server/guide-agent/paseo.ts index 51c15fd..5b99443 100644 --- a/plugins/guided-review/server/guide-agent/paseo.ts +++ b/plugins/guided-review/server/guide-agent/paseo.ts @@ -17,7 +17,7 @@ export type PaseoGuideAgentsOptions = { export type PaseoGuideAgents = GuideAgentPort & { /** - * For the `agent.permission_requested` hook: denies a guide agent's request to change anything, and + * For the `agent.permission.before` hook: denies a guide agent's request to change anything, and * leaves every other agent's requests alone. Guide agents are told apart by their label, which * survives a plugin restart where an in-memory list would not. */ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0e16ba8..1876d5a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -112,11 +112,11 @@ importers: version: 14.3.2 devDependencies: '@getpaseo/client': - specifier: 0.13.0 - version: 0.13.0 + specifier: 0.15.0 + version: 0.15.0 '@getpaseo/plugin': - specifier: 0.13.0 - version: 0.13.0(@getpaseo/client@0.13.0)(@getpaseo/protocol@0.13.0)(react-native@0.81.5(@babel/core@7.29.7(supports-color@8.1.1))(@types/react@19.2.18)(react@19.1.0)(supports-color@8.1.1))(react@19.1.0)(typescript@5.9.3)(zod@4.4.3) + specifier: 0.15.0 + version: 0.15.0(@getpaseo/client@0.15.0)(@getpaseo/protocol@0.15.0)(react-native@0.81.5(@babel/core@7.29.7(supports-color@8.1.1))(@types/react@19.2.18)(react@19.1.0)(supports-color@8.1.1))(react@19.1.0)(typescript@5.9.3)(zod@4.4.3) '@tanstack/react-query': specifier: ^5.90.11 version: 5.102.2(react@19.1.0) @@ -326,6 +326,9 @@ packages: '@getpaseo/client@0.14.0': resolution: {integrity: sha512-TkDBrhQw4koQI3J2Vlo61M7l7EOCk4AQIZ1dr13SVYVEcofwj+I9R/fqXYkC/nuCl85GsJupxkeEPy5hEItznw==} + '@getpaseo/client@0.15.0': + resolution: {integrity: sha512-DlX/ByuoSZ8xZIsn0DU4c2WinYEni07+5/Qr3F7XhSTU3KSCLedUGy9wSHm841P+MdyC0Jqtn91FdhdOnSQhFw==} + '@getpaseo/client@0.9.2': resolution: {integrity: sha512-MvStNVcWF3JhEaCAOhrPQ5qaLQJtkz1bvPop+wp8npqHB0z2PjAwPMZUYP/2T3kWrZj2ukWmODxjihKnwd0qTQ==} @@ -356,6 +359,18 @@ packages: react-native: optional: true + '@getpaseo/plugin@0.15.0': + resolution: {integrity: sha512-GI3kqLUuoPS46PycPUrCPQ7VeHz0I5Ozl62RYiEL0gPLVBbG5YPe0j4PA4tZzF+vKuPf4Gs4pURZHlnYP4ETEg==} + peerDependencies: + '@getpaseo/client': 0.15.0 + '@getpaseo/protocol': 0.15.0 + react: '>=19.1.0 <20' + react-native: '>=0.81.5' + zod: ^4.4.3 + peerDependenciesMeta: + react-native: + optional: true + '@getpaseo/plugin@0.9.2': resolution: {integrity: sha512-g10IFjhcAlws4udHhDUdR1TBIudzP1bNL9ixfMdezkU4HcHJbULhkEtZo/KP0WF/sL+w0UW/msawtzL++1neGQ==} peerDependencies: @@ -374,6 +389,9 @@ packages: '@getpaseo/protocol@0.14.0': resolution: {integrity: sha512-fF0na1u91sKKgk6R0EKtXQMTJKbqLx8jZ8IuiUcm3jLVOnGruAvPggAQVAzm4MX2mrikesj3immqztHjPNxjTQ==} + '@getpaseo/protocol@0.15.0': + resolution: {integrity: sha512-UqB9eB6h1X5AXeeTdTQsS0CmfG31KgTdxbw5Wrp9nYc7kk0uBqRbVgGx7uqVAzJYjdcDGUiYpQv+649T2POA5w==} + '@getpaseo/protocol@0.9.2': resolution: {integrity: sha512-CGfyfqOVNxETLCgVhQGeaP6PtP17FvP5wBuRxmVQ+WIw3F/qCNju/a5aSDF+vbh+62Qf2qtha9MpQB9DrVJehA==} @@ -383,6 +401,9 @@ packages: '@getpaseo/relay@0.14.0': resolution: {integrity: sha512-nLEQ3JkCe7NUWrbQadYVjgiIbVB6g3BMNyGxZrtX42RjsKvJJ+/jjowuSChU26G7AjZ6KY0T5lE+OlYpLlfqHA==} + '@getpaseo/relay@0.15.0': + resolution: {integrity: sha512-VJJ6au8Jjw+U5/PHGEFlr+oj4yBxhCnTXh6zIFaz1MJnYW0gO/II0EaP3A8r5eM+iHRaiEuPRotKDht5sFXeBw==} + '@getpaseo/relay@0.9.2': resolution: {integrity: sha512-jlnePwu5unMX04yWtvkY35bTi5yFZYfwlYPhVgwWxfEmFwGMJE4TgI62HO2bY9uS9GfehXIyn4wBmOvYPkNlwA==} @@ -1793,6 +1814,16 @@ snapshots: - bufferutil - utf-8-validate + '@getpaseo/client@0.15.0': + dependencies: + '@getpaseo/protocol': 0.15.0 + '@getpaseo/relay': 0.15.0 + ws: 8.21.3 + zod: 4.4.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@getpaseo/client@0.9.2': dependencies: '@getpaseo/protocol': 0.9.2 @@ -1852,6 +1883,20 @@ snapshots: transitivePeerDependencies: - typescript + '@getpaseo/plugin@0.15.0(@getpaseo/client@0.15.0)(@getpaseo/protocol@0.15.0)(react-native@0.81.5(@babel/core@7.29.7(supports-color@8.1.1))(@types/react@19.2.18)(react@19.1.0)(supports-color@8.1.1))(react@19.1.0)(typescript@5.9.3)(zod@4.4.3)': + dependencies: + '@agentclientprotocol/sdk': 1.4.0(zod@4.4.3) + '@getpaseo/client': 0.15.0 + '@getpaseo/protocol': 0.15.0 + i18next: 26.5.12(typescript@5.9.3) + react: 19.1.0 + use-sync-external-store: 1.7.0(react@19.1.0) + zod: 4.4.3 + optionalDependencies: + react-native: 0.81.5(@babel/core@7.29.7(supports-color@8.1.1))(@types/react@19.2.18)(react@19.1.0)(supports-color@8.1.1) + transitivePeerDependencies: + - typescript + '@getpaseo/plugin@0.9.2(@getpaseo/client@0.9.2)(@getpaseo/protocol@0.9.2)(react-native@0.81.5(@babel/core@7.29.7(supports-color@8.1.1))(@types/react@19.2.18)(react@19.1.0)(supports-color@8.1.1))(react@19.1.0)(zod@4.4.3)': dependencies: '@agentclientprotocol/sdk': 1.4.0(zod@4.4.3) @@ -1873,6 +1918,11 @@ snapshots: semver: 7.8.5 zod: 4.4.3 + '@getpaseo/protocol@0.15.0': + dependencies: + semver: 7.8.5 + zod: 4.4.3 + '@getpaseo/protocol@0.9.2': dependencies: semver: 7.8.5 @@ -1902,6 +1952,18 @@ snapshots: - bufferutil - utf-8-validate + '@getpaseo/relay@0.15.0': + dependencies: + '@noble/ciphers': 2.4.0 + '@noble/curves': 2.4.0 + '@noble/hashes': 2.4.0 + base64-js: 1.5.1 + tweetnacl: 1.0.3 + ws: 8.21.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@getpaseo/relay@0.9.2': dependencies: base64-js: 1.5.1 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 08f0176..02adb1e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,8 +4,8 @@ packages: allowBuilds: node-pty: true minimumReleaseAgeExclude: - - '@getpaseo/client@0.7.0 || 0.8.0 || 0.9.1 || 0.11.0' - - '@getpaseo/protocol@0.7.0 || 0.8.0 || 0.9.1 || 0.11.0' - - '@getpaseo/relay@0.7.0 || 0.8.0 || 0.9.1 || 0.11.0' - - '@getpaseo/plugin@0.8.0 || 0.9.1 || 0.11.0' + - '@getpaseo/client@0.7.0 || 0.8.0 || 0.9.1 || 0.11.0 || 0.15.0' + - '@getpaseo/protocol@0.7.0 || 0.8.0 || 0.9.1 || 0.11.0 || 0.15.0' + - '@getpaseo/relay@0.7.0 || 0.8.0 || 0.9.1 || 0.11.0 || 0.15.0' + - '@getpaseo/plugin@0.8.0 || 0.9.1 || 0.11.0 || 0.15.0' - '@getpaseo/highlight@0.11.0'