@hearsay-tools/squawk 0.19.0-dev.8974 → 0.19.0-dev.8977

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 (97) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/contract/index.js +24 -8
  3. package/dist/contract/query-requests.d.ts +5 -0
  4. package/dist/contract/repo.d.ts +23 -0
  5. package/dist/delegation/transport.d.ts +65 -65
  6. package/dist/server/activity-routes.d.ts +23 -23
  7. package/dist/server/git-changes.d.ts +27 -0
  8. package/dist/server/git-changes.js +47 -0
  9. package/dist/server/git-changes.js.map +1 -1
  10. package/dist/server/repo-routes.d.ts +111 -13
  11. package/dist/server/repo-routes.js +20 -3
  12. package/dist/server/repo-routes.js.map +1 -1
  13. package/dist/server/runs-routes.d.ts +86 -28
  14. package/dist/server/runs-routes.js +12 -10
  15. package/dist/server/runs-routes.js.map +1 -1
  16. package/dist/server/server.d.ts +1686 -1374
  17. package/package.json +4 -4
  18. package/web/dist/assets/{accounts-section-CwPAaLRX.js → accounts-section-Bh6Ne88P.js} +1 -1
  19. package/web/dist/assets/activity-motion-B4hhwfpy.js +1 -0
  20. package/web/dist/assets/{activity-route-BpOdhGDr.js → activity-route-XNJHWQrd.js} +1 -1
  21. package/web/dist/assets/{agent-config-section-ByS0qQmf.js → agent-config-section-oavZQZ6z.js} +2 -2
  22. package/web/dist/assets/{agent-defaults-section-DmeS7JAr.js → agent-defaults-section-Dlbff8d1.js} +1 -1
  23. package/web/dist/assets/{appearance-CVJfUYxX.js → appearance-kpegMyn3.js} +1 -1
  24. package/web/dist/assets/{archive-on-merge-field-Ba4YFn-_.js → archive-on-merge-field-Hw5MDxKb.js} +1 -1
  25. package/web/dist/assets/attention-BHNhUrnd.js +1 -0
  26. package/web/dist/assets/automations-route-DUZ4KZ71.js +2 -0
  27. package/web/dist/assets/commit-list-CHGDpN9k.js +1 -0
  28. package/web/dist/assets/{diff-DNdhxMzq.js → diff-DsPWectf.js} +2 -2
  29. package/web/dist/assets/{diff-controls-CP2nphAy.js → diff-controls-BfNiZ7m7.js} +1 -1
  30. package/web/dist/assets/{diff-view-CmpfM3xF.js → diff-view-Ds6tF4Li.js} +1 -1
  31. package/web/dist/assets/{discard-changes-dialog-BvBZrkEB.js → discard-changes-dialog-SEDH0D2b.js} +1 -1
  32. package/web/dist/assets/{file-preview-Btoe2k0y.js → file-preview-Dd4Bn_jS.js} +1 -1
  33. package/web/dist/assets/file-text-nGpo7MVd.js +1 -0
  34. package/web/dist/assets/{folder-browser-DiQGbqCN.js → folder-browser-BgGSB2gk.js} +1 -1
  35. package/web/dist/assets/{git-toolbar-BUGct09v.js → git-toolbar-CyDX0ZlL.js} +1 -1
  36. package/web/dist/assets/github-CSHuD5n6.js +1 -0
  37. package/web/dist/assets/{global-activity-route-CO5gHnfm.js → global-activity-route-BeiBJ_S6.js} +1 -1
  38. package/web/dist/assets/{index-TFU1q5Sa.js → index-D7e7hQRs.js} +6 -6
  39. package/web/dist/assets/{label-B1zf-eXb.js → label-CxJpzeLL.js} +1 -1
  40. package/web/dist/assets/{markdown-BOOMYZ7a.js → markdown-xkaHkz73.js} +1 -1
  41. package/web/dist/assets/{open-in-menu-DfTnT8YF.js → open-in-menu-CmsJeSrD.js} +1 -1
  42. package/web/dist/assets/{option-select-3qhDlvG6.js → option-select-yBRQj6E_.js} +1 -1
  43. package/web/dist/assets/{preferences-section-D3h6N_fh.js → preferences-section-37pdeCWJ.js} +1 -1
  44. package/web/dist/assets/{preview-pane-connected-ClZ67Ztq.js → preview-pane-connected-By08oMDu.js} +2 -2
  45. package/web/dist/assets/{project-location-xnTFoKUD.js → project-location-FjgEfTb0.js} +1 -1
  46. package/web/dist/assets/{project-router-onKnSy5a.js → project-router-BNcdL2CI.js} +1 -1
  47. package/web/dist/assets/{projects-section-BmyA80eB.js → projects-section-C2APAdf3.js} +1 -1
  48. package/web/dist/assets/{prompt-templates-section-Dt2aX-LZ.js → prompt-templates-section-HpQeEo4v.js} +2 -2
  49. package/web/dist/assets/queries-BSxNcgZm.js +1 -0
  50. package/web/dist/assets/{reference-chip-Cv3i1kxz.js → reference-chip-DFwi97Ps.js} +1 -1
  51. package/web/dist/assets/{remote-settings-notice-CJORtXkl.js → remote-settings-notice-CaFJB726.js} +1 -1
  52. package/web/dist/assets/repo-git-CpW0usPY.js +1 -0
  53. package/web/dist/assets/{report-reader-BCPKro-Z.js → report-reader-CmEcwfsT.js} +1 -1
  54. package/web/dist/assets/{report-selection-CmEfaDz7.js → report-selection-CaEdb2HO.js} +1 -1
  55. package/web/dist/assets/{reports-Djl8nY0A.js → reports-G5DwAoma.js} +1 -1
  56. package/web/dist/assets/{resources-section-DCETRc-9.js → resources-section-BIjd5azP.js} +1 -1
  57. package/web/dist/assets/{review-panel-CzhsQN4V.js → review-panel-CgKnI_Kf.js} +4 -4
  58. package/web/dist/assets/{run-detail-refresh-Caj4BPPd.js → run-detail-refresh-GbAx5_Mn.js} +1 -1
  59. package/web/dist/assets/{run-header-BIyS_qou.js → run-header-DRYGraQL.js} +2 -2
  60. package/web/dist/assets/{select-BoL_3H6E.js → select-akdt2vf9.js} +1 -1
  61. package/web/dist/assets/{session-context-section-ChNqEmpe.js → session-context-section-Ckddzf6W.js} +1 -1
  62. package/web/dist/assets/{settings-agent-picker-CesXF2fy.js → settings-agent-picker-Bt31ulJ9.js} +1 -1
  63. package/web/dist/assets/{settings-save-bar-BhGzX1Vj.js → settings-save-bar-BCxZrjjt.js} +1 -1
  64. package/web/dist/assets/{settings-shell-D4cNW7VG.js → settings-shell-C84UojR3.js} +1 -1
  65. package/web/dist/assets/{sidebar-section-DgOjPxdA.js → sidebar-section-Dr9ev5Vo.js} +1 -1
  66. package/web/dist/assets/{skills-D4-zEnec.js → skills-Dh6dbL6k.js} +1 -1
  67. package/web/dist/assets/{tab-link-B2k-zaeP.js → tab-link-BrzzZnhE.js} +1 -1
  68. package/web/dist/assets/task-changes-pVv5Oafz.js +1 -0
  69. package/web/dist/assets/task-commits-Bex46n4l.js +1 -0
  70. package/web/dist/assets/{task-file-scope-DEybXfMX.js → task-file-scope-DI5YpFAh.js} +1 -1
  71. package/web/dist/assets/{task-files-CVGsEv7Y.js → task-files-C1nhWf4J.js} +1 -1
  72. package/web/dist/assets/{task-github-item-BvwsdG3G.js → task-github-item-CBOKx42k.js} +1 -1
  73. package/web/dist/assets/{task-groups-dEzH1nMg.js → task-groups-CsjJ9R5Y.js} +1 -1
  74. package/web/dist/assets/task-thread-DP78hgdh.js +2 -0
  75. package/web/dist/assets/{tasks-table-CPAY1N-E.js → tasks-table--jkwCj2N.js} +1 -1
  76. package/web/dist/assets/{thread-state-BdpOuHqc.js → thread-state-CHQ0rJr9.js} +1 -1
  77. package/web/dist/assets/{toaster-Bs1mVYf9.js → toaster-BJG79kO8.js} +1 -1
  78. package/web/dist/assets/use-hand-to-agent-state-C5m1ufIR.js +1 -0
  79. package/web/dist/assets/use-path-bases-D5kpDgkA.js +1 -0
  80. package/web/dist/assets/use-workspace-config-save-DF7JuKqF.js +1 -0
  81. package/web/dist/assets/{workflows-DZyeZQyI.js → workflows-C3Q0b6rr.js} +2 -2
  82. package/web/dist/assets/{workspace-tools-CyT1P2Pd.js → workspace-tools-Bhqgjmre.js} +1 -1
  83. package/web/dist/assets/{worktrees-section-DoBhAjkj.js → worktrees-section-BDEXzzG0.js} +5 -5
  84. package/web/dist/index.html +13 -13
  85. package/web/dist/assets/activity-motion-CAoXpVXT.js +0 -1
  86. package/web/dist/assets/attention-C9zoC-gL.js +0 -1
  87. package/web/dist/assets/automations-route-CiXw_h6J.js +0 -2
  88. package/web/dist/assets/commit-list-dNvEgOHg.js +0 -1
  89. package/web/dist/assets/github-sNMaEXUl.js +0 -1
  90. package/web/dist/assets/queries-CII6fTHH.js +0 -1
  91. package/web/dist/assets/repo-git-BVxsEJ1H.js +0 -1
  92. package/web/dist/assets/task-changes-NKykdnYs.js +0 -1
  93. package/web/dist/assets/task-commits-B-VWmssz.js +0 -1
  94. package/web/dist/assets/task-thread-T66nypz9.js +0 -2
  95. package/web/dist/assets/use-hand-to-agent-state-BK-LieHJ.js +0 -1
  96. package/web/dist/assets/use-path-bases-Qp3_G7-A.js +0 -1
  97. package/web/dist/assets/use-workspace-config-save-0Mtdwfrd.js +0 -1
@@ -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,37 +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
5048
  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[];
5049
+ error: string;
5050
+ };
5051
+ outputFormat: "json";
5052
+ status: 400;
5053
+ input: {
5054
+ query: {
5055
+ prs?: string | undefined;
5056
+ issues?: string | undefined;
5053
5057
  };
5058
+ };
5059
+ } | {
5060
+ output: {
5061
+ available: true;
5062
+ prs: {
5063
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5064
+ };
5065
+ issues: {
5066
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5067
+ };
5068
+ conflicts?: number[] | undefined;
5069
+ recheckAfterMs: number | null;
5054
5070
  } | {
5055
- generation: string;
5056
- state: "unavailable";
5071
+ available: false;
5057
5072
  reason: string;
5073
+ recheckAfterMs: number | null;
5058
5074
  };
5059
5075
  outputFormat: "json";
5060
5076
  status: import("hono/utils/http-status").ContentfulStatusCode;
5061
5077
  input: {
5062
5078
  query: {
5063
- generation: string | string[];
5079
+ prs?: string | undefined;
5080
+ issues?: string | undefined;
5064
5081
  };
5065
5082
  };
5066
5083
  };
5067
5084
  };
5068
5085
  } & {
5069
- "/github/comments/:kind/:number": {
5086
+ "/github/prs/:number/merge-state": {
5070
5087
  $get: {
5071
5088
  output: {
5072
5089
  error: string;
@@ -5075,109 +5092,168 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5075
5092
  outputFormat: "json";
5076
5093
  status: 400;
5077
5094
  input: {
5095
+ param: {
5096
+ number: string;
5097
+ };
5098
+ } & {
5078
5099
  query: {
5079
5100
  refresh?: string | undefined;
5080
5101
  };
5081
- } & {
5102
+ };
5103
+ } | {
5104
+ output: {
5105
+ available: true;
5106
+ mergeState: {
5107
+ number: number;
5108
+ title: string;
5109
+ url: string;
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
+ };
5133
+ } | {
5134
+ available: false;
5135
+ reason: string;
5136
+ };
5137
+ outputFormat: "json";
5138
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5139
+ input: {
5082
5140
  param: {
5083
- kind: string;
5084
- } & {
5085
5141
  number: string;
5086
5142
  };
5143
+ } & {
5144
+ query: {
5145
+ refresh?: string | undefined;
5146
+ };
5087
5147
  };
5088
- } | {
5148
+ };
5149
+ };
5150
+ } & {
5151
+ "/github/prs/:number/merge": {
5152
+ $post: {
5089
5153
  output: {
5090
5154
  error: string;
5155
+ code?: "invalid_input" | undefined;
5091
5156
  };
5092
5157
  outputFormat: "json";
5093
5158
  status: 400;
5094
5159
  input: {
5095
- query: {
5096
- refresh?: string | undefined;
5160
+ param: {
5161
+ number: string;
5097
5162
  };
5098
5163
  } & {
5164
+ json: {
5165
+ method: "merge" | "rebase" | "squash";
5166
+ expectedHeadSha: string;
5167
+ overrideRules?: boolean | undefined;
5168
+ };
5169
+ };
5170
+ } | {
5171
+ output: {
5172
+ error: string;
5173
+ };
5174
+ outputFormat: "json";
5175
+ status: 409;
5176
+ input: {
5099
5177
  param: {
5100
- kind: string;
5101
- } & {
5102
5178
  number: string;
5103
5179
  };
5180
+ } & {
5181
+ json: {
5182
+ method: "merge" | "rebase" | "squash";
5183
+ expectedHeadSha: string;
5184
+ overrideRules?: boolean | undefined;
5185
+ };
5104
5186
  };
5105
5187
  } | {
5106
5188
  output: {
5107
- available: false;
5108
- reason: string;
5109
- comments: never[];
5189
+ merged: true;
5190
+ number: number;
5191
+ url: string;
5192
+ method: import("../core/forge-registry.ts").ForgeMergeMethod;
5193
+ mergeCommitSha?: string;
5110
5194
  };
5111
5195
  outputFormat: "json";
5112
5196
  status: import("hono/utils/http-status").ContentfulStatusCode;
5113
5197
  input: {
5114
- query: {
5115
- refresh?: string | undefined;
5116
- };
5117
- } & {
5118
5198
  param: {
5119
- kind: string;
5120
- } & {
5121
5199
  number: string;
5122
5200
  };
5201
+ } & {
5202
+ json: {
5203
+ method: "merge" | "rebase" | "squash";
5204
+ expectedHeadSha: string;
5205
+ overrideRules?: boolean | undefined;
5206
+ };
5123
5207
  };
5124
5208
  } | {
5125
5209
  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;
5210
+ error: string;
5211
+ code?: string | undefined;
5212
+ current?: {
5213
+ number: number;
5214
+ title: string;
5136
5215
  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?: {
5216
+ state: "closed" | "merged" | "open";
5217
+ isDraft: boolean;
5218
+ headRef: string;
5219
+ baseRef: string;
5220
+ headSha: string;
5221
+ mergeable: "conflicting" | "mergeable" | "unknown";
5222
+ reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
5223
+ checks: {
5150
5224
  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;
5225
+ state: "failing" | "passing" | "pending" | "unknown";
5226
+ required: boolean | null;
5227
+ url?: string | undefined;
5228
+ }[];
5229
+ methods: ("merge" | "rebase" | "squash")[];
5230
+ defaultMethod: "merge" | "rebase" | "squash" | null;
5231
+ eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
5232
+ blockers: {
5233
+ code: string;
5234
+ message: string;
5235
+ }[];
5236
+ canMerge: boolean;
5237
+ canOverride: boolean;
5162
5238
  } | undefined;
5163
5239
  };
5164
5240
  outputFormat: "json";
5165
- status: import("hono/utils/http-status").ContentfulStatusCode;
5241
+ status: 403 | 404 | 409 | 502;
5166
5242
  input: {
5167
- query: {
5168
- refresh?: string | undefined;
5169
- };
5170
- } & {
5171
5243
  param: {
5172
- kind: string;
5173
- } & {
5174
5244
  number: string;
5175
5245
  };
5246
+ } & {
5247
+ json: {
5248
+ method: "merge" | "rebase" | "squash";
5249
+ expectedHeadSha: string;
5250
+ overrideRules?: boolean | undefined;
5251
+ };
5176
5252
  };
5177
5253
  };
5178
5254
  };
5179
5255
  } & {
5180
- "/github/items/:kind/:number": {
5256
+ "/github/prs/:number/changes": {
5181
5257
  $get: {
5182
5258
  output: {
5183
5259
  error: string;
@@ -5187,37 +5263,47 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5187
5263
  status: 400;
5188
5264
  input: {
5189
5265
  param: {
5190
- kind: "issue" | "pr";
5191
5266
  number: string;
5192
5267
  };
5193
5268
  } & {
5194
5269
  query: {
5195
- refresh?: string | undefined;
5270
+ refresh?: "1" | undefined;
5271
+ };
5272
+ };
5273
+ } | {
5274
+ output: {
5275
+ error: string;
5276
+ };
5277
+ outputFormat: "json";
5278
+ status: 404;
5279
+ input: {
5280
+ param: {
5281
+ number: string;
5282
+ };
5283
+ } & {
5284
+ query: {
5285
+ refresh?: "1" | undefined;
5196
5286
  };
5197
5287
  };
5198
5288
  } | {
5199
5289
  output: {
5200
5290
  available: true;
5201
- item: {
5202
- kind: "issue" | "pr";
5203
- number: number;
5204
- title: string;
5205
- author: string;
5206
- createdAt: string;
5207
- labels: string[];
5208
- body?: string | undefined;
5209
- 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;
5291
+ number: number;
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;
5221
5307
  } | {
5222
5308
  available: false;
5223
5309
  reason: string;
@@ -5226,18 +5312,180 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5226
5312
  status: import("hono/utils/http-status").ContentfulStatusCode;
5227
5313
  input: {
5228
5314
  param: {
5229
- kind: "issue" | "pr";
5230
5315
  number: string;
5231
5316
  };
5232
5317
  } & {
5233
5318
  query: {
5234
- refresh?: string | undefined;
5319
+ refresh?: "1" | undefined;
5235
5320
  };
5236
5321
  };
5237
5322
  };
5238
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;
5334
+ };
5335
+ outputFormat: "json";
5336
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5337
+ input: {};
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: {
5441
+ output: {
5442
+ error: string;
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
+ };
5239
5487
  } & {
5240
- "/github/checks": {
5488
+ "/repo/commit/:sha": {
5241
5489
  $get: {
5242
5490
  output: {
5243
5491
  error: string;
@@ -5247,78 +5495,78 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5247
5495
  status: 400;
5248
5496
  input: {
5249
5497
  query: {
5250
- prs: string | string[];
5498
+ structured?: string | undefined;
5251
5499
  };
5252
- };
5253
- } | {
5254
- output: {
5255
- error: string;
5256
- };
5257
- outputFormat: "json";
5258
- status: 400;
5259
- input: {
5260
- query: {
5261
- prs: string | string[];
5500
+ } & {
5501
+ param: {
5502
+ sha: string;
5262
5503
  };
5263
5504
  };
5264
5505
  } | {
5265
5506
  output: {
5266
- available: true;
5267
- checks: {
5268
- [x: number]: "failing" | "passing" | "pending" | null;
5507
+ sha: string;
5508
+ subject: string;
5509
+ author: string;
5510
+ when: string;
5511
+ files: {
5512
+ path: string;
5513
+ oldPath?: string;
5514
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
5515
+ adds: number;
5516
+ dels: number;
5517
+ binary: boolean;
5518
+ image?: boolean;
5519
+ patch: string;
5520
+ }[];
5521
+ stat: {
5522
+ adds: number;
5523
+ dels: number;
5524
+ files: number;
5269
5525
  };
5270
- } | {
5271
- available: false;
5272
- reason: string;
5273
5526
  };
5274
5527
  outputFormat: "json";
5275
5528
  status: import("hono/utils/http-status").ContentfulStatusCode;
5276
5529
  input: {
5277
5530
  query: {
5278
- prs: string | string[];
5531
+ structured?: string | undefined;
5532
+ };
5533
+ } & {
5534
+ param: {
5535
+ sha: string;
5279
5536
  };
5280
5537
  };
5281
- };
5282
- };
5283
- } & {
5284
- "/github/comment-counts": {
5285
- $get: {
5538
+ } | {
5286
5539
  output: {
5287
5540
  error: string;
5288
- code?: "invalid_input" | undefined;
5289
5541
  };
5290
5542
  outputFormat: "json";
5291
- status: 400;
5543
+ status: 409;
5292
5544
  input: {
5293
5545
  query: {
5294
- kind: "issue" | "pr";
5295
- numbers: string | string[];
5296
- refresh?: "1" | undefined;
5546
+ structured?: string | undefined;
5297
5547
  };
5298
- };
5299
- } | {
5300
- output: {
5301
- available: true;
5302
- counts: {
5303
- [x: number]: number;
5548
+ } & {
5549
+ param: {
5550
+ sha: string;
5304
5551
  };
5305
- } | {
5306
- available: false;
5307
- reason: string;
5308
5552
  };
5309
- outputFormat: "json";
5553
+ } | {
5554
+ output: string;
5555
+ outputFormat: "text";
5310
5556
  status: import("hono/utils/http-status").ContentfulStatusCode;
5311
5557
  input: {
5312
5558
  query: {
5313
- kind: "issue" | "pr";
5314
- numbers: string | string[];
5315
- refresh?: "1" | undefined;
5559
+ structured?: string | undefined;
5560
+ };
5561
+ } & {
5562
+ param: {
5563
+ sha: string;
5316
5564
  };
5317
5565
  };
5318
5566
  };
5319
5567
  };
5320
5568
  } & {
5321
- "/github/search": {
5569
+ "/repo/commit/:sha/file": {
5322
5570
  $get: {
5323
5571
  output: {
5324
5572
  error: string;
@@ -5327,67 +5575,53 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5327
5575
  outputFormat: "json";
5328
5576
  status: 400;
5329
5577
  input: {
5578
+ param: {
5579
+ sha: string;
5580
+ };
5581
+ } & {
5330
5582
  query: {
5331
- kind: "issue" | "pr";
5332
- q: string | string[];
5333
- limit?: number | undefined;
5583
+ path: string | string[];
5334
5584
  };
5335
5585
  };
5336
5586
  } | {
5337
5587
  output: {
5338
- available: false;
5339
- reason: string;
5340
- items: never[];
5588
+ type: 'file';
5589
+ path: string;
5590
+ size: number;
5591
+ binary: boolean;
5592
+ tooLarge: boolean;
5593
+ content?: string | undefined;
5341
5594
  };
5342
5595
  outputFormat: "json";
5343
5596
  status: import("hono/utils/http-status").ContentfulStatusCode;
5344
5597
  input: {
5598
+ param: {
5599
+ sha: string;
5600
+ };
5601
+ } & {
5345
5602
  query: {
5346
- kind: "issue" | "pr";
5347
- q: string | string[];
5348
- limit?: number | undefined;
5603
+ path: string | string[];
5349
5604
  };
5350
5605
  };
5351
5606
  } | {
5352
5607
  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;
5608
+ error: string;
5377
5609
  };
5378
5610
  outputFormat: "json";
5379
- status: import("hono/utils/http-status").ContentfulStatusCode;
5611
+ status: 409;
5380
5612
  input: {
5613
+ param: {
5614
+ sha: string;
5615
+ };
5616
+ } & {
5381
5617
  query: {
5382
- kind: "issue" | "pr";
5383
- q: string | string[];
5384
- limit?: number | undefined;
5618
+ path: string | string[];
5385
5619
  };
5386
5620
  };
5387
5621
  };
5388
5622
  };
5389
5623
  } & {
5390
- "/github/ref-status": {
5624
+ "/repo/files": {
5391
5625
  $get: {
5392
5626
  output: {
5393
5627
  error: string;
@@ -5397,283 +5631,147 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5397
5631
  status: 400;
5398
5632
  input: {
5399
5633
  query: {
5400
- prs?: string | undefined;
5401
- issues?: string | undefined;
5634
+ path: string | string[];
5402
5635
  };
5403
5636
  };
5404
5637
  } | {
5405
5638
  output: {
5406
- error: string;
5639
+ type: 'file';
5640
+ path: string;
5641
+ size: number;
5642
+ binary: boolean;
5643
+ tooLarge: boolean;
5644
+ content?: string | undefined;
5407
5645
  };
5408
5646
  outputFormat: "json";
5409
- status: 400;
5647
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5410
5648
  input: {
5411
5649
  query: {
5412
- prs?: string | undefined;
5413
- issues?: string | undefined;
5650
+ path: string | string[];
5414
5651
  };
5415
5652
  };
5416
5653
  } | {
5417
5654
  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;
5655
+ error: string;
5431
5656
  };
5432
5657
  outputFormat: "json";
5433
- status: import("hono/utils/http-status").ContentfulStatusCode;
5658
+ status: 409;
5434
5659
  input: {
5435
5660
  query: {
5436
- prs?: string | undefined;
5437
- issues?: string | undefined;
5661
+ path: string | string[];
5438
5662
  };
5439
5663
  };
5440
5664
  };
5441
5665
  };
5442
5666
  } & {
5443
- "/github/prs/:number/merge-state": {
5667
+ "/repo/changes": {
5444
5668
  $get: {
5445
5669
  output: {
5446
- error: string;
5447
- code?: "invalid_input" | undefined;
5448
- };
5449
- outputFormat: "json";
5450
- status: 400;
5451
- input: {
5452
- param: {
5453
- number: string;
5454
- };
5455
- } & {
5456
- query: {
5457
- refresh?: string | undefined;
5458
- };
5459
- };
5460
- } | {
5461
- output: {
5462
- available: true;
5463
- mergeState: {
5464
- number: number;
5465
- title: string;
5466
- url: string;
5467
- state: "closed" | "merged" | "open";
5468
- isDraft: boolean;
5469
- headRef: string;
5470
- baseRef: string;
5471
- headSha: string;
5472
- mergeable: "conflicting" | "mergeable" | "unknown";
5473
- reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
5474
- checks: {
5475
- name: string;
5476
- state: "failing" | "passing" | "pending" | "unknown";
5477
- required: boolean | null;
5478
- url?: string | undefined;
5479
- }[];
5480
- methods: ("merge" | "rebase" | "squash")[];
5481
- defaultMethod: "merge" | "rebase" | "squash" | null;
5482
- eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
5483
- blockers: {
5484
- code: string;
5485
- message: string;
5486
- }[];
5487
- canMerge: boolean;
5488
- canOverride: boolean;
5670
+ files: {
5671
+ path: string;
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;
5679
+ }[];
5680
+ stat: {
5681
+ adds: number;
5682
+ dels: number;
5683
+ files: number;
5489
5684
  };
5490
- } | {
5491
- available: false;
5492
- reason: string;
5685
+ repointedHead?: {
5686
+ headBranch: string;
5687
+ taskBranch: string;
5688
+ } | undefined;
5493
5689
  };
5494
5690
  outputFormat: "json";
5495
5691
  status: import("hono/utils/http-status").ContentfulStatusCode;
5496
- input: {
5497
- param: {
5498
- number: string;
5499
- };
5500
- } & {
5501
- query: {
5502
- refresh?: string | undefined;
5503
- };
5692
+ input: {};
5693
+ } | {
5694
+ output: {
5695
+ error: string;
5504
5696
  };
5697
+ outputFormat: "json";
5698
+ status: 409;
5699
+ input: {};
5505
5700
  };
5506
5701
  };
5507
5702
  } & {
5508
- "/github/prs/:number/merge": {
5509
- $post: {
5703
+ "/repo/pull": {
5704
+ $get: {
5510
5705
  output: {
5511
5706
  error: string;
5512
- code?: "invalid_input" | undefined;
5513
5707
  };
5514
5708
  outputFormat: "json";
5515
- status: 400;
5516
- input: {
5517
- param: {
5518
- number: string;
5519
- };
5520
- } & {
5521
- json: {
5522
- method: "merge" | "rebase" | "squash";
5523
- expectedHeadSha: string;
5524
- overrideRules?: boolean | undefined;
5525
- };
5526
- };
5709
+ status: 409;
5710
+ input: {};
5527
5711
  } | {
5528
5712
  output: {
5529
- error: string;
5713
+ branches: string[];
5530
5714
  };
5531
5715
  outputFormat: "json";
5532
- status: 409;
5533
- input: {
5534
- param: {
5535
- number: string;
5536
- };
5537
- } & {
5538
- json: {
5539
- method: "merge" | "rebase" | "squash";
5540
- expectedHeadSha: string;
5541
- overrideRules?: boolean | undefined;
5542
- };
5543
- };
5544
- } | {
5716
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5717
+ input: {};
5718
+ };
5719
+ };
5720
+ } & {
5721
+ "/repo/pull": {
5722
+ $post: {
5545
5723
  output: {
5546
- merged: true;
5547
- number: number;
5548
- url: string;
5549
- method: import("../core/forge-registry.ts").ForgeMergeMethod;
5550
- mergeCommitSha?: string;
5724
+ error: string;
5551
5725
  };
5552
5726
  outputFormat: "json";
5553
- status: import("hono/utils/http-status").ContentfulStatusCode;
5727
+ status: 409;
5554
5728
  input: {
5555
- param: {
5556
- number: string;
5557
- };
5558
- } & {
5559
5729
  json: {
5560
- method: "merge" | "rebase" | "squash";
5561
- expectedHeadSha: string;
5562
- overrideRules?: boolean | undefined;
5730
+ branch?: string | undefined;
5731
+ confirm?: boolean | undefined;
5563
5732
  };
5564
5733
  };
5565
5734
  } | {
5566
5735
  output: {
5567
- 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;
5736
+ branch: string;
5737
+ pulled: true;
5738
+ summary: string;
5596
5739
  };
5597
5740
  outputFormat: "json";
5598
- status: 403 | 404 | 409 | 502;
5741
+ status: 200;
5599
5742
  input: {
5600
- param: {
5601
- number: string;
5602
- };
5603
- } & {
5604
5743
  json: {
5605
- method: "merge" | "rebase" | "squash";
5606
- expectedHeadSha: string;
5607
- overrideRules?: boolean | undefined;
5744
+ branch?: string | undefined;
5745
+ confirm?: boolean | undefined;
5608
5746
  };
5609
5747
  };
5610
5748
  };
5611
5749
  };
5612
5750
  } & {
5613
- "/github/prs/:number/changes": {
5614
- $get: {
5615
- output: {
5616
- error: string;
5617
- code?: "invalid_input" | undefined;
5618
- };
5619
- outputFormat: "json";
5620
- status: 400;
5621
- input: {
5622
- param: {
5623
- number: string;
5624
- };
5625
- } & {
5626
- query: {
5627
- refresh?: "1" | undefined;
5628
- };
5629
- };
5630
- } | {
5751
+ "/repo/branch": {
5752
+ $post: {
5631
5753
  output: {
5632
5754
  error: string;
5633
5755
  };
5634
5756
  outputFormat: "json";
5635
- status: 404;
5757
+ status: 409;
5636
5758
  input: {
5637
- param: {
5638
- number: string;
5639
- };
5640
- } & {
5641
- query: {
5642
- refresh?: "1" | undefined;
5759
+ json: {
5760
+ name: string;
5761
+ from?: string | undefined;
5643
5762
  };
5644
5763
  };
5645
5764
  } | {
5646
5765
  output: {
5647
- available: true;
5648
- number: number;
5649
- headSha: string;
5650
- files: {
5651
- 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;
5659
- }[];
5660
- additions: number;
5661
- deletions: number;
5662
- truncated: boolean;
5663
- reason?: string;
5664
- } | {
5665
- available: false;
5666
- reason: string;
5766
+ branch: string;
5767
+ created: boolean;
5667
5768
  };
5668
5769
  outputFormat: "json";
5669
5770
  status: import("hono/utils/http-status").ContentfulStatusCode;
5670
5771
  input: {
5671
- param: {
5672
- number: string;
5673
- };
5674
- } & {
5675
- query: {
5676
- refresh?: "1" | undefined;
5772
+ json: {
5773
+ name: string;
5774
+ from?: string | undefined;
5677
5775
  };
5678
5776
  };
5679
5777
  };
@@ -17969,20 +18067,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17969
18067
  } & {
17970
18068
  "/runs/:id/handoff": {
17971
18069
  $get: {
17972
- output: string;
17973
- outputFormat: "text";
17974
- status: 200;
18070
+ output: {
18071
+ error: string;
18072
+ };
18073
+ outputFormat: "json";
18074
+ status: 404;
17975
18075
  input: {
17976
18076
  param: {
17977
18077
  id: string;
17978
18078
  };
17979
18079
  };
17980
18080
  } | {
17981
- output: {
17982
- error: string;
17983
- };
17984
- outputFormat: "json";
17985
- status: 404;
18081
+ output: string;
18082
+ outputFormat: "text";
18083
+ status: 200;
17986
18084
  input: {
17987
18085
  param: {
17988
18086
  id: string;
@@ -18020,20 +18118,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18020
18118
  } & {
18021
18119
  "/runs/:id/diff": {
18022
18120
  $get: {
18023
- output: string;
18024
- outputFormat: "text";
18025
- status: import("hono/utils/http-status").ContentfulStatusCode;
18121
+ output: {
18122
+ error: string;
18123
+ };
18124
+ outputFormat: "json";
18125
+ status: 404 | 409;
18026
18126
  input: {
18027
18127
  param: {
18028
18128
  id: string;
18029
18129
  };
18030
18130
  };
18031
18131
  } | {
18032
- output: {
18033
- error: string;
18034
- };
18035
- outputFormat: "json";
18036
- status: 404 | 409;
18132
+ output: string;
18133
+ outputFormat: "text";
18134
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18037
18135
  input: {
18038
18136
  param: {
18039
18137
  id: string;
@@ -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: {
@@ -18546,14 +18702,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18546
18702
  };
18547
18703
  } | {
18548
18704
  output: {
18549
- type: 'dir';
18705
+ type: 'file';
18550
18706
  path: string;
18551
- entries: {
18552
- name: string;
18553
- type: 'dir' | 'file';
18554
- size?: number;
18555
- chain?: string;
18556
- }[];
18707
+ size: number;
18708
+ binary: boolean;
18709
+ tooLarge: boolean;
18710
+ content?: string | undefined;
18557
18711
  };
18558
18712
  outputFormat: "json";
18559
18713
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -18569,12 +18723,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18569
18723
  };
18570
18724
  } | {
18571
18725
  output: {
18572
- type: 'file';
18726
+ type: 'dir';
18573
18727
  path: string;
18574
- size: number;
18575
- binary: boolean;
18576
- tooLarge: boolean;
18577
- content?: string | undefined;
18728
+ entries: {
18729
+ name: string;
18730
+ type: 'dir' | 'file';
18731
+ size?: number;
18732
+ chain?: string;
18733
+ }[];
18578
18734
  };
18579
18735
  outputFormat: "json";
18580
18736
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -20030,364 +20186,409 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20030
20186
  };
20031
20187
  };
20032
20188
  }, "/"> | import("hono/types").MergeSchemaPath<{
20033
- "/repo": {
20189
+ "/github": {
20034
20190
  $get: {
20035
20191
  output: {
20036
- info: null;
20037
- status: never[];
20038
- log: never[];
20039
- branches: never[];
20040
- baseBranch: null;
20041
- tracking: null;
20192
+ error: string;
20193
+ code?: "invalid_input" | undefined;
20042
20194
  };
20043
20195
  outputFormat: "json";
20044
- status: import("hono/utils/http-status").ContentfulStatusCode;
20045
- 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
+ };
20046
20207
  } | {
20047
20208
  output: {
20048
- info: {
20049
- root: string;
20050
- branch: string;
20051
- remote?: string | undefined;
20052
- };
20053
- status: {
20054
- status: string;
20055
- path: string;
20056
- }[];
20057
- log: ({
20058
- hash: string;
20059
- subject: string;
20060
- author: string;
20061
- when: string;
20062
- at: string;
20063
- } | {
20064
- hash: string;
20065
- subject: string;
20066
- author: string;
20067
- when: string;
20068
- at: string;
20069
- source: {
20070
- runId: string;
20071
- title: string;
20072
- prNumber: number | null;
20073
- };
20074
- })[];
20075
- branches: string[];
20076
- baseBranch: string | null;
20077
- tracking: {
20078
- ref: string;
20079
- ahead: number;
20080
- behind: number;
20081
- fetchedAt: string | null;
20082
- } | null;
20209
+ available: false;
20210
+ reason: string;
20211
+ issues: never[];
20212
+ prs: never[];
20083
20213
  };
20084
20214
  outputFormat: "json";
20085
20215
  status: import("hono/utils/http-status").ContentfulStatusCode;
20086
- input: {};
20087
- };
20088
- };
20089
- } & {
20090
- "/repo/branches": {
20091
- $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
+ } | {
20092
20227
  output: {
20093
- base: string;
20094
- prStateKnown: boolean;
20095
- branches: {
20096
- name: string;
20097
- class: "active" | "empty" | "merged" | "not-landed" | "orphan" | "other";
20098
- runId: string | null;
20099
- title: string | null;
20100
- runStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting" | null;
20101
- ahead: number;
20102
- lastCommit: {
20103
- sha: string;
20104
- subject: string;
20105
- at: string;
20106
- };
20107
- diffStat: {
20108
- additions: number;
20109
- deletions: number;
20110
- } | null;
20111
- pr: {
20112
- number: number;
20113
- url: string;
20114
- state: "closed" | "draft" | "merged" | "open";
20115
- } | null;
20116
- keptReason?: string | undefined;
20117
- 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;
20118
20248
  }[];
20119
- counts: {
20120
- notLanded: number;
20121
- cleanup: number;
20122
- };
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;
20123
20283
  };
20124
20284
  outputFormat: "json";
20125
20285
  status: import("hono/utils/http-status").ContentfulStatusCode;
20126
- input: {};
20127
- };
20128
- };
20129
- } & {
20130
- "/repo/branches/counts": {
20131
- $get: {
20132
- output: {
20133
- base: string;
20134
- prStateKnown: boolean;
20135
- counts: {
20136
- notLanded: number;
20137
- 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;
20138
20294
  };
20139
- allBranches: number;
20140
20295
  };
20141
- outputFormat: "json";
20142
- status: import("hono/utils/http-status").ContentfulStatusCode;
20143
- input: {};
20144
20296
  };
20145
20297
  };
20146
20298
  } & {
20147
- "/repo/branches/delete": {
20148
- $post: {
20299
+ "/github/projects": {
20300
+ $get: {
20149
20301
  output: {
20150
20302
  error: string;
20151
- refused: {
20152
- name: string;
20153
- reason: string;
20154
- }[];
20303
+ code?: "invalid_input" | undefined;
20155
20304
  };
20156
20305
  outputFormat: "json";
20157
- status: 409;
20306
+ status: 400;
20158
20307
  input: {
20159
- json: {
20160
- names: string[];
20161
- confirm?: string | undefined;
20308
+ query: {
20309
+ generation: string | string[];
20162
20310
  };
20163
20311
  };
20164
20312
  } | {
20165
20313
  output: {
20166
- deleted: string[];
20167
- refused: {
20168
- name: string;
20169
- reason: string;
20314
+ generation: string;
20315
+ state: "ready";
20316
+ projects: {
20317
+ id: string;
20318
+ title: string;
20319
+ url: string;
20170
20320
  }[];
20171
- dropped?: {
20172
- sha: string;
20173
- subject: string;
20174
- }[] | undefined;
20321
+ membership: {
20322
+ [x: string]: string[];
20323
+ };
20324
+ } | {
20325
+ generation: string;
20326
+ state: "unavailable";
20327
+ reason: string;
20175
20328
  };
20176
20329
  outputFormat: "json";
20177
- status: 200;
20178
- input: {
20179
- json: {
20180
- names: string[];
20181
- confirm?: string | undefined;
20330
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20331
+ input: {
20332
+ query: {
20333
+ generation: string | string[];
20182
20334
  };
20183
20335
  };
20184
20336
  };
20185
20337
  };
20186
20338
  } & {
20187
- "/repo/diff": {
20188
- $get: {
20189
- output: string;
20190
- outputFormat: "text";
20191
- status: import("hono/utils/http-status").ContentfulStatusCode;
20192
- input: {};
20193
- };
20194
- };
20195
- } & {
20196
- "/repo/commit/:sha": {
20339
+ "/github/comments/:kind/:number": {
20197
20340
  $get: {
20198
- output: string;
20199
- outputFormat: "text";
20200
- status: import("hono/utils/http-status").ContentfulStatusCode;
20341
+ output: {
20342
+ error: string;
20343
+ code?: "invalid_input" | undefined;
20344
+ };
20345
+ outputFormat: "json";
20346
+ status: 400;
20201
20347
  input: {
20202
20348
  query: {
20203
- structured?: string | undefined;
20349
+ refresh?: string | undefined;
20204
20350
  };
20205
20351
  } & {
20206
20352
  param: {
20207
- sha: string;
20353
+ kind: string;
20354
+ } & {
20355
+ number: string;
20208
20356
  };
20209
20357
  };
20210
20358
  } | {
20211
20359
  output: {
20212
20360
  error: string;
20213
- code?: "invalid_input" | undefined;
20214
20361
  };
20215
20362
  outputFormat: "json";
20216
20363
  status: 400;
20217
20364
  input: {
20218
20365
  query: {
20219
- structured?: string | undefined;
20366
+ refresh?: string | undefined;
20220
20367
  };
20221
20368
  } & {
20222
20369
  param: {
20223
- sha: string;
20370
+ kind: string;
20371
+ } & {
20372
+ number: string;
20224
20373
  };
20225
20374
  };
20226
20375
  } | {
20227
20376
  output: {
20228
- sha: string;
20229
- subject: string;
20230
- author: string;
20231
- when: string;
20232
- files: {
20233
- path: string;
20234
- oldPath?: string;
20235
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
20236
- adds: number;
20237
- dels: number;
20238
- binary: boolean;
20239
- image?: boolean;
20240
- patch: string;
20241
- }[];
20242
- stat: {
20243
- adds: number;
20244
- dels: number;
20245
- files: number;
20246
- };
20377
+ available: false;
20378
+ reason: string;
20379
+ comments: never[];
20247
20380
  };
20248
20381
  outputFormat: "json";
20249
20382
  status: import("hono/utils/http-status").ContentfulStatusCode;
20250
20383
  input: {
20251
20384
  query: {
20252
- structured?: string | undefined;
20385
+ refresh?: string | undefined;
20253
20386
  };
20254
20387
  } & {
20255
20388
  param: {
20256
- sha: string;
20389
+ kind: string;
20390
+ } & {
20391
+ number: string;
20257
20392
  };
20258
20393
  };
20259
20394
  } | {
20260
20395
  output: {
20261
- 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;
20262
20433
  };
20263
20434
  outputFormat: "json";
20264
- status: 409;
20435
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20265
20436
  input: {
20266
20437
  query: {
20267
- structured?: string | undefined;
20438
+ refresh?: string | undefined;
20268
20439
  };
20269
20440
  } & {
20270
20441
  param: {
20271
- sha: string;
20442
+ kind: string;
20443
+ } & {
20444
+ number: string;
20272
20445
  };
20273
20446
  };
20274
20447
  };
20275
20448
  };
20276
20449
  } & {
20277
- "/repo/changes": {
20450
+ "/github/items/:kind/:number": {
20278
20451
  $get: {
20279
20452
  output: {
20280
- files: {
20281
- path: string;
20282
- oldPath?: string;
20283
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
20284
- adds: number;
20285
- dels: number;
20286
- binary: boolean;
20287
- image?: boolean;
20288
- patch: string;
20289
- }[];
20290
- stat: {
20291
- adds: number;
20292
- dels: number;
20293
- files: number;
20294
- };
20295
- repointedHead?: {
20296
- headBranch: string;
20297
- taskBranch: string;
20298
- } | undefined;
20453
+ error: string;
20454
+ code?: "invalid_input" | undefined;
20299
20455
  };
20300
20456
  outputFormat: "json";
20301
- status: import("hono/utils/http-status").ContentfulStatusCode;
20302
- 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
+ };
20303
20468
  } | {
20304
20469
  output: {
20305
- 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;
20306
20494
  };
20307
20495
  outputFormat: "json";
20308
- status: 409;
20309
- 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
+ };
20310
20507
  };
20311
20508
  };
20312
20509
  } & {
20313
- "/repo/pull": {
20510
+ "/github/checks": {
20314
20511
  $get: {
20315
20512
  output: {
20316
20513
  error: string;
20514
+ code?: "invalid_input" | undefined;
20317
20515
  };
20318
20516
  outputFormat: "json";
20319
- status: 409;
20320
- input: {};
20321
- } | {
20322
- output: {
20323
- branches: string[];
20517
+ status: 400;
20518
+ input: {
20519
+ query: {
20520
+ prs: string | string[];
20521
+ };
20324
20522
  };
20325
- outputFormat: "json";
20326
- status: import("hono/utils/http-status").ContentfulStatusCode;
20327
- input: {};
20328
- };
20329
- };
20330
- } & {
20331
- "/repo/pull": {
20332
- $post: {
20523
+ } | {
20333
20524
  output: {
20334
20525
  error: string;
20335
20526
  };
20336
20527
  outputFormat: "json";
20337
- status: 409;
20528
+ status: 400;
20338
20529
  input: {
20339
- json: {
20340
- branch?: string | undefined;
20341
- confirm?: boolean | undefined;
20530
+ query: {
20531
+ prs: string | string[];
20342
20532
  };
20343
20533
  };
20344
20534
  } | {
20345
20535
  output: {
20346
- branch: string;
20347
- pulled: true;
20348
- summary: string;
20536
+ available: true;
20537
+ checks: {
20538
+ [x: number]: "failing" | "passing" | "pending" | null;
20539
+ };
20540
+ } | {
20541
+ available: false;
20542
+ reason: string;
20349
20543
  };
20350
20544
  outputFormat: "json";
20351
- status: 200;
20545
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20352
20546
  input: {
20353
- json: {
20354
- branch?: string | undefined;
20355
- confirm?: boolean | undefined;
20547
+ query: {
20548
+ prs: string | string[];
20356
20549
  };
20357
20550
  };
20358
20551
  };
20359
20552
  };
20360
20553
  } & {
20361
- "/repo/branch": {
20362
- $post: {
20554
+ "/github/comment-counts": {
20555
+ $get: {
20363
20556
  output: {
20364
20557
  error: string;
20558
+ code?: "invalid_input" | undefined;
20365
20559
  };
20366
20560
  outputFormat: "json";
20367
- status: 409;
20561
+ status: 400;
20368
20562
  input: {
20369
- json: {
20370
- name: string;
20371
- from?: string | undefined;
20563
+ query: {
20564
+ kind: "issue" | "pr";
20565
+ numbers: string | string[];
20566
+ refresh?: "1" | undefined;
20372
20567
  };
20373
20568
  };
20374
20569
  } | {
20375
20570
  output: {
20376
- branch: string;
20377
- created: boolean;
20571
+ available: true;
20572
+ counts: {
20573
+ [x: number]: number;
20574
+ };
20575
+ } | {
20576
+ available: false;
20577
+ reason: string;
20378
20578
  };
20379
20579
  outputFormat: "json";
20380
20580
  status: import("hono/utils/http-status").ContentfulStatusCode;
20381
20581
  input: {
20382
- json: {
20383
- name: string;
20384
- from?: string | undefined;
20582
+ query: {
20583
+ kind: "issue" | "pr";
20584
+ numbers: string | string[];
20585
+ refresh?: "1" | undefined;
20385
20586
  };
20386
20587
  };
20387
20588
  };
20388
20589
  };
20389
- }, "/"> | import("hono/types").MergeSchemaPath<{
20390
- "/github": {
20590
+ } & {
20591
+ "/github/search": {
20391
20592
  $get: {
20392
20593
  output: {
20393
20594
  error: string;
@@ -20397,57 +20598,32 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20397
20598
  status: 400;
20398
20599
  input: {
20399
20600
  query: {
20400
- limit?: string | undefined;
20401
- refresh?: string | undefined;
20402
- issuesCursor?: string | undefined;
20403
- prsCursor?: string | undefined;
20404
- issuesDone?: "1" | undefined;
20405
- prsDone?: "1" | undefined;
20601
+ kind: "issue" | "pr";
20602
+ q: string | string[];
20603
+ limit?: number | undefined;
20406
20604
  };
20407
20605
  };
20408
20606
  } | {
20409
20607
  output: {
20410
20608
  available: false;
20411
20609
  reason: string;
20412
- issues: never[];
20413
- prs: never[];
20610
+ items: never[];
20414
20611
  };
20415
20612
  outputFormat: "json";
20416
20613
  status: import("hono/utils/http-status").ContentfulStatusCode;
20417
20614
  input: {
20418
20615
  query: {
20419
- limit?: string | undefined;
20420
- refresh?: string | undefined;
20421
- issuesCursor?: string | undefined;
20422
- prsCursor?: string | undefined;
20423
- issuesDone?: "1" | undefined;
20424
- prsDone?: "1" | undefined;
20616
+ kind: "issue" | "pr";
20617
+ q: string | string[];
20618
+ limit?: number | undefined;
20425
20619
  };
20426
20620
  };
20427
20621
  } | {
20428
20622
  output: {
20429
20623
  available: boolean;
20624
+ projectsReason?: string | undefined;
20430
20625
  reason?: string | undefined;
20431
- repo?: string | undefined;
20432
- syncedAt?: string | undefined;
20433
- issues: {
20434
- kind: "issue" | "pr";
20435
- number: number;
20436
- title: string;
20437
- author: string;
20438
- createdAt: string;
20439
- labels: string[];
20440
- body?: string | undefined;
20441
- url: string;
20442
- comments: number;
20443
- assignees?: string[] | undefined;
20444
- projectIds?: string[] | undefined;
20445
- isDraft?: boolean | undefined;
20446
- additions?: number | undefined;
20447
- deletions?: number | undefined;
20448
- checks?: "failing" | "passing" | "pending" | null | undefined;
20449
- }[];
20450
- prs: {
20626
+ items: {
20451
20627
  kind: "issue" | "pr";
20452
20628
  number: number;
20453
20629
  title: string;
@@ -20464,40 +20640,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20464
20640
  deletions?: number | undefined;
20465
20641
  checks?: "failing" | "passing" | "pending" | null | undefined;
20466
20642
  }[];
20643
+ truncated?: boolean | undefined;
20467
20644
  labelColors?: {
20468
20645
  [x: string]: string;
20469
20646
  } | undefined;
20470
- viewerLogin?: string | undefined;
20471
- projects?: {
20472
- id: string;
20473
- title: string;
20474
- url: string;
20475
- }[] | undefined;
20476
- projectsReason?: string | undefined;
20477
- projectsState?: "ready" | "refreshing" | "unavailable" | undefined;
20478
- projectsGeneration?: string | undefined;
20479
- issuesTotal?: number | undefined;
20480
- prsTotal?: number | undefined;
20481
- issuesNextCursor?: string | null | undefined;
20482
- prsNextCursor?: string | null | undefined;
20483
- commentsDeferred?: true | undefined;
20484
20647
  };
20485
20648
  outputFormat: "json";
20486
20649
  status: import("hono/utils/http-status").ContentfulStatusCode;
20487
20650
  input: {
20488
20651
  query: {
20489
- limit?: string | undefined;
20490
- refresh?: string | undefined;
20491
- issuesCursor?: string | undefined;
20492
- prsCursor?: string | undefined;
20493
- issuesDone?: "1" | undefined;
20494
- prsDone?: "1" | undefined;
20652
+ kind: "issue" | "pr";
20653
+ q: string | string[];
20654
+ limit?: number | undefined;
20495
20655
  };
20496
20656
  };
20497
20657
  };
20498
20658
  };
20499
20659
  } & {
20500
- "/github/projects": {
20660
+ "/github/ref-status": {
20501
20661
  $get: {
20502
20662
  output: {
20503
20663
  error: string;
@@ -20507,37 +20667,50 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20507
20667
  status: 400;
20508
20668
  input: {
20509
20669
  query: {
20510
- generation: string | string[];
20670
+ prs?: string | undefined;
20671
+ issues?: string | undefined;
20511
20672
  };
20512
20673
  };
20513
20674
  } | {
20514
20675
  output: {
20515
- generation: string;
20516
- state: "ready";
20517
- projects: {
20518
- id: string;
20519
- title: string;
20520
- url: string;
20521
- }[];
20522
- membership: {
20523
- [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";
20524
20691
  };
20692
+ issues: {
20693
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20694
+ };
20695
+ conflicts?: number[] | undefined;
20696
+ recheckAfterMs: number | null;
20525
20697
  } | {
20526
- generation: string;
20527
- state: "unavailable";
20698
+ available: false;
20528
20699
  reason: string;
20700
+ recheckAfterMs: number | null;
20529
20701
  };
20530
20702
  outputFormat: "json";
20531
20703
  status: import("hono/utils/http-status").ContentfulStatusCode;
20532
20704
  input: {
20533
20705
  query: {
20534
- generation: string | string[];
20706
+ prs?: string | undefined;
20707
+ issues?: string | undefined;
20535
20708
  };
20536
20709
  };
20537
20710
  };
20538
20711
  };
20539
20712
  } & {
20540
- "/github/comments/:kind/:number": {
20713
+ "/github/prs/:number/merge-state": {
20541
20714
  $get: {
20542
20715
  output: {
20543
20716
  error: string;
@@ -20546,169 +20719,168 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20546
20719
  outputFormat: "json";
20547
20720
  status: 400;
20548
20721
  input: {
20549
- query: {
20550
- refresh?: string | undefined;
20551
- };
20552
- } & {
20553
20722
  param: {
20554
- kind: string;
20555
- } & {
20556
20723
  number: string;
20557
20724
  };
20558
- };
20559
- } | {
20560
- output: {
20561
- error: string;
20562
- };
20563
- outputFormat: "json";
20564
- status: 400;
20565
- input: {
20725
+ } & {
20566
20726
  query: {
20567
20727
  refresh?: string | undefined;
20568
20728
  };
20569
- } & {
20570
- param: {
20571
- kind: string;
20572
- } & {
20573
- number: string;
20574
- };
20575
20729
  };
20576
20730
  } | {
20577
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
+ } | {
20578
20761
  available: false;
20579
20762
  reason: string;
20580
- comments: never[];
20581
20763
  };
20582
20764
  outputFormat: "json";
20583
20765
  status: import("hono/utils/http-status").ContentfulStatusCode;
20584
20766
  input: {
20767
+ param: {
20768
+ number: string;
20769
+ };
20770
+ } & {
20585
20771
  query: {
20586
20772
  refresh?: string | undefined;
20587
20773
  };
20588
- } & {
20774
+ };
20775
+ };
20776
+ };
20777
+ } & {
20778
+ "/github/prs/:number/merge": {
20779
+ $post: {
20780
+ output: {
20781
+ error: string;
20782
+ code?: "invalid_input" | undefined;
20783
+ };
20784
+ outputFormat: "json";
20785
+ status: 400;
20786
+ input: {
20589
20787
  param: {
20590
- kind: string;
20591
- } & {
20592
20788
  number: string;
20593
20789
  };
20790
+ } & {
20791
+ json: {
20792
+ method: "merge" | "rebase" | "squash";
20793
+ expectedHeadSha: string;
20794
+ overrideRules?: boolean | undefined;
20795
+ };
20594
20796
  };
20595
20797
  } | {
20596
20798
  output: {
20597
- available: boolean;
20598
- reason?: string | undefined;
20599
- comments: {
20600
- id: number;
20601
- author: string;
20602
- avatarUrl?: string | undefined;
20603
- createdAt: string;
20604
- body: string;
20605
- kind: "comment" | "review";
20606
- reviewState?: "approved" | "changes_requested" | "commented" | "dismissed" | undefined;
20607
- url: string;
20608
- }[];
20609
- truncated?: boolean | undefined;
20610
- events?: {
20611
- id: string;
20612
- kind: "assigned" | "closed" | "committed" | "cross-referenced" | "head_ref_force_pushed" | "labeled" | "merged" | "renamed" | "reopened" | "unassigned" | "unlabeled";
20613
- actor: string;
20614
- avatarUrl?: string | undefined;
20615
- createdAt: string;
20616
- url?: string | undefined;
20617
- sha?: string | undefined;
20618
- message?: string | undefined;
20619
- checks?: "failing" | "passing" | "pending" | null | undefined;
20620
- label?: {
20621
- name: string;
20622
- color?: string | undefined;
20623
- } | undefined;
20624
- subject?: string | undefined;
20625
- refNumber?: number | undefined;
20626
- refTitle?: string | undefined;
20627
- refIsPr?: boolean | undefined;
20628
- }[] | undefined;
20629
- detail?: {
20630
- body: string;
20631
- additions?: number | undefined;
20632
- deletions?: number | undefined;
20633
- } | undefined;
20799
+ error: string;
20634
20800
  };
20635
20801
  outputFormat: "json";
20636
- status: import("hono/utils/http-status").ContentfulStatusCode;
20802
+ status: 409;
20637
20803
  input: {
20638
- query: {
20639
- refresh?: string | undefined;
20640
- };
20641
- } & {
20642
20804
  param: {
20643
- kind: string;
20644
- } & {
20645
20805
  number: string;
20646
20806
  };
20807
+ } & {
20808
+ json: {
20809
+ method: "merge" | "rebase" | "squash";
20810
+ expectedHeadSha: string;
20811
+ overrideRules?: boolean | undefined;
20812
+ };
20647
20813
  };
20648
- };
20649
- };
20650
- } & {
20651
- "/github/items/:kind/:number": {
20652
- $get: {
20814
+ } | {
20653
20815
  output: {
20654
- error: string;
20655
- code?: "invalid_input" | undefined;
20816
+ merged: true;
20817
+ number: number;
20818
+ url: string;
20819
+ method: import("../core/forge-registry.ts").ForgeMergeMethod;
20820
+ mergeCommitSha?: string;
20656
20821
  };
20657
20822
  outputFormat: "json";
20658
- status: 400;
20823
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20659
20824
  input: {
20660
20825
  param: {
20661
- kind: "issue" | "pr";
20662
20826
  number: string;
20663
20827
  };
20664
20828
  } & {
20665
- query: {
20666
- refresh?: string | undefined;
20829
+ json: {
20830
+ method: "merge" | "rebase" | "squash";
20831
+ expectedHeadSha: string;
20832
+ overrideRules?: boolean | undefined;
20667
20833
  };
20668
20834
  };
20669
20835
  } | {
20670
20836
  output: {
20671
- available: true;
20672
- item: {
20673
- kind: "issue" | "pr";
20837
+ error: string;
20838
+ code?: string | undefined;
20839
+ current?: {
20674
20840
  number: number;
20675
20841
  title: string;
20676
- author: string;
20677
- createdAt: string;
20678
- labels: string[];
20679
- body?: string | undefined;
20680
20842
  url: string;
20681
- comments: number;
20682
- assignees?: string[] | undefined;
20683
- projectIds?: string[] | undefined;
20684
- isDraft?: boolean | undefined;
20685
- additions?: number | undefined;
20686
- deletions?: number | undefined;
20687
- checks?: "failing" | "passing" | "pending" | null | undefined;
20688
- } | null;
20689
- labelColors?: {
20690
- [x: string]: string;
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;
20691
20865
  } | undefined;
20692
- } | {
20693
- available: false;
20694
- reason: string;
20695
20866
  };
20696
20867
  outputFormat: "json";
20697
- status: import("hono/utils/http-status").ContentfulStatusCode;
20868
+ status: 403 | 404 | 409 | 502;
20698
20869
  input: {
20699
20870
  param: {
20700
- kind: "issue" | "pr";
20701
20871
  number: string;
20702
20872
  };
20703
20873
  } & {
20704
- query: {
20705
- refresh?: string | undefined;
20874
+ json: {
20875
+ method: "merge" | "rebase" | "squash";
20876
+ expectedHeadSha: string;
20877
+ overrideRules?: boolean | undefined;
20706
20878
  };
20707
20879
  };
20708
20880
  };
20709
20881
  };
20710
20882
  } & {
20711
- "/github/checks": {
20883
+ "/github/prs/:number/changes": {
20712
20884
  $get: {
20713
20885
  output: {
20714
20886
  error: string;
@@ -20717,8 +20889,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20717
20889
  outputFormat: "json";
20718
20890
  status: 400;
20719
20891
  input: {
20892
+ param: {
20893
+ number: string;
20894
+ };
20895
+ } & {
20720
20896
  query: {
20721
- prs: string | string[];
20897
+ refresh?: "1" | undefined;
20722
20898
  };
20723
20899
  };
20724
20900
  } | {
@@ -20726,18 +20902,35 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20726
20902
  error: string;
20727
20903
  };
20728
20904
  outputFormat: "json";
20729
- status: 400;
20905
+ status: 404;
20730
20906
  input: {
20907
+ param: {
20908
+ number: string;
20909
+ };
20910
+ } & {
20731
20911
  query: {
20732
- prs: string | string[];
20912
+ refresh?: "1" | undefined;
20733
20913
  };
20734
20914
  };
20735
20915
  } | {
20736
20916
  output: {
20737
20917
  available: true;
20738
- checks: {
20739
- [x: number]: "failing" | "passing" | "pending" | null;
20740
- };
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;
20741
20934
  } | {
20742
20935
  available: false;
20743
20936
  reason: string;
@@ -20745,51 +20938,181 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20745
20938
  outputFormat: "json";
20746
20939
  status: import("hono/utils/http-status").ContentfulStatusCode;
20747
20940
  input: {
20941
+ param: {
20942
+ number: string;
20943
+ };
20944
+ } & {
20748
20945
  query: {
20749
- prs: string | string[];
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;
20750
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;
20751
21002
  };
21003
+ outputFormat: "json";
21004
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21005
+ input: {};
20752
21006
  };
20753
21007
  };
20754
21008
  } & {
20755
- "/github/comment-counts": {
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;
21041
+ };
21042
+ };
21043
+ outputFormat: "json";
21044
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21045
+ input: {};
21046
+ };
21047
+ };
21048
+ } & {
21049
+ "/repo/branches/counts": {
20756
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: {
20757
21068
  output: {
20758
21069
  error: string;
20759
- code?: "invalid_input" | undefined;
21070
+ refused: {
21071
+ name: string;
21072
+ reason: string;
21073
+ }[];
20760
21074
  };
20761
21075
  outputFormat: "json";
20762
- status: 400;
21076
+ status: 409;
20763
21077
  input: {
20764
- query: {
20765
- kind: "issue" | "pr";
20766
- numbers: string | string[];
20767
- refresh?: "1" | undefined;
21078
+ json: {
21079
+ names: string[];
21080
+ confirm?: string | undefined;
20768
21081
  };
20769
21082
  };
20770
21083
  } | {
20771
21084
  output: {
20772
- available: true;
20773
- counts: {
20774
- [x: number]: number;
20775
- };
20776
- } | {
20777
- available: false;
20778
- reason: string;
21085
+ deleted: string[];
21086
+ refused: {
21087
+ name: string;
21088
+ reason: string;
21089
+ }[];
21090
+ dropped?: {
21091
+ sha: string;
21092
+ subject: string;
21093
+ }[] | undefined;
20779
21094
  };
20780
21095
  outputFormat: "json";
20781
- status: import("hono/utils/http-status").ContentfulStatusCode;
21096
+ status: 200;
20782
21097
  input: {
20783
- query: {
20784
- kind: "issue" | "pr";
20785
- numbers: string | string[];
20786
- refresh?: "1" | undefined;
21098
+ json: {
21099
+ names: string[];
21100
+ confirm?: string | undefined;
20787
21101
  };
20788
21102
  };
20789
21103
  };
20790
21104
  };
20791
21105
  } & {
20792
- "/github/search": {
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": {
20793
21116
  $get: {
20794
21117
  output: {
20795
21118
  error: string;
@@ -20799,66 +21122,78 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20799
21122
  status: 400;
20800
21123
  input: {
20801
21124
  query: {
20802
- kind: "issue" | "pr";
20803
- q: string | string[];
20804
- limit?: number | undefined;
21125
+ structured?: string | undefined;
21126
+ };
21127
+ } & {
21128
+ param: {
21129
+ sha: string;
20805
21130
  };
20806
21131
  };
20807
21132
  } | {
20808
21133
  output: {
20809
- available: false;
20810
- reason: string;
20811
- items: never[];
21134
+ sha: string;
21135
+ subject: string;
21136
+ author: string;
21137
+ when: string;
21138
+ files: {
21139
+ path: string;
21140
+ oldPath?: string;
21141
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
21142
+ adds: number;
21143
+ dels: number;
21144
+ binary: boolean;
21145
+ image?: boolean;
21146
+ patch: string;
21147
+ }[];
21148
+ stat: {
21149
+ adds: number;
21150
+ dels: number;
21151
+ files: number;
21152
+ };
20812
21153
  };
20813
21154
  outputFormat: "json";
20814
21155
  status: import("hono/utils/http-status").ContentfulStatusCode;
20815
21156
  input: {
20816
21157
  query: {
20817
- kind: "issue" | "pr";
20818
- q: string | string[];
20819
- limit?: number | undefined;
21158
+ structured?: string | undefined;
21159
+ };
21160
+ } & {
21161
+ param: {
21162
+ sha: string;
20820
21163
  };
20821
21164
  };
20822
21165
  } | {
20823
21166
  output: {
20824
- available: boolean;
20825
- projectsReason?: string | undefined;
20826
- reason?: string | undefined;
20827
- items: {
20828
- kind: "issue" | "pr";
20829
- number: number;
20830
- title: string;
20831
- author: string;
20832
- createdAt: string;
20833
- labels: string[];
20834
- body?: string | undefined;
20835
- url: string;
20836
- comments: number;
20837
- assignees?: string[] | undefined;
20838
- projectIds?: string[] | undefined;
20839
- isDraft?: boolean | undefined;
20840
- additions?: number | undefined;
20841
- deletions?: number | undefined;
20842
- checks?: "failing" | "passing" | "pending" | null | undefined;
20843
- }[];
20844
- truncated?: boolean | undefined;
20845
- labelColors?: {
20846
- [x: string]: string;
20847
- } | undefined;
21167
+ error: string;
20848
21168
  };
20849
21169
  outputFormat: "json";
21170
+ status: 409;
21171
+ input: {
21172
+ query: {
21173
+ structured?: string | undefined;
21174
+ };
21175
+ } & {
21176
+ param: {
21177
+ sha: string;
21178
+ };
21179
+ };
21180
+ } | {
21181
+ output: string;
21182
+ outputFormat: "text";
20850
21183
  status: import("hono/utils/http-status").ContentfulStatusCode;
20851
21184
  input: {
20852
21185
  query: {
20853
- kind: "issue" | "pr";
20854
- q: string | string[];
20855
- limit?: number | undefined;
21186
+ structured?: string | undefined;
21187
+ };
21188
+ } & {
21189
+ param: {
21190
+ sha: string;
20856
21191
  };
20857
21192
  };
20858
21193
  };
20859
21194
  };
20860
21195
  } & {
20861
- "/github/ref-status": {
21196
+ "/repo/commit/:sha/file": {
20862
21197
  $get: {
20863
21198
  output: {
20864
21199
  error: string;
@@ -20867,51 +21202,53 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20867
21202
  outputFormat: "json";
20868
21203
  status: 400;
20869
21204
  input: {
21205
+ param: {
21206
+ sha: string;
21207
+ };
21208
+ } & {
20870
21209
  query: {
20871
- prs?: string | undefined;
20872
- issues?: string | undefined;
21210
+ path: string | string[];
20873
21211
  };
20874
21212
  };
20875
21213
  } | {
20876
21214
  output: {
20877
- error: string;
21215
+ type: 'file';
21216
+ path: string;
21217
+ size: number;
21218
+ binary: boolean;
21219
+ tooLarge: boolean;
21220
+ content?: string | undefined;
20878
21221
  };
20879
21222
  outputFormat: "json";
20880
- status: 400;
21223
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20881
21224
  input: {
21225
+ param: {
21226
+ sha: string;
21227
+ };
21228
+ } & {
20882
21229
  query: {
20883
- prs?: string | undefined;
20884
- issues?: string | undefined;
21230
+ path: string | string[];
20885
21231
  };
20886
21232
  };
20887
21233
  } | {
20888
21234
  output: {
20889
- available: true;
20890
- prs: {
20891
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20892
- };
20893
- issues: {
20894
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20895
- };
20896
- conflicts?: number[] | undefined;
20897
- recheckAfterMs: number | null;
20898
- } | {
20899
- available: false;
20900
- reason: string;
20901
- recheckAfterMs: number | null;
21235
+ error: string;
20902
21236
  };
20903
21237
  outputFormat: "json";
20904
- status: import("hono/utils/http-status").ContentfulStatusCode;
21238
+ status: 409;
20905
21239
  input: {
21240
+ param: {
21241
+ sha: string;
21242
+ };
21243
+ } & {
20906
21244
  query: {
20907
- prs?: string | undefined;
20908
- issues?: string | undefined;
21245
+ path: string | string[];
20909
21246
  };
20910
21247
  };
20911
21248
  };
20912
21249
  };
20913
21250
  } & {
20914
- "/github/prs/:number/merge-state": {
21251
+ "/repo/files": {
20915
21252
  $get: {
20916
21253
  output: {
20917
21254
  error: string;
@@ -20920,231 +21257,148 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20920
21257
  outputFormat: "json";
20921
21258
  status: 400;
20922
21259
  input: {
20923
- param: {
20924
- number: string;
20925
- };
20926
- } & {
20927
21260
  query: {
20928
- refresh?: string | undefined;
21261
+ path: string | string[];
20929
21262
  };
20930
21263
  };
20931
21264
  } | {
20932
21265
  output: {
20933
- available: true;
20934
- mergeState: {
20935
- number: number;
20936
- title: string;
20937
- url: string;
20938
- state: "closed" | "merged" | "open";
20939
- isDraft: boolean;
20940
- headRef: string;
20941
- baseRef: string;
20942
- headSha: string;
20943
- mergeable: "conflicting" | "mergeable" | "unknown";
20944
- reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
20945
- checks: {
20946
- name: string;
20947
- state: "failing" | "passing" | "pending" | "unknown";
20948
- required: boolean | null;
20949
- url?: string | undefined;
20950
- }[];
20951
- methods: ("merge" | "rebase" | "squash")[];
20952
- defaultMethod: "merge" | "rebase" | "squash" | null;
20953
- eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
20954
- blockers: {
20955
- code: string;
20956
- message: string;
20957
- }[];
20958
- canMerge: boolean;
20959
- canOverride: boolean;
20960
- };
20961
- } | {
20962
- available: false;
20963
- reason: string;
21266
+ type: 'file';
21267
+ path: string;
21268
+ size: number;
21269
+ binary: boolean;
21270
+ tooLarge: boolean;
21271
+ content?: string | undefined;
20964
21272
  };
20965
21273
  outputFormat: "json";
20966
21274
  status: import("hono/utils/http-status").ContentfulStatusCode;
20967
21275
  input: {
20968
- param: {
20969
- number: string;
20970
- };
20971
- } & {
20972
21276
  query: {
20973
- refresh?: string | undefined;
21277
+ path: string | string[];
20974
21278
  };
20975
21279
  };
20976
- };
20977
- };
20978
- } & {
20979
- "/github/prs/:number/merge": {
20980
- $post: {
21280
+ } | {
20981
21281
  output: {
20982
21282
  error: string;
20983
- code?: "invalid_input" | undefined;
20984
21283
  };
20985
21284
  outputFormat: "json";
20986
- status: 400;
21285
+ status: 409;
20987
21286
  input: {
20988
- param: {
20989
- number: string;
21287
+ query: {
21288
+ path: string | string[];
20990
21289
  };
20991
- } & {
20992
- json: {
20993
- method: "merge" | "rebase" | "squash";
20994
- expectedHeadSha: string;
20995
- overrideRules?: boolean | undefined;
21290
+ };
21291
+ };
21292
+ };
21293
+ } & {
21294
+ "/repo/changes": {
21295
+ $get: {
21296
+ output: {
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;
20996
21311
  };
21312
+ repointedHead?: {
21313
+ headBranch: string;
21314
+ taskBranch: string;
21315
+ } | undefined;
20997
21316
  };
21317
+ outputFormat: "json";
21318
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21319
+ input: {};
20998
21320
  } | {
20999
21321
  output: {
21000
21322
  error: string;
21001
21323
  };
21002
21324
  outputFormat: "json";
21003
21325
  status: 409;
21004
- input: {
21005
- param: {
21006
- number: string;
21007
- };
21008
- } & {
21009
- json: {
21010
- method: "merge" | "rebase" | "squash";
21011
- expectedHeadSha: string;
21012
- overrideRules?: boolean | undefined;
21013
- };
21014
- };
21326
+ input: {};
21327
+ };
21328
+ };
21329
+ } & {
21330
+ "/repo/pull": {
21331
+ $get: {
21332
+ output: {
21333
+ error: string;
21334
+ };
21335
+ outputFormat: "json";
21336
+ status: 409;
21337
+ input: {};
21015
21338
  } | {
21016
21339
  output: {
21017
- merged: true;
21018
- number: number;
21019
- url: string;
21020
- method: import("../core/forge-registry.ts").ForgeMergeMethod;
21021
- mergeCommitSha?: string;
21340
+ branches: string[];
21022
21341
  };
21023
21342
  outputFormat: "json";
21024
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;
21025
21355
  input: {
21026
- param: {
21027
- number: string;
21028
- };
21029
- } & {
21030
21356
  json: {
21031
- method: "merge" | "rebase" | "squash";
21032
- expectedHeadSha: string;
21033
- overrideRules?: boolean | undefined;
21357
+ branch?: string | undefined;
21358
+ confirm?: boolean | undefined;
21034
21359
  };
21035
21360
  };
21036
21361
  } | {
21037
21362
  output: {
21038
- error: string;
21039
- code?: string | undefined;
21040
- current?: {
21041
- number: number;
21042
- title: string;
21043
- url: string;
21044
- state: "closed" | "merged" | "open";
21045
- isDraft: boolean;
21046
- headRef: string;
21047
- baseRef: string;
21048
- headSha: string;
21049
- mergeable: "conflicting" | "mergeable" | "unknown";
21050
- reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
21051
- checks: {
21052
- name: string;
21053
- state: "failing" | "passing" | "pending" | "unknown";
21054
- required: boolean | null;
21055
- url?: string | undefined;
21056
- }[];
21057
- methods: ("merge" | "rebase" | "squash")[];
21058
- defaultMethod: "merge" | "rebase" | "squash" | null;
21059
- eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
21060
- blockers: {
21061
- code: string;
21062
- message: string;
21063
- }[];
21064
- canMerge: boolean;
21065
- canOverride: boolean;
21066
- } | undefined;
21363
+ branch: string;
21364
+ pulled: true;
21365
+ summary: string;
21067
21366
  };
21068
21367
  outputFormat: "json";
21069
- status: 403 | 404 | 409 | 502;
21368
+ status: 200;
21070
21369
  input: {
21071
- param: {
21072
- number: string;
21073
- };
21074
- } & {
21075
21370
  json: {
21076
- method: "merge" | "rebase" | "squash";
21077
- expectedHeadSha: string;
21078
- overrideRules?: boolean | undefined;
21371
+ branch?: string | undefined;
21372
+ confirm?: boolean | undefined;
21079
21373
  };
21080
21374
  };
21081
21375
  };
21082
21376
  };
21083
21377
  } & {
21084
- "/github/prs/:number/changes": {
21085
- $get: {
21086
- output: {
21087
- error: string;
21088
- code?: "invalid_input" | undefined;
21089
- };
21090
- outputFormat: "json";
21091
- status: 400;
21092
- input: {
21093
- param: {
21094
- number: string;
21095
- };
21096
- } & {
21097
- query: {
21098
- refresh?: "1" | undefined;
21099
- };
21100
- };
21101
- } | {
21378
+ "/repo/branch": {
21379
+ $post: {
21102
21380
  output: {
21103
21381
  error: string;
21104
21382
  };
21105
21383
  outputFormat: "json";
21106
- status: 404;
21384
+ status: 409;
21107
21385
  input: {
21108
- param: {
21109
- number: string;
21110
- };
21111
- } & {
21112
- query: {
21113
- refresh?: "1" | undefined;
21386
+ json: {
21387
+ name: string;
21388
+ from?: string | undefined;
21114
21389
  };
21115
21390
  };
21116
21391
  } | {
21117
21392
  output: {
21118
- available: true;
21119
- number: number;
21120
- headSha: string;
21121
- files: {
21122
- path: string;
21123
- previousPath?: string;
21124
- status: 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed';
21125
- additions: number;
21126
- deletions: number;
21127
- patch?: string;
21128
- patchUnavailableReason?: 'binary' | 'too-large' | 'not-provided';
21129
- truncated?: boolean;
21130
- }[];
21131
- additions: number;
21132
- deletions: number;
21133
- truncated: boolean;
21134
- reason?: string;
21135
- } | {
21136
- available: false;
21137
- reason: string;
21393
+ branch: string;
21394
+ created: boolean;
21138
21395
  };
21139
21396
  outputFormat: "json";
21140
21397
  status: import("hono/utils/http-status").ContentfulStatusCode;
21141
21398
  input: {
21142
- param: {
21143
- number: string;
21144
- };
21145
- } & {
21146
- query: {
21147
- refresh?: "1" | undefined;
21399
+ json: {
21400
+ name: string;
21401
+ from?: string | undefined;
21148
21402
  };
21149
21403
  };
21150
21404
  };
@@ -33440,20 +33694,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33440
33694
  } & {
33441
33695
  "/runs/:id/handoff": {
33442
33696
  $get: {
33443
- output: string;
33444
- outputFormat: "text";
33445
- status: 200;
33697
+ output: {
33698
+ error: string;
33699
+ };
33700
+ outputFormat: "json";
33701
+ status: 404;
33446
33702
  input: {
33447
33703
  param: {
33448
33704
  id: string;
33449
33705
  };
33450
33706
  };
33451
33707
  } | {
33452
- output: {
33453
- error: string;
33454
- };
33455
- outputFormat: "json";
33456
- status: 404;
33708
+ output: string;
33709
+ outputFormat: "text";
33710
+ status: 200;
33457
33711
  input: {
33458
33712
  param: {
33459
33713
  id: string;
@@ -33491,20 +33745,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33491
33745
  } & {
33492
33746
  "/runs/:id/diff": {
33493
33747
  $get: {
33494
- output: string;
33495
- outputFormat: "text";
33496
- status: import("hono/utils/http-status").ContentfulStatusCode;
33748
+ output: {
33749
+ error: string;
33750
+ };
33751
+ outputFormat: "json";
33752
+ status: 404 | 409;
33497
33753
  input: {
33498
33754
  param: {
33499
33755
  id: string;
33500
33756
  };
33501
33757
  };
33502
33758
  } | {
33503
- output: {
33504
- error: string;
33505
- };
33506
- outputFormat: "json";
33507
- status: 404 | 409;
33759
+ output: string;
33760
+ outputFormat: "text";
33761
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33508
33762
  input: {
33509
33763
  param: {
33510
33764
  id: string;
@@ -33635,6 +33889,64 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33635
33889
  };
33636
33890
  };
33637
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
+ };
33638
33950
  } & {
33639
33951
  "/runs/:id/file-link": {
33640
33952
  $get: {
@@ -34017,14 +34329,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34017
34329
  };
34018
34330
  } | {
34019
34331
  output: {
34020
- type: 'dir';
34332
+ type: 'file';
34021
34333
  path: string;
34022
- entries: {
34023
- name: string;
34024
- type: 'dir' | 'file';
34025
- size?: number;
34026
- chain?: string;
34027
- }[];
34334
+ size: number;
34335
+ binary: boolean;
34336
+ tooLarge: boolean;
34337
+ content?: string | undefined;
34028
34338
  };
34029
34339
  outputFormat: "json";
34030
34340
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -34040,12 +34350,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34040
34350
  };
34041
34351
  } | {
34042
34352
  output: {
34043
- type: 'file';
34353
+ type: 'dir';
34044
34354
  path: string;
34045
- size: number;
34046
- binary: boolean;
34047
- tooLarge: boolean;
34048
- content?: string | undefined;
34355
+ entries: {
34356
+ name: string;
34357
+ type: 'dir' | 'file';
34358
+ size?: number;
34359
+ chain?: string;
34360
+ }[];
34049
34361
  };
34050
34362
  outputFormat: "json";
34051
34363
  status: import("hono/utils/http-status").ContentfulStatusCode;