pr-shepherd 0.9.0 → 0.10.1

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.
Files changed (52) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +2 -2
  3. package/bin/checks/triage.mjs +32 -40
  4. package/bin/cli/fence.mjs +4 -0
  5. package/bin/cli/fix-formatter.mjs +31 -25
  6. package/bin/cli/formatters.mjs +33 -51
  7. package/bin/cli/handlers.mjs +1 -1
  8. package/bin/cli/iterate-formatter.mjs +20 -35
  9. package/bin/cli/iterate-lean.mjs +3 -3
  10. package/bin/cli/list-formatters.mjs +32 -0
  11. package/bin/cli/suggestion-renderer.mjs +31 -0
  12. package/bin/cli-parser.iterate-fixtures.mjs +2 -2
  13. package/bin/cli-parser.mjs +27 -3
  14. package/bin/commands/check.mjs +7 -5
  15. package/bin/commands/commit-suggestion.mjs +12 -10
  16. package/bin/commands/iterate/classify.mjs +10 -32
  17. package/bin/commands/iterate/escalate.mjs +3 -12
  18. package/bin/commands/iterate/fix-code.mjs +7 -11
  19. package/bin/commands/iterate/index.mjs +2 -1
  20. package/bin/commands/iterate/render.mjs +30 -21
  21. package/bin/commands/log-file.mjs +7 -0
  22. package/bin/commands/monitor.mjs +7 -4
  23. package/bin/commands/ready-delay.mjs +2 -2
  24. package/bin/commands/resolve-instructions.mjs +5 -2
  25. package/bin/commands/resolve.mjs +1 -20
  26. package/bin/commands/status.mjs +40 -28
  27. package/bin/comments/resolve.mjs +75 -65
  28. package/bin/config.json +2 -2
  29. package/bin/github/batch-parsers.mjs +2 -0
  30. package/bin/github/client.mjs +11 -32
  31. package/bin/github/gql/batch-pr.gql +4 -0
  32. package/bin/github/gql/get-pr-head-sha.gql +7 -0
  33. package/bin/github/http.mjs +166 -11
  34. package/bin/github/queries.mjs +7 -11
  35. package/bin/log/log-file.mjs +88 -0
  36. package/bin/log/session.mjs +100 -0
  37. package/bin/log/setup.mjs +54 -0
  38. package/bin/reporters/agent.mjs +14 -1
  39. package/bin/reporters/text.mjs +82 -102
  40. package/bin/state/base.mjs +5 -0
  41. package/bin/state/fix-attempts.mjs +2 -2
  42. package/bin/state/iterate-stall.mjs +2 -2
  43. package/bin/state/seen-comments.mjs +2 -2
  44. package/bin/suggestions/extract.mjs +15 -0
  45. package/bin/suggestions/parse.mjs +1 -26
  46. package/bin/util/markdown.mjs +7 -0
  47. package/bin/util/worktree.mjs +23 -0
  48. package/package.json +6 -5
  49. package/bin/github/gql/dismiss-review.gql +0 -7
  50. package/bin/github/gql/minimize-comment.gql +0 -7
  51. package/bin/github/gql/multi-pr-status.gql +0 -32
  52. package/bin/github/gql/resolve-thread.gql +0 -7
@@ -1,32 +0,0 @@
1
- query MultiPrStatus($owner: String!, $repo: String!, $pr: Int!) {
2
- repository(owner: $owner, name: $repo) {
3
- pullRequest(number: $pr) {
4
- number
5
- state
6
- isDraft
7
- title
8
- mergeStateStatus
9
- reviewDecision
10
- # totalCount lets callers detect truncation; pageInfo enables backward pagination.
11
- reviewThreads(last: 100) {
12
- totalCount
13
- pageInfo {
14
- hasPreviousPage
15
- startCursor
16
- }
17
- nodes {
18
- isResolved
19
- }
20
- }
21
- commits(last: 1) {
22
- nodes {
23
- commit {
24
- statusCheckRollup {
25
- state
26
- }
27
- }
28
- }
29
- }
30
- }
31
- }
32
- }
@@ -1,7 +0,0 @@
1
- mutation ResolveThread($threadId: ID!) {
2
- resolveReviewThread(input: { threadId: $threadId }) {
3
- thread {
4
- isResolved
5
- }
6
- }
7
- }