@hearsay-tools/squawk 0.19.0-dev.8968 → 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 (99) hide show
  1. package/dist/contract/index.js +24 -8
  2. package/dist/contract/query-requests.d.ts +5 -0
  3. package/dist/contract/repo.d.ts +23 -0
  4. package/dist/server/git-changes.d.ts +27 -0
  5. package/dist/server/git-changes.js +47 -0
  6. package/dist/server/git-changes.js.map +1 -1
  7. package/dist/server/repo-routes.d.ts +111 -13
  8. package/dist/server/repo-routes.js +20 -3
  9. package/dist/server/repo-routes.js.map +1 -1
  10. package/dist/server/runs-routes.d.ts +86 -28
  11. package/dist/server/runs-routes.js +12 -10
  12. package/dist/server/runs-routes.js.map +1 -1
  13. package/dist/server/server.d.ts +1823 -1511
  14. package/package.json +4 -4
  15. package/web/dist/assets/{accounts-section-ubzHoDCj.js → accounts-section-Bh6Ne88P.js} +1 -1
  16. package/web/dist/assets/activity-motion-B4hhwfpy.js +1 -0
  17. package/web/dist/assets/{activity-route-BJ_KGtKZ.js → activity-route-XNJHWQrd.js} +1 -1
  18. package/web/dist/assets/{agent-config-section-hmVjtjoY.js → agent-config-section-oavZQZ6z.js} +2 -2
  19. package/web/dist/assets/{agent-defaults-section-BQKpdzj_.js → agent-defaults-section-Dlbff8d1.js} +1 -1
  20. package/web/dist/assets/{appearance-BaczNXEP.js → appearance-kpegMyn3.js} +1 -1
  21. package/web/dist/assets/{archive-on-merge-field-CXbUm4s9.js → archive-on-merge-field-Hw5MDxKb.js} +1 -1
  22. package/web/dist/assets/attention-BHNhUrnd.js +1 -0
  23. package/web/dist/assets/automations-route-DUZ4KZ71.js +2 -0
  24. package/web/dist/assets/{middle-truncated-name-TQxp8NxE.js → code-workbench-CUkiQ1pF.js} +1 -1
  25. package/web/dist/assets/commit-list-CHGDpN9k.js +1 -0
  26. package/web/dist/assets/{diff-_j1dYOKk.js → diff-DsPWectf.js} +2 -2
  27. package/web/dist/assets/{diff-controls-LdJu9jvm.js → diff-controls-BfNiZ7m7.js} +1 -1
  28. package/web/dist/assets/{diff-view-hA-_3ujN.js → diff-view-Ds6tF4Li.js} +1 -1
  29. package/web/dist/assets/{discard-changes-dialog-DT4Tnp2l.js → discard-changes-dialog-SEDH0D2b.js} +1 -1
  30. package/web/dist/assets/{file-preview-ClCnVg6z.js → file-preview-Dd4Bn_jS.js} +1 -1
  31. package/web/dist/assets/file-text-nGpo7MVd.js +1 -0
  32. package/web/dist/assets/{folder-browser-DiQGbqCN.js → folder-browser-BgGSB2gk.js} +1 -1
  33. package/web/dist/assets/{git-toolbar-BavnCfoa.js → git-toolbar-CyDX0ZlL.js} +1 -1
  34. package/web/dist/assets/github-CSHuD5n6.js +1 -0
  35. package/web/dist/assets/{global-activity-route-DZNrWVSz.js → global-activity-route-BeiBJ_S6.js} +2 -2
  36. package/web/dist/assets/index-BXyNYltk.css +1 -0
  37. package/web/dist/assets/{index-CS4IQx7a.js → index-D7e7hQRs.js} +7 -7
  38. package/web/dist/assets/{label-B1zf-eXb.js → label-CxJpzeLL.js} +1 -1
  39. package/web/dist/assets/{markdown-BJynZeyO.js → markdown-xkaHkz73.js} +1 -1
  40. package/web/dist/assets/middle-truncated-name-D41ibfXD.js +1 -0
  41. package/web/dist/assets/{open-in-menu-DfTnT8YF.js → open-in-menu-CmsJeSrD.js} +1 -1
  42. package/web/dist/assets/{option-select-CeMvhKGB.js → option-select-yBRQj6E_.js} +1 -1
  43. package/web/dist/assets/{preferences-section-1TdwWBaU.js → preferences-section-37pdeCWJ.js} +1 -1
  44. package/web/dist/assets/{preview-pane-connected-B_IyuLH_.js → preview-pane-connected-By08oMDu.js} +2 -2
  45. package/web/dist/assets/{project-location-zpoFmFbY.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-DCSrvgdU.js → projects-section-C2APAdf3.js} +1 -1
  48. package/web/dist/assets/{prompt-templates-section-CPda4gof.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-D_GLdblC.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-BAHgsI-N.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-ZhVWe08S.js → reports-G5DwAoma.js} +1 -1
  56. package/web/dist/assets/{resources-section-CCKl5lWd.js → resources-section-BIjd5azP.js} +1 -1
  57. package/web/dist/assets/{review-panel-DNd2lB0z.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-2Ol_oWfx.js → run-header-DRYGraQL.js} +2 -2
  60. package/web/dist/assets/{select-1oriQjL8.js → select-akdt2vf9.js} +1 -1
  61. package/web/dist/assets/{session-context-section-BqGDbveU.js → session-context-section-Ckddzf6W.js} +1 -1
  62. package/web/dist/assets/{settings-agent-picker-Ci3lUfW1.js → settings-agent-picker-Bt31ulJ9.js} +1 -1
  63. package/web/dist/assets/{settings-save-bar-DXwUaK3L.js → settings-save-bar-BCxZrjjt.js} +1 -1
  64. package/web/dist/assets/{settings-shell-aWDWs253.js → settings-shell-C84UojR3.js} +1 -1
  65. package/web/dist/assets/{sidebar-section-D5aLInDQ.js → sidebar-section-Dr9ev5Vo.js} +1 -1
  66. package/web/dist/assets/{skills-mbZtZ3vc.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-B2EH5Os6.js → task-file-scope-DI5YpFAh.js} +1 -1
  71. package/web/dist/assets/task-files-C1nhWf4J.js +1 -0
  72. package/web/dist/assets/{task-github-item-CjALWL4A.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-uWiG7IgM.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-CDATZgDf.js → workflows-C3Q0b6rr.js} +2 -2
  82. package/web/dist/assets/{workspace-tools-BICzaBFy.js → workspace-tools-Bhqgjmre.js} +1 -1
  83. package/web/dist/assets/{worktrees-section-CD-TSxcn.js → worktrees-section-BDEXzzG0.js} +5 -5
  84. package/web/dist/index.html +15 -15
  85. package/web/dist/assets/activity-motion-C3MbfqoU.js +0 -1
  86. package/web/dist/assets/attention-C9zoC-gL.js +0 -1
  87. package/web/dist/assets/automations-route-DUxB4z34.js +0 -2
  88. package/web/dist/assets/commit-list-BnAxcran.js +0 -1
  89. package/web/dist/assets/github-CK5AGoz0.js +0 -1
  90. package/web/dist/assets/index-DB8vFvSO.css +0 -1
  91. package/web/dist/assets/queries-CII6fTHH.js +0 -1
  92. package/web/dist/assets/repo-git-6j7BfJ2_.js +0 -1
  93. package/web/dist/assets/task-changes-BD1GZRIs.js +0 -1
  94. package/web/dist/assets/task-commits-Dz047BbX.js +0 -1
  95. package/web/dist/assets/task-files-C9YQDRk6.js +0 -1
  96. package/web/dist/assets/task-thread-B-cAE0Li.js +0 -2
  97. package/web/dist/assets/use-hand-to-agent-state-D8ltY5hM.js +0 -1
  98. package/web/dist/assets/use-path-bases-BK81NQ26.js +0 -1
  99. package/web/dist/assets/use-workspace-config-save-0Mtdwfrd.js +0 -1
@@ -4559,170 +4559,157 @@ 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
4714
  output: {
4728
4715
  error: string;
@@ -4732,191 +4719,249 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4732
4719
  status: 400;
4733
4720
  input: {
4734
4721
  query: {
4735
- structured?: string | undefined;
4722
+ refresh?: string | undefined;
4736
4723
  };
4737
4724
  } & {
4738
4725
  param: {
4739
- sha: string;
4726
+ kind: string;
4727
+ } & {
4728
+ number: string;
4740
4729
  };
4741
4730
  };
4742
4731
  } | {
4743
4732
  output: {
4744
- sha: string;
4745
- subject: string;
4746
- author: string;
4747
- when: string;
4748
- files: {
4749
- path: string;
4750
- oldPath?: string;
4751
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
4752
- adds: number;
4753
- dels: number;
4754
- binary: boolean;
4755
- image?: boolean;
4756
- patch: string;
4757
- }[];
4758
- stat: {
4759
- adds: number;
4760
- dels: number;
4761
- files: number;
4762
- };
4733
+ error: string;
4763
4734
  };
4764
4735
  outputFormat: "json";
4765
- status: import("hono/utils/http-status").ContentfulStatusCode;
4736
+ status: 400;
4766
4737
  input: {
4767
4738
  query: {
4768
- structured?: string | undefined;
4739
+ refresh?: string | undefined;
4769
4740
  };
4770
4741
  } & {
4771
4742
  param: {
4772
- sha: string;
4743
+ kind: string;
4744
+ } & {
4745
+ number: string;
4773
4746
  };
4774
4747
  };
4775
4748
  } | {
4776
4749
  output: {
4777
- error: string;
4750
+ available: false;
4751
+ reason: string;
4752
+ comments: never[];
4778
4753
  };
4779
4754
  outputFormat: "json";
4780
- status: 409;
4755
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4781
4756
  input: {
4782
4757
  query: {
4783
- structured?: string | undefined;
4758
+ refresh?: string | undefined;
4784
4759
  };
4785
4760
  } & {
4786
4761
  param: {
4787
- sha: string;
4762
+ kind: string;
4763
+ } & {
4764
+ number: string;
4788
4765
  };
4789
4766
  };
4790
4767
  } | {
4791
- output: string;
4792
- outputFormat: "text";
4768
+ output: {
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;
4780
+ }[];
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;
4805
+ } | undefined;
4806
+ };
4807
+ outputFormat: "json";
4793
4808
  status: import("hono/utils/http-status").ContentfulStatusCode;
4794
4809
  input: {
4795
4810
  query: {
4796
- structured?: string | undefined;
4811
+ refresh?: string | undefined;
4797
4812
  };
4798
4813
  } & {
4799
4814
  param: {
4800
- sha: string;
4815
+ kind: string;
4816
+ } & {
4817
+ number: string;
4801
4818
  };
4802
4819
  };
4803
4820
  };
4804
4821
  };
4805
4822
  } & {
4806
- "/repo/changes": {
4823
+ "/github/items/:kind/:number": {
4807
4824
  $get: {
4808
4825
  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;
4818
- }[];
4819
- stat: {
4820
- adds: number;
4821
- dels: number;
4822
- files: number;
4823
- };
4824
- repointedHead?: {
4825
- headBranch: string;
4826
- taskBranch: string;
4827
- } | undefined;
4826
+ error: string;
4827
+ code?: "invalid_input" | undefined;
4828
4828
  };
4829
4829
  outputFormat: "json";
4830
- status: import("hono/utils/http-status").ContentfulStatusCode;
4831
- 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
+ };
4832
4841
  } | {
4833
4842
  output: {
4834
- error: 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;
4835
4867
  };
4836
4868
  outputFormat: "json";
4837
- status: 409;
4838
- input: {};
4869
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4870
+ input: {
4871
+ param: {
4872
+ kind: "issue" | "pr";
4873
+ number: string;
4874
+ };
4875
+ } & {
4876
+ query: {
4877
+ refresh?: string | undefined;
4878
+ };
4879
+ };
4839
4880
  };
4840
4881
  };
4841
4882
  } & {
4842
- "/repo/pull": {
4883
+ "/github/checks": {
4843
4884
  $get: {
4844
4885
  output: {
4845
4886
  error: string;
4887
+ code?: "invalid_input" | undefined;
4846
4888
  };
4847
4889
  outputFormat: "json";
4848
- status: 409;
4849
- input: {};
4850
- } | {
4851
- output: {
4852
- branches: string[];
4890
+ status: 400;
4891
+ input: {
4892
+ query: {
4893
+ prs: string | string[];
4894
+ };
4853
4895
  };
4854
- outputFormat: "json";
4855
- status: import("hono/utils/http-status").ContentfulStatusCode;
4856
- input: {};
4857
- };
4858
- };
4859
- } & {
4860
- "/repo/pull": {
4861
- $post: {
4896
+ } | {
4862
4897
  output: {
4863
4898
  error: string;
4864
4899
  };
4865
4900
  outputFormat: "json";
4866
- status: 409;
4901
+ status: 400;
4867
4902
  input: {
4868
- json: {
4869
- branch?: string | undefined;
4870
- confirm?: boolean | undefined;
4903
+ query: {
4904
+ prs: string | string[];
4871
4905
  };
4872
4906
  };
4873
4907
  } | {
4874
4908
  output: {
4875
- branch: string;
4876
- pulled: true;
4877
- summary: string;
4909
+ available: true;
4910
+ checks: {
4911
+ [x: number]: "failing" | "passing" | "pending" | null;
4912
+ };
4913
+ } | {
4914
+ available: false;
4915
+ reason: string;
4878
4916
  };
4879
4917
  outputFormat: "json";
4880
- status: 200;
4918
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4881
4919
  input: {
4882
- json: {
4883
- branch?: string | undefined;
4884
- confirm?: boolean | undefined;
4920
+ query: {
4921
+ prs: string | string[];
4885
4922
  };
4886
4923
  };
4887
4924
  };
4888
4925
  };
4889
4926
  } & {
4890
- "/repo/branch": {
4891
- $post: {
4927
+ "/github/comment-counts": {
4928
+ $get: {
4892
4929
  output: {
4893
4930
  error: string;
4931
+ code?: "invalid_input" | undefined;
4894
4932
  };
4895
4933
  outputFormat: "json";
4896
- status: 409;
4934
+ status: 400;
4897
4935
  input: {
4898
- json: {
4899
- name: string;
4900
- from?: string | undefined;
4936
+ query: {
4937
+ kind: "issue" | "pr";
4938
+ numbers: string | string[];
4939
+ refresh?: "1" | undefined;
4901
4940
  };
4902
4941
  };
4903
4942
  } | {
4904
4943
  output: {
4905
- branch: string;
4906
- created: boolean;
4944
+ available: true;
4945
+ counts: {
4946
+ [x: number]: number;
4947
+ };
4948
+ } | {
4949
+ available: false;
4950
+ reason: string;
4907
4951
  };
4908
4952
  outputFormat: "json";
4909
4953
  status: import("hono/utils/http-status").ContentfulStatusCode;
4910
4954
  input: {
4911
- json: {
4912
- name: string;
4913
- from?: string | undefined;
4955
+ query: {
4956
+ kind: "issue" | "pr";
4957
+ numbers: string | string[];
4958
+ refresh?: "1" | undefined;
4914
4959
  };
4915
4960
  };
4916
4961
  };
4917
4962
  };
4918
- }, "/"> | import("hono/types").MergeSchemaPath<{
4919
- "/github": {
4963
+ } & {
4964
+ "/github/search": {
4920
4965
  $get: {
4921
4966
  output: {
4922
4967
  error: string;
@@ -4926,57 +4971,32 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4926
4971
  status: 400;
4927
4972
  input: {
4928
4973
  query: {
4929
- limit?: string | undefined;
4930
- refresh?: string | undefined;
4931
- issuesCursor?: string | undefined;
4932
- prsCursor?: string | undefined;
4933
- issuesDone?: "1" | undefined;
4934
- prsDone?: "1" | undefined;
4974
+ kind: "issue" | "pr";
4975
+ q: string | string[];
4976
+ limit?: number | undefined;
4935
4977
  };
4936
4978
  };
4937
4979
  } | {
4938
4980
  output: {
4939
4981
  available: false;
4940
4982
  reason: string;
4941
- issues: never[];
4942
- prs: never[];
4983
+ items: never[];
4943
4984
  };
4944
4985
  outputFormat: "json";
4945
4986
  status: import("hono/utils/http-status").ContentfulStatusCode;
4946
4987
  input: {
4947
4988
  query: {
4948
- limit?: string | undefined;
4949
- refresh?: string | undefined;
4950
- issuesCursor?: string | undefined;
4951
- prsCursor?: string | undefined;
4952
- issuesDone?: "1" | undefined;
4953
- prsDone?: "1" | undefined;
4989
+ kind: "issue" | "pr";
4990
+ q: string | string[];
4991
+ limit?: number | undefined;
4954
4992
  };
4955
4993
  };
4956
4994
  } | {
4957
4995
  output: {
4958
4996
  available: boolean;
4997
+ projectsReason?: string | undefined;
4959
4998
  reason?: string | undefined;
4960
- repo?: string | undefined;
4961
- syncedAt?: string | undefined;
4962
- issues: {
4963
- kind: "issue" | "pr";
4964
- number: number;
4965
- title: string;
4966
- author: string;
4967
- createdAt: string;
4968
- labels: string[];
4969
- body?: string | undefined;
4970
- url: string;
4971
- comments: number;
4972
- assignees?: string[] | undefined;
4973
- projectIds?: string[] | undefined;
4974
- isDraft?: boolean | undefined;
4975
- additions?: number | undefined;
4976
- deletions?: number | undefined;
4977
- checks?: "failing" | "passing" | "pending" | null | undefined;
4978
- }[];
4979
- prs: {
4999
+ items: {
4980
5000
  kind: "issue" | "pr";
4981
5001
  number: number;
4982
5002
  title: string;
@@ -4993,40 +5013,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4993
5013
  deletions?: number | undefined;
4994
5014
  checks?: "failing" | "passing" | "pending" | null | undefined;
4995
5015
  }[];
5016
+ truncated?: boolean | undefined;
4996
5017
  labelColors?: {
4997
5018
  [x: string]: string;
4998
5019
  } | undefined;
4999
- viewerLogin?: string | undefined;
5000
- projects?: {
5001
- id: string;
5002
- title: string;
5003
- url: string;
5004
- }[] | undefined;
5005
- projectsReason?: string | undefined;
5006
- projectsState?: "ready" | "refreshing" | "unavailable" | undefined;
5007
- projectsGeneration?: string | undefined;
5008
- issuesTotal?: number | undefined;
5009
- prsTotal?: number | undefined;
5010
- issuesNextCursor?: string | null | undefined;
5011
- prsNextCursor?: string | null | undefined;
5012
- commentsDeferred?: true | undefined;
5013
5020
  };
5014
5021
  outputFormat: "json";
5015
5022
  status: import("hono/utils/http-status").ContentfulStatusCode;
5016
5023
  input: {
5017
5024
  query: {
5018
- limit?: string | undefined;
5019
- refresh?: string | undefined;
5020
- issuesCursor?: string | undefined;
5021
- prsCursor?: string | undefined;
5022
- issuesDone?: "1" | undefined;
5023
- prsDone?: "1" | undefined;
5025
+ kind: "issue" | "pr";
5026
+ q: string | string[];
5027
+ limit?: number | undefined;
5024
5028
  };
5025
5029
  };
5026
5030
  };
5027
5031
  };
5028
5032
  } & {
5029
- "/github/projects": {
5033
+ "/github/ref-status": {
5030
5034
  $get: {
5031
5035
  output: {
5032
5036
  error: string;
@@ -5036,148 +5040,50 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5036
5040
  status: 400;
5037
5041
  input: {
5038
5042
  query: {
5039
- generation: string | string[];
5043
+ prs?: string | undefined;
5044
+ issues?: string | undefined;
5040
5045
  };
5041
5046
  };
5042
5047
  } | {
5043
- output: {
5044
- generation: string;
5045
- state: "ready";
5046
- projects: {
5047
- id: string;
5048
- title: string;
5049
- url: string;
5050
- }[];
5051
- membership: {
5052
- [x: string]: string[];
5053
- };
5054
- } | {
5055
- generation: string;
5056
- state: "unavailable";
5057
- reason: string;
5058
- };
5059
- outputFormat: "json";
5060
- status: import("hono/utils/http-status").ContentfulStatusCode;
5061
- input: {
5062
- query: {
5063
- generation: string | string[];
5064
- };
5065
- };
5066
- };
5067
- };
5068
- } & {
5069
- "/github/comments/:kind/:number": {
5070
- $get: {
5071
5048
  output: {
5072
5049
  error: string;
5073
- code?: "invalid_input" | undefined;
5074
5050
  };
5075
5051
  outputFormat: "json";
5076
5052
  status: 400;
5077
5053
  input: {
5078
5054
  query: {
5079
- refresh?: string | undefined;
5080
- };
5081
- } & {
5082
- param: {
5083
- kind: string;
5084
- } & {
5085
- number: string;
5055
+ prs?: string | undefined;
5056
+ issues?: string | undefined;
5086
5057
  };
5087
5058
  };
5088
5059
  } | {
5089
5060
  output: {
5090
- error: string;
5091
- };
5092
- outputFormat: "json";
5093
- status: 400;
5094
- input: {
5095
- query: {
5096
- refresh?: string | undefined;
5061
+ available: true;
5062
+ prs: {
5063
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5097
5064
  };
5098
- } & {
5099
- param: {
5100
- kind: string;
5101
- } & {
5102
- number: string;
5065
+ issues: {
5066
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5103
5067
  };
5104
- };
5105
- } | {
5106
- output: {
5068
+ conflicts?: number[] | undefined;
5069
+ recheckAfterMs: number | null;
5070
+ } | {
5107
5071
  available: false;
5108
5072
  reason: string;
5109
- comments: never[];
5110
- };
5111
- outputFormat: "json";
5112
- status: import("hono/utils/http-status").ContentfulStatusCode;
5113
- input: {
5114
- query: {
5115
- refresh?: string | undefined;
5116
- };
5117
- } & {
5118
- param: {
5119
- kind: string;
5120
- } & {
5121
- number: string;
5122
- };
5123
- };
5124
- } | {
5125
- output: {
5126
- available: boolean;
5127
- reason?: string | undefined;
5128
- comments: {
5129
- id: number;
5130
- author: string;
5131
- avatarUrl?: string | undefined;
5132
- createdAt: string;
5133
- body: string;
5134
- kind: "comment" | "review";
5135
- reviewState?: "approved" | "changes_requested" | "commented" | "dismissed" | undefined;
5136
- url: string;
5137
- }[];
5138
- truncated?: boolean | undefined;
5139
- events?: {
5140
- id: string;
5141
- kind: "assigned" | "closed" | "committed" | "cross-referenced" | "head_ref_force_pushed" | "labeled" | "merged" | "renamed" | "reopened" | "unassigned" | "unlabeled";
5142
- actor: string;
5143
- avatarUrl?: string | undefined;
5144
- createdAt: string;
5145
- url?: string | undefined;
5146
- sha?: string | undefined;
5147
- message?: string | undefined;
5148
- checks?: "failing" | "passing" | "pending" | null | undefined;
5149
- label?: {
5150
- name: string;
5151
- color?: string | undefined;
5152
- } | undefined;
5153
- subject?: string | undefined;
5154
- refNumber?: number | undefined;
5155
- refTitle?: string | undefined;
5156
- refIsPr?: boolean | undefined;
5157
- }[] | undefined;
5158
- detail?: {
5159
- body: string;
5160
- additions?: number | undefined;
5161
- deletions?: number | undefined;
5162
- } | undefined;
5073
+ recheckAfterMs: number | null;
5163
5074
  };
5164
5075
  outputFormat: "json";
5165
5076
  status: import("hono/utils/http-status").ContentfulStatusCode;
5166
5077
  input: {
5167
5078
  query: {
5168
- refresh?: string | undefined;
5169
- };
5170
- } & {
5171
- param: {
5172
- kind: string;
5173
- } & {
5174
- number: string;
5079
+ prs?: string | undefined;
5080
+ issues?: string | undefined;
5175
5081
  };
5176
5082
  };
5177
5083
  };
5178
5084
  };
5179
5085
  } & {
5180
- "/github/items/:kind/:number": {
5086
+ "/github/prs/:number/merge-state": {
5181
5087
  $get: {
5182
5088
  output: {
5183
5089
  error: string;
@@ -5187,7 +5093,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5187
5093
  status: 400;
5188
5094
  input: {
5189
5095
  param: {
5190
- kind: "issue" | "pr";
5191
5096
  number: string;
5192
5097
  };
5193
5098
  } & {
@@ -5198,26 +5103,33 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5198
5103
  } | {
5199
5104
  output: {
5200
5105
  available: true;
5201
- item: {
5202
- kind: "issue" | "pr";
5106
+ mergeState: {
5203
5107
  number: number;
5204
5108
  title: string;
5205
- author: string;
5206
- createdAt: string;
5207
- labels: string[];
5208
- body?: string | undefined;
5209
5109
  url: string;
5210
- comments: number;
5211
- assignees?: string[] | undefined;
5212
- projectIds?: string[] | undefined;
5213
- isDraft?: boolean | undefined;
5214
- additions?: number | undefined;
5215
- deletions?: number | undefined;
5216
- checks?: "failing" | "passing" | "pending" | null | undefined;
5217
- } | null;
5218
- labelColors?: {
5219
- [x: string]: string;
5220
- } | undefined;
5110
+ state: "closed" | "merged" | "open";
5111
+ isDraft: boolean;
5112
+ headRef: string;
5113
+ baseRef: string;
5114
+ headSha: string;
5115
+ mergeable: "conflicting" | "mergeable" | "unknown";
5116
+ reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
5117
+ checks: {
5118
+ name: string;
5119
+ state: "failing" | "passing" | "pending" | "unknown";
5120
+ required: boolean | null;
5121
+ url?: string | undefined;
5122
+ }[];
5123
+ methods: ("merge" | "rebase" | "squash")[];
5124
+ defaultMethod: "merge" | "rebase" | "squash" | null;
5125
+ eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
5126
+ blockers: {
5127
+ code: string;
5128
+ message: string;
5129
+ }[];
5130
+ canMerge: boolean;
5131
+ canOverride: boolean;
5132
+ };
5221
5133
  } | {
5222
5134
  available: false;
5223
5135
  reason: string;
@@ -5226,7 +5138,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5226
5138
  status: import("hono/utils/http-status").ContentfulStatusCode;
5227
5139
  input: {
5228
5140
  param: {
5229
- kind: "issue" | "pr";
5230
5141
  number: string;
5231
5142
  };
5232
5143
  } & {
@@ -5237,8 +5148,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5237
5148
  };
5238
5149
  };
5239
5150
  } & {
5240
- "/github/checks": {
5241
- $get: {
5151
+ "/github/prs/:number/merge": {
5152
+ $post: {
5242
5153
  output: {
5243
5154
  error: string;
5244
5155
  code?: "invalid_input" | undefined;
@@ -5246,8 +5157,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5246
5157
  outputFormat: "json";
5247
5158
  status: 400;
5248
5159
  input: {
5249
- query: {
5250
- prs: string | string[];
5160
+ param: {
5161
+ number: string;
5162
+ };
5163
+ } & {
5164
+ json: {
5165
+ method: "merge" | "rebase" | "squash";
5166
+ expectedHeadSha: string;
5167
+ overrideRules?: boolean | undefined;
5251
5168
  };
5252
5169
  };
5253
5170
  } | {
@@ -5255,212 +5172,44 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5255
5172
  error: string;
5256
5173
  };
5257
5174
  outputFormat: "json";
5258
- status: 400;
5175
+ status: 409;
5259
5176
  input: {
5260
- query: {
5261
- prs: string | string[];
5177
+ param: {
5178
+ number: string;
5179
+ };
5180
+ } & {
5181
+ json: {
5182
+ method: "merge" | "rebase" | "squash";
5183
+ expectedHeadSha: string;
5184
+ overrideRules?: boolean | undefined;
5262
5185
  };
5263
5186
  };
5264
5187
  } | {
5265
5188
  output: {
5266
- available: true;
5267
- checks: {
5268
- [x: number]: "failing" | "passing" | "pending" | null;
5269
- };
5270
- } | {
5271
- available: false;
5272
- reason: string;
5273
- };
5274
- outputFormat: "json";
5275
- status: import("hono/utils/http-status").ContentfulStatusCode;
5276
- input: {
5277
- query: {
5278
- prs: string | string[];
5279
- };
5280
- };
5281
- };
5282
- };
5283
- } & {
5284
- "/github/comment-counts": {
5285
- $get: {
5286
- output: {
5287
- error: string;
5288
- code?: "invalid_input" | undefined;
5289
- };
5290
- outputFormat: "json";
5291
- status: 400;
5292
- input: {
5293
- query: {
5294
- kind: "issue" | "pr";
5295
- numbers: string | string[];
5296
- refresh?: "1" | undefined;
5297
- };
5298
- };
5299
- } | {
5300
- output: {
5301
- available: true;
5302
- counts: {
5303
- [x: number]: number;
5304
- };
5305
- } | {
5306
- available: false;
5307
- reason: string;
5308
- };
5309
- outputFormat: "json";
5310
- status: import("hono/utils/http-status").ContentfulStatusCode;
5311
- input: {
5312
- query: {
5313
- kind: "issue" | "pr";
5314
- numbers: string | string[];
5315
- refresh?: "1" | undefined;
5316
- };
5317
- };
5318
- };
5319
- };
5320
- } & {
5321
- "/github/search": {
5322
- $get: {
5323
- output: {
5324
- error: string;
5325
- code?: "invalid_input" | undefined;
5326
- };
5327
- outputFormat: "json";
5328
- status: 400;
5329
- input: {
5330
- query: {
5331
- kind: "issue" | "pr";
5332
- q: string | string[];
5333
- limit?: number | undefined;
5334
- };
5335
- };
5336
- } | {
5337
- output: {
5338
- available: false;
5339
- reason: string;
5340
- items: never[];
5341
- };
5342
- outputFormat: "json";
5343
- status: import("hono/utils/http-status").ContentfulStatusCode;
5344
- input: {
5345
- query: {
5346
- kind: "issue" | "pr";
5347
- q: string | string[];
5348
- limit?: number | undefined;
5349
- };
5350
- };
5351
- } | {
5352
- output: {
5353
- available: boolean;
5354
- projectsReason?: string | undefined;
5355
- reason?: string | undefined;
5356
- items: {
5357
- kind: "issue" | "pr";
5358
- number: number;
5359
- title: string;
5360
- author: string;
5361
- createdAt: string;
5362
- labels: string[];
5363
- body?: string | undefined;
5364
- url: string;
5365
- comments: number;
5366
- assignees?: string[] | undefined;
5367
- projectIds?: string[] | undefined;
5368
- isDraft?: boolean | undefined;
5369
- additions?: number | undefined;
5370
- deletions?: number | undefined;
5371
- checks?: "failing" | "passing" | "pending" | null | undefined;
5372
- }[];
5373
- truncated?: boolean | undefined;
5374
- labelColors?: {
5375
- [x: string]: string;
5376
- } | undefined;
5377
- };
5378
- outputFormat: "json";
5379
- status: import("hono/utils/http-status").ContentfulStatusCode;
5380
- input: {
5381
- query: {
5382
- kind: "issue" | "pr";
5383
- q: string | string[];
5384
- limit?: number | undefined;
5385
- };
5386
- };
5387
- };
5388
- };
5389
- } & {
5390
- "/github/ref-status": {
5391
- $get: {
5392
- output: {
5393
- error: string;
5394
- code?: "invalid_input" | undefined;
5395
- };
5396
- outputFormat: "json";
5397
- status: 400;
5398
- input: {
5399
- query: {
5400
- prs?: string | undefined;
5401
- issues?: string | undefined;
5402
- };
5403
- };
5404
- } | {
5405
- output: {
5406
- error: string;
5407
- };
5408
- outputFormat: "json";
5409
- status: 400;
5410
- input: {
5411
- query: {
5412
- prs?: string | undefined;
5413
- issues?: string | undefined;
5414
- };
5415
- };
5416
- } | {
5417
- output: {
5418
- available: true;
5419
- prs: {
5420
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5421
- };
5422
- issues: {
5423
- [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
5424
- };
5425
- conflicts?: number[] | undefined;
5426
- recheckAfterMs: number | null;
5427
- } | {
5428
- available: false;
5429
- reason: string;
5430
- recheckAfterMs: number | null;
5189
+ merged: true;
5190
+ number: number;
5191
+ url: string;
5192
+ method: import("../core/forge-registry.ts").ForgeMergeMethod;
5193
+ mergeCommitSha?: string;
5431
5194
  };
5432
5195
  outputFormat: "json";
5433
5196
  status: import("hono/utils/http-status").ContentfulStatusCode;
5434
- input: {
5435
- query: {
5436
- prs?: string | undefined;
5437
- issues?: string | undefined;
5438
- };
5439
- };
5440
- };
5441
- };
5442
- } & {
5443
- "/github/prs/:number/merge-state": {
5444
- $get: {
5445
- output: {
5446
- error: string;
5447
- code?: "invalid_input" | undefined;
5448
- };
5449
- outputFormat: "json";
5450
- status: 400;
5451
5197
  input: {
5452
5198
  param: {
5453
5199
  number: string;
5454
5200
  };
5455
5201
  } & {
5456
- query: {
5457
- refresh?: string | undefined;
5202
+ json: {
5203
+ method: "merge" | "rebase" | "squash";
5204
+ expectedHeadSha: string;
5205
+ overrideRules?: boolean | undefined;
5458
5206
  };
5459
5207
  };
5460
5208
  } | {
5461
5209
  output: {
5462
- available: true;
5463
- mergeState: {
5210
+ error: string;
5211
+ code?: string | undefined;
5212
+ current?: {
5464
5213
  number: number;
5465
5214
  title: string;
5466
5215
  url: string;
@@ -5486,27 +5235,26 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5486
5235
  }[];
5487
5236
  canMerge: boolean;
5488
5237
  canOverride: boolean;
5489
- };
5490
- } | {
5491
- available: false;
5492
- reason: string;
5238
+ } | undefined;
5493
5239
  };
5494
5240
  outputFormat: "json";
5495
- status: import("hono/utils/http-status").ContentfulStatusCode;
5241
+ status: 403 | 404 | 409 | 502;
5496
5242
  input: {
5497
5243
  param: {
5498
5244
  number: string;
5499
5245
  };
5500
5246
  } & {
5501
- query: {
5502
- refresh?: string | undefined;
5247
+ json: {
5248
+ method: "merge" | "rebase" | "squash";
5249
+ expectedHeadSha: string;
5250
+ overrideRules?: boolean | undefined;
5503
5251
  };
5504
5252
  };
5505
5253
  };
5506
5254
  };
5507
5255
  } & {
5508
- "/github/prs/:number/merge": {
5509
- $post: {
5256
+ "/github/prs/:number/changes": {
5257
+ $get: {
5510
5258
  output: {
5511
5259
  error: string;
5512
5260
  code?: "invalid_input" | undefined;
@@ -5518,10 +5266,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5518
5266
  number: string;
5519
5267
  };
5520
5268
  } & {
5521
- json: {
5522
- method: "merge" | "rebase" | "squash";
5523
- expectedHeadSha: string;
5524
- overrideRules?: boolean | undefined;
5269
+ query: {
5270
+ refresh?: "1" | undefined;
5525
5271
  };
5526
5272
  };
5527
5273
  } | {
@@ -5529,25 +5275,38 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5529
5275
  error: string;
5530
5276
  };
5531
5277
  outputFormat: "json";
5532
- status: 409;
5278
+ status: 404;
5533
5279
  input: {
5534
5280
  param: {
5535
5281
  number: string;
5536
5282
  };
5537
5283
  } & {
5538
- json: {
5539
- method: "merge" | "rebase" | "squash";
5540
- expectedHeadSha: string;
5541
- overrideRules?: boolean | undefined;
5284
+ query: {
5285
+ refresh?: "1" | undefined;
5542
5286
  };
5543
5287
  };
5544
5288
  } | {
5545
5289
  output: {
5546
- merged: true;
5290
+ available: true;
5547
5291
  number: number;
5548
- url: string;
5549
- method: import("../core/forge-registry.ts").ForgeMergeMethod;
5550
- mergeCommitSha?: string;
5292
+ headSha: string;
5293
+ files: {
5294
+ path: string;
5295
+ previousPath?: string;
5296
+ status: 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed';
5297
+ additions: number;
5298
+ deletions: number;
5299
+ patch?: string;
5300
+ patchUnavailableReason?: 'binary' | 'too-large' | 'not-provided';
5301
+ truncated?: boolean;
5302
+ }[];
5303
+ additions: number;
5304
+ deletions: number;
5305
+ truncated: boolean;
5306
+ reason?: string;
5307
+ } | {
5308
+ available: false;
5309
+ reason: string;
5551
5310
  };
5552
5311
  outputFormat: "json";
5553
5312
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -5556,61 +5315,258 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5556
5315
  number: string;
5557
5316
  };
5558
5317
  } & {
5559
- json: {
5560
- method: "merge" | "rebase" | "squash";
5561
- expectedHeadSha: string;
5562
- overrideRules?: boolean | undefined;
5318
+ query: {
5319
+ refresh?: "1" | undefined;
5563
5320
  };
5564
5321
  };
5565
- } | {
5322
+ };
5323
+ };
5324
+ }, "/"> | import("hono/types").MergeSchemaPath<{
5325
+ "/repo": {
5326
+ $get: {
5566
5327
  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;
5328
+ info: null;
5329
+ status: never[];
5330
+ log: never[];
5331
+ branches: never[];
5332
+ baseBranch: null;
5333
+ tracking: null;
5596
5334
  };
5597
5335
  outputFormat: "json";
5598
- status: 403 | 404 | 409 | 502;
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
+ };
5487
+ } & {
5488
+ "/repo/commit/:sha": {
5489
+ $get: {
5490
+ output: {
5491
+ error: string;
5492
+ code?: "invalid_input" | undefined;
5493
+ };
5494
+ outputFormat: "json";
5495
+ status: 400;
5599
5496
  input: {
5497
+ query: {
5498
+ structured?: string | undefined;
5499
+ };
5500
+ } & {
5600
5501
  param: {
5601
- number: string;
5502
+ sha: string;
5503
+ };
5504
+ };
5505
+ } | {
5506
+ output: {
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;
5525
+ };
5526
+ };
5527
+ outputFormat: "json";
5528
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5529
+ input: {
5530
+ query: {
5531
+ structured?: string | undefined;
5602
5532
  };
5603
5533
  } & {
5604
- json: {
5605
- method: "merge" | "rebase" | "squash";
5606
- expectedHeadSha: string;
5607
- overrideRules?: boolean | undefined;
5534
+ param: {
5535
+ sha: string;
5536
+ };
5537
+ };
5538
+ } | {
5539
+ output: {
5540
+ error: string;
5541
+ };
5542
+ outputFormat: "json";
5543
+ status: 409;
5544
+ input: {
5545
+ query: {
5546
+ structured?: string | undefined;
5547
+ };
5548
+ } & {
5549
+ param: {
5550
+ sha: string;
5551
+ };
5552
+ };
5553
+ } | {
5554
+ output: string;
5555
+ outputFormat: "text";
5556
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5557
+ input: {
5558
+ query: {
5559
+ structured?: string | undefined;
5560
+ };
5561
+ } & {
5562
+ param: {
5563
+ sha: string;
5608
5564
  };
5609
5565
  };
5610
5566
  };
5611
5567
  };
5612
5568
  } & {
5613
- "/github/prs/:number/changes": {
5569
+ "/repo/commit/:sha/file": {
5614
5570
  $get: {
5615
5571
  output: {
5616
5572
  error: string;
@@ -5620,11 +5576,31 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5620
5576
  status: 400;
5621
5577
  input: {
5622
5578
  param: {
5623
- number: string;
5579
+ sha: string;
5624
5580
  };
5625
5581
  } & {
5626
5582
  query: {
5627
- refresh?: "1" | undefined;
5583
+ path: string | string[];
5584
+ };
5585
+ };
5586
+ } | {
5587
+ output: {
5588
+ type: 'file';
5589
+ path: string;
5590
+ size: number;
5591
+ binary: boolean;
5592
+ tooLarge: boolean;
5593
+ content?: string | undefined;
5594
+ };
5595
+ outputFormat: "json";
5596
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5597
+ input: {
5598
+ param: {
5599
+ sha: string;
5600
+ };
5601
+ } & {
5602
+ query: {
5603
+ path: string | string[];
5628
5604
  };
5629
5605
  };
5630
5606
  } | {
@@ -5632,48 +5608,170 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5632
5608
  error: string;
5633
5609
  };
5634
5610
  outputFormat: "json";
5635
- status: 404;
5611
+ status: 409;
5636
5612
  input: {
5637
5613
  param: {
5638
- number: string;
5614
+ sha: string;
5639
5615
  };
5640
5616
  } & {
5641
5617
  query: {
5642
- refresh?: "1" | undefined;
5618
+ path: string | string[];
5619
+ };
5620
+ };
5621
+ };
5622
+ };
5623
+ } & {
5624
+ "/repo/files": {
5625
+ $get: {
5626
+ output: {
5627
+ error: string;
5628
+ code?: "invalid_input" | undefined;
5629
+ };
5630
+ outputFormat: "json";
5631
+ status: 400;
5632
+ input: {
5633
+ query: {
5634
+ path: string | string[];
5643
5635
  };
5644
5636
  };
5645
5637
  } | {
5646
5638
  output: {
5647
- available: true;
5648
- number: number;
5649
- headSha: string;
5639
+ type: 'file';
5640
+ path: string;
5641
+ size: number;
5642
+ binary: boolean;
5643
+ tooLarge: boolean;
5644
+ content?: string | undefined;
5645
+ };
5646
+ outputFormat: "json";
5647
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5648
+ input: {
5649
+ query: {
5650
+ path: string | string[];
5651
+ };
5652
+ };
5653
+ } | {
5654
+ output: {
5655
+ error: string;
5656
+ };
5657
+ outputFormat: "json";
5658
+ status: 409;
5659
+ input: {
5660
+ query: {
5661
+ path: string | string[];
5662
+ };
5663
+ };
5664
+ };
5665
+ };
5666
+ } & {
5667
+ "/repo/changes": {
5668
+ $get: {
5669
+ output: {
5650
5670
  files: {
5651
5671
  path: string;
5652
- previousPath?: string;
5653
- status: 'added' | 'modified' | 'removed' | 'renamed' | 'copied' | 'changed';
5654
- additions: number;
5655
- deletions: number;
5656
- patch?: string;
5657
- patchUnavailableReason?: 'binary' | 'too-large' | 'not-provided';
5658
- truncated?: boolean;
5672
+ oldPath?: string;
5673
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
5674
+ adds: number;
5675
+ dels: number;
5676
+ binary: boolean;
5677
+ image?: boolean;
5678
+ patch: string;
5659
5679
  }[];
5660
- additions: number;
5661
- deletions: number;
5662
- truncated: boolean;
5663
- reason?: string;
5664
- } | {
5665
- available: false;
5666
- reason: string;
5680
+ stat: {
5681
+ adds: number;
5682
+ dels: number;
5683
+ files: number;
5684
+ };
5685
+ repointedHead?: {
5686
+ headBranch: string;
5687
+ taskBranch: string;
5688
+ } | undefined;
5689
+ };
5690
+ outputFormat: "json";
5691
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5692
+ input: {};
5693
+ } | {
5694
+ output: {
5695
+ error: string;
5696
+ };
5697
+ outputFormat: "json";
5698
+ status: 409;
5699
+ input: {};
5700
+ };
5701
+ };
5702
+ } & {
5703
+ "/repo/pull": {
5704
+ $get: {
5705
+ output: {
5706
+ error: string;
5707
+ };
5708
+ outputFormat: "json";
5709
+ status: 409;
5710
+ input: {};
5711
+ } | {
5712
+ output: {
5713
+ branches: string[];
5667
5714
  };
5668
5715
  outputFormat: "json";
5669
5716
  status: import("hono/utils/http-status").ContentfulStatusCode;
5717
+ input: {};
5718
+ };
5719
+ };
5720
+ } & {
5721
+ "/repo/pull": {
5722
+ $post: {
5723
+ output: {
5724
+ error: string;
5725
+ };
5726
+ outputFormat: "json";
5727
+ status: 409;
5670
5728
  input: {
5671
- param: {
5672
- number: string;
5729
+ json: {
5730
+ branch?: string | undefined;
5731
+ confirm?: boolean | undefined;
5673
5732
  };
5674
- } & {
5675
- query: {
5676
- refresh?: "1" | undefined;
5733
+ };
5734
+ } | {
5735
+ output: {
5736
+ branch: string;
5737
+ pulled: true;
5738
+ summary: string;
5739
+ };
5740
+ outputFormat: "json";
5741
+ status: 200;
5742
+ input: {
5743
+ json: {
5744
+ branch?: string | undefined;
5745
+ confirm?: boolean | undefined;
5746
+ };
5747
+ };
5748
+ };
5749
+ };
5750
+ } & {
5751
+ "/repo/branch": {
5752
+ $post: {
5753
+ output: {
5754
+ error: string;
5755
+ };
5756
+ outputFormat: "json";
5757
+ status: 409;
5758
+ input: {
5759
+ json: {
5760
+ name: string;
5761
+ from?: string | undefined;
5762
+ };
5763
+ };
5764
+ } | {
5765
+ output: {
5766
+ branch: string;
5767
+ created: boolean;
5768
+ };
5769
+ outputFormat: "json";
5770
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5771
+ input: {
5772
+ json: {
5773
+ name: string;
5774
+ from?: string | undefined;
5677
5775
  };
5678
5776
  };
5679
5777
  };
@@ -18157,9 +18255,67 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18157
18255
  status: import("hono/utils/http-status").ContentfulStatusCode;
18158
18256
  input: {
18159
18257
  param: {
18160
- id: string;
18161
- } & {
18258
+ id: string;
18259
+ } & {
18260
+ sha: string;
18261
+ };
18262
+ };
18263
+ };
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: {
18162
18313
  sha: string;
18314
+ id: string;
18315
+ };
18316
+ } & {
18317
+ query: {
18318
+ path: string | string[];
18163
18319
  };
18164
18320
  };
18165
18321
  };
@@ -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;
@@ -19953,247 +20109,449 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19953
20109
  };
19954
20110
  };
19955
20111
  } & {
19956
- "/workflows/:name": {
19957
- $delete: {
20112
+ "/workflows/:name": {
20113
+ $delete: {
20114
+ output: {
20115
+ error: string;
20116
+ };
20117
+ outputFormat: "json";
20118
+ status: 400 | 404 | 409 | 500;
20119
+ input: {
20120
+ param: {
20121
+ name: string;
20122
+ };
20123
+ };
20124
+ } | {
20125
+ output: {
20126
+ ok: true;
20127
+ path: string;
20128
+ };
20129
+ outputFormat: "json";
20130
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20131
+ input: {
20132
+ param: {
20133
+ name: string;
20134
+ };
20135
+ };
20136
+ };
20137
+ };
20138
+ } & {
20139
+ "/workflows/parse": {
20140
+ $post: {
20141
+ output: {
20142
+ error: string;
20143
+ };
20144
+ outputFormat: "json";
20145
+ status: 400;
20146
+ input: {
20147
+ json: {
20148
+ yaml: string;
20149
+ };
20150
+ };
20151
+ } | {
20152
+ output: {
20153
+ name: string;
20154
+ description?: string;
20155
+ steps: {
20156
+ id: string;
20157
+ name?: string | undefined;
20158
+ prompt?: string | undefined;
20159
+ skill?: string | undefined;
20160
+ model?: string | undefined;
20161
+ effort?: string | undefined;
20162
+ timeoutMs?: number | undefined;
20163
+ runner?: string | undefined;
20164
+ agentProfile?: string | undefined;
20165
+ allowedTools?: string[] | undefined;
20166
+ bashAllowlist?: string[] | undefined;
20167
+ kind?: "plugin" | undefined;
20168
+ pluginKind?: string | undefined;
20169
+ config?: {
20170
+ [x: string]: import("hono/utils/types").JSONValue;
20171
+ } | undefined;
20172
+ command?: string | undefined;
20173
+ onFail?: {
20174
+ retry: string;
20175
+ max: number;
20176
+ } | undefined;
20177
+ }[];
20178
+ };
20179
+ outputFormat: "json";
20180
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20181
+ input: {
20182
+ json: {
20183
+ yaml: string;
20184
+ };
20185
+ };
20186
+ };
20187
+ };
20188
+ }, "/"> | import("hono/types").MergeSchemaPath<{
20189
+ "/github": {
20190
+ $get: {
20191
+ output: {
20192
+ error: string;
20193
+ code?: "invalid_input" | undefined;
20194
+ };
20195
+ outputFormat: "json";
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
+ };
20207
+ } | {
20208
+ output: {
20209
+ available: false;
20210
+ reason: string;
20211
+ issues: never[];
20212
+ prs: never[];
20213
+ };
20214
+ outputFormat: "json";
20215
+ status: import("hono/utils/http-status").ContentfulStatusCode;
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
+ } | {
20227
+ output: {
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;
20248
+ }[];
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;
20283
+ };
20284
+ outputFormat: "json";
20285
+ status: import("hono/utils/http-status").ContentfulStatusCode;
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;
20294
+ };
20295
+ };
20296
+ };
20297
+ };
20298
+ } & {
20299
+ "/github/projects": {
20300
+ $get: {
20301
+ output: {
20302
+ error: string;
20303
+ code?: "invalid_input" | undefined;
20304
+ };
20305
+ outputFormat: "json";
20306
+ status: 400;
20307
+ input: {
20308
+ query: {
20309
+ generation: string | string[];
20310
+ };
20311
+ };
20312
+ } | {
20313
+ output: {
20314
+ generation: string;
20315
+ state: "ready";
20316
+ projects: {
20317
+ id: string;
20318
+ title: string;
20319
+ url: string;
20320
+ }[];
20321
+ membership: {
20322
+ [x: string]: string[];
20323
+ };
20324
+ } | {
20325
+ generation: string;
20326
+ state: "unavailable";
20327
+ reason: string;
20328
+ };
20329
+ outputFormat: "json";
20330
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20331
+ input: {
20332
+ query: {
20333
+ generation: string | string[];
20334
+ };
20335
+ };
20336
+ };
20337
+ };
20338
+ } & {
20339
+ "/github/comments/:kind/:number": {
20340
+ $get: {
19958
20341
  output: {
19959
20342
  error: string;
20343
+ code?: "invalid_input" | undefined;
19960
20344
  };
19961
20345
  outputFormat: "json";
19962
- status: 400 | 404 | 409 | 500;
20346
+ status: 400;
19963
20347
  input: {
20348
+ query: {
20349
+ refresh?: string | undefined;
20350
+ };
20351
+ } & {
19964
20352
  param: {
19965
- name: string;
20353
+ kind: string;
20354
+ } & {
20355
+ number: string;
19966
20356
  };
19967
20357
  };
19968
20358
  } | {
19969
20359
  output: {
19970
- ok: true;
19971
- path: string;
20360
+ error: string;
19972
20361
  };
19973
20362
  outputFormat: "json";
19974
- status: import("hono/utils/http-status").ContentfulStatusCode;
20363
+ status: 400;
19975
20364
  input: {
20365
+ query: {
20366
+ refresh?: string | undefined;
20367
+ };
20368
+ } & {
19976
20369
  param: {
19977
- name: string;
20370
+ kind: string;
20371
+ } & {
20372
+ number: string;
19978
20373
  };
19979
20374
  };
19980
- };
19981
- };
19982
- } & {
19983
- "/workflows/parse": {
19984
- $post: {
20375
+ } | {
19985
20376
  output: {
19986
- error: string;
20377
+ available: false;
20378
+ reason: string;
20379
+ comments: never[];
19987
20380
  };
19988
20381
  outputFormat: "json";
19989
- status: 400;
20382
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19990
20383
  input: {
19991
- json: {
19992
- yaml: string;
20384
+ query: {
20385
+ refresh?: string | undefined;
20386
+ };
20387
+ } & {
20388
+ param: {
20389
+ kind: string;
20390
+ } & {
20391
+ number: string;
19993
20392
  };
19994
20393
  };
19995
20394
  } | {
19996
20395
  output: {
19997
- name: string;
19998
- description?: string;
19999
- steps: {
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?: {
20000
20410
  id: string;
20001
- name?: string | undefined;
20002
- prompt?: string | undefined;
20003
- skill?: string | undefined;
20004
- model?: string | undefined;
20005
- effort?: string | undefined;
20006
- timeoutMs?: number | undefined;
20007
- runner?: string | undefined;
20008
- agentProfile?: string | undefined;
20009
- allowedTools?: string[] | undefined;
20010
- bashAllowlist?: string[] | undefined;
20011
- kind?: "plugin" | undefined;
20012
- pluginKind?: string | undefined;
20013
- config?: {
20014
- [x: string]: import("hono/utils/types").JSONValue;
20015
- } | undefined;
20016
- command?: string | undefined;
20017
- onFail?: {
20018
- retry: string;
20019
- max: number;
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;
20020
20422
  } | undefined;
20021
- }[];
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;
20022
20433
  };
20023
20434
  outputFormat: "json";
20024
20435
  status: import("hono/utils/http-status").ContentfulStatusCode;
20025
20436
  input: {
20026
- json: {
20027
- yaml: string;
20437
+ query: {
20438
+ refresh?: string | undefined;
20439
+ };
20440
+ } & {
20441
+ param: {
20442
+ kind: string;
20443
+ } & {
20444
+ number: string;
20028
20445
  };
20029
20446
  };
20030
20447
  };
20031
20448
  };
20032
- }, "/"> | import("hono/types").MergeSchemaPath<{
20033
- "/repo": {
20449
+ } & {
20450
+ "/github/items/:kind/:number": {
20034
20451
  $get: {
20035
20452
  output: {
20036
- info: null;
20037
- status: never[];
20038
- log: never[];
20039
- branches: never[];
20040
- baseBranch: null;
20041
- tracking: null;
20453
+ error: string;
20454
+ code?: "invalid_input" | undefined;
20042
20455
  };
20043
20456
  outputFormat: "json";
20044
- status: import("hono/utils/http-status").ContentfulStatusCode;
20045
- input: {};
20046
- } | {
20047
- output: {
20048
- info: {
20049
- root: string;
20050
- branch: string;
20051
- remote?: string | undefined;
20457
+ status: 400;
20458
+ input: {
20459
+ param: {
20460
+ kind: "issue" | "pr";
20461
+ number: string;
20052
20462
  };
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;
20083
- };
20084
- outputFormat: "json";
20085
- status: import("hono/utils/http-status").ContentfulStatusCode;
20086
- input: {};
20087
- };
20088
- };
20089
- } & {
20090
- "/repo/branches": {
20091
- $get: {
20092
- 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;
20118
- }[];
20119
- counts: {
20120
- notLanded: number;
20121
- cleanup: number;
20463
+ } & {
20464
+ query: {
20465
+ refresh?: string | undefined;
20122
20466
  };
20123
20467
  };
20124
- outputFormat: "json";
20125
- status: import("hono/utils/http-status").ContentfulStatusCode;
20126
- input: {};
20127
- };
20128
- };
20129
- } & {
20130
- "/repo/branches/counts": {
20131
- $get: {
20468
+ } | {
20132
20469
  output: {
20133
- base: string;
20134
- prStateKnown: boolean;
20135
- counts: {
20136
- notLanded: number;
20137
- cleanup: number;
20138
- };
20139
- allBranches: number;
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;
20140
20494
  };
20141
20495
  outputFormat: "json";
20142
20496
  status: import("hono/utils/http-status").ContentfulStatusCode;
20143
- input: {};
20497
+ input: {
20498
+ param: {
20499
+ kind: "issue" | "pr";
20500
+ number: string;
20501
+ };
20502
+ } & {
20503
+ query: {
20504
+ refresh?: string | undefined;
20505
+ };
20506
+ };
20144
20507
  };
20145
20508
  };
20146
20509
  } & {
20147
- "/repo/branches/delete": {
20148
- $post: {
20510
+ "/github/checks": {
20511
+ $get: {
20149
20512
  output: {
20150
20513
  error: string;
20151
- refused: {
20152
- name: string;
20153
- reason: string;
20154
- }[];
20514
+ code?: "invalid_input" | undefined;
20155
20515
  };
20156
20516
  outputFormat: "json";
20157
- status: 409;
20517
+ status: 400;
20158
20518
  input: {
20159
- json: {
20160
- names: string[];
20161
- confirm?: string | undefined;
20519
+ query: {
20520
+ prs: string | string[];
20162
20521
  };
20163
20522
  };
20164
20523
  } | {
20165
20524
  output: {
20166
- deleted: string[];
20167
- refused: {
20168
- name: string;
20169
- reason: string;
20170
- }[];
20171
- dropped?: {
20172
- sha: string;
20173
- subject: string;
20174
- }[] | undefined;
20525
+ error: string;
20175
20526
  };
20176
20527
  outputFormat: "json";
20177
- status: 200;
20528
+ status: 400;
20178
20529
  input: {
20179
- json: {
20180
- names: string[];
20181
- confirm?: string | undefined;
20530
+ query: {
20531
+ prs: string | string[];
20182
20532
  };
20183
20533
  };
20184
- };
20185
- };
20186
- } & {
20187
- "/repo/diff": {
20188
- $get: {
20189
- output: string;
20190
- outputFormat: "text";
20534
+ } | {
20535
+ output: {
20536
+ available: true;
20537
+ checks: {
20538
+ [x: number]: "failing" | "passing" | "pending" | null;
20539
+ };
20540
+ } | {
20541
+ available: false;
20542
+ reason: string;
20543
+ };
20544
+ outputFormat: "json";
20191
20545
  status: import("hono/utils/http-status").ContentfulStatusCode;
20192
- input: {};
20546
+ input: {
20547
+ query: {
20548
+ prs: string | string[];
20549
+ };
20550
+ };
20193
20551
  };
20194
20552
  };
20195
20553
  } & {
20196
- "/repo/commit/:sha": {
20554
+ "/github/comment-counts": {
20197
20555
  $get: {
20198
20556
  output: {
20199
20557
  error: string;
@@ -20203,191 +20561,156 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20203
20561
  status: 400;
20204
20562
  input: {
20205
20563
  query: {
20206
- structured?: string | undefined;
20207
- };
20208
- } & {
20209
- param: {
20210
- sha: string;
20564
+ kind: "issue" | "pr";
20565
+ numbers: string | string[];
20566
+ refresh?: "1" | undefined;
20211
20567
  };
20212
20568
  };
20213
20569
  } | {
20214
20570
  output: {
20215
- sha: string;
20216
- subject: string;
20217
- author: string;
20218
- when: string;
20219
- files: {
20220
- path: string;
20221
- oldPath?: string;
20222
- status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
20223
- adds: number;
20224
- dels: number;
20225
- binary: boolean;
20226
- image?: boolean;
20227
- patch: string;
20228
- }[];
20229
- stat: {
20230
- adds: number;
20231
- dels: number;
20232
- files: number;
20571
+ available: true;
20572
+ counts: {
20573
+ [x: number]: number;
20233
20574
  };
20575
+ } | {
20576
+ available: false;
20577
+ reason: string;
20234
20578
  };
20235
20579
  outputFormat: "json";
20236
20580
  status: import("hono/utils/http-status").ContentfulStatusCode;
20237
20581
  input: {
20238
20582
  query: {
20239
- structured?: string | undefined;
20240
- };
20241
- } & {
20242
- param: {
20243
- sha: string;
20583
+ kind: "issue" | "pr";
20584
+ numbers: string | string[];
20585
+ refresh?: "1" | undefined;
20244
20586
  };
20245
20587
  };
20246
- } | {
20588
+ };
20589
+ };
20590
+ } & {
20591
+ "/github/search": {
20592
+ $get: {
20247
20593
  output: {
20248
20594
  error: string;
20595
+ code?: "invalid_input" | undefined;
20249
20596
  };
20250
20597
  outputFormat: "json";
20251
- status: 409;
20598
+ status: 400;
20252
20599
  input: {
20253
20600
  query: {
20254
- structured?: string | undefined;
20255
- };
20256
- } & {
20257
- param: {
20258
- sha: string;
20601
+ kind: "issue" | "pr";
20602
+ q: string | string[];
20603
+ limit?: number | undefined;
20259
20604
  };
20260
20605
  };
20261
20606
  } | {
20262
- output: string;
20263
- outputFormat: "text";
20607
+ output: {
20608
+ available: false;
20609
+ reason: string;
20610
+ items: never[];
20611
+ };
20612
+ outputFormat: "json";
20264
20613
  status: import("hono/utils/http-status").ContentfulStatusCode;
20265
20614
  input: {
20266
20615
  query: {
20267
- structured?: string | undefined;
20268
- };
20269
- } & {
20270
- param: {
20271
- sha: string;
20616
+ kind: "issue" | "pr";
20617
+ q: string | string[];
20618
+ limit?: number | undefined;
20272
20619
  };
20273
20620
  };
20274
- };
20275
- };
20276
- } & {
20277
- "/repo/changes": {
20278
- $get: {
20621
+ } | {
20279
20622
  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;
20623
+ available: boolean;
20624
+ projectsReason?: string | undefined;
20625
+ reason?: string | undefined;
20626
+ items: {
20627
+ kind: "issue" | "pr";
20628
+ number: number;
20629
+ title: string;
20630
+ author: string;
20631
+ createdAt: string;
20632
+ labels: string[];
20633
+ body?: string | undefined;
20634
+ url: string;
20635
+ comments: number;
20636
+ assignees?: string[] | undefined;
20637
+ projectIds?: string[] | undefined;
20638
+ isDraft?: boolean | undefined;
20639
+ additions?: number | undefined;
20640
+ deletions?: number | undefined;
20641
+ checks?: "failing" | "passing" | "pending" | null | undefined;
20289
20642
  }[];
20290
- stat: {
20291
- adds: number;
20292
- dels: number;
20293
- files: number;
20294
- };
20295
- repointedHead?: {
20296
- headBranch: string;
20297
- taskBranch: string;
20643
+ truncated?: boolean | undefined;
20644
+ labelColors?: {
20645
+ [x: string]: string;
20298
20646
  } | undefined;
20299
20647
  };
20300
20648
  outputFormat: "json";
20301
20649
  status: import("hono/utils/http-status").ContentfulStatusCode;
20302
- input: {};
20303
- } | {
20304
- output: {
20305
- error: string;
20650
+ input: {
20651
+ query: {
20652
+ kind: "issue" | "pr";
20653
+ q: string | string[];
20654
+ limit?: number | undefined;
20655
+ };
20306
20656
  };
20307
- outputFormat: "json";
20308
- status: 409;
20309
- input: {};
20310
20657
  };
20311
20658
  };
20312
20659
  } & {
20313
- "/repo/pull": {
20660
+ "/github/ref-status": {
20314
20661
  $get: {
20315
20662
  output: {
20316
20663
  error: string;
20664
+ code?: "invalid_input" | undefined;
20317
20665
  };
20318
20666
  outputFormat: "json";
20319
- status: 409;
20320
- input: {};
20321
- } | {
20322
- output: {
20323
- branches: string[];
20324
- };
20325
- outputFormat: "json";
20326
- status: import("hono/utils/http-status").ContentfulStatusCode;
20327
- input: {};
20328
- };
20329
- };
20330
- } & {
20331
- "/repo/pull": {
20332
- $post: {
20333
- output: {
20334
- error: string;
20335
- };
20336
- outputFormat: "json";
20337
- status: 409;
20667
+ status: 400;
20338
20668
  input: {
20339
- json: {
20340
- branch?: string | undefined;
20341
- confirm?: boolean | undefined;
20669
+ query: {
20670
+ prs?: string | undefined;
20671
+ issues?: string | undefined;
20342
20672
  };
20343
20673
  };
20344
20674
  } | {
20345
- output: {
20346
- branch: string;
20347
- pulled: true;
20348
- summary: string;
20349
- };
20350
- outputFormat: "json";
20351
- status: 200;
20352
- input: {
20353
- json: {
20354
- branch?: string | undefined;
20355
- confirm?: boolean | undefined;
20356
- };
20357
- };
20358
- };
20359
- };
20360
- } & {
20361
- "/repo/branch": {
20362
- $post: {
20363
20675
  output: {
20364
20676
  error: string;
20365
20677
  };
20366
20678
  outputFormat: "json";
20367
- status: 409;
20679
+ status: 400;
20368
20680
  input: {
20369
- json: {
20370
- name: string;
20371
- from?: string | undefined;
20681
+ query: {
20682
+ prs?: string | undefined;
20683
+ issues?: string | undefined;
20372
20684
  };
20373
20685
  };
20374
20686
  } | {
20375
20687
  output: {
20376
- branch: string;
20377
- created: boolean;
20688
+ available: true;
20689
+ prs: {
20690
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20691
+ };
20692
+ issues: {
20693
+ [x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
20694
+ };
20695
+ conflicts?: number[] | undefined;
20696
+ recheckAfterMs: number | null;
20697
+ } | {
20698
+ available: false;
20699
+ reason: string;
20700
+ recheckAfterMs: number | null;
20378
20701
  };
20379
20702
  outputFormat: "json";
20380
20703
  status: import("hono/utils/http-status").ContentfulStatusCode;
20381
20704
  input: {
20382
- json: {
20383
- name: string;
20384
- from?: string | undefined;
20705
+ query: {
20706
+ prs?: string | undefined;
20707
+ issues?: string | undefined;
20385
20708
  };
20386
20709
  };
20387
20710
  };
20388
20711
  };
20389
- }, "/"> | import("hono/types").MergeSchemaPath<{
20390
- "/github": {
20712
+ } & {
20713
+ "/github/prs/:number/merge-state": {
20391
20714
  $get: {
20392
20715
  output: {
20393
20716
  error: string;
@@ -20396,109 +20719,64 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20396
20719
  outputFormat: "json";
20397
20720
  status: 400;
20398
20721
  input: {
20399
- 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;
20722
+ param: {
20723
+ number: string;
20406
20724
  };
20407
- };
20408
- } | {
20409
- output: {
20410
- available: false;
20411
- reason: string;
20412
- issues: never[];
20413
- prs: never[];
20414
- };
20415
- outputFormat: "json";
20416
- status: import("hono/utils/http-status").ContentfulStatusCode;
20417
- input: {
20725
+ } & {
20418
20726
  query: {
20419
- limit?: string | undefined;
20420
20727
  refresh?: string | undefined;
20421
- issuesCursor?: string | undefined;
20422
- prsCursor?: string | undefined;
20423
- issuesDone?: "1" | undefined;
20424
- prsDone?: "1" | undefined;
20425
20728
  };
20426
20729
  };
20427
20730
  } | {
20428
20731
  output: {
20429
- available: boolean;
20430
- 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: {
20451
- kind: "issue" | "pr";
20732
+ available: true;
20733
+ mergeState: {
20452
20734
  number: number;
20453
20735
  title: string;
20454
- author: string;
20455
- createdAt: string;
20456
- labels: string[];
20457
- body?: string | undefined;
20458
- url: string;
20459
- comments: number;
20460
- assignees?: string[] | undefined;
20461
- projectIds?: string[] | undefined;
20462
- isDraft?: boolean | undefined;
20463
- additions?: number | undefined;
20464
- deletions?: number | undefined;
20465
- checks?: "failing" | "passing" | "pending" | null | undefined;
20466
- }[];
20467
- labelColors?: {
20468
- [x: string]: string;
20469
- } | undefined;
20470
- viewerLogin?: string | undefined;
20471
- projects?: {
20472
- id: string;
20473
- title: string;
20474
20736
  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;
20737
+ state: "closed" | "merged" | "open";
20738
+ isDraft: boolean;
20739
+ headRef: string;
20740
+ baseRef: string;
20741
+ headSha: string;
20742
+ mergeable: "conflicting" | "mergeable" | "unknown";
20743
+ reviewDecision: "approved" | "changes-requested" | "not-required" | "review-required" | "unknown";
20744
+ checks: {
20745
+ name: string;
20746
+ state: "failing" | "passing" | "pending" | "unknown";
20747
+ required: boolean | null;
20748
+ url?: string | undefined;
20749
+ }[];
20750
+ methods: ("merge" | "rebase" | "squash")[];
20751
+ defaultMethod: "merge" | "rebase" | "squash" | null;
20752
+ eligibility: "blocked" | "pending" | "ready" | "terminal" | "unauthorized" | "unknown";
20753
+ blockers: {
20754
+ code: string;
20755
+ message: string;
20756
+ }[];
20757
+ canMerge: boolean;
20758
+ canOverride: boolean;
20759
+ };
20760
+ } | {
20761
+ available: false;
20762
+ reason: string;
20484
20763
  };
20485
20764
  outputFormat: "json";
20486
20765
  status: import("hono/utils/http-status").ContentfulStatusCode;
20487
20766
  input: {
20767
+ param: {
20768
+ number: string;
20769
+ };
20770
+ } & {
20488
20771
  query: {
20489
- limit?: string | undefined;
20490
20772
  refresh?: string | undefined;
20491
- issuesCursor?: string | undefined;
20492
- prsCursor?: string | undefined;
20493
- issuesDone?: "1" | undefined;
20494
- prsDone?: "1" | undefined;
20495
20773
  };
20496
20774
  };
20497
20775
  };
20498
20776
  };
20499
20777
  } & {
20500
- "/github/projects": {
20501
- $get: {
20778
+ "/github/prs/:number/merge": {
20779
+ $post: {
20502
20780
  output: {
20503
20781
  error: string;
20504
20782
  code?: "invalid_input" | undefined;
@@ -20506,38 +20784,103 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20506
20784
  outputFormat: "json";
20507
20785
  status: 400;
20508
20786
  input: {
20509
- query: {
20510
- generation: string | string[];
20787
+ param: {
20788
+ number: string;
20789
+ };
20790
+ } & {
20791
+ json: {
20792
+ method: "merge" | "rebase" | "squash";
20793
+ expectedHeadSha: string;
20794
+ overrideRules?: boolean | undefined;
20511
20795
  };
20512
20796
  };
20513
20797
  } | {
20514
20798
  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[];
20799
+ error: string;
20800
+ };
20801
+ outputFormat: "json";
20802
+ status: 409;
20803
+ input: {
20804
+ param: {
20805
+ number: string;
20524
20806
  };
20525
- } | {
20526
- generation: string;
20527
- state: "unavailable";
20528
- reason: string;
20807
+ } & {
20808
+ json: {
20809
+ method: "merge" | "rebase" | "squash";
20810
+ expectedHeadSha: string;
20811
+ overrideRules?: boolean | undefined;
20812
+ };
20813
+ };
20814
+ } | {
20815
+ output: {
20816
+ merged: true;
20817
+ number: number;
20818
+ url: string;
20819
+ method: import("../core/forge-registry.ts").ForgeMergeMethod;
20820
+ mergeCommitSha?: string;
20529
20821
  };
20530
20822
  outputFormat: "json";
20531
20823
  status: import("hono/utils/http-status").ContentfulStatusCode;
20532
20824
  input: {
20533
- query: {
20534
- generation: string | string[];
20825
+ param: {
20826
+ number: string;
20827
+ };
20828
+ } & {
20829
+ json: {
20830
+ method: "merge" | "rebase" | "squash";
20831
+ expectedHeadSha: string;
20832
+ overrideRules?: boolean | undefined;
20833
+ };
20834
+ };
20835
+ } | {
20836
+ output: {
20837
+ error: string;
20838
+ code?: string | undefined;
20839
+ current?: {
20840
+ number: number;
20841
+ title: string;
20842
+ url: 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;
20865
+ } | undefined;
20866
+ };
20867
+ outputFormat: "json";
20868
+ status: 403 | 404 | 409 | 502;
20869
+ input: {
20870
+ param: {
20871
+ number: string;
20872
+ };
20873
+ } & {
20874
+ json: {
20875
+ method: "merge" | "rebase" | "squash";
20876
+ expectedHeadSha: string;
20877
+ overrideRules?: boolean | undefined;
20535
20878
  };
20536
20879
  };
20537
20880
  };
20538
20881
  };
20539
20882
  } & {
20540
- "/github/comments/:kind/:number": {
20883
+ "/github/prs/:number/changes": {
20541
20884
  $get: {
20542
20885
  output: {
20543
20886
  error: string;
@@ -20546,169 +20889,230 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20546
20889
  outputFormat: "json";
20547
20890
  status: 400;
20548
20891
  input: {
20549
- query: {
20550
- refresh?: string | undefined;
20551
- };
20552
- } & {
20553
20892
  param: {
20554
- kind: string;
20555
- } & {
20556
20893
  number: string;
20557
20894
  };
20895
+ } & {
20896
+ query: {
20897
+ refresh?: "1" | undefined;
20898
+ };
20558
20899
  };
20559
20900
  } | {
20560
20901
  output: {
20561
20902
  error: string;
20562
20903
  };
20563
20904
  outputFormat: "json";
20564
- status: 400;
20905
+ status: 404;
20565
20906
  input: {
20566
- query: {
20567
- refresh?: string | undefined;
20568
- };
20569
- } & {
20570
20907
  param: {
20571
- kind: string;
20572
- } & {
20573
20908
  number: string;
20574
20909
  };
20910
+ } & {
20911
+ query: {
20912
+ refresh?: "1" | undefined;
20913
+ };
20575
20914
  };
20576
20915
  } | {
20577
20916
  output: {
20917
+ available: true;
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;
20934
+ } | {
20578
20935
  available: false;
20579
20936
  reason: string;
20580
- comments: never[];
20581
20937
  };
20582
20938
  outputFormat: "json";
20583
20939
  status: import("hono/utils/http-status").ContentfulStatusCode;
20584
20940
  input: {
20585
- query: {
20586
- refresh?: string | undefined;
20587
- };
20588
- } & {
20589
20941
  param: {
20590
- kind: string;
20591
- } & {
20592
20942
  number: string;
20593
20943
  };
20944
+ } & {
20945
+ query: {
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;
20594
20961
  };
20962
+ outputFormat: "json";
20963
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20964
+ input: {};
20595
20965
  } | {
20596
20966
  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;
20967
+ info: {
20968
+ root: string;
20969
+ branch: string;
20970
+ remote?: string | undefined;
20971
+ };
20972
+ status: {
20973
+ status: string;
20974
+ path: string;
20608
20975
  }[];
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;
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;
20634
21002
  };
20635
21003
  outputFormat: "json";
20636
21004
  status: import("hono/utils/http-status").ContentfulStatusCode;
20637
- input: {
20638
- query: {
20639
- refresh?: string | undefined;
20640
- };
20641
- } & {
20642
- param: {
20643
- kind: string;
20644
- } & {
20645
- number: string;
21005
+ input: {};
21006
+ };
21007
+ };
21008
+ } & {
21009
+ "/repo/branches": {
21010
+ $get: {
21011
+ output: {
21012
+ base: string;
21013
+ prStateKnown: boolean;
21014
+ branches: {
21015
+ name: string;
21016
+ class: "active" | "empty" | "merged" | "not-landed" | "orphan" | "other";
21017
+ runId: string | null;
21018
+ title: string | null;
21019
+ runStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting" | null;
21020
+ ahead: number;
21021
+ lastCommit: {
21022
+ sha: string;
21023
+ subject: string;
21024
+ at: string;
21025
+ };
21026
+ diffStat: {
21027
+ additions: number;
21028
+ deletions: number;
21029
+ } | null;
21030
+ pr: {
21031
+ number: number;
21032
+ url: string;
21033
+ state: "closed" | "draft" | "merged" | "open";
21034
+ } | null;
21035
+ keptReason?: string | undefined;
21036
+ parentRunId?: string | undefined;
21037
+ }[];
21038
+ counts: {
21039
+ notLanded: number;
21040
+ cleanup: number;
20646
21041
  };
20647
21042
  };
21043
+ outputFormat: "json";
21044
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21045
+ input: {};
20648
21046
  };
20649
21047
  };
20650
21048
  } & {
20651
- "/github/items/:kind/:number": {
21049
+ "/repo/branches/counts": {
20652
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: {
20653
21068
  output: {
20654
21069
  error: string;
20655
- code?: "invalid_input" | undefined;
21070
+ refused: {
21071
+ name: string;
21072
+ reason: string;
21073
+ }[];
20656
21074
  };
20657
21075
  outputFormat: "json";
20658
- status: 400;
21076
+ status: 409;
20659
21077
  input: {
20660
- param: {
20661
- kind: "issue" | "pr";
20662
- number: string;
20663
- };
20664
- } & {
20665
- query: {
20666
- refresh?: string | undefined;
21078
+ json: {
21079
+ names: string[];
21080
+ confirm?: string | undefined;
20667
21081
  };
20668
21082
  };
20669
21083
  } | {
20670
21084
  output: {
20671
- available: true;
20672
- item: {
20673
- kind: "issue" | "pr";
20674
- number: number;
20675
- title: string;
20676
- author: string;
20677
- createdAt: string;
20678
- labels: string[];
20679
- body?: string | undefined;
20680
- 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;
20691
- } | undefined;
20692
- } | {
20693
- available: false;
20694
- reason: string;
21085
+ deleted: string[];
21086
+ refused: {
21087
+ name: string;
21088
+ reason: string;
21089
+ }[];
21090
+ dropped?: {
21091
+ sha: string;
21092
+ subject: string;
21093
+ }[] | undefined;
20695
21094
  };
20696
21095
  outputFormat: "json";
20697
- status: import("hono/utils/http-status").ContentfulStatusCode;
21096
+ status: 200;
20698
21097
  input: {
20699
- param: {
20700
- kind: "issue" | "pr";
20701
- number: string;
20702
- };
20703
- } & {
20704
- query: {
20705
- refresh?: string | undefined;
21098
+ json: {
21099
+ names: string[];
21100
+ confirm?: string | undefined;
20706
21101
  };
20707
21102
  };
20708
21103
  };
20709
21104
  };
20710
21105
  } & {
20711
- "/github/checks": {
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": {
20712
21116
  $get: {
20713
21117
  output: {
20714
21118
  error: string;
@@ -20718,78 +21122,78 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20718
21122
  status: 400;
20719
21123
  input: {
20720
21124
  query: {
20721
- prs: string | string[];
21125
+ structured?: string | undefined;
20722
21126
  };
20723
- };
20724
- } | {
20725
- output: {
20726
- error: string;
20727
- };
20728
- outputFormat: "json";
20729
- status: 400;
20730
- input: {
20731
- query: {
20732
- prs: string | string[];
21127
+ } & {
21128
+ param: {
21129
+ sha: string;
20733
21130
  };
20734
21131
  };
20735
21132
  } | {
20736
21133
  output: {
20737
- available: true;
20738
- checks: {
20739
- [x: number]: "failing" | "passing" | "pending" | null;
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;
20740
21152
  };
20741
- } | {
20742
- available: false;
20743
- reason: string;
20744
21153
  };
20745
21154
  outputFormat: "json";
20746
21155
  status: import("hono/utils/http-status").ContentfulStatusCode;
20747
21156
  input: {
20748
21157
  query: {
20749
- prs: string | string[];
21158
+ structured?: string | undefined;
21159
+ };
21160
+ } & {
21161
+ param: {
21162
+ sha: string;
20750
21163
  };
20751
21164
  };
20752
- };
20753
- };
20754
- } & {
20755
- "/github/comment-counts": {
20756
- $get: {
21165
+ } | {
20757
21166
  output: {
20758
21167
  error: string;
20759
- code?: "invalid_input" | undefined;
20760
21168
  };
20761
21169
  outputFormat: "json";
20762
- status: 400;
21170
+ status: 409;
20763
21171
  input: {
20764
21172
  query: {
20765
- kind: "issue" | "pr";
20766
- numbers: string | string[];
20767
- refresh?: "1" | undefined;
21173
+ structured?: string | undefined;
20768
21174
  };
20769
- };
20770
- } | {
20771
- output: {
20772
- available: true;
20773
- counts: {
20774
- [x: number]: number;
21175
+ } & {
21176
+ param: {
21177
+ sha: string;
20775
21178
  };
20776
- } | {
20777
- available: false;
20778
- reason: string;
20779
21179
  };
20780
- outputFormat: "json";
21180
+ } | {
21181
+ output: string;
21182
+ outputFormat: "text";
20781
21183
  status: import("hono/utils/http-status").ContentfulStatusCode;
20782
21184
  input: {
20783
21185
  query: {
20784
- kind: "issue" | "pr";
20785
- numbers: string | string[];
20786
- refresh?: "1" | undefined;
21186
+ structured?: string | undefined;
21187
+ };
21188
+ } & {
21189
+ param: {
21190
+ sha: string;
20787
21191
  };
20788
21192
  };
20789
21193
  };
20790
21194
  };
20791
21195
  } & {
20792
- "/github/search": {
21196
+ "/repo/commit/:sha/file": {
20793
21197
  $get: {
20794
21198
  output: {
20795
21199
  error: string;
@@ -20798,67 +21202,53 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20798
21202
  outputFormat: "json";
20799
21203
  status: 400;
20800
21204
  input: {
21205
+ param: {
21206
+ sha: string;
21207
+ };
21208
+ } & {
20801
21209
  query: {
20802
- kind: "issue" | "pr";
20803
- q: string | string[];
20804
- limit?: number | undefined;
21210
+ path: string | string[];
20805
21211
  };
20806
21212
  };
20807
21213
  } | {
20808
21214
  output: {
20809
- available: false;
20810
- reason: string;
20811
- items: never[];
21215
+ type: 'file';
21216
+ path: string;
21217
+ size: number;
21218
+ binary: boolean;
21219
+ tooLarge: boolean;
21220
+ content?: string | undefined;
20812
21221
  };
20813
21222
  outputFormat: "json";
20814
21223
  status: import("hono/utils/http-status").ContentfulStatusCode;
20815
21224
  input: {
21225
+ param: {
21226
+ sha: string;
21227
+ };
21228
+ } & {
20816
21229
  query: {
20817
- kind: "issue" | "pr";
20818
- q: string | string[];
20819
- limit?: number | undefined;
21230
+ path: string | string[];
20820
21231
  };
20821
21232
  };
20822
21233
  } | {
20823
21234
  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;
21235
+ error: string;
20848
21236
  };
20849
21237
  outputFormat: "json";
20850
- status: import("hono/utils/http-status").ContentfulStatusCode;
21238
+ status: 409;
20851
21239
  input: {
21240
+ param: {
21241
+ sha: string;
21242
+ };
21243
+ } & {
20852
21244
  query: {
20853
- kind: "issue" | "pr";
20854
- q: string | string[];
20855
- limit?: number | undefined;
21245
+ path: string | string[];
20856
21246
  };
20857
21247
  };
20858
21248
  };
20859
21249
  };
20860
21250
  } & {
20861
- "/github/ref-status": {
21251
+ "/repo/files": {
20862
21252
  $get: {
20863
21253
  output: {
20864
21254
  error: string;
@@ -20868,283 +21258,147 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20868
21258
  status: 400;
20869
21259
  input: {
20870
21260
  query: {
20871
- prs?: string | undefined;
20872
- issues?: string | undefined;
21261
+ path: string | string[];
20873
21262
  };
20874
21263
  };
20875
21264
  } | {
20876
21265
  output: {
20877
- error: string;
21266
+ type: 'file';
21267
+ path: string;
21268
+ size: number;
21269
+ binary: boolean;
21270
+ tooLarge: boolean;
21271
+ content?: string | undefined;
20878
21272
  };
20879
21273
  outputFormat: "json";
20880
- status: 400;
21274
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20881
21275
  input: {
20882
21276
  query: {
20883
- prs?: string | undefined;
20884
- issues?: string | undefined;
21277
+ path: string | string[];
20885
21278
  };
20886
21279
  };
20887
21280
  } | {
20888
21281
  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;
21282
+ error: string;
20902
21283
  };
20903
21284
  outputFormat: "json";
20904
- status: import("hono/utils/http-status").ContentfulStatusCode;
21285
+ status: 409;
20905
21286
  input: {
20906
21287
  query: {
20907
- prs?: string | undefined;
20908
- issues?: string | undefined;
21288
+ path: string | string[];
20909
21289
  };
20910
21290
  };
20911
21291
  };
20912
21292
  };
20913
21293
  } & {
20914
- "/github/prs/:number/merge-state": {
21294
+ "/repo/changes": {
20915
21295
  $get: {
20916
21296
  output: {
20917
- error: string;
20918
- code?: "invalid_input" | undefined;
20919
- };
20920
- outputFormat: "json";
20921
- status: 400;
20922
- input: {
20923
- param: {
20924
- number: string;
20925
- };
20926
- } & {
20927
- query: {
20928
- refresh?: string | undefined;
21297
+ files: {
21298
+ path: string;
21299
+ oldPath?: string;
21300
+ status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
21301
+ adds: number;
21302
+ dels: number;
21303
+ binary: boolean;
21304
+ image?: boolean;
21305
+ patch: string;
21306
+ }[];
21307
+ stat: {
21308
+ adds: number;
21309
+ dels: number;
21310
+ files: number;
20929
21311
  };
21312
+ repointedHead?: {
21313
+ headBranch: string;
21314
+ taskBranch: string;
21315
+ } | undefined;
20930
21316
  };
21317
+ outputFormat: "json";
21318
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21319
+ input: {};
20931
21320
  } | {
20932
21321
  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;
21322
+ error: string;
20964
21323
  };
20965
21324
  outputFormat: "json";
20966
- status: import("hono/utils/http-status").ContentfulStatusCode;
20967
- input: {
20968
- param: {
20969
- number: string;
20970
- };
20971
- } & {
20972
- query: {
20973
- refresh?: string | undefined;
20974
- };
20975
- };
21325
+ status: 409;
21326
+ input: {};
20976
21327
  };
20977
21328
  };
20978
21329
  } & {
20979
- "/github/prs/:number/merge": {
20980
- $post: {
21330
+ "/repo/pull": {
21331
+ $get: {
20981
21332
  output: {
20982
21333
  error: string;
20983
- code?: "invalid_input" | undefined;
20984
21334
  };
20985
21335
  outputFormat: "json";
20986
- status: 400;
20987
- input: {
20988
- param: {
20989
- number: string;
20990
- };
20991
- } & {
20992
- json: {
20993
- method: "merge" | "rebase" | "squash";
20994
- expectedHeadSha: string;
20995
- overrideRules?: boolean | undefined;
20996
- };
20997
- };
21336
+ status: 409;
21337
+ input: {};
20998
21338
  } | {
20999
21339
  output: {
21000
- error: string;
21340
+ branches: string[];
21001
21341
  };
21002
21342
  outputFormat: "json";
21003
- 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
- };
21015
- } | {
21343
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21344
+ input: {};
21345
+ };
21346
+ };
21347
+ } & {
21348
+ "/repo/pull": {
21349
+ $post: {
21016
21350
  output: {
21017
- merged: true;
21018
- number: number;
21019
- url: string;
21020
- method: import("../core/forge-registry.ts").ForgeMergeMethod;
21021
- mergeCommitSha?: string;
21351
+ error: string;
21022
21352
  };
21023
21353
  outputFormat: "json";
21024
- status: import("hono/utils/http-status").ContentfulStatusCode;
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
  };
@@ -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;