@hearsay-tools/squawk 0.19.0-pr4522.8954 → 0.19.0-pr4523.8975

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 (115) hide show
  1. package/dist/contract/index.js +28 -9
  2. package/dist/contract/query-requests.d.ts +5 -0
  3. package/dist/contract/repo.d.ts +25 -0
  4. package/dist/server/git-changes.d.ts +32 -0
  5. package/dist/server/git-changes.js +64 -1
  6. package/dist/server/git-changes.js.map +1 -1
  7. package/dist/server/repo-routes.d.ts +102 -4
  8. package/dist/server/repo-routes.js +20 -3
  9. package/dist/server/repo-routes.js.map +1 -1
  10. package/dist/server/runs-routes.d.ts +104 -45
  11. package/dist/server/runs-routes.js +12 -10
  12. package/dist/server/runs-routes.js.map +1 -1
  13. package/dist/server/server.d.ts +1713 -1399
  14. package/package.json +4 -4
  15. package/web/dist/assets/accounts-section-Bh6Ne88P.js +1 -0
  16. package/web/dist/assets/activity-motion-B4hhwfpy.js +1 -0
  17. package/web/dist/assets/{activity-route-ituEGhZg.js → activity-route-XNJHWQrd.js} +1 -1
  18. package/web/dist/assets/{agent-config-section-DpxvAJQV.js → agent-config-section-oavZQZ6z.js} +2 -2
  19. package/web/dist/assets/agent-defaults-section-Dlbff8d1.js +1 -0
  20. package/web/dist/assets/{appearance-CrcdqSjY.js → appearance-kpegMyn3.js} +1 -1
  21. package/web/dist/assets/{archive-on-merge-field-Xjdt8vpd.js → archive-on-merge-field-Hw5MDxKb.js} +1 -1
  22. package/web/dist/assets/attention-BHNhUrnd.js +1 -0
  23. package/web/dist/assets/automations-route-DUZ4KZ71.js +2 -0
  24. package/web/dist/assets/code-workbench-CUkiQ1pF.js +1 -0
  25. package/web/dist/assets/{command-BMMjB5k9.js → command-BiBq24zL.js} +1 -1
  26. package/web/dist/assets/commit-list-CHGDpN9k.js +1 -0
  27. package/web/dist/assets/{design-icons-BZt8Kqs9.js → design-icons-QbNMZniQ.js} +1 -1
  28. package/web/dist/assets/{dialog-CB9ZhEk2.js → dialog-DRZuXvul.js} +1 -1
  29. package/web/dist/assets/{diff-C3yU7Csu.js → diff-DsPWectf.js} +2 -2
  30. package/web/dist/assets/{diff-controls-CeQm9Jc1.js → diff-controls-BfNiZ7m7.js} +1 -1
  31. package/web/dist/assets/{diff-view-Grb61Ghl.js → diff-view-Ds6tF4Li.js} +1 -1
  32. package/web/dist/assets/discard-changes-dialog-SEDH0D2b.js +1 -0
  33. package/web/dist/assets/{dropdown-menu-VFda6KAg.js → dropdown-menu-DjtKUK8F.js} +1 -1
  34. package/web/dist/assets/{file-preview-DgGVDktY.js → file-preview-Dd4Bn_jS.js} +1 -1
  35. package/web/dist/assets/file-text-nGpo7MVd.js +1 -0
  36. package/web/dist/assets/{folder-browser-BSGB9hhQ.js → folder-browser-BgGSB2gk.js} +1 -1
  37. package/web/dist/assets/git-toolbar-CyDX0ZlL.js +1 -0
  38. package/web/dist/assets/github-CSHuD5n6.js +1 -0
  39. package/web/dist/assets/{global-activity-route-ChIXZkV4.js → global-activity-route-BeiBJ_S6.js} +2 -2
  40. package/web/dist/assets/index-BXyNYltk.css +1 -0
  41. package/web/dist/assets/index-D7e7hQRs.js +21 -0
  42. package/web/dist/assets/{label-CV8tuTOO.js → label-CxJpzeLL.js} +1 -1
  43. package/web/dist/assets/{markdown-CYnX-EPx.js → markdown-xkaHkz73.js} +1 -1
  44. package/web/dist/assets/middle-truncated-name-D41ibfXD.js +1 -0
  45. package/web/dist/assets/{open-in-menu-Uw-sJhbG.js → open-in-menu-CmsJeSrD.js} +1 -1
  46. package/web/dist/assets/{option-select-BUhZ2W4R.js → option-select-yBRQj6E_.js} +1 -1
  47. package/web/dist/assets/{preferences-section-CUEMtlY1.js → preferences-section-37pdeCWJ.js} +1 -1
  48. package/web/dist/assets/preview-pane-connected-By08oMDu.js +3 -0
  49. package/web/dist/assets/{project-location-Com8-lSO.js → project-location-FjgEfTb0.js} +1 -1
  50. package/web/dist/assets/{project-router-BHFXTx5l.js → project-router-BNcdL2CI.js} +1 -1
  51. package/web/dist/assets/{projects-section-BXfl7j41.js → projects-section-C2APAdf3.js} +1 -1
  52. package/web/dist/assets/{prompt-templates-section-Dk6RHmYv.js → prompt-templates-section-HpQeEo4v.js} +2 -2
  53. package/web/dist/assets/queries-BSxNcgZm.js +1 -0
  54. package/web/dist/assets/reference-chip-DFwi97Ps.js +1 -0
  55. package/web/dist/assets/{remote-settings-notice-BiDxItMy.js → remote-settings-notice-CaFJB726.js} +1 -1
  56. package/web/dist/assets/repo-git-CpW0usPY.js +1 -0
  57. package/web/dist/assets/{report-reader-CwN06YF_.js → report-reader-CmEcwfsT.js} +1 -1
  58. package/web/dist/assets/{report-selection-BH0M_8bk.js → report-selection-CaEdb2HO.js} +1 -1
  59. package/web/dist/assets/{reports-BfjboYdo.js → reports-G5DwAoma.js} +1 -1
  60. package/web/dist/assets/{resources-section-BZnZc4-N.js → resources-section-BIjd5azP.js} +1 -1
  61. package/web/dist/assets/review-panel-CgKnI_Kf.js +11 -0
  62. package/web/dist/assets/{run-detail-refresh-DTnwaDy2.js → run-detail-refresh-GbAx5_Mn.js} +1 -1
  63. package/web/dist/assets/run-header-DRYGraQL.js +2 -0
  64. package/web/dist/assets/{select-C8flywoB.js → select-akdt2vf9.js} +1 -1
  65. package/web/dist/assets/{session-context-section-7jHtTQbO.js → session-context-section-Ckddzf6W.js} +2 -2
  66. package/web/dist/assets/{settings-agent-picker-CVcjvJvL.js → settings-agent-picker-Bt31ulJ9.js} +1 -1
  67. package/web/dist/assets/{settings-list-detail-DcRsGkGy.js → settings-list-detail-Dn5CWzHj.js} +1 -1
  68. package/web/dist/assets/{settings-save-bar-oJEvE3jc.js → settings-save-bar-BCxZrjjt.js} +1 -1
  69. package/web/dist/assets/{settings-shell-CvhePCx2.js → settings-shell-C84UojR3.js} +1 -1
  70. package/web/dist/assets/{sidebar-section-8MPtkS-I.js → sidebar-section-Dr9ev5Vo.js} +1 -1
  71. package/web/dist/assets/{skills-CusEy37v.js → skills-Dh6dbL6k.js} +1 -1
  72. package/web/dist/assets/{tab-link-BYYXdpLn.js → tab-link-BrzzZnhE.js} +1 -1
  73. package/web/dist/assets/task-changes-pVv5Oafz.js +1 -0
  74. package/web/dist/assets/task-commits-Bex46n4l.js +1 -0
  75. package/web/dist/assets/{task-file-scope-CNRh9lQ2.js → task-file-scope-DI5YpFAh.js} +1 -1
  76. package/web/dist/assets/task-files-C1nhWf4J.js +1 -0
  77. package/web/dist/assets/{task-github-item-CpBHx0Wb.js → task-github-item-CBOKx42k.js} +1 -1
  78. package/web/dist/assets/{task-groups-C9pTQm-2.js → task-groups-CsjJ9R5Y.js} +1 -1
  79. package/web/dist/assets/{task-thread-B6wUEFuA.js → task-thread-DP78hgdh.js} +2 -2
  80. package/web/dist/assets/{tasks-table-CvZ2ZyCa.js → tasks-table--jkwCj2N.js} +1 -1
  81. package/web/dist/assets/thread-state-CHQ0rJr9.js +4 -0
  82. package/web/dist/assets/{toaster-D0HMoto5.js → toaster-BJG79kO8.js} +1 -1
  83. package/web/dist/assets/use-hand-to-agent-state-C5m1ufIR.js +1 -0
  84. package/web/dist/assets/use-path-bases-D5kpDgkA.js +1 -0
  85. package/web/dist/assets/use-workspace-config-save-DF7JuKqF.js +1 -0
  86. package/web/dist/assets/{workflows-DXjcHNCT.css → workflows-B2Sw8qQa.css} +1 -1
  87. package/web/dist/assets/workflows-C3Q0b6rr.js +7 -0
  88. package/web/dist/assets/{workspace-tools-QFKIfvu5.js → workspace-tools-Bhqgjmre.js} +1 -1
  89. package/web/dist/assets/{worktrees-section-lxAe5Urq.js → worktrees-section-BDEXzzG0.js} +5 -5
  90. package/web/dist/index.html +19 -19
  91. package/web/dist/assets/accounts-section-Bxr7TAOq.js +0 -1
  92. package/web/dist/assets/activity-motion-BlexjzZt.js +0 -1
  93. package/web/dist/assets/agent-defaults-section-EqrZNk01.js +0 -1
  94. package/web/dist/assets/attention-V1gJ7gKo.js +0 -1
  95. package/web/dist/assets/automations-route-CSZpqSSz.js +0 -2
  96. package/web/dist/assets/commit-list-DW-wtlpO.js +0 -1
  97. package/web/dist/assets/discard-changes-dialog-Bqj1x_q2.js +0 -1
  98. package/web/dist/assets/git-toolbar-DqD15_MH.js +0 -1
  99. package/web/dist/assets/github-BOjCmmOx.js +0 -1
  100. package/web/dist/assets/index-CL8H88yY.css +0 -1
  101. package/web/dist/assets/index-CRL8ybbj.js +0 -21
  102. package/web/dist/assets/preview-pane-connected-BRK1F8x3.js +0 -3
  103. package/web/dist/assets/queries-CIeJg62Y.js +0 -1
  104. package/web/dist/assets/reference-chip-Dk69XD7Q.js +0 -1
  105. package/web/dist/assets/repo-git-CmWux2Lp.js +0 -1
  106. package/web/dist/assets/review-panel-gMuvPFIw.js +0 -11
  107. package/web/dist/assets/run-header-BTgpmiCT.js +0 -2
  108. package/web/dist/assets/task-changes-ChnTjiKD.js +0 -1
  109. package/web/dist/assets/task-commits-DBpVLXlp.js +0 -1
  110. package/web/dist/assets/task-files-C7Bhj8OA.js +0 -1
  111. package/web/dist/assets/thread-state-CPbN0Fft.js +0 -4
  112. package/web/dist/assets/use-hand-to-agent-state-x5s8uwGT.js +0 -1
  113. package/web/dist/assets/use-path-bases-D0V1JS7-.js +0 -1
  114. package/web/dist/assets/use-workspace-config-save-bZksgjRK.js +0 -1
  115. package/web/dist/assets/workflows-CQ2Rsukm.js +0 -7
@@ -4559,184 +4559,158 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4559
4559
  };
4560
4560
  };
4561
4561
  }, "/"> | import("hono/types").MergeSchemaPath<{
4562
- "/repo": {
4562
+ "/github": {
4563
4563
  $get: {
4564
4564
  output: {
4565
- info: null;
4566
- status: never[];
4567
- log: never[];
4568
- branches: never[];
4569
- baseBranch: null;
4570
- tracking: null;
4565
+ error: string;
4566
+ code?: "invalid_input" | undefined;
4571
4567
  };
4572
4568
  outputFormat: "json";
4573
- status: import("hono/utils/http-status").ContentfulStatusCode;
4574
- input: {};
4569
+ status: 400;
4570
+ input: {
4571
+ query: {
4572
+ limit?: string | undefined;
4573
+ refresh?: string | undefined;
4574
+ issuesCursor?: string | undefined;
4575
+ prsCursor?: string | undefined;
4576
+ issuesDone?: "1" | undefined;
4577
+ prsDone?: "1" | undefined;
4578
+ };
4579
+ };
4575
4580
  } | {
4576
4581
  output: {
4577
- info: {
4578
- root: string;
4579
- branch: string;
4580
- remote?: string | undefined;
4581
- };
4582
- status: {
4583
- status: string;
4584
- path: string;
4585
- }[];
4586
- log: ({
4587
- hash: string;
4588
- subject: string;
4589
- author: string;
4590
- when: string;
4591
- at: string;
4592
- } | {
4593
- hash: string;
4594
- subject: string;
4595
- author: string;
4596
- when: string;
4597
- at: string;
4598
- source: {
4599
- runId: string;
4600
- title: string;
4601
- prNumber: number | null;
4602
- };
4603
- })[];
4604
- branches: string[];
4605
- baseBranch: string | null;
4606
- tracking: {
4607
- ref: string;
4608
- ahead: number;
4609
- behind: number;
4610
- fetchedAt: string | null;
4611
- } | null;
4582
+ available: false;
4583
+ reason: string;
4584
+ issues: never[];
4585
+ prs: never[];
4612
4586
  };
4613
4587
  outputFormat: "json";
4614
4588
  status: import("hono/utils/http-status").ContentfulStatusCode;
4615
- input: {};
4616
- };
4617
- };
4618
- } & {
4619
- "/repo/branches": {
4620
- $get: {
4589
+ input: {
4590
+ query: {
4591
+ limit?: string | undefined;
4592
+ refresh?: string | undefined;
4593
+ issuesCursor?: string | undefined;
4594
+ prsCursor?: string | undefined;
4595
+ issuesDone?: "1" | undefined;
4596
+ prsDone?: "1" | undefined;
4597
+ };
4598
+ };
4599
+ } | {
4621
4600
  output: {
4622
- base: string;
4623
- prStateKnown: boolean;
4624
- branches: {
4625
- name: string;
4626
- class: "active" | "empty" | "merged" | "not-landed" | "orphan" | "other";
4627
- runId: string | null;
4628
- title: string | null;
4629
- runStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting" | null;
4630
- ahead: number;
4631
- lastCommit: {
4632
- sha: string;
4633
- subject: string;
4634
- at: string;
4635
- };
4636
- diffStat: {
4637
- additions: number;
4638
- deletions: number;
4639
- } | null;
4640
- pr: {
4641
- number: number;
4642
- url: string;
4643
- state: "closed" | "draft" | "merged" | "open";
4644
- } | null;
4645
- keptReason?: string | undefined;
4646
- parentRunId?: string | undefined;
4601
+ available: boolean;
4602
+ reason?: string | undefined;
4603
+ repo?: string | undefined;
4604
+ syncedAt?: string | undefined;
4605
+ issues: {
4606
+ kind: "issue" | "pr";
4607
+ number: number;
4608
+ title: string;
4609
+ author: string;
4610
+ createdAt: string;
4611
+ labels: string[];
4612
+ body?: string | undefined;
4613
+ url: string;
4614
+ comments: number;
4615
+ assignees?: string[] | undefined;
4616
+ projectIds?: string[] | undefined;
4617
+ isDraft?: boolean | undefined;
4618
+ additions?: number | undefined;
4619
+ deletions?: number | undefined;
4620
+ checks?: "failing" | "passing" | "pending" | null | undefined;
4647
4621
  }[];
4648
- counts: {
4649
- notLanded: number;
4650
- cleanup: number;
4651
- };
4622
+ prs: {
4623
+ kind: "issue" | "pr";
4624
+ number: number;
4625
+ title: string;
4626
+ author: string;
4627
+ createdAt: string;
4628
+ labels: string[];
4629
+ body?: string | undefined;
4630
+ url: string;
4631
+ comments: number;
4632
+ assignees?: string[] | undefined;
4633
+ projectIds?: string[] | undefined;
4634
+ isDraft?: boolean | undefined;
4635
+ additions?: number | undefined;
4636
+ deletions?: number | undefined;
4637
+ checks?: "failing" | "passing" | "pending" | null | undefined;
4638
+ }[];
4639
+ labelColors?: {
4640
+ [x: string]: string;
4641
+ } | undefined;
4642
+ viewerLogin?: string | undefined;
4643
+ projects?: {
4644
+ id: string;
4645
+ title: string;
4646
+ url: string;
4647
+ }[] | undefined;
4648
+ projectsReason?: string | undefined;
4649
+ projectsState?: "ready" | "refreshing" | "unavailable" | undefined;
4650
+ projectsGeneration?: string | undefined;
4651
+ issuesTotal?: number | undefined;
4652
+ prsTotal?: number | undefined;
4653
+ issuesNextCursor?: string | null | undefined;
4654
+ prsNextCursor?: string | null | undefined;
4655
+ commentsDeferred?: true | undefined;
4652
4656
  };
4653
4657
  outputFormat: "json";
4654
4658
  status: import("hono/utils/http-status").ContentfulStatusCode;
4655
- input: {};
4656
- };
4657
- };
4658
- } & {
4659
- "/repo/branches/counts": {
4660
- $get: {
4661
- output: {
4662
- base: string;
4663
- prStateKnown: boolean;
4664
- counts: {
4665
- notLanded: number;
4666
- cleanup: number;
4659
+ input: {
4660
+ query: {
4661
+ limit?: string | undefined;
4662
+ refresh?: string | undefined;
4663
+ issuesCursor?: string | undefined;
4664
+ prsCursor?: string | undefined;
4665
+ issuesDone?: "1" | undefined;
4666
+ prsDone?: "1" | undefined;
4667
4667
  };
4668
- allBranches: number;
4669
4668
  };
4670
- outputFormat: "json";
4671
- status: import("hono/utils/http-status").ContentfulStatusCode;
4672
- input: {};
4673
4669
  };
4674
4670
  };
4675
4671
  } & {
4676
- "/repo/branches/delete": {
4677
- $post: {
4672
+ "/github/projects": {
4673
+ $get: {
4678
4674
  output: {
4679
4675
  error: string;
4680
- refused: {
4681
- name: string;
4682
- reason: string;
4683
- }[];
4676
+ code?: "invalid_input" | undefined;
4684
4677
  };
4685
4678
  outputFormat: "json";
4686
- status: 409;
4679
+ status: 400;
4687
4680
  input: {
4688
- json: {
4689
- names: string[];
4690
- confirm?: string | undefined;
4681
+ query: {
4682
+ generation: string | string[];
4691
4683
  };
4692
4684
  };
4693
4685
  } | {
4694
4686
  output: {
4695
- deleted: string[];
4696
- refused: {
4697
- name: string;
4698
- reason: string;
4687
+ generation: string;
4688
+ state: "ready";
4689
+ projects: {
4690
+ id: string;
4691
+ title: string;
4692
+ url: string;
4699
4693
  }[];
4700
- dropped?: {
4701
- sha: string;
4702
- subject: string;
4703
- }[] | undefined;
4694
+ membership: {
4695
+ [x: string]: string[];
4696
+ };
4697
+ } | {
4698
+ generation: string;
4699
+ state: "unavailable";
4700
+ reason: string;
4704
4701
  };
4705
4702
  outputFormat: "json";
4706
- status: 200;
4703
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4707
4704
  input: {
4708
- json: {
4709
- names: string[];
4710
- confirm?: string | undefined;
4705
+ query: {
4706
+ generation: string | string[];
4711
4707
  };
4712
4708
  };
4713
4709
  };
4714
4710
  };
4715
4711
  } & {
4716
- "/repo/diff": {
4717
- $get: {
4718
- output: string;
4719
- outputFormat: "text";
4720
- status: import("hono/utils/http-status").ContentfulStatusCode;
4721
- input: {};
4722
- };
4723
- };
4724
- } & {
4725
- "/repo/commit/:sha": {
4712
+ "/github/comments/:kind/:number": {
4726
4713
  $get: {
4727
- output: string;
4728
- outputFormat: "text";
4729
- status: import("hono/utils/http-status").ContentfulStatusCode;
4730
- input: {
4731
- query: {
4732
- structured?: string | undefined;
4733
- };
4734
- } & {
4735
- param: {
4736
- sha: string;
4737
- };
4738
- };
4739
- } | {
4740
4714
  output: {
4741
4715
  error: string;
4742
4716
  code?: "invalid_input" | undefined;
@@ -4745,178 +4719,249 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4745
4719
  status: 400;
4746
4720
  input: {
4747
4721
  query: {
4748
- structured?: string | undefined;
4722
+ refresh?: string | undefined;
4749
4723
  };
4750
4724
  } & {
4751
4725
  param: {
4752
- sha: string;
4726
+ kind: string;
4727
+ } & {
4728
+ number: string;
4753
4729
  };
4754
4730
  };
4755
4731
  } | {
4756
4732
  output: {
4757
- sha: string;
4758
- subject: string;
4759
- author: string;
4760
- when: string;
4761
- files: {
4762
- path: string;
4763
- oldPath?: string;
4764
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
4765
- adds: number;
4766
- dels: number;
4767
- binary: boolean;
4768
- image?: boolean;
4769
- patch: string;
4770
- }[];
4771
- stat: {
4772
- adds: number;
4773
- dels: number;
4774
- files: number;
4775
- };
4733
+ error: string;
4776
4734
  };
4777
4735
  outputFormat: "json";
4778
- status: import("hono/utils/http-status").ContentfulStatusCode;
4736
+ status: 400;
4779
4737
  input: {
4780
4738
  query: {
4781
- structured?: string | undefined;
4739
+ refresh?: string | undefined;
4782
4740
  };
4783
4741
  } & {
4784
4742
  param: {
4785
- sha: string;
4743
+ kind: string;
4744
+ } & {
4745
+ number: string;
4786
4746
  };
4787
4747
  };
4788
4748
  } | {
4789
4749
  output: {
4790
- error: string;
4750
+ available: false;
4751
+ reason: string;
4752
+ comments: never[];
4791
4753
  };
4792
4754
  outputFormat: "json";
4793
- status: 409;
4755
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4794
4756
  input: {
4795
4757
  query: {
4796
- structured?: string | undefined;
4758
+ refresh?: string | undefined;
4797
4759
  };
4798
4760
  } & {
4799
4761
  param: {
4800
- sha: string;
4762
+ kind: string;
4763
+ } & {
4764
+ number: string;
4801
4765
  };
4802
4766
  };
4803
- };
4804
- };
4805
- } & {
4806
- "/repo/changes": {
4807
- $get: {
4767
+ } | {
4808
4768
  output: {
4809
- files: {
4810
- path: string;
4811
- oldPath?: string;
4812
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
4813
- adds: number;
4814
- dels: number;
4815
- binary: boolean;
4816
- image?: boolean;
4817
- patch: string;
4769
+ available: boolean;
4770
+ reason?: string | undefined;
4771
+ comments: {
4772
+ id: number;
4773
+ author: string;
4774
+ avatarUrl?: string | undefined;
4775
+ createdAt: string;
4776
+ body: string;
4777
+ kind: "comment" | "review";
4778
+ reviewState?: "approved" | "changes_requested" | "commented" | "dismissed" | undefined;
4779
+ url: string;
4818
4780
  }[];
4819
- stat: {
4820
- adds: number;
4821
- dels: number;
4822
- files: number;
4823
- };
4824
- repointedHead?: {
4825
- headBranch: string;
4826
- taskBranch: string;
4781
+ truncated?: boolean | undefined;
4782
+ events?: {
4783
+ id: string;
4784
+ kind: "assigned" | "closed" | "committed" | "cross-referenced" | "head_ref_force_pushed" | "labeled" | "merged" | "renamed" | "reopened" | "unassigned" | "unlabeled";
4785
+ actor: string;
4786
+ avatarUrl?: string | undefined;
4787
+ createdAt: string;
4788
+ url?: string | undefined;
4789
+ sha?: string | undefined;
4790
+ message?: string | undefined;
4791
+ checks?: "failing" | "passing" | "pending" | null | undefined;
4792
+ label?: {
4793
+ name: string;
4794
+ color?: string | undefined;
4795
+ } | undefined;
4796
+ subject?: string | undefined;
4797
+ refNumber?: number | undefined;
4798
+ refTitle?: string | undefined;
4799
+ refIsPr?: boolean | undefined;
4800
+ }[] | undefined;
4801
+ detail?: {
4802
+ body: string;
4803
+ additions?: number | undefined;
4804
+ deletions?: number | undefined;
4827
4805
  } | undefined;
4828
4806
  };
4829
4807
  outputFormat: "json";
4830
4808
  status: import("hono/utils/http-status").ContentfulStatusCode;
4831
- input: {};
4832
- } | {
4833
- output: {
4834
- error: string;
4809
+ input: {
4810
+ query: {
4811
+ refresh?: string | undefined;
4812
+ };
4813
+ } & {
4814
+ param: {
4815
+ kind: string;
4816
+ } & {
4817
+ number: string;
4818
+ };
4835
4819
  };
4836
- outputFormat: "json";
4837
- status: 409;
4838
- input: {};
4839
4820
  };
4840
4821
  };
4841
4822
  } & {
4842
- "/repo/pull": {
4823
+ "/github/items/:kind/:number": {
4843
4824
  $get: {
4844
4825
  output: {
4845
4826
  error: string;
4827
+ code?: "invalid_input" | undefined;
4846
4828
  };
4847
4829
  outputFormat: "json";
4848
- status: 409;
4849
- input: {};
4830
+ status: 400;
4831
+ input: {
4832
+ param: {
4833
+ kind: "issue" | "pr";
4834
+ number: string;
4835
+ };
4836
+ } & {
4837
+ query: {
4838
+ refresh?: string | undefined;
4839
+ };
4840
+ };
4850
4841
  } | {
4851
4842
  output: {
4852
- branches: string[];
4843
+ available: true;
4844
+ item: {
4845
+ kind: "issue" | "pr";
4846
+ number: number;
4847
+ title: string;
4848
+ author: string;
4849
+ createdAt: string;
4850
+ labels: string[];
4851
+ body?: string | undefined;
4852
+ url: string;
4853
+ comments: number;
4854
+ assignees?: string[] | undefined;
4855
+ projectIds?: string[] | undefined;
4856
+ isDraft?: boolean | undefined;
4857
+ additions?: number | undefined;
4858
+ deletions?: number | undefined;
4859
+ checks?: "failing" | "passing" | "pending" | null | undefined;
4860
+ } | null;
4861
+ labelColors?: {
4862
+ [x: string]: string;
4863
+ } | undefined;
4864
+ } | {
4865
+ available: false;
4866
+ reason: string;
4853
4867
  };
4854
4868
  outputFormat: "json";
4855
4869
  status: import("hono/utils/http-status").ContentfulStatusCode;
4856
- input: {};
4870
+ input: {
4871
+ param: {
4872
+ kind: "issue" | "pr";
4873
+ number: string;
4874
+ };
4875
+ } & {
4876
+ query: {
4877
+ refresh?: string | undefined;
4878
+ };
4879
+ };
4857
4880
  };
4858
4881
  };
4859
4882
  } & {
4860
- "/repo/pull": {
4861
- $post: {
4883
+ "/github/checks": {
4884
+ $get: {
4862
4885
  output: {
4863
4886
  error: string;
4887
+ code?: "invalid_input" | undefined;
4864
4888
  };
4865
4889
  outputFormat: "json";
4866
- status: 409;
4890
+ status: 400;
4867
4891
  input: {
4868
- json: {
4869
- branch?: string | undefined;
4870
- confirm?: boolean | undefined;
4892
+ query: {
4893
+ prs: string | string[];
4871
4894
  };
4872
4895
  };
4873
4896
  } | {
4874
4897
  output: {
4875
- branch: string;
4876
- pulled: true;
4877
- summary: string;
4898
+ error: string;
4878
4899
  };
4879
4900
  outputFormat: "json";
4880
- status: 200;
4901
+ status: 400;
4881
4902
  input: {
4882
- json: {
4883
- branch?: string | undefined;
4884
- confirm?: boolean | undefined;
4903
+ query: {
4904
+ prs: string | string[];
4905
+ };
4906
+ };
4907
+ } | {
4908
+ output: {
4909
+ available: true;
4910
+ checks: {
4911
+ [x: number]: "failing" | "passing" | "pending" | null;
4912
+ };
4913
+ } | {
4914
+ available: false;
4915
+ reason: string;
4916
+ };
4917
+ outputFormat: "json";
4918
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4919
+ input: {
4920
+ query: {
4921
+ prs: string | string[];
4885
4922
  };
4886
4923
  };
4887
4924
  };
4888
4925
  };
4889
4926
  } & {
4890
- "/repo/branch": {
4891
- $post: {
4927
+ "/github/comment-counts": {
4928
+ $get: {
4892
4929
  output: {
4893
4930
  error: string;
4931
+ code?: "invalid_input" | undefined;
4894
4932
  };
4895
4933
  outputFormat: "json";
4896
- status: 409;
4934
+ status: 400;
4897
4935
  input: {
4898
- json: {
4899
- name: string;
4900
- from?: string | undefined;
4936
+ query: {
4937
+ kind: "issue" | "pr";
4938
+ numbers: string | string[];
4939
+ refresh?: "1" | undefined;
4901
4940
  };
4902
4941
  };
4903
4942
  } | {
4904
4943
  output: {
4905
- branch: string;
4906
- created: boolean;
4944
+ available: true;
4945
+ counts: {
4946
+ [x: number]: number;
4947
+ };
4948
+ } | {
4949
+ available: false;
4950
+ reason: string;
4907
4951
  };
4908
4952
  outputFormat: "json";
4909
4953
  status: import("hono/utils/http-status").ContentfulStatusCode;
4910
4954
  input: {
4911
- json: {
4912
- name: string;
4913
- from?: string | undefined;
4955
+ query: {
4956
+ kind: "issue" | "pr";
4957
+ numbers: string | string[];
4958
+ refresh?: "1" | undefined;
4914
4959
  };
4915
4960
  };
4916
4961
  };
4917
4962
  };
4918
- }, "/"> | import("hono/types").MergeSchemaPath<{
4919
- "/github": {
4963
+ } & {
4964
+ "/github/search": {
4920
4965
  $get: {
4921
4966
  output: {
4922
4967
  error: string;
@@ -4926,57 +4971,32 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4926
4971
  status: 400;
4927
4972
  input: {
4928
4973
  query: {
4929
- limit?: string | undefined;
4930
- refresh?: string | undefined;
4931
- issuesCursor?: string | undefined;
4932
- prsCursor?: string | undefined;
4933
- issuesDone?: "1" | undefined;
4934
- prsDone?: "1" | undefined;
4974
+ kind: "issue" | "pr";
4975
+ q: string | string[];
4976
+ limit?: number | undefined;
4935
4977
  };
4936
4978
  };
4937
4979
  } | {
4938
4980
  output: {
4939
4981
  available: false;
4940
4982
  reason: string;
4941
- issues: never[];
4942
- prs: never[];
4983
+ items: never[];
4943
4984
  };
4944
4985
  outputFormat: "json";
4945
4986
  status: import("hono/utils/http-status").ContentfulStatusCode;
4946
4987
  input: {
4947
4988
  query: {
4948
- limit?: string | undefined;
4949
- refresh?: string | undefined;
4950
- issuesCursor?: string | undefined;
4951
- prsCursor?: string | undefined;
4952
- issuesDone?: "1" | undefined;
4953
- prsDone?: "1" | undefined;
4989
+ kind: "issue" | "pr";
4990
+ q: string | string[];
4991
+ limit?: number | undefined;
4954
4992
  };
4955
4993
  };
4956
4994
  } | {
4957
4995
  output: {
4958
4996
  available: boolean;
4997
+ projectsReason?: string | undefined;
4959
4998
  reason?: string | undefined;
4960
- repo?: string | undefined;
4961
- syncedAt?: string | undefined;
4962
- issues: {
4963
- kind: "issue" | "pr";
4964
- number: number;
4965
- title: string;
4966
- author: string;
4967
- createdAt: string;
4968
- labels: string[];
4969
- body?: string | undefined;
4970
- url: string;
4971
- comments: number;
4972
- assignees?: string[] | undefined;
4973
- projectIds?: string[] | undefined;
4974
- isDraft?: boolean | undefined;
4975
- additions?: number | undefined;
4976
- deletions?: number | undefined;
4977
- checks?: "failing" | "passing" | "pending" | null | undefined;
4978
- }[];
4979
- prs: {
4999
+ items: {
4980
5000
  kind: "issue" | "pr";
4981
5001
  number: number;
4982
5002
  title: string;
@@ -4993,40 +5013,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4993
5013
  deletions?: number | undefined;
4994
5014
  checks?: "failing" | "passing" | "pending" | null | undefined;
4995
5015
  }[];
5016
+ truncated?: boolean | undefined;
4996
5017
  labelColors?: {
4997
5018
  [x: string]: string;
4998
5019
  } | undefined;
4999
- viewerLogin?: string | undefined;
5000
- projects?: {
5001
- id: string;
5002
- title: string;
5003
- url: string;
5004
- }[] | undefined;
5005
- projectsReason?: string | undefined;
5006
- projectsState?: "ready" | "refreshing" | "unavailable" | undefined;
5007
- projectsGeneration?: string | undefined;
5008
- issuesTotal?: number | undefined;
5009
- prsTotal?: number | undefined;
5010
- issuesNextCursor?: string | null | undefined;
5011
- prsNextCursor?: string | null | undefined;
5012
- commentsDeferred?: true | undefined;
5013
5020
  };
5014
5021
  outputFormat: "json";
5015
5022
  status: import("hono/utils/http-status").ContentfulStatusCode;
5016
5023
  input: {
5017
5024
  query: {
5018
- limit?: string | undefined;
5019
- refresh?: string | undefined;
5020
- issuesCursor?: string | undefined;
5021
- prsCursor?: string | undefined;
5022
- issuesDone?: "1" | undefined;
5023
- prsDone?: "1" | undefined;
5025
+ kind: "issue" | "pr";
5026
+ q: string | string[];
5027
+ limit?: number | undefined;
5024
5028
  };
5025
5029
  };
5026
5030
  };
5027
5031
  };
5028
5032
  } & {
5029
- "/github/projects": {
5033
+ "/github/ref-status": {
5030
5034
  $get: {
5031
5035
  output: {
5032
5036
  error: string;
@@ -5036,148 +5040,50 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5036
5040
  status: 400;
5037
5041
  input: {
5038
5042
  query: {
5039
- generation: string | string[];
5043
+ prs?: string | undefined;
5044
+ issues?: string | undefined;
5040
5045
  };
5041
5046
  };
5042
5047
  } | {
5043
- output: {
5044
- generation: string;
5045
- state: "ready";
5046
- projects: {
5047
- id: string;
5048
- title: string;
5049
- url: string;
5050
- }[];
5051
- membership: {
5052
- [x: string]: string[];
5053
- };
5054
- } | {
5055
- generation: string;
5056
- state: "unavailable";
5057
- reason: string;
5058
- };
5059
- outputFormat: "json";
5060
- status: import("hono/utils/http-status").ContentfulStatusCode;
5061
- input: {
5062
- query: {
5063
- generation: string | string[];
5064
- };
5065
- };
5066
- };
5067
- };
5068
- } & {
5069
- "/github/comments/:kind/:number": {
5070
- $get: {
5071
5048
  output: {
5072
5049
  error: string;
5073
- code?: "invalid_input" | undefined;
5074
5050
  };
5075
5051
  outputFormat: "json";
5076
5052
  status: 400;
5077
5053
  input: {
5078
5054
  query: {
5079
- refresh?: string | undefined;
5080
- };
5081
- } & {
5082
- param: {
5083
- kind: string;
5084
- } & {
5085
- number: string;
5055
+ prs?: string | undefined;
5056
+ issues?: string | undefined;
5086
5057
  };
5087
5058
  };
5088
5059
  } | {
5089
5060
  output: {
5090
- error: string;
5091
- };
5092
- outputFormat: "json";
5093
- status: 400;
5094
- input: {
5095
- query: {
5096
- refresh?: string | undefined;
5061
+ available: true;
5062
+ prs: {
5063
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5097
5064
  };
5098
- } & {
5099
- param: {
5100
- kind: string;
5101
- } & {
5102
- number: string;
5065
+ issues: {
5066
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5103
5067
  };
5104
- };
5105
- } | {
5106
- output: {
5068
+ conflicts?: number[] | undefined;
5069
+ recheckAfterMs: number | null;
5070
+ } | {
5107
5071
  available: false;
5108
5072
  reason: string;
5109
- comments: never[];
5110
- };
5111
- outputFormat: "json";
5112
- status: import("hono/utils/http-status").ContentfulStatusCode;
5113
- input: {
5114
- query: {
5115
- refresh?: string | undefined;
5116
- };
5117
- } & {
5118
- param: {
5119
- kind: string;
5120
- } & {
5121
- number: string;
5122
- };
5123
- };
5124
- } | {
5125
- output: {
5126
- available: boolean;
5127
- reason?: string | undefined;
5128
- comments: {
5129
- id: number;
5130
- author: string;
5131
- avatarUrl?: string | undefined;
5132
- createdAt: string;
5133
- body: string;
5134
- kind: "comment" | "review";
5135
- reviewState?: "approved" | "changes_requested" | "commented" | "dismissed" | undefined;
5136
- url: string;
5137
- }[];
5138
- truncated?: boolean | undefined;
5139
- events?: {
5140
- id: string;
5141
- kind: "assigned" | "closed" | "committed" | "cross-referenced" | "head_ref_force_pushed" | "labeled" | "merged" | "renamed" | "reopened" | "unassigned" | "unlabeled";
5142
- actor: string;
5143
- avatarUrl?: string | undefined;
5144
- createdAt: string;
5145
- url?: string | undefined;
5146
- sha?: string | undefined;
5147
- message?: string | undefined;
5148
- checks?: "failing" | "passing" | "pending" | null | undefined;
5149
- label?: {
5150
- name: string;
5151
- color?: string | undefined;
5152
- } | undefined;
5153
- subject?: string | undefined;
5154
- refNumber?: number | undefined;
5155
- refTitle?: string | undefined;
5156
- refIsPr?: boolean | undefined;
5157
- }[] | undefined;
5158
- detail?: {
5159
- body: string;
5160
- additions?: number | undefined;
5161
- deletions?: number | undefined;
5162
- } | undefined;
5073
+ recheckAfterMs: number | null;
5163
5074
  };
5164
5075
  outputFormat: "json";
5165
5076
  status: import("hono/utils/http-status").ContentfulStatusCode;
5166
5077
  input: {
5167
5078
  query: {
5168
- refresh?: string | undefined;
5169
- };
5170
- } & {
5171
- param: {
5172
- kind: string;
5173
- } & {
5174
- number: string;
5079
+ prs?: string | undefined;
5080
+ issues?: string | undefined;
5175
5081
  };
5176
5082
  };
5177
5083
  };
5178
5084
  };
5179
5085
  } & {
5180
- "/github/items/:kind/:number": {
5086
+ "/github/prs/:number/merge-state": {
5181
5087
  $get: {
5182
5088
  output: {
5183
5089
  error: string;
@@ -5187,7 +5093,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5187
5093
  status: 400;
5188
5094
  input: {
5189
5095
  param: {
5190
- kind: "issue" | "pr";
5191
5096
  number: string;
5192
5097
  };
5193
5098
  } & {
@@ -5198,26 +5103,33 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5198
5103
  } | {
5199
5104
  output: {
5200
5105
  available: true;
5201
- item: {
5202
- kind: "issue" | "pr";
5106
+ mergeState: {
5203
5107
  number: number;
5204
5108
  title: string;
5205
- author: string;
5206
- createdAt: string;
5207
- labels: string[];
5208
- body?: string | undefined;
5209
5109
  url: string;
5210
- comments: number;
5211
- assignees?: string[] | undefined;
5212
- projectIds?: string[] | undefined;
5213
- isDraft?: boolean | undefined;
5214
- additions?: number | undefined;
5215
- deletions?: number | undefined;
5216
- checks?: "failing" | "passing" | "pending" | null | undefined;
5217
- } | null;
5218
- labelColors?: {
5219
- [x: string]: string;
5220
- } | undefined;
5110
+ state: "closed" | "merged" | "open";
5111
+ isDraft: boolean;
5112
+ headRef: string;
5113
+ baseRef: string;
5114
+ headSha: string;
5115
+ mergeable: "conflicting" | "mergeable" | "unknown";
5116
+ reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
5117
+ checks: {
5118
+ name: string;
5119
+ state: "failing" | "passing" | "pending" | "unknown";
5120
+ required: boolean | null;
5121
+ url?: string | undefined;
5122
+ }[];
5123
+ methods: ("merge" | "rebase" | "squash")[];
5124
+ defaultMethod: "merge" | "rebase" | "squash" | null;
5125
+ eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
5126
+ blockers: {
5127
+ code: string;
5128
+ message: string;
5129
+ }[];
5130
+ canMerge: boolean;
5131
+ canOverride: boolean;
5132
+ };
5221
5133
  } | {
5222
5134
  available: false;
5223
5135
  reason: string;
@@ -5226,7 +5138,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5226
5138
  status: import("hono/utils/http-status").ContentfulStatusCode;
5227
5139
  input: {
5228
5140
  param: {
5229
- kind: "issue" | "pr";
5230
5141
  number: string;
5231
5142
  };
5232
5143
  } & {
@@ -5237,8 +5148,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5237
5148
  };
5238
5149
  };
5239
5150
  } & {
5240
- "/github/checks": {
5241
- $get: {
5151
+ "/github/prs/:number/merge": {
5152
+ $post: {
5242
5153
  output: {
5243
5154
  error: string;
5244
5155
  code?: "invalid_input" | undefined;
@@ -5246,8 +5157,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5246
5157
  outputFormat: "json";
5247
5158
  status: 400;
5248
5159
  input: {
5249
- query: {
5250
- prs: string | string[];
5160
+ param: {
5161
+ number: string;
5162
+ };
5163
+ } & {
5164
+ json: {
5165
+ method: "merge" | "rebase" | "squash";
5166
+ expectedHeadSha: string;
5167
+ overrideRules?: boolean | undefined;
5251
5168
  };
5252
5169
  };
5253
5170
  } | {
@@ -5255,212 +5172,44 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5255
5172
  error: string;
5256
5173
  };
5257
5174
  outputFormat: "json";
5258
- status: 400;
5175
+ status: 409;
5259
5176
  input: {
5260
- query: {
5261
- prs: string | string[];
5177
+ param: {
5178
+ number: string;
5262
5179
  };
5263
- };
5264
- } | {
5265
- output: {
5266
- available: true;
5267
- checks: {
5268
- [x: number]: "failing" | "passing" | "pending" | null;
5269
- };
5270
- } | {
5271
- available: false;
5272
- reason: string;
5273
- };
5274
- outputFormat: "json";
5275
- status: import("hono/utils/http-status").ContentfulStatusCode;
5276
- input: {
5277
- query: {
5278
- prs: string | string[];
5279
- };
5280
- };
5281
- };
5282
- };
5283
- } & {
5284
- "/github/comment-counts": {
5285
- $get: {
5286
- output: {
5287
- error: string;
5288
- code?: "invalid_input" | undefined;
5289
- };
5290
- outputFormat: "json";
5291
- status: 400;
5292
- input: {
5293
- query: {
5294
- kind: "issue" | "pr";
5295
- numbers: string | string[];
5296
- refresh?: "1" | undefined;
5297
- };
5298
- };
5299
- } | {
5300
- output: {
5301
- available: true;
5302
- counts: {
5303
- [x: number]: number;
5304
- };
5305
- } | {
5306
- available: false;
5307
- reason: string;
5308
- };
5309
- outputFormat: "json";
5310
- status: import("hono/utils/http-status").ContentfulStatusCode;
5311
- input: {
5312
- query: {
5313
- kind: "issue" | "pr";
5314
- numbers: string | string[];
5315
- refresh?: "1" | undefined;
5316
- };
5317
- };
5318
- };
5319
- };
5320
- } & {
5321
- "/github/search": {
5322
- $get: {
5323
- output: {
5324
- error: string;
5325
- code?: "invalid_input" | undefined;
5326
- };
5327
- outputFormat: "json";
5328
- status: 400;
5329
- input: {
5330
- query: {
5331
- kind: "issue" | "pr";
5332
- q: string | string[];
5333
- limit?: number | undefined;
5334
- };
5335
- };
5336
- } | {
5337
- output: {
5338
- available: false;
5339
- reason: string;
5340
- items: never[];
5341
- };
5342
- outputFormat: "json";
5343
- status: import("hono/utils/http-status").ContentfulStatusCode;
5344
- input: {
5345
- query: {
5346
- kind: "issue" | "pr";
5347
- q: string | string[];
5348
- limit?: number | undefined;
5349
- };
5350
- };
5351
- } | {
5352
- output: {
5353
- available: boolean;
5354
- projectsReason?: string | undefined;
5355
- reason?: string | undefined;
5356
- items: {
5357
- kind: "issue" | "pr";
5358
- number: number;
5359
- title: string;
5360
- author: string;
5361
- createdAt: string;
5362
- labels: string[];
5363
- body?: string | undefined;
5364
- url: string;
5365
- comments: number;
5366
- assignees?: string[] | undefined;
5367
- projectIds?: string[] | undefined;
5368
- isDraft?: boolean | undefined;
5369
- additions?: number | undefined;
5370
- deletions?: number | undefined;
5371
- checks?: "failing" | "passing" | "pending" | null | undefined;
5372
- }[];
5373
- truncated?: boolean | undefined;
5374
- labelColors?: {
5375
- [x: string]: string;
5376
- } | undefined;
5377
- };
5378
- outputFormat: "json";
5379
- status: import("hono/utils/http-status").ContentfulStatusCode;
5380
- input: {
5381
- query: {
5382
- kind: "issue" | "pr";
5383
- q: string | string[];
5384
- limit?: number | undefined;
5385
- };
5386
- };
5387
- };
5388
- };
5389
- } & {
5390
- "/github/ref-status": {
5391
- $get: {
5392
- output: {
5393
- error: string;
5394
- code?: "invalid_input" | undefined;
5395
- };
5396
- outputFormat: "json";
5397
- status: 400;
5398
- input: {
5399
- query: {
5400
- prs?: string | undefined;
5401
- issues?: string | undefined;
5402
- };
5403
- };
5404
- } | {
5405
- output: {
5406
- error: string;
5407
- };
5408
- outputFormat: "json";
5409
- status: 400;
5410
- input: {
5411
- query: {
5412
- prs?: string | undefined;
5413
- issues?: string | undefined;
5180
+ } & {
5181
+ json: {
5182
+ method: "merge" | "rebase" | "squash";
5183
+ expectedHeadSha: string;
5184
+ overrideRules?: boolean | undefined;
5414
5185
  };
5415
5186
  };
5416
5187
  } | {
5417
5188
  output: {
5418
- available: true;
5419
- prs: {
5420
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5421
- };
5422
- issues: {
5423
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5424
- };
5425
- conflicts?: number[] | undefined;
5426
- recheckAfterMs: number | null;
5427
- } | {
5428
- available: false;
5429
- reason: string;
5430
- recheckAfterMs: number | null;
5189
+ merged: true;
5190
+ number: number;
5191
+ url: string;
5192
+ method: import("../core/forge-registry.ts").ForgeMergeMethod;
5193
+ mergeCommitSha?: string;
5431
5194
  };
5432
5195
  outputFormat: "json";
5433
5196
  status: import("hono/utils/http-status").ContentfulStatusCode;
5434
- input: {
5435
- query: {
5436
- prs?: string | undefined;
5437
- issues?: string | undefined;
5438
- };
5439
- };
5440
- };
5441
- };
5442
- } & {
5443
- "/github/prs/:number/merge-state": {
5444
- $get: {
5445
- output: {
5446
- error: string;
5447
- code?: "invalid_input" | undefined;
5448
- };
5449
- outputFormat: "json";
5450
- status: 400;
5451
5197
  input: {
5452
5198
  param: {
5453
5199
  number: string;
5454
5200
  };
5455
5201
  } & {
5456
- query: {
5457
- refresh?: string | undefined;
5202
+ json: {
5203
+ method: "merge" | "rebase" | "squash";
5204
+ expectedHeadSha: string;
5205
+ overrideRules?: boolean | undefined;
5458
5206
  };
5459
5207
  };
5460
5208
  } | {
5461
5209
  output: {
5462
- available: true;
5463
- mergeState: {
5210
+ error: string;
5211
+ code?: string | undefined;
5212
+ current?: {
5464
5213
  number: number;
5465
5214
  title: string;
5466
5215
  url: string;
@@ -5486,27 +5235,26 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5486
5235
  }[];
5487
5236
  canMerge: boolean;
5488
5237
  canOverride: boolean;
5489
- };
5490
- } | {
5491
- available: false;
5492
- reason: string;
5238
+ } | undefined;
5493
5239
  };
5494
5240
  outputFormat: "json";
5495
- status: import("hono/utils/http-status").ContentfulStatusCode;
5241
+ status: 403 | 404 | 409 | 502;
5496
5242
  input: {
5497
5243
  param: {
5498
5244
  number: string;
5499
5245
  };
5500
5246
  } & {
5501
- query: {
5502
- refresh?: string | undefined;
5247
+ json: {
5248
+ method: "merge" | "rebase" | "squash";
5249
+ expectedHeadSha: string;
5250
+ overrideRules?: boolean | undefined;
5503
5251
  };
5504
5252
  };
5505
5253
  };
5506
5254
  };
5507
5255
  } & {
5508
- "/github/prs/:number/merge": {
5509
- $post: {
5256
+ "/github/prs/:number/changes": {
5257
+ $get: {
5510
5258
  output: {
5511
5259
  error: string;
5512
5260
  code?: "invalid_input" | undefined;
@@ -5518,10 +5266,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5518
5266
  number: string;
5519
5267
  };
5520
5268
  } & {
5521
- json: {
5522
- method: "merge" | "rebase" | "squash";
5523
- expectedHeadSha: string;
5524
- overrideRules?: boolean | undefined;
5269
+ query: {
5270
+ refresh?: "1" | undefined;
5525
5271
  };
5526
5272
  };
5527
5273
  } | {
@@ -5529,25 +5275,38 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5529
5275
  error: string;
5530
5276
  };
5531
5277
  outputFormat: "json";
5532
- status: 409;
5278
+ status: 404;
5533
5279
  input: {
5534
5280
  param: {
5535
5281
  number: string;
5536
5282
  };
5537
5283
  } & {
5538
- json: {
5539
- method: "merge" | "rebase" | "squash";
5540
- expectedHeadSha: string;
5541
- overrideRules?: boolean | undefined;
5284
+ query: {
5285
+ refresh?: "1" | undefined;
5542
5286
  };
5543
5287
  };
5544
5288
  } | {
5545
5289
  output: {
5546
- merged: true;
5290
+ available: true;
5547
5291
  number: number;
5548
- url: string;
5549
- method: import("../core/forge-registry.ts").ForgeMergeMethod;
5550
- mergeCommitSha?: string;
5292
+ headSha: string;
5293
+ files: {
5294
+ path: string;
5295
+ previousPath?: string;
5296
+ status: 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed';
5297
+ additions: number;
5298
+ deletions: number;
5299
+ patch?: string;
5300
+ patchUnavailableReason?: 'binary' | 'too-large' | 'not-provided';
5301
+ truncated?: boolean;
5302
+ }[];
5303
+ additions: number;
5304
+ deletions: number;
5305
+ truncated: boolean;
5306
+ reason?: string;
5307
+ } | {
5308
+ available: false;
5309
+ reason: string;
5551
5310
  };
5552
5311
  outputFormat: "json";
5553
5312
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -5556,61 +5315,313 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5556
5315
  number: string;
5557
5316
  };
5558
5317
  } & {
5559
- json: {
5560
- method: "merge" | "rebase" | "squash";
5561
- expectedHeadSha: string;
5562
- overrideRules?: boolean | undefined;
5563
- };
5318
+ query: {
5319
+ refresh?: "1" | undefined;
5320
+ };
5321
+ };
5322
+ };
5323
+ };
5324
+ }, "/"> | import("hono/types").MergeSchemaPath<{
5325
+ "/repo": {
5326
+ $get: {
5327
+ output: {
5328
+ info: null;
5329
+ status: never[];
5330
+ log: never[];
5331
+ branches: never[];
5332
+ baseBranch: null;
5333
+ tracking: null;
5564
5334
  };
5335
+ outputFormat: "json";
5336
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5337
+ input: {};
5565
5338
  } | {
5339
+ output: {
5340
+ info: {
5341
+ root: string;
5342
+ branch: string;
5343
+ remote?: string | undefined;
5344
+ };
5345
+ status: {
5346
+ status: string;
5347
+ path: string;
5348
+ }[];
5349
+ log: ({
5350
+ hash: string;
5351
+ subject: string;
5352
+ author: string;
5353
+ when: string;
5354
+ at: string;
5355
+ } | {
5356
+ hash: string;
5357
+ subject: string;
5358
+ author: string;
5359
+ when: string;
5360
+ at: string;
5361
+ source: {
5362
+ runId: string;
5363
+ title: string;
5364
+ prNumber: number | null;
5365
+ };
5366
+ })[];
5367
+ branches: string[];
5368
+ baseBranch: string | null;
5369
+ tracking: {
5370
+ ref: string;
5371
+ ahead: number;
5372
+ behind: number;
5373
+ fetchedAt: string | null;
5374
+ } | null;
5375
+ };
5376
+ outputFormat: "json";
5377
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5378
+ input: {};
5379
+ };
5380
+ };
5381
+ } & {
5382
+ "/repo/branches": {
5383
+ $get: {
5384
+ output: {
5385
+ base: string;
5386
+ prStateKnown: boolean;
5387
+ branches: {
5388
+ name: string;
5389
+ class: "active" | "empty" | "merged" | "not-landed" | "orphan" | "other";
5390
+ runId: string | null;
5391
+ title: string | null;
5392
+ runStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting" | null;
5393
+ ahead: number;
5394
+ lastCommit: {
5395
+ sha: string;
5396
+ subject: string;
5397
+ at: string;
5398
+ };
5399
+ diffStat: {
5400
+ additions: number;
5401
+ deletions: number;
5402
+ } | null;
5403
+ pr: {
5404
+ number: number;
5405
+ url: string;
5406
+ state: "closed" | "draft" | "merged" | "open";
5407
+ } | null;
5408
+ keptReason?: string | undefined;
5409
+ parentRunId?: string | undefined;
5410
+ }[];
5411
+ counts: {
5412
+ notLanded: number;
5413
+ cleanup: number;
5414
+ };
5415
+ };
5416
+ outputFormat: "json";
5417
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5418
+ input: {};
5419
+ };
5420
+ };
5421
+ } & {
5422
+ "/repo/branches/counts": {
5423
+ $get: {
5424
+ output: {
5425
+ base: string;
5426
+ prStateKnown: boolean;
5427
+ counts: {
5428
+ notLanded: number;
5429
+ cleanup: number;
5430
+ };
5431
+ allBranches: number;
5432
+ };
5433
+ outputFormat: "json";
5434
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5435
+ input: {};
5436
+ };
5437
+ };
5438
+ } & {
5439
+ "/repo/branches/delete": {
5440
+ $post: {
5566
5441
  output: {
5567
5442
  error: string;
5568
- code?: string | undefined;
5569
- current?: {
5570
- number: number;
5571
- title: string;
5572
- url: string;
5573
- state: "closed" | "merged" | "open";
5574
- isDraft: boolean;
5575
- headRef: string;
5576
- baseRef: string;
5577
- headSha: string;
5578
- mergeable: "conflicting" | "mergeable" | "unknown";
5579
- reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
5580
- checks: {
5581
- name: string;
5582
- state: "failing" | "passing" | "pending" | "unknown";
5583
- required: boolean | null;
5584
- url?: string | undefined;
5585
- }[];
5586
- methods: ("merge" | "rebase" | "squash")[];
5587
- defaultMethod: "merge" | "rebase" | "squash" | null;
5588
- eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
5589
- blockers: {
5590
- code: string;
5591
- message: string;
5592
- }[];
5593
- canMerge: boolean;
5594
- canOverride: boolean;
5595
- } | undefined;
5443
+ refused: {
5444
+ name: string;
5445
+ reason: string;
5446
+ }[];
5447
+ };
5448
+ outputFormat: "json";
5449
+ status: 409;
5450
+ input: {
5451
+ json: {
5452
+ names: string[];
5453
+ confirm?: string | undefined;
5454
+ };
5455
+ };
5456
+ } | {
5457
+ output: {
5458
+ deleted: string[];
5459
+ refused: {
5460
+ name: string;
5461
+ reason: string;
5462
+ }[];
5463
+ dropped?: {
5464
+ sha: string;
5465
+ subject: string;
5466
+ }[] | undefined;
5467
+ };
5468
+ outputFormat: "json";
5469
+ status: 200;
5470
+ input: {
5471
+ json: {
5472
+ names: string[];
5473
+ confirm?: string | undefined;
5474
+ };
5475
+ };
5476
+ };
5477
+ };
5478
+ } & {
5479
+ "/repo/diff": {
5480
+ $get: {
5481
+ output: string;
5482
+ outputFormat: "text";
5483
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5484
+ input: {};
5485
+ };
5486
+ };
5487
+ } & {
5488
+ "/repo/commit/:sha": {
5489
+ $get: {
5490
+ output: string;
5491
+ outputFormat: "text";
5492
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5493
+ input: {
5494
+ query: {
5495
+ structured?: string | undefined;
5496
+ };
5497
+ } & {
5498
+ param: {
5499
+ sha: string;
5500
+ };
5501
+ };
5502
+ } | {
5503
+ output: {
5504
+ error: string;
5505
+ code?: "invalid_input" | undefined;
5506
+ };
5507
+ outputFormat: "json";
5508
+ status: 400;
5509
+ input: {
5510
+ query: {
5511
+ structured?: string | undefined;
5512
+ };
5513
+ } & {
5514
+ param: {
5515
+ sha: string;
5516
+ };
5517
+ };
5518
+ } | {
5519
+ output: {
5520
+ sha: string;
5521
+ subject: string;
5522
+ author: string;
5523
+ when: string;
5524
+ files: {
5525
+ path: string;
5526
+ oldPath?: string;
5527
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
5528
+ adds: number;
5529
+ dels: number;
5530
+ binary: boolean;
5531
+ image?: boolean;
5532
+ patch: string;
5533
+ }[];
5534
+ stat: {
5535
+ adds: number;
5536
+ dels: number;
5537
+ files: number;
5538
+ };
5539
+ };
5540
+ outputFormat: "json";
5541
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5542
+ input: {
5543
+ query: {
5544
+ structured?: string | undefined;
5545
+ };
5546
+ } & {
5547
+ param: {
5548
+ sha: string;
5549
+ };
5550
+ };
5551
+ } | {
5552
+ output: {
5553
+ error: string;
5554
+ };
5555
+ outputFormat: "json";
5556
+ status: 409;
5557
+ input: {
5558
+ query: {
5559
+ structured?: string | undefined;
5560
+ };
5561
+ } & {
5562
+ param: {
5563
+ sha: string;
5564
+ };
5565
+ };
5566
+ };
5567
+ };
5568
+ } & {
5569
+ "/repo/commit/:sha/file": {
5570
+ $get: {
5571
+ output: {
5572
+ error: string;
5573
+ code?: "invalid_input" | undefined;
5574
+ };
5575
+ outputFormat: "json";
5576
+ status: 400;
5577
+ input: {
5578
+ param: {
5579
+ sha: string;
5580
+ };
5581
+ } & {
5582
+ query: {
5583
+ path: string | string[];
5584
+ };
5585
+ };
5586
+ } | {
5587
+ output: {
5588
+ type: 'file';
5589
+ path: string;
5590
+ size: number;
5591
+ binary: boolean;
5592
+ tooLarge: boolean;
5593
+ content?: string | undefined;
5596
5594
  };
5597
5595
  outputFormat: "json";
5598
- status: 403 | 404 | 409 | 502;
5596
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5599
5597
  input: {
5600
5598
  param: {
5601
- number: string;
5599
+ sha: string;
5602
5600
  };
5603
5601
  } & {
5604
- json: {
5605
- method: "merge" | "rebase" | "squash";
5606
- expectedHeadSha: string;
5607
- overrideRules?: boolean | undefined;
5602
+ query: {
5603
+ path: string | string[];
5604
+ };
5605
+ };
5606
+ } | {
5607
+ output: {
5608
+ error: string;
5609
+ };
5610
+ outputFormat: "json";
5611
+ status: 409;
5612
+ input: {
5613
+ param: {
5614
+ sha: string;
5615
+ };
5616
+ } & {
5617
+ query: {
5618
+ path: string | string[];
5608
5619
  };
5609
5620
  };
5610
5621
  };
5611
5622
  };
5612
5623
  } & {
5613
- "/github/prs/:number/changes": {
5624
+ "/repo/files": {
5614
5625
  $get: {
5615
5626
  output: {
5616
5627
  error: string;
@@ -5619,12 +5630,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5619
5630
  outputFormat: "json";
5620
5631
  status: 400;
5621
5632
  input: {
5622
- param: {
5623
- number: string;
5633
+ query: {
5634
+ path: string | string[];
5624
5635
  };
5625
- } & {
5636
+ };
5637
+ } | {
5638
+ output: {
5639
+ type: 'file';
5640
+ path: string;
5641
+ size: number;
5642
+ binary: boolean;
5643
+ tooLarge: boolean;
5644
+ content?: string | undefined;
5645
+ };
5646
+ outputFormat: "json";
5647
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5648
+ input: {
5626
5649
  query: {
5627
- refresh?: "1" | undefined;
5650
+ path: string | string[];
5628
5651
  };
5629
5652
  };
5630
5653
  } | {
@@ -5632,48 +5655,123 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5632
5655
  error: string;
5633
5656
  };
5634
5657
  outputFormat: "json";
5635
- status: 404;
5658
+ status: 409;
5636
5659
  input: {
5637
- param: {
5638
- number: string;
5639
- };
5640
- } & {
5641
5660
  query: {
5642
- refresh?: "1" | undefined;
5661
+ path: string | string[];
5643
5662
  };
5644
5663
  };
5645
- } | {
5664
+ };
5665
+ };
5666
+ } & {
5667
+ "/repo/changes": {
5668
+ $get: {
5646
5669
  output: {
5647
- available: true;
5648
- number: number;
5649
- headSha: string;
5650
5670
  files: {
5651
5671
  path: string;
5652
- previousPath?: string;
5653
- status: 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed';
5654
- additions: number;
5655
- deletions: number;
5656
- patch?: string;
5657
- patchUnavailableReason?: 'binary' | 'too-large' | 'not-provided';
5658
- truncated?: boolean;
5672
+ oldPath?: string;
5673
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
5674
+ adds: number;
5675
+ dels: number;
5676
+ binary: boolean;
5677
+ image?: boolean;
5678
+ patch: string;
5659
5679
  }[];
5660
- additions: number;
5661
- deletions: number;
5662
- truncated: boolean;
5663
- reason?: string;
5664
- } | {
5665
- available: false;
5666
- reason: string;
5680
+ stat: {
5681
+ adds: number;
5682
+ dels: number;
5683
+ files: number;
5684
+ };
5685
+ repointedHead?: {
5686
+ headBranch: string;
5687
+ taskBranch: string;
5688
+ } | undefined;
5689
+ };
5690
+ outputFormat: "json";
5691
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5692
+ input: {};
5693
+ } | {
5694
+ output: {
5695
+ error: string;
5696
+ };
5697
+ outputFormat: "json";
5698
+ status: 409;
5699
+ input: {};
5700
+ };
5701
+ };
5702
+ } & {
5703
+ "/repo/pull": {
5704
+ $get: {
5705
+ output: {
5706
+ error: string;
5707
+ };
5708
+ outputFormat: "json";
5709
+ status: 409;
5710
+ input: {};
5711
+ } | {
5712
+ output: {
5713
+ branches: string[];
5667
5714
  };
5668
5715
  outputFormat: "json";
5669
5716
  status: import("hono/utils/http-status").ContentfulStatusCode;
5717
+ input: {};
5718
+ };
5719
+ };
5720
+ } & {
5721
+ "/repo/pull": {
5722
+ $post: {
5723
+ output: {
5724
+ error: string;
5725
+ };
5726
+ outputFormat: "json";
5727
+ status: 409;
5670
5728
  input: {
5671
- param: {
5672
- number: string;
5729
+ json: {
5730
+ branch?: string | undefined;
5731
+ confirm?: boolean | undefined;
5673
5732
  };
5674
- } & {
5675
- query: {
5676
- refresh?: "1" | undefined;
5733
+ };
5734
+ } | {
5735
+ output: {
5736
+ branch: string;
5737
+ pulled: true;
5738
+ summary: string;
5739
+ };
5740
+ outputFormat: "json";
5741
+ status: 200;
5742
+ input: {
5743
+ json: {
5744
+ branch?: string | undefined;
5745
+ confirm?: boolean | undefined;
5746
+ };
5747
+ };
5748
+ };
5749
+ };
5750
+ } & {
5751
+ "/repo/branch": {
5752
+ $post: {
5753
+ output: {
5754
+ error: string;
5755
+ };
5756
+ outputFormat: "json";
5757
+ status: 409;
5758
+ input: {
5759
+ json: {
5760
+ name: string;
5761
+ from?: string | undefined;
5762
+ };
5763
+ };
5764
+ } | {
5765
+ output: {
5766
+ branch: string;
5767
+ created: boolean;
5768
+ };
5769
+ outputFormat: "json";
5770
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5771
+ input: {
5772
+ json: {
5773
+ name: string;
5774
+ from?: string | undefined;
5677
5775
  };
5678
5776
  };
5679
5777
  };
@@ -18164,6 +18262,64 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18164
18262
  };
18165
18263
  };
18166
18264
  };
18265
+ } & {
18266
+ "/runs/:id/commit/:sha/file": {
18267
+ $get: {
18268
+ output: {
18269
+ error: string;
18270
+ code?: "invalid_input" | undefined;
18271
+ };
18272
+ outputFormat: "json";
18273
+ status: 400;
18274
+ input: {
18275
+ param: {
18276
+ sha: string;
18277
+ id: string;
18278
+ };
18279
+ } & {
18280
+ query: {
18281
+ path: string | string[];
18282
+ };
18283
+ };
18284
+ } | {
18285
+ output: {
18286
+ error: string;
18287
+ };
18288
+ outputFormat: "json";
18289
+ status: 404 | 409;
18290
+ input: {
18291
+ param: {
18292
+ sha: string;
18293
+ id: string;
18294
+ };
18295
+ } & {
18296
+ query: {
18297
+ path: string | string[];
18298
+ };
18299
+ };
18300
+ } | {
18301
+ output: {
18302
+ type: 'file';
18303
+ path: string;
18304
+ size: number;
18305
+ binary: boolean;
18306
+ tooLarge: boolean;
18307
+ content?: string | undefined;
18308
+ };
18309
+ outputFormat: "json";
18310
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18311
+ input: {
18312
+ param: {
18313
+ sha: string;
18314
+ id: string;
18315
+ };
18316
+ } & {
18317
+ query: {
18318
+ path: string | string[];
18319
+ };
18320
+ };
18321
+ };
18322
+ };
18167
18323
  } & {
18168
18324
  "/runs/:id/file-link": {
18169
18325
  $get: {
@@ -18544,15 +18700,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18544
18700
  id: string;
18545
18701
  };
18546
18702
  };
18547
- } | {
18548
- output: {
18549
- type: 'dir';
18550
- path: string;
18551
- entries: {
18552
- name: string;
18553
- type: 'dir' | 'file';
18554
- size?: number;
18555
- }[];
18703
+ } | {
18704
+ output: {
18705
+ type: 'file';
18706
+ path: string;
18707
+ size: number;
18708
+ binary: boolean;
18709
+ tooLarge: boolean;
18710
+ content?: string | undefined;
18556
18711
  };
18557
18712
  outputFormat: "json";
18558
18713
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -18568,12 +18723,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18568
18723
  };
18569
18724
  } | {
18570
18725
  output: {
18571
- type: 'file';
18726
+ type: 'dir';
18572
18727
  path: string;
18573
- size: number;
18574
- binary: boolean;
18575
- tooLarge: boolean;
18576
- content?: string | undefined;
18728
+ entries: {
18729
+ name: string;
18730
+ type: 'dir' | 'file';
18731
+ size?: number;
18732
+ chain?: string;
18733
+ }[];
18577
18734
  };
18578
18735
  outputFormat: "json";
18579
18736
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -20029,364 +20186,409 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20029
20186
  };
20030
20187
  };
20031
20188
  }, "/"> | import("hono/types").MergeSchemaPath<{
20032
- "/repo": {
20189
+ "/github": {
20033
20190
  $get: {
20034
20191
  output: {
20035
- info: null;
20036
- status: never[];
20037
- log: never[];
20038
- branches: never[];
20039
- baseBranch: null;
20040
- tracking: null;
20192
+ error: string;
20193
+ code?: "invalid_input" | undefined;
20041
20194
  };
20042
20195
  outputFormat: "json";
20043
- status: import("hono/utils/http-status").ContentfulStatusCode;
20044
- input: {};
20196
+ status: 400;
20197
+ input: {
20198
+ query: {
20199
+ limit?: string | undefined;
20200
+ refresh?: string | undefined;
20201
+ issuesCursor?: string | undefined;
20202
+ prsCursor?: string | undefined;
20203
+ issuesDone?: "1" | undefined;
20204
+ prsDone?: "1" | undefined;
20205
+ };
20206
+ };
20045
20207
  } | {
20046
20208
  output: {
20047
- info: {
20048
- root: string;
20049
- branch: string;
20050
- remote?: string | undefined;
20051
- };
20052
- status: {
20053
- status: string;
20054
- path: string;
20055
- }[];
20056
- log: ({
20057
- hash: string;
20058
- subject: string;
20059
- author: string;
20060
- when: string;
20061
- at: string;
20062
- } | {
20063
- hash: string;
20064
- subject: string;
20065
- author: string;
20066
- when: string;
20067
- at: string;
20068
- source: {
20069
- runId: string;
20070
- title: string;
20071
- prNumber: number | null;
20072
- };
20073
- })[];
20074
- branches: string[];
20075
- baseBranch: string | null;
20076
- tracking: {
20077
- ref: string;
20078
- ahead: number;
20079
- behind: number;
20080
- fetchedAt: string | null;
20081
- } | null;
20209
+ available: false;
20210
+ reason: string;
20211
+ issues: never[];
20212
+ prs: never[];
20082
20213
  };
20083
20214
  outputFormat: "json";
20084
20215
  status: import("hono/utils/http-status").ContentfulStatusCode;
20085
- input: {};
20086
- };
20087
- };
20088
- } & {
20089
- "/repo/branches": {
20090
- $get: {
20216
+ input: {
20217
+ query: {
20218
+ limit?: string | undefined;
20219
+ refresh?: string | undefined;
20220
+ issuesCursor?: string | undefined;
20221
+ prsCursor?: string | undefined;
20222
+ issuesDone?: "1" | undefined;
20223
+ prsDone?: "1" | undefined;
20224
+ };
20225
+ };
20226
+ } | {
20091
20227
  output: {
20092
- base: string;
20093
- prStateKnown: boolean;
20094
- branches: {
20095
- name: string;
20096
- class: "active" | "empty" | "merged" | "not-landed" | "orphan" | "other";
20097
- runId: string | null;
20098
- title: string | null;
20099
- runStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting" | null;
20100
- ahead: number;
20101
- lastCommit: {
20102
- sha: string;
20103
- subject: string;
20104
- at: string;
20105
- };
20106
- diffStat: {
20107
- additions: number;
20108
- deletions: number;
20109
- } | null;
20110
- pr: {
20111
- number: number;
20112
- url: string;
20113
- state: "closed" | "draft" | "merged" | "open";
20114
- } | null;
20115
- keptReason?: string | undefined;
20116
- parentRunId?: string | undefined;
20228
+ available: boolean;
20229
+ reason?: string | undefined;
20230
+ repo?: string | undefined;
20231
+ syncedAt?: string | undefined;
20232
+ issues: {
20233
+ kind: "issue" | "pr";
20234
+ number: number;
20235
+ title: string;
20236
+ author: string;
20237
+ createdAt: string;
20238
+ labels: string[];
20239
+ body?: string | undefined;
20240
+ url: string;
20241
+ comments: number;
20242
+ assignees?: string[] | undefined;
20243
+ projectIds?: string[] | undefined;
20244
+ isDraft?: boolean | undefined;
20245
+ additions?: number | undefined;
20246
+ deletions?: number | undefined;
20247
+ checks?: "failing" | "passing" | "pending" | null | undefined;
20117
20248
  }[];
20118
- counts: {
20119
- notLanded: number;
20120
- cleanup: number;
20121
- };
20249
+ prs: {
20250
+ kind: "issue" | "pr";
20251
+ number: number;
20252
+ title: string;
20253
+ author: string;
20254
+ createdAt: string;
20255
+ labels: string[];
20256
+ body?: string | undefined;
20257
+ url: string;
20258
+ comments: number;
20259
+ assignees?: string[] | undefined;
20260
+ projectIds?: string[] | undefined;
20261
+ isDraft?: boolean | undefined;
20262
+ additions?: number | undefined;
20263
+ deletions?: number | undefined;
20264
+ checks?: "failing" | "passing" | "pending" | null | undefined;
20265
+ }[];
20266
+ labelColors?: {
20267
+ [x: string]: string;
20268
+ } | undefined;
20269
+ viewerLogin?: string | undefined;
20270
+ projects?: {
20271
+ id: string;
20272
+ title: string;
20273
+ url: string;
20274
+ }[] | undefined;
20275
+ projectsReason?: string | undefined;
20276
+ projectsState?: "ready" | "refreshing" | "unavailable" | undefined;
20277
+ projectsGeneration?: string | undefined;
20278
+ issuesTotal?: number | undefined;
20279
+ prsTotal?: number | undefined;
20280
+ issuesNextCursor?: string | null | undefined;
20281
+ prsNextCursor?: string | null | undefined;
20282
+ commentsDeferred?: true | undefined;
20122
20283
  };
20123
20284
  outputFormat: "json";
20124
20285
  status: import("hono/utils/http-status").ContentfulStatusCode;
20125
- input: {};
20126
- };
20127
- };
20128
- } & {
20129
- "/repo/branches/counts": {
20130
- $get: {
20131
- output: {
20132
- base: string;
20133
- prStateKnown: boolean;
20134
- counts: {
20135
- notLanded: number;
20136
- cleanup: number;
20286
+ input: {
20287
+ query: {
20288
+ limit?: string | undefined;
20289
+ refresh?: string | undefined;
20290
+ issuesCursor?: string | undefined;
20291
+ prsCursor?: string | undefined;
20292
+ issuesDone?: "1" | undefined;
20293
+ prsDone?: "1" | undefined;
20137
20294
  };
20138
- allBranches: number;
20139
20295
  };
20140
- outputFormat: "json";
20141
- status: import("hono/utils/http-status").ContentfulStatusCode;
20142
- input: {};
20143
20296
  };
20144
20297
  };
20145
20298
  } & {
20146
- "/repo/branches/delete": {
20147
- $post: {
20299
+ "/github/projects": {
20300
+ $get: {
20148
20301
  output: {
20149
20302
  error: string;
20150
- refused: {
20151
- name: string;
20152
- reason: string;
20153
- }[];
20303
+ code?: "invalid_input" | undefined;
20154
20304
  };
20155
20305
  outputFormat: "json";
20156
- status: 409;
20306
+ status: 400;
20157
20307
  input: {
20158
- json: {
20159
- names: string[];
20160
- confirm?: string | undefined;
20308
+ query: {
20309
+ generation: string | string[];
20161
20310
  };
20162
20311
  };
20163
20312
  } | {
20164
20313
  output: {
20165
- deleted: string[];
20166
- refused: {
20167
- name: string;
20168
- reason: string;
20314
+ generation: string;
20315
+ state: "ready";
20316
+ projects: {
20317
+ id: string;
20318
+ title: string;
20319
+ url: string;
20169
20320
  }[];
20170
- dropped?: {
20171
- sha: string;
20172
- subject: string;
20173
- }[] | undefined;
20174
- };
20175
- outputFormat: "json";
20176
- status: 200;
20177
- input: {
20178
- json: {
20179
- names: string[];
20180
- confirm?: string | undefined;
20321
+ membership: {
20322
+ [x: string]: string[];
20181
20323
  };
20324
+ } | {
20325
+ generation: string;
20326
+ state: "unavailable";
20327
+ reason: string;
20182
20328
  };
20183
- };
20184
- };
20185
- } & {
20186
- "/repo/diff": {
20187
- $get: {
20188
- output: string;
20189
- outputFormat: "text";
20329
+ outputFormat: "json";
20190
20330
  status: import("hono/utils/http-status").ContentfulStatusCode;
20191
- input: {};
20331
+ input: {
20332
+ query: {
20333
+ generation: string | string[];
20334
+ };
20335
+ };
20192
20336
  };
20193
20337
  };
20194
20338
  } & {
20195
- "/repo/commit/:sha": {
20339
+ "/github/comments/:kind/:number": {
20196
20340
  $get: {
20197
- output: string;
20198
- outputFormat: "text";
20199
- status: import("hono/utils/http-status").ContentfulStatusCode;
20341
+ output: {
20342
+ error: string;
20343
+ code?: "invalid_input" | undefined;
20344
+ };
20345
+ outputFormat: "json";
20346
+ status: 400;
20200
20347
  input: {
20201
20348
  query: {
20202
- structured?: string | undefined;
20349
+ refresh?: string | undefined;
20203
20350
  };
20204
20351
  } & {
20205
20352
  param: {
20206
- sha: string;
20353
+ kind: string;
20354
+ } & {
20355
+ number: string;
20207
20356
  };
20208
20357
  };
20209
20358
  } | {
20210
20359
  output: {
20211
20360
  error: string;
20212
- code?: "invalid_input" | undefined;
20213
20361
  };
20214
20362
  outputFormat: "json";
20215
20363
  status: 400;
20216
20364
  input: {
20217
20365
  query: {
20218
- structured?: string | undefined;
20366
+ refresh?: string | undefined;
20219
20367
  };
20220
20368
  } & {
20221
20369
  param: {
20222
- sha: string;
20370
+ kind: string;
20371
+ } & {
20372
+ number: string;
20223
20373
  };
20224
20374
  };
20225
20375
  } | {
20226
20376
  output: {
20227
- sha: string;
20228
- subject: string;
20229
- author: string;
20230
- when: string;
20231
- files: {
20232
- path: string;
20233
- oldPath?: string;
20234
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
20235
- adds: number;
20236
- dels: number;
20237
- binary: boolean;
20238
- image?: boolean;
20239
- patch: string;
20240
- }[];
20241
- stat: {
20242
- adds: number;
20243
- dels: number;
20244
- files: number;
20245
- };
20377
+ available: false;
20378
+ reason: string;
20379
+ comments: never[];
20246
20380
  };
20247
20381
  outputFormat: "json";
20248
20382
  status: import("hono/utils/http-status").ContentfulStatusCode;
20249
20383
  input: {
20250
20384
  query: {
20251
- structured?: string | undefined;
20385
+ refresh?: string | undefined;
20252
20386
  };
20253
20387
  } & {
20254
20388
  param: {
20255
- sha: string;
20389
+ kind: string;
20390
+ } & {
20391
+ number: string;
20256
20392
  };
20257
20393
  };
20258
20394
  } | {
20259
20395
  output: {
20260
- error: string;
20396
+ available: boolean;
20397
+ reason?: string | undefined;
20398
+ comments: {
20399
+ id: number;
20400
+ author: string;
20401
+ avatarUrl?: string | undefined;
20402
+ createdAt: string;
20403
+ body: string;
20404
+ kind: "comment" | "review";
20405
+ reviewState?: "approved" | "changes_requested" | "commented" | "dismissed" | undefined;
20406
+ url: string;
20407
+ }[];
20408
+ truncated?: boolean | undefined;
20409
+ events?: {
20410
+ id: string;
20411
+ kind: "assigned" | "closed" | "committed" | "cross-referenced" | "head_ref_force_pushed" | "labeled" | "merged" | "renamed" | "reopened" | "unassigned" | "unlabeled";
20412
+ actor: string;
20413
+ avatarUrl?: string | undefined;
20414
+ createdAt: string;
20415
+ url?: string | undefined;
20416
+ sha?: string | undefined;
20417
+ message?: string | undefined;
20418
+ checks?: "failing" | "passing" | "pending" | null | undefined;
20419
+ label?: {
20420
+ name: string;
20421
+ color?: string | undefined;
20422
+ } | undefined;
20423
+ subject?: string | undefined;
20424
+ refNumber?: number | undefined;
20425
+ refTitle?: string | undefined;
20426
+ refIsPr?: boolean | undefined;
20427
+ }[] | undefined;
20428
+ detail?: {
20429
+ body: string;
20430
+ additions?: number | undefined;
20431
+ deletions?: number | undefined;
20432
+ } | undefined;
20261
20433
  };
20262
20434
  outputFormat: "json";
20263
- status: 409;
20435
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20264
20436
  input: {
20265
20437
  query: {
20266
- structured?: string | undefined;
20438
+ refresh?: string | undefined;
20267
20439
  };
20268
20440
  } & {
20269
20441
  param: {
20270
- sha: string;
20442
+ kind: string;
20443
+ } & {
20444
+ number: string;
20271
20445
  };
20272
20446
  };
20273
20447
  };
20274
20448
  };
20275
20449
  } & {
20276
- "/repo/changes": {
20450
+ "/github/items/:kind/:number": {
20277
20451
  $get: {
20278
20452
  output: {
20279
- files: {
20280
- path: string;
20281
- oldPath?: string;
20282
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
20283
- adds: number;
20284
- dels: number;
20285
- binary: boolean;
20286
- image?: boolean;
20287
- patch: string;
20288
- }[];
20289
- stat: {
20290
- adds: number;
20291
- dels: number;
20292
- files: number;
20293
- };
20294
- repointedHead?: {
20295
- headBranch: string;
20296
- taskBranch: string;
20297
- } | undefined;
20453
+ error: string;
20454
+ code?: "invalid_input" | undefined;
20298
20455
  };
20299
20456
  outputFormat: "json";
20300
- status: import("hono/utils/http-status").ContentfulStatusCode;
20301
- input: {};
20457
+ status: 400;
20458
+ input: {
20459
+ param: {
20460
+ kind: "issue" | "pr";
20461
+ number: string;
20462
+ };
20463
+ } & {
20464
+ query: {
20465
+ refresh?: string | undefined;
20466
+ };
20467
+ };
20302
20468
  } | {
20303
20469
  output: {
20304
- error: string;
20470
+ available: true;
20471
+ item: {
20472
+ kind: "issue" | "pr";
20473
+ number: number;
20474
+ title: string;
20475
+ author: string;
20476
+ createdAt: string;
20477
+ labels: string[];
20478
+ body?: string | undefined;
20479
+ url: string;
20480
+ comments: number;
20481
+ assignees?: string[] | undefined;
20482
+ projectIds?: string[] | undefined;
20483
+ isDraft?: boolean | undefined;
20484
+ additions?: number | undefined;
20485
+ deletions?: number | undefined;
20486
+ checks?: "failing" | "passing" | "pending" | null | undefined;
20487
+ } | null;
20488
+ labelColors?: {
20489
+ [x: string]: string;
20490
+ } | undefined;
20491
+ } | {
20492
+ available: false;
20493
+ reason: string;
20305
20494
  };
20306
20495
  outputFormat: "json";
20307
- status: 409;
20308
- input: {};
20496
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20497
+ input: {
20498
+ param: {
20499
+ kind: "issue" | "pr";
20500
+ number: string;
20501
+ };
20502
+ } & {
20503
+ query: {
20504
+ refresh?: string | undefined;
20505
+ };
20506
+ };
20309
20507
  };
20310
20508
  };
20311
20509
  } & {
20312
- "/repo/pull": {
20510
+ "/github/checks": {
20313
20511
  $get: {
20314
20512
  output: {
20315
20513
  error: string;
20514
+ code?: "invalid_input" | undefined;
20316
20515
  };
20317
20516
  outputFormat: "json";
20318
- status: 409;
20319
- input: {};
20320
- } | {
20321
- output: {
20322
- branches: string[];
20517
+ status: 400;
20518
+ input: {
20519
+ query: {
20520
+ prs: string | string[];
20521
+ };
20323
20522
  };
20324
- outputFormat: "json";
20325
- status: import("hono/utils/http-status").ContentfulStatusCode;
20326
- input: {};
20327
- };
20328
- };
20329
- } & {
20330
- "/repo/pull": {
20331
- $post: {
20523
+ } | {
20332
20524
  output: {
20333
20525
  error: string;
20334
20526
  };
20335
20527
  outputFormat: "json";
20336
- status: 409;
20528
+ status: 400;
20337
20529
  input: {
20338
- json: {
20339
- branch?: string | undefined;
20340
- confirm?: boolean | undefined;
20530
+ query: {
20531
+ prs: string | string[];
20341
20532
  };
20342
20533
  };
20343
20534
  } | {
20344
20535
  output: {
20345
- branch: string;
20346
- pulled: true;
20347
- summary: string;
20536
+ available: true;
20537
+ checks: {
20538
+ [x: number]: "failing" | "passing" | "pending" | null;
20539
+ };
20540
+ } | {
20541
+ available: false;
20542
+ reason: string;
20348
20543
  };
20349
20544
  outputFormat: "json";
20350
- status: 200;
20545
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20351
20546
  input: {
20352
- json: {
20353
- branch?: string | undefined;
20354
- confirm?: boolean | undefined;
20547
+ query: {
20548
+ prs: string | string[];
20355
20549
  };
20356
20550
  };
20357
20551
  };
20358
20552
  };
20359
20553
  } & {
20360
- "/repo/branch": {
20361
- $post: {
20554
+ "/github/comment-counts": {
20555
+ $get: {
20362
20556
  output: {
20363
20557
  error: string;
20558
+ code?: "invalid_input" | undefined;
20364
20559
  };
20365
20560
  outputFormat: "json";
20366
- status: 409;
20561
+ status: 400;
20367
20562
  input: {
20368
- json: {
20369
- name: string;
20370
- from?: string | undefined;
20563
+ query: {
20564
+ kind: "issue" | "pr";
20565
+ numbers: string | string[];
20566
+ refresh?: "1" | undefined;
20371
20567
  };
20372
20568
  };
20373
20569
  } | {
20374
20570
  output: {
20375
- branch: string;
20376
- created: boolean;
20571
+ available: true;
20572
+ counts: {
20573
+ [x: number]: number;
20574
+ };
20575
+ } | {
20576
+ available: false;
20577
+ reason: string;
20377
20578
  };
20378
20579
  outputFormat: "json";
20379
20580
  status: import("hono/utils/http-status").ContentfulStatusCode;
20380
20581
  input: {
20381
- json: {
20382
- name: string;
20383
- from?: string | undefined;
20582
+ query: {
20583
+ kind: "issue" | "pr";
20584
+ numbers: string | string[];
20585
+ refresh?: "1" | undefined;
20384
20586
  };
20385
20587
  };
20386
20588
  };
20387
20589
  };
20388
- }, "/"> | import("hono/types").MergeSchemaPath<{
20389
- "/github": {
20590
+ } & {
20591
+ "/github/search": {
20390
20592
  $get: {
20391
20593
  output: {
20392
20594
  error: string;
@@ -20396,57 +20598,32 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20396
20598
  status: 400;
20397
20599
  input: {
20398
20600
  query: {
20399
- limit?: string | undefined;
20400
- refresh?: string | undefined;
20401
- issuesCursor?: string | undefined;
20402
- prsCursor?: string | undefined;
20403
- issuesDone?: "1" | undefined;
20404
- prsDone?: "1" | undefined;
20601
+ kind: "issue" | "pr";
20602
+ q: string | string[];
20603
+ limit?: number | undefined;
20405
20604
  };
20406
20605
  };
20407
20606
  } | {
20408
20607
  output: {
20409
20608
  available: false;
20410
20609
  reason: string;
20411
- issues: never[];
20412
- prs: never[];
20610
+ items: never[];
20413
20611
  };
20414
20612
  outputFormat: "json";
20415
20613
  status: import("hono/utils/http-status").ContentfulStatusCode;
20416
20614
  input: {
20417
20615
  query: {
20418
- limit?: string | undefined;
20419
- refresh?: string | undefined;
20420
- issuesCursor?: string | undefined;
20421
- prsCursor?: string | undefined;
20422
- issuesDone?: "1" | undefined;
20423
- prsDone?: "1" | undefined;
20616
+ kind: "issue" | "pr";
20617
+ q: string | string[];
20618
+ limit?: number | undefined;
20424
20619
  };
20425
20620
  };
20426
20621
  } | {
20427
20622
  output: {
20428
20623
  available: boolean;
20624
+ projectsReason?: string | undefined;
20429
20625
  reason?: string | undefined;
20430
- repo?: string | undefined;
20431
- syncedAt?: string | undefined;
20432
- issues: {
20433
- kind: "issue" | "pr";
20434
- number: number;
20435
- title: string;
20436
- author: string;
20437
- createdAt: string;
20438
- labels: string[];
20439
- body?: string | undefined;
20440
- url: string;
20441
- comments: number;
20442
- assignees?: string[] | undefined;
20443
- projectIds?: string[] | undefined;
20444
- isDraft?: boolean | undefined;
20445
- additions?: number | undefined;
20446
- deletions?: number | undefined;
20447
- checks?: "failing" | "passing" | "pending" | null | undefined;
20448
- }[];
20449
- prs: {
20626
+ items: {
20450
20627
  kind: "issue" | "pr";
20451
20628
  number: number;
20452
20629
  title: string;
@@ -20463,40 +20640,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20463
20640
  deletions?: number | undefined;
20464
20641
  checks?: "failing" | "passing" | "pending" | null | undefined;
20465
20642
  }[];
20643
+ truncated?: boolean | undefined;
20466
20644
  labelColors?: {
20467
20645
  [x: string]: string;
20468
20646
  } | undefined;
20469
- viewerLogin?: string | undefined;
20470
- projects?: {
20471
- id: string;
20472
- title: string;
20473
- url: string;
20474
- }[] | undefined;
20475
- projectsReason?: string | undefined;
20476
- projectsState?: "ready" | "refreshing" | "unavailable" | undefined;
20477
- projectsGeneration?: string | undefined;
20478
- issuesTotal?: number | undefined;
20479
- prsTotal?: number | undefined;
20480
- issuesNextCursor?: string | null | undefined;
20481
- prsNextCursor?: string | null | undefined;
20482
- commentsDeferred?: true | undefined;
20483
20647
  };
20484
20648
  outputFormat: "json";
20485
20649
  status: import("hono/utils/http-status").ContentfulStatusCode;
20486
20650
  input: {
20487
20651
  query: {
20488
- limit?: string | undefined;
20489
- refresh?: string | undefined;
20490
- issuesCursor?: string | undefined;
20491
- prsCursor?: string | undefined;
20492
- issuesDone?: "1" | undefined;
20493
- prsDone?: "1" | undefined;
20652
+ kind: "issue" | "pr";
20653
+ q: string | string[];
20654
+ limit?: number | undefined;
20494
20655
  };
20495
20656
  };
20496
20657
  };
20497
20658
  };
20498
20659
  } & {
20499
- "/github/projects": {
20660
+ "/github/ref-status": {
20500
20661
  $get: {
20501
20662
  output: {
20502
20663
  error: string;
@@ -20506,37 +20667,50 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20506
20667
  status: 400;
20507
20668
  input: {
20508
20669
  query: {
20509
- generation: string | string[];
20670
+ prs?: string | undefined;
20671
+ issues?: string | undefined;
20510
20672
  };
20511
20673
  };
20512
20674
  } | {
20513
20675
  output: {
20514
- generation: string;
20515
- state: "ready";
20516
- projects: {
20517
- id: string;
20518
- title: string;
20519
- url: string;
20520
- }[];
20521
- membership: {
20522
- [x: string]: string[];
20676
+ error: string;
20677
+ };
20678
+ outputFormat: "json";
20679
+ status: 400;
20680
+ input: {
20681
+ query: {
20682
+ prs?: string | undefined;
20683
+ issues?: string | undefined;
20684
+ };
20685
+ };
20686
+ } | {
20687
+ output: {
20688
+ available: true;
20689
+ prs: {
20690
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20691
+ };
20692
+ issues: {
20693
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20523
20694
  };
20695
+ conflicts?: number[] | undefined;
20696
+ recheckAfterMs: number | null;
20524
20697
  } | {
20525
- generation: string;
20526
- state: "unavailable";
20698
+ available: false;
20527
20699
  reason: string;
20700
+ recheckAfterMs: number | null;
20528
20701
  };
20529
20702
  outputFormat: "json";
20530
20703
  status: import("hono/utils/http-status").ContentfulStatusCode;
20531
20704
  input: {
20532
20705
  query: {
20533
- generation: string | string[];
20706
+ prs?: string | undefined;
20707
+ issues?: string | undefined;
20534
20708
  };
20535
20709
  };
20536
20710
  };
20537
20711
  };
20538
20712
  } & {
20539
- "/github/comments/:kind/:number": {
20713
+ "/github/prs/:number/merge-state": {
20540
20714
  $get: {
20541
20715
  output: {
20542
20716
  error: string;
@@ -20545,109 +20719,168 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20545
20719
  outputFormat: "json";
20546
20720
  status: 400;
20547
20721
  input: {
20722
+ param: {
20723
+ number: string;
20724
+ };
20725
+ } & {
20548
20726
  query: {
20549
20727
  refresh?: string | undefined;
20550
20728
  };
20551
- } & {
20729
+ };
20730
+ } | {
20731
+ output: {
20732
+ available: true;
20733
+ mergeState: {
20734
+ number: number;
20735
+ title: string;
20736
+ url: string;
20737
+ state: "closed" | "merged" | "open";
20738
+ isDraft: boolean;
20739
+ headRef: string;
20740
+ baseRef: string;
20741
+ headSha: string;
20742
+ mergeable: "conflicting" | "mergeable" | "unknown";
20743
+ reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
20744
+ checks: {
20745
+ name: string;
20746
+ state: "failing" | "passing" | "pending" | "unknown";
20747
+ required: boolean | null;
20748
+ url?: string | undefined;
20749
+ }[];
20750
+ methods: ("merge" | "rebase" | "squash")[];
20751
+ defaultMethod: "merge" | "rebase" | "squash" | null;
20752
+ eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
20753
+ blockers: {
20754
+ code: string;
20755
+ message: string;
20756
+ }[];
20757
+ canMerge: boolean;
20758
+ canOverride: boolean;
20759
+ };
20760
+ } | {
20761
+ available: false;
20762
+ reason: string;
20763
+ };
20764
+ outputFormat: "json";
20765
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20766
+ input: {
20552
20767
  param: {
20553
- kind: string;
20554
- } & {
20555
20768
  number: string;
20556
20769
  };
20770
+ } & {
20771
+ query: {
20772
+ refresh?: string | undefined;
20773
+ };
20557
20774
  };
20558
- } | {
20775
+ };
20776
+ };
20777
+ } & {
20778
+ "/github/prs/:number/merge": {
20779
+ $post: {
20559
20780
  output: {
20560
20781
  error: string;
20782
+ code?: "invalid_input" | undefined;
20561
20783
  };
20562
20784
  outputFormat: "json";
20563
20785
  status: 400;
20564
20786
  input: {
20565
- query: {
20566
- refresh?: string | undefined;
20787
+ param: {
20788
+ number: string;
20567
20789
  };
20568
20790
  } & {
20791
+ json: {
20792
+ method: "merge" | "rebase" | "squash";
20793
+ expectedHeadSha: string;
20794
+ overrideRules?: boolean | undefined;
20795
+ };
20796
+ };
20797
+ } | {
20798
+ output: {
20799
+ error: string;
20800
+ };
20801
+ outputFormat: "json";
20802
+ status: 409;
20803
+ input: {
20569
20804
  param: {
20570
- kind: string;
20571
- } & {
20572
20805
  number: string;
20573
20806
  };
20807
+ } & {
20808
+ json: {
20809
+ method: "merge" | "rebase" | "squash";
20810
+ expectedHeadSha: string;
20811
+ overrideRules?: boolean | undefined;
20812
+ };
20574
20813
  };
20575
20814
  } | {
20576
20815
  output: {
20577
- available: false;
20578
- reason: string;
20579
- comments: never[];
20816
+ merged: true;
20817
+ number: number;
20818
+ url: string;
20819
+ method: import("../core/forge-registry.ts").ForgeMergeMethod;
20820
+ mergeCommitSha?: string;
20580
20821
  };
20581
20822
  outputFormat: "json";
20582
20823
  status: import("hono/utils/http-status").ContentfulStatusCode;
20583
20824
  input: {
20584
- query: {
20585
- refresh?: string | undefined;
20586
- };
20587
- } & {
20588
20825
  param: {
20589
- kind: string;
20590
- } & {
20591
20826
  number: string;
20592
20827
  };
20828
+ } & {
20829
+ json: {
20830
+ method: "merge" | "rebase" | "squash";
20831
+ expectedHeadSha: string;
20832
+ overrideRules?: boolean | undefined;
20833
+ };
20593
20834
  };
20594
20835
  } | {
20595
20836
  output: {
20596
- available: boolean;
20597
- reason?: string | undefined;
20598
- comments: {
20599
- id: number;
20600
- author: string;
20601
- avatarUrl?: string | undefined;
20602
- createdAt: string;
20603
- body: string;
20604
- kind: "comment" | "review";
20605
- reviewState?: "approved" | "changes_requested" | "commented" | "dismissed" | undefined;
20837
+ error: string;
20838
+ code?: string | undefined;
20839
+ current?: {
20840
+ number: number;
20841
+ title: string;
20606
20842
  url: string;
20607
- }[];
20608
- truncated?: boolean | undefined;
20609
- events?: {
20610
- id: string;
20611
- kind: "assigned" | "closed" | "committed" | "cross-referenced" | "head_ref_force_pushed" | "labeled" | "merged" | "renamed" | "reopened" | "unassigned" | "unlabeled";
20612
- actor: string;
20613
- avatarUrl?: string | undefined;
20614
- createdAt: string;
20615
- url?: string | undefined;
20616
- sha?: string | undefined;
20617
- message?: string | undefined;
20618
- checks?: "failing" | "passing" | "pending" | null | undefined;
20619
- label?: {
20620
- name: string;
20621
- color?: string | undefined;
20622
- } | undefined;
20623
- subject?: string | undefined;
20624
- refNumber?: number | undefined;
20625
- refTitle?: string | undefined;
20626
- refIsPr?: boolean | undefined;
20627
- }[] | undefined;
20628
- detail?: {
20629
- body: string;
20630
- additions?: number | undefined;
20631
- deletions?: number | undefined;
20843
+ state: "closed" | "merged" | "open";
20844
+ isDraft: boolean;
20845
+ headRef: string;
20846
+ baseRef: string;
20847
+ headSha: string;
20848
+ mergeable: "conflicting" | "mergeable" | "unknown";
20849
+ reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
20850
+ checks: {
20851
+ name: string;
20852
+ state: "failing" | "passing" | "pending" | "unknown";
20853
+ required: boolean | null;
20854
+ url?: string | undefined;
20855
+ }[];
20856
+ methods: ("merge" | "rebase" | "squash")[];
20857
+ defaultMethod: "merge" | "rebase" | "squash" | null;
20858
+ eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
20859
+ blockers: {
20860
+ code: string;
20861
+ message: string;
20862
+ }[];
20863
+ canMerge: boolean;
20864
+ canOverride: boolean;
20632
20865
  } | undefined;
20633
20866
  };
20634
20867
  outputFormat: "json";
20635
- status: import("hono/utils/http-status").ContentfulStatusCode;
20868
+ status: 403 | 404 | 409 | 502;
20636
20869
  input: {
20637
- query: {
20638
- refresh?: string | undefined;
20639
- };
20640
- } & {
20641
20870
  param: {
20642
- kind: string;
20643
- } & {
20644
20871
  number: string;
20645
20872
  };
20873
+ } & {
20874
+ json: {
20875
+ method: "merge" | "rebase" | "squash";
20876
+ expectedHeadSha: string;
20877
+ overrideRules?: boolean | undefined;
20878
+ };
20646
20879
  };
20647
20880
  };
20648
20881
  };
20649
20882
  } & {
20650
- "/github/items/:kind/:number": {
20883
+ "/github/prs/:number/changes": {
20651
20884
  $get: {
20652
20885
  output: {
20653
20886
  error: string;
@@ -20657,37 +20890,47 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20657
20890
  status: 400;
20658
20891
  input: {
20659
20892
  param: {
20660
- kind: "issue" | "pr";
20661
20893
  number: string;
20662
20894
  };
20663
20895
  } & {
20664
20896
  query: {
20665
- refresh?: string | undefined;
20897
+ refresh?: "1" | undefined;
20898
+ };
20899
+ };
20900
+ } | {
20901
+ output: {
20902
+ error: string;
20903
+ };
20904
+ outputFormat: "json";
20905
+ status: 404;
20906
+ input: {
20907
+ param: {
20908
+ number: string;
20909
+ };
20910
+ } & {
20911
+ query: {
20912
+ refresh?: "1" | undefined;
20666
20913
  };
20667
20914
  };
20668
20915
  } | {
20669
20916
  output: {
20670
20917
  available: true;
20671
- item: {
20672
- kind: "issue" | "pr";
20673
- number: number;
20674
- title: string;
20675
- author: string;
20676
- createdAt: string;
20677
- labels: string[];
20678
- body?: string | undefined;
20679
- url: string;
20680
- comments: number;
20681
- assignees?: string[] | undefined;
20682
- projectIds?: string[] | undefined;
20683
- isDraft?: boolean | undefined;
20684
- additions?: number | undefined;
20685
- deletions?: number | undefined;
20686
- checks?: "failing" | "passing" | "pending" | null | undefined;
20687
- } | null;
20688
- labelColors?: {
20689
- [x: string]: string;
20690
- } | undefined;
20918
+ number: number;
20919
+ headSha: string;
20920
+ files: {
20921
+ path: string;
20922
+ previousPath?: string;
20923
+ status: 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed';
20924
+ additions: number;
20925
+ deletions: number;
20926
+ patch?: string;
20927
+ patchUnavailableReason?: 'binary' | 'too-large' | 'not-provided';
20928
+ truncated?: boolean;
20929
+ }[];
20930
+ additions: number;
20931
+ deletions: number;
20932
+ truncated: boolean;
20933
+ reason?: string;
20691
20934
  } | {
20692
20935
  available: false;
20693
20936
  reason: string;
@@ -20696,99 +20939,261 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20696
20939
  status: import("hono/utils/http-status").ContentfulStatusCode;
20697
20940
  input: {
20698
20941
  param: {
20699
- kind: "issue" | "pr";
20700
20942
  number: string;
20701
20943
  };
20702
20944
  } & {
20703
20945
  query: {
20704
- refresh?: string | undefined;
20946
+ refresh?: "1" | undefined;
20947
+ };
20948
+ };
20949
+ };
20950
+ };
20951
+ }, "/"> | import("hono/types").MergeSchemaPath<{
20952
+ "/repo": {
20953
+ $get: {
20954
+ output: {
20955
+ info: null;
20956
+ status: never[];
20957
+ log: never[];
20958
+ branches: never[];
20959
+ baseBranch: null;
20960
+ tracking: null;
20961
+ };
20962
+ outputFormat: "json";
20963
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20964
+ input: {};
20965
+ } | {
20966
+ output: {
20967
+ info: {
20968
+ root: string;
20969
+ branch: string;
20970
+ remote?: string | undefined;
20971
+ };
20972
+ status: {
20973
+ status: string;
20974
+ path: string;
20975
+ }[];
20976
+ log: ({
20977
+ hash: string;
20978
+ subject: string;
20979
+ author: string;
20980
+ when: string;
20981
+ at: string;
20982
+ } | {
20983
+ hash: string;
20984
+ subject: string;
20985
+ author: string;
20986
+ when: string;
20987
+ at: string;
20988
+ source: {
20989
+ runId: string;
20990
+ title: string;
20991
+ prNumber: number | null;
20992
+ };
20993
+ })[];
20994
+ branches: string[];
20995
+ baseBranch: string | null;
20996
+ tracking: {
20997
+ ref: string;
20998
+ ahead: number;
20999
+ behind: number;
21000
+ fetchedAt: string | null;
21001
+ } | null;
21002
+ };
21003
+ outputFormat: "json";
21004
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21005
+ input: {};
21006
+ };
21007
+ };
21008
+ } & {
21009
+ "/repo/branches": {
21010
+ $get: {
21011
+ output: {
21012
+ base: string;
21013
+ prStateKnown: boolean;
21014
+ branches: {
21015
+ name: string;
21016
+ class: "active" | "empty" | "merged" | "not-landed" | "orphan" | "other";
21017
+ runId: string | null;
21018
+ title: string | null;
21019
+ runStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting" | null;
21020
+ ahead: number;
21021
+ lastCommit: {
21022
+ sha: string;
21023
+ subject: string;
21024
+ at: string;
21025
+ };
21026
+ diffStat: {
21027
+ additions: number;
21028
+ deletions: number;
21029
+ } | null;
21030
+ pr: {
21031
+ number: number;
21032
+ url: string;
21033
+ state: "closed" | "draft" | "merged" | "open";
21034
+ } | null;
21035
+ keptReason?: string | undefined;
21036
+ parentRunId?: string | undefined;
21037
+ }[];
21038
+ counts: {
21039
+ notLanded: number;
21040
+ cleanup: number;
20705
21041
  };
20706
21042
  };
21043
+ outputFormat: "json";
21044
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21045
+ input: {};
20707
21046
  };
20708
21047
  };
20709
21048
  } & {
20710
- "/github/checks": {
21049
+ "/repo/branches/counts": {
21050
+ $get: {
21051
+ output: {
21052
+ base: string;
21053
+ prStateKnown: boolean;
21054
+ counts: {
21055
+ notLanded: number;
21056
+ cleanup: number;
21057
+ };
21058
+ allBranches: number;
21059
+ };
21060
+ outputFormat: "json";
21061
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21062
+ input: {};
21063
+ };
21064
+ };
21065
+ } & {
21066
+ "/repo/branches/delete": {
21067
+ $post: {
21068
+ output: {
21069
+ error: string;
21070
+ refused: {
21071
+ name: string;
21072
+ reason: string;
21073
+ }[];
21074
+ };
21075
+ outputFormat: "json";
21076
+ status: 409;
21077
+ input: {
21078
+ json: {
21079
+ names: string[];
21080
+ confirm?: string | undefined;
21081
+ };
21082
+ };
21083
+ } | {
21084
+ output: {
21085
+ deleted: string[];
21086
+ refused: {
21087
+ name: string;
21088
+ reason: string;
21089
+ }[];
21090
+ dropped?: {
21091
+ sha: string;
21092
+ subject: string;
21093
+ }[] | undefined;
21094
+ };
21095
+ outputFormat: "json";
21096
+ status: 200;
21097
+ input: {
21098
+ json: {
21099
+ names: string[];
21100
+ confirm?: string | undefined;
21101
+ };
21102
+ };
21103
+ };
21104
+ };
21105
+ } & {
21106
+ "/repo/diff": {
21107
+ $get: {
21108
+ output: string;
21109
+ outputFormat: "text";
21110
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21111
+ input: {};
21112
+ };
21113
+ };
21114
+ } & {
21115
+ "/repo/commit/:sha": {
20711
21116
  $get: {
20712
- output: {
20713
- error: string;
20714
- code?: "invalid_input" | undefined;
20715
- };
20716
- outputFormat: "json";
20717
- status: 400;
21117
+ output: string;
21118
+ outputFormat: "text";
21119
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20718
21120
  input: {
20719
21121
  query: {
20720
- prs: string | string[];
21122
+ structured?: string | undefined;
21123
+ };
21124
+ } & {
21125
+ param: {
21126
+ sha: string;
20721
21127
  };
20722
21128
  };
20723
21129
  } | {
20724
21130
  output: {
20725
21131
  error: string;
21132
+ code?: "invalid_input" | undefined;
20726
21133
  };
20727
21134
  outputFormat: "json";
20728
21135
  status: 400;
20729
21136
  input: {
20730
21137
  query: {
20731
- prs: string | string[];
21138
+ structured?: string | undefined;
21139
+ };
21140
+ } & {
21141
+ param: {
21142
+ sha: string;
20732
21143
  };
20733
21144
  };
20734
21145
  } | {
20735
21146
  output: {
20736
- available: true;
20737
- checks: {
20738
- [x: number]: "failing" | "passing" | "pending" | null;
21147
+ sha: string;
21148
+ subject: string;
21149
+ author: string;
21150
+ when: string;
21151
+ files: {
21152
+ path: string;
21153
+ oldPath?: string;
21154
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
21155
+ adds: number;
21156
+ dels: number;
21157
+ binary: boolean;
21158
+ image?: boolean;
21159
+ patch: string;
21160
+ }[];
21161
+ stat: {
21162
+ adds: number;
21163
+ dels: number;
21164
+ files: number;
20739
21165
  };
20740
- } | {
20741
- available: false;
20742
- reason: string;
20743
21166
  };
20744
21167
  outputFormat: "json";
20745
21168
  status: import("hono/utils/http-status").ContentfulStatusCode;
20746
21169
  input: {
20747
21170
  query: {
20748
- prs: string | string[];
21171
+ structured?: string | undefined;
20749
21172
  };
20750
- };
20751
- };
20752
- };
20753
- } & {
20754
- "/github/comment-counts": {
20755
- $get: {
20756
- output: {
20757
- error: string;
20758
- code?: "invalid_input" | undefined;
20759
- };
20760
- outputFormat: "json";
20761
- status: 400;
20762
- input: {
20763
- query: {
20764
- kind: "issue" | "pr";
20765
- numbers: string | string[];
20766
- refresh?: "1" | undefined;
21173
+ } & {
21174
+ param: {
21175
+ sha: string;
20767
21176
  };
20768
21177
  };
20769
21178
  } | {
20770
21179
  output: {
20771
- available: true;
20772
- counts: {
20773
- [x: number]: number;
20774
- };
20775
- } | {
20776
- available: false;
20777
- reason: string;
21180
+ error: string;
20778
21181
  };
20779
21182
  outputFormat: "json";
20780
- status: import("hono/utils/http-status").ContentfulStatusCode;
21183
+ status: 409;
20781
21184
  input: {
20782
21185
  query: {
20783
- kind: "issue" | "pr";
20784
- numbers: string | string[];
20785
- refresh?: "1" | undefined;
21186
+ structured?: string | undefined;
21187
+ };
21188
+ } & {
21189
+ param: {
21190
+ sha: string;
20786
21191
  };
20787
21192
  };
20788
21193
  };
20789
21194
  };
20790
21195
  } & {
20791
- "/github/search": {
21196
+ "/repo/commit/:sha/file": {
20792
21197
  $get: {
20793
21198
  output: {
20794
21199
  error: string;
@@ -20797,67 +21202,53 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20797
21202
  outputFormat: "json";
20798
21203
  status: 400;
20799
21204
  input: {
21205
+ param: {
21206
+ sha: string;
21207
+ };
21208
+ } & {
20800
21209
  query: {
20801
- kind: "issue" | "pr";
20802
- q: string | string[];
20803
- limit?: number | undefined;
21210
+ path: string | string[];
20804
21211
  };
20805
21212
  };
20806
21213
  } | {
20807
21214
  output: {
20808
- available: false;
20809
- reason: string;
20810
- items: never[];
21215
+ type: 'file';
21216
+ path: string;
21217
+ size: number;
21218
+ binary: boolean;
21219
+ tooLarge: boolean;
21220
+ content?: string | undefined;
20811
21221
  };
20812
21222
  outputFormat: "json";
20813
21223
  status: import("hono/utils/http-status").ContentfulStatusCode;
20814
21224
  input: {
21225
+ param: {
21226
+ sha: string;
21227
+ };
21228
+ } & {
20815
21229
  query: {
20816
- kind: "issue" | "pr";
20817
- q: string | string[];
20818
- limit?: number | undefined;
21230
+ path: string | string[];
20819
21231
  };
20820
21232
  };
20821
21233
  } | {
20822
21234
  output: {
20823
- available: boolean;
20824
- projectsReason?: string | undefined;
20825
- reason?: string | undefined;
20826
- items: {
20827
- kind: "issue" | "pr";
20828
- number: number;
20829
- title: string;
20830
- author: string;
20831
- createdAt: string;
20832
- labels: string[];
20833
- body?: string | undefined;
20834
- url: string;
20835
- comments: number;
20836
- assignees?: string[] | undefined;
20837
- projectIds?: string[] | undefined;
20838
- isDraft?: boolean | undefined;
20839
- additions?: number | undefined;
20840
- deletions?: number | undefined;
20841
- checks?: "failing" | "passing" | "pending" | null | undefined;
20842
- }[];
20843
- truncated?: boolean | undefined;
20844
- labelColors?: {
20845
- [x: string]: string;
20846
- } | undefined;
21235
+ error: string;
20847
21236
  };
20848
21237
  outputFormat: "json";
20849
- status: import("hono/utils/http-status").ContentfulStatusCode;
21238
+ status: 409;
20850
21239
  input: {
21240
+ param: {
21241
+ sha: string;
21242
+ };
21243
+ } & {
20851
21244
  query: {
20852
- kind: "issue" | "pr";
20853
- q: string | string[];
20854
- limit?: number | undefined;
21245
+ path: string | string[];
20855
21246
  };
20856
21247
  };
20857
21248
  };
20858
21249
  };
20859
21250
  } & {
20860
- "/github/ref-status": {
21251
+ "/repo/files": {
20861
21252
  $get: {
20862
21253
  output: {
20863
21254
  error: string;
@@ -20867,283 +21258,147 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20867
21258
  status: 400;
20868
21259
  input: {
20869
21260
  query: {
20870
- prs?: string | undefined;
20871
- issues?: string | undefined;
21261
+ path: string | string[];
20872
21262
  };
20873
21263
  };
20874
21264
  } | {
20875
21265
  output: {
20876
- error: string;
21266
+ type: 'file';
21267
+ path: string;
21268
+ size: number;
21269
+ binary: boolean;
21270
+ tooLarge: boolean;
21271
+ content?: string | undefined;
20877
21272
  };
20878
21273
  outputFormat: "json";
20879
- status: 400;
21274
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20880
21275
  input: {
20881
21276
  query: {
20882
- prs?: string | undefined;
20883
- issues?: string | undefined;
21277
+ path: string | string[];
20884
21278
  };
20885
21279
  };
20886
21280
  } | {
20887
21281
  output: {
20888
- available: true;
20889
- prs: {
20890
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20891
- };
20892
- issues: {
20893
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20894
- };
20895
- conflicts?: number[] | undefined;
20896
- recheckAfterMs: number | null;
20897
- } | {
20898
- available: false;
20899
- reason: string;
20900
- recheckAfterMs: number | null;
21282
+ error: string;
20901
21283
  };
20902
21284
  outputFormat: "json";
20903
- status: import("hono/utils/http-status").ContentfulStatusCode;
21285
+ status: 409;
20904
21286
  input: {
20905
21287
  query: {
20906
- prs?: string | undefined;
20907
- issues?: string | undefined;
21288
+ path: string | string[];
20908
21289
  };
20909
21290
  };
20910
21291
  };
20911
21292
  };
20912
21293
  } & {
20913
- "/github/prs/:number/merge-state": {
21294
+ "/repo/changes": {
20914
21295
  $get: {
20915
21296
  output: {
20916
- error: string;
20917
- code?: "invalid_input" | undefined;
20918
- };
20919
- outputFormat: "json";
20920
- status: 400;
20921
- input: {
20922
- param: {
20923
- number: string;
20924
- };
20925
- } & {
20926
- query: {
20927
- refresh?: string | undefined;
20928
- };
20929
- };
20930
- } | {
20931
- output: {
20932
- available: true;
20933
- mergeState: {
20934
- number: number;
20935
- title: string;
20936
- url: string;
20937
- state: "closed" | "merged" | "open";
20938
- isDraft: boolean;
20939
- headRef: string;
20940
- baseRef: string;
20941
- headSha: string;
20942
- mergeable: "conflicting" | "mergeable" | "unknown";
20943
- reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
20944
- checks: {
20945
- name: string;
20946
- state: "failing" | "passing" | "pending" | "unknown";
20947
- required: boolean | null;
20948
- url?: string | undefined;
20949
- }[];
20950
- methods: ("merge" | "rebase" | "squash")[];
20951
- defaultMethod: "merge" | "rebase" | "squash" | null;
20952
- eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
20953
- blockers: {
20954
- code: string;
20955
- message: string;
20956
- }[];
20957
- canMerge: boolean;
20958
- canOverride: boolean;
20959
- };
20960
- } | {
20961
- available: false;
20962
- reason: string;
20963
- };
20964
- outputFormat: "json";
20965
- status: import("hono/utils/http-status").ContentfulStatusCode;
20966
- input: {
20967
- param: {
20968
- number: string;
20969
- };
20970
- } & {
20971
- query: {
20972
- refresh?: string | undefined;
21297
+ files: {
21298
+ path: string;
21299
+ oldPath?: string;
21300
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
21301
+ adds: number;
21302
+ dels: number;
21303
+ binary: boolean;
21304
+ image?: boolean;
21305
+ patch: string;
21306
+ }[];
21307
+ stat: {
21308
+ adds: number;
21309
+ dels: number;
21310
+ files: number;
20973
21311
  };
21312
+ repointedHead?: {
21313
+ headBranch: string;
21314
+ taskBranch: string;
21315
+ } | undefined;
20974
21316
  };
20975
- };
20976
- };
20977
- } & {
20978
- "/github/prs/:number/merge": {
20979
- $post: {
21317
+ outputFormat: "json";
21318
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21319
+ input: {};
21320
+ } | {
20980
21321
  output: {
20981
21322
  error: string;
20982
- code?: "invalid_input" | undefined;
20983
21323
  };
20984
21324
  outputFormat: "json";
20985
- status: 400;
20986
- input: {
20987
- param: {
20988
- number: string;
20989
- };
20990
- } & {
20991
- json: {
20992
- method: "merge" | "rebase" | "squash";
20993
- expectedHeadSha: string;
20994
- overrideRules?: boolean | undefined;
20995
- };
20996
- };
20997
- } | {
21325
+ status: 409;
21326
+ input: {};
21327
+ };
21328
+ };
21329
+ } & {
21330
+ "/repo/pull": {
21331
+ $get: {
20998
21332
  output: {
20999
21333
  error: string;
21000
21334
  };
21001
21335
  outputFormat: "json";
21002
21336
  status: 409;
21003
- input: {
21004
- param: {
21005
- number: string;
21006
- };
21007
- } & {
21008
- json: {
21009
- method: "merge" | "rebase" | "squash";
21010
- expectedHeadSha: string;
21011
- overrideRules?: boolean | undefined;
21012
- };
21013
- };
21337
+ input: {};
21014
21338
  } | {
21015
21339
  output: {
21016
- merged: true;
21017
- number: number;
21018
- url: string;
21019
- method: import("../core/forge-registry.ts").ForgeMergeMethod;
21020
- mergeCommitSha?: string;
21340
+ branches: string[];
21021
21341
  };
21022
21342
  outputFormat: "json";
21023
21343
  status: import("hono/utils/http-status").ContentfulStatusCode;
21344
+ input: {};
21345
+ };
21346
+ };
21347
+ } & {
21348
+ "/repo/pull": {
21349
+ $post: {
21350
+ output: {
21351
+ error: string;
21352
+ };
21353
+ outputFormat: "json";
21354
+ status: 409;
21024
21355
  input: {
21025
- param: {
21026
- number: string;
21027
- };
21028
- } & {
21029
21356
  json: {
21030
- method: "merge" | "rebase" | "squash";
21031
- expectedHeadSha: string;
21032
- overrideRules?: boolean | undefined;
21357
+ branch?: string | undefined;
21358
+ confirm?: boolean | undefined;
21033
21359
  };
21034
21360
  };
21035
21361
  } | {
21036
21362
  output: {
21037
- error: string;
21038
- code?: string | undefined;
21039
- current?: {
21040
- number: number;
21041
- title: string;
21042
- url: string;
21043
- state: "closed" | "merged" | "open";
21044
- isDraft: boolean;
21045
- headRef: string;
21046
- baseRef: string;
21047
- headSha: string;
21048
- mergeable: "conflicting" | "mergeable" | "unknown";
21049
- reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
21050
- checks: {
21051
- name: string;
21052
- state: "failing" | "passing" | "pending" | "unknown";
21053
- required: boolean | null;
21054
- url?: string | undefined;
21055
- }[];
21056
- methods: ("merge" | "rebase" | "squash")[];
21057
- defaultMethod: "merge" | "rebase" | "squash" | null;
21058
- eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
21059
- blockers: {
21060
- code: string;
21061
- message: string;
21062
- }[];
21063
- canMerge: boolean;
21064
- canOverride: boolean;
21065
- } | undefined;
21363
+ branch: string;
21364
+ pulled: true;
21365
+ summary: string;
21066
21366
  };
21067
21367
  outputFormat: "json";
21068
- status: 403 | 404 | 409 | 502;
21368
+ status: 200;
21069
21369
  input: {
21070
- param: {
21071
- number: string;
21072
- };
21073
- } & {
21074
21370
  json: {
21075
- method: "merge" | "rebase" | "squash";
21076
- expectedHeadSha: string;
21077
- overrideRules?: boolean | undefined;
21371
+ branch?: string | undefined;
21372
+ confirm?: boolean | undefined;
21078
21373
  };
21079
21374
  };
21080
21375
  };
21081
21376
  };
21082
21377
  } & {
21083
- "/github/prs/:number/changes": {
21084
- $get: {
21085
- output: {
21086
- error: string;
21087
- code?: "invalid_input" | undefined;
21088
- };
21089
- outputFormat: "json";
21090
- status: 400;
21091
- input: {
21092
- param: {
21093
- number: string;
21094
- };
21095
- } & {
21096
- query: {
21097
- refresh?: "1" | undefined;
21098
- };
21099
- };
21100
- } | {
21378
+ "/repo/branch": {
21379
+ $post: {
21101
21380
  output: {
21102
21381
  error: string;
21103
21382
  };
21104
21383
  outputFormat: "json";
21105
- status: 404;
21384
+ status: 409;
21106
21385
  input: {
21107
- param: {
21108
- number: string;
21109
- };
21110
- } & {
21111
- query: {
21112
- refresh?: "1" | undefined;
21386
+ json: {
21387
+ name: string;
21388
+ from?: string | undefined;
21113
21389
  };
21114
21390
  };
21115
21391
  } | {
21116
21392
  output: {
21117
- available: true;
21118
- number: number;
21119
- headSha: string;
21120
- files: {
21121
- path: string;
21122
- previousPath?: string;
21123
- status: 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed';
21124
- additions: number;
21125
- deletions: number;
21126
- patch?: string;
21127
- patchUnavailableReason?: 'binary' | 'too-large' | 'not-provided';
21128
- truncated?: boolean;
21129
- }[];
21130
- additions: number;
21131
- deletions: number;
21132
- truncated: boolean;
21133
- reason?: string;
21134
- } | {
21135
- available: false;
21136
- reason: string;
21393
+ branch: string;
21394
+ created: boolean;
21137
21395
  };
21138
21396
  outputFormat: "json";
21139
21397
  status: import("hono/utils/http-status").ContentfulStatusCode;
21140
21398
  input: {
21141
- param: {
21142
- number: string;
21143
- };
21144
- } & {
21145
- query: {
21146
- refresh?: "1" | undefined;
21399
+ json: {
21400
+ name: string;
21401
+ from?: string | undefined;
21147
21402
  };
21148
21403
  };
21149
21404
  };
@@ -33634,6 +33889,64 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33634
33889
  };
33635
33890
  };
33636
33891
  };
33892
+ } & {
33893
+ "/runs/:id/commit/:sha/file": {
33894
+ $get: {
33895
+ output: {
33896
+ error: string;
33897
+ code?: "invalid_input" | undefined;
33898
+ };
33899
+ outputFormat: "json";
33900
+ status: 400;
33901
+ input: {
33902
+ param: {
33903
+ sha: string;
33904
+ id: string;
33905
+ };
33906
+ } & {
33907
+ query: {
33908
+ path: string | string[];
33909
+ };
33910
+ };
33911
+ } | {
33912
+ output: {
33913
+ error: string;
33914
+ };
33915
+ outputFormat: "json";
33916
+ status: 404 | 409;
33917
+ input: {
33918
+ param: {
33919
+ sha: string;
33920
+ id: string;
33921
+ };
33922
+ } & {
33923
+ query: {
33924
+ path: string | string[];
33925
+ };
33926
+ };
33927
+ } | {
33928
+ output: {
33929
+ type: 'file';
33930
+ path: string;
33931
+ size: number;
33932
+ binary: boolean;
33933
+ tooLarge: boolean;
33934
+ content?: string | undefined;
33935
+ };
33936
+ outputFormat: "json";
33937
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33938
+ input: {
33939
+ param: {
33940
+ sha: string;
33941
+ id: string;
33942
+ };
33943
+ } & {
33944
+ query: {
33945
+ path: string | string[];
33946
+ };
33947
+ };
33948
+ };
33949
+ };
33637
33950
  } & {
33638
33951
  "/runs/:id/file-link": {
33639
33952
  $get: {
@@ -34016,13 +34329,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34016
34329
  };
34017
34330
  } | {
34018
34331
  output: {
34019
- type: 'dir';
34332
+ type: 'file';
34020
34333
  path: string;
34021
- entries: {
34022
- name: string;
34023
- type: 'dir' | 'file';
34024
- size?: number;
34025
- }[];
34334
+ size: number;
34335
+ binary: boolean;
34336
+ tooLarge: boolean;
34337
+ content?: string | undefined;
34026
34338
  };
34027
34339
  outputFormat: "json";
34028
34340
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -34038,12 +34350,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34038
34350
  };
34039
34351
  } | {
34040
34352
  output: {
34041
- type: 'file';
34353
+ type: 'dir';
34042
34354
  path: string;
34043
- size: number;
34044
- binary: boolean;
34045
- tooLarge: boolean;
34046
- content?: string | undefined;
34355
+ entries: {
34356
+ name: string;
34357
+ type: 'dir' | 'file';
34358
+ size?: number;
34359
+ chain?: string;
34360
+ }[];
34047
34361
  };
34048
34362
  outputFormat: "json";
34049
34363
  status: import("hono/utils/http-status").ContentfulStatusCode;