@staff0rd/assist 0.1130.1 → 0.1132.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.1130.1",
9
+ version: "0.1132.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -9801,11 +9801,17 @@ function reviewFromGithub(req, res) {
9801
9801
  }
9802
9802
 
9803
9803
  // src/commands/sessions/web/fromGithub/linkPrompt.ts
9804
+ var githubPrUrl = /^https?:\/\/github\.com\/[^/]+\/[^/]+\/pull\/\d+/;
9805
+ function remotePrGuidance(prUrl) {
9806
+ return `This is a pull request. Read it remotely with \`gh pr view ${prUrl} --comments\` and \`gh pr diff ${prUrl}\`; do not check out its branch.`;
9807
+ }
9804
9808
  function linkPrompt(url, instructions) {
9805
9809
  const extra = typeof instructions === "string" ? instructions.trim() : "";
9806
- return extra ? `${url}
9807
-
9808
- ${extra}` : url;
9810
+ const prUrl = url.match(githubPrUrl)?.[0];
9811
+ const parts2 = [url];
9812
+ if (prUrl) parts2.push(remotePrGuidance(prUrl));
9813
+ if (extra) parts2.push(extra);
9814
+ return parts2.join("\n\n");
9809
9815
  }
9810
9816
 
9811
9817
  // src/commands/sessions/web/fromGithub/planGithubSession.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1130.1",
3
+ "version": "0.1132.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {