dispatch-ai 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +229 -0
- package/README.md +177 -0
- package/dist/bin/dispatch.d.ts +3 -0
- package/dist/bin/dispatch.d.ts.map +1 -0
- package/dist/bin/dispatch.js +42 -0
- package/dist/bin/dispatch.js.map +1 -0
- package/dist/src/commands/create.d.ts +3 -0
- package/dist/src/commands/create.d.ts.map +1 -0
- package/dist/src/commands/create.js +154 -0
- package/dist/src/commands/create.js.map +1 -0
- package/dist/src/commands/init.d.ts +3 -0
- package/dist/src/commands/init.d.ts.map +1 -0
- package/dist/src/commands/init.js +100 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/run.d.ts +3 -0
- package/dist/src/commands/run.d.ts.map +1 -0
- package/dist/src/commands/run.js +72 -0
- package/dist/src/commands/run.js.map +1 -0
- package/dist/src/commands/status.d.ts +3 -0
- package/dist/src/commands/status.d.ts.map +1 -0
- package/dist/src/commands/status.js +34 -0
- package/dist/src/commands/status.js.map +1 -0
- package/dist/src/engine/base.d.ts +12 -0
- package/dist/src/engine/base.d.ts.map +1 -0
- package/dist/src/engine/base.js +161 -0
- package/dist/src/engine/base.js.map +1 -0
- package/dist/src/engine/claude.d.ts +25 -0
- package/dist/src/engine/claude.d.ts.map +1 -0
- package/dist/src/engine/claude.js +215 -0
- package/dist/src/engine/claude.js.map +1 -0
- package/dist/src/engine/types.d.ts +88 -0
- package/dist/src/engine/types.d.ts.map +1 -0
- package/dist/src/engine/types.js +2 -0
- package/dist/src/engine/types.js.map +1 -0
- package/dist/src/github/client.d.ts +58 -0
- package/dist/src/github/client.d.ts.map +1 -0
- package/dist/src/github/client.js +189 -0
- package/dist/src/github/client.js.map +1 -0
- package/dist/src/github/issues.d.ts +13 -0
- package/dist/src/github/issues.d.ts.map +1 -0
- package/dist/src/github/issues.js +67 -0
- package/dist/src/github/issues.js.map +1 -0
- package/dist/src/github/pulls.d.ts +15 -0
- package/dist/src/github/pulls.d.ts.map +1 -0
- package/dist/src/github/pulls.js +65 -0
- package/dist/src/github/pulls.js.map +1 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/orchestrator/classifier.d.ts +4 -0
- package/dist/src/orchestrator/classifier.d.ts.map +1 -0
- package/dist/src/orchestrator/classifier.js +45 -0
- package/dist/src/orchestrator/classifier.js.map +1 -0
- package/dist/src/orchestrator/pipeline.d.ts +13 -0
- package/dist/src/orchestrator/pipeline.d.ts.map +1 -0
- package/dist/src/orchestrator/pipeline.js +246 -0
- package/dist/src/orchestrator/pipeline.js.map +1 -0
- package/dist/src/orchestrator/planner.d.ts +13 -0
- package/dist/src/orchestrator/planner.d.ts.map +1 -0
- package/dist/src/orchestrator/planner.js +95 -0
- package/dist/src/orchestrator/planner.js.map +1 -0
- package/dist/src/orchestrator/scorer.d.ts +8 -0
- package/dist/src/orchestrator/scorer.d.ts.map +1 -0
- package/dist/src/orchestrator/scorer.js +41 -0
- package/dist/src/orchestrator/scorer.js.map +1 -0
- package/dist/src/reporter/summary.d.ts +29 -0
- package/dist/src/reporter/summary.d.ts.map +1 -0
- package/dist/src/reporter/summary.js +77 -0
- package/dist/src/reporter/summary.js.map +1 -0
- package/dist/src/utils/config.d.ts +37 -0
- package/dist/src/utils/config.d.ts.map +1 -0
- package/dist/src/utils/config.js +60 -0
- package/dist/src/utils/config.js.map +1 -0
- package/dist/src/utils/git.d.ts +30 -0
- package/dist/src/utils/git.d.ts.map +1 -0
- package/dist/src/utils/git.js +95 -0
- package/dist/src/utils/git.js.map +1 -0
- package/dist/src/utils/logger.d.ts +22 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.js +109 -0
- package/dist/src/utils/logger.js.map +1 -0
- package/dist/src/utils/semaphore.d.ts +19 -0
- package/dist/src/utils/semaphore.d.ts.map +1 -0
- package/dist/src/utils/semaphore.js +41 -0
- package/dist/src/utils/semaphore.js.map +1 -0
- package/dist/src/utils/worktree.d.ts +20 -0
- package/dist/src/utils/worktree.d.ts.map +1 -0
- package/dist/src/utils/worktree.js +92 -0
- package/dist/src/utils/worktree.js.map +1 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding any notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
Copyright 2025-2026 Mehul Patel <nomadicmehul@gmail.com>
|
|
178
|
+
|
|
179
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
you may not use this file except in compliance with the License.
|
|
181
|
+
You may obtain a copy of the License at
|
|
182
|
+
|
|
183
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
|
|
185
|
+
Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
See the License for the specific language governing permissions and
|
|
189
|
+
limitations under the License.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
==========================================================================
|
|
193
|
+
Commons Clause License Condition v1.0
|
|
194
|
+
==========================================================================
|
|
195
|
+
|
|
196
|
+
The Software is provided to you by the Licensor under the License,
|
|
197
|
+
as defined below, subject to the following condition.
|
|
198
|
+
|
|
199
|
+
Without limiting other conditions in the License, the grant of rights
|
|
200
|
+
under the License will not include, and the License does not grant to
|
|
201
|
+
you, the right to Sell the Software.
|
|
202
|
+
|
|
203
|
+
For purposes of the foregoing, "Sell" means practicing any or all of
|
|
204
|
+
the rights granted to you under the License to provide to third parties,
|
|
205
|
+
for a fee or other consideration (including without limitation fees for
|
|
206
|
+
hosting or consulting/support services related to the Software), a
|
|
207
|
+
product or service whose value derives, entirely or substantially, from
|
|
208
|
+
the functionality of the Software. Any license notice or attribution
|
|
209
|
+
required by the License must also include this Commons Clause License
|
|
210
|
+
Condition notice.
|
|
211
|
+
|
|
212
|
+
Software: Dispatch CLI
|
|
213
|
+
License: Apache 2.0
|
|
214
|
+
Licensor: Mehul Patel <nomadicmehul@gmail.com>
|
|
215
|
+
|
|
216
|
+
==========================================================================
|
|
217
|
+
|
|
218
|
+
In plain language:
|
|
219
|
+
|
|
220
|
+
- You CAN use Dispatch freely for personal and internal use
|
|
221
|
+
- You CAN modify and create derivative works
|
|
222
|
+
- You CAN distribute copies with proper attribution
|
|
223
|
+
- You MUST give credit to the original author
|
|
224
|
+
- You MUST include this license in any copies or derivatives
|
|
225
|
+
- You CANNOT sell Dispatch or offer it as a paid service
|
|
226
|
+
- You CANNOT use it as the basis for a competing commercial product
|
|
227
|
+
|
|
228
|
+
For commercial licensing or enterprise features, contact:
|
|
229
|
+
nomadicmehul@gmail.com
|
package/README.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# ⚡ Dispatch
|
|
2
|
+
|
|
3
|
+
**Dispatch your GitHub issues. Receive pull requests.**
|
|
4
|
+
|
|
5
|
+
Dispatch is an AI-powered CLI tool that solves GitHub issues in batch — creating branches, implementing fixes, and opening pull requests while you sleep.
|
|
6
|
+
|
|
7
|
+
Run it at night. Review PRs in the morning.
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Install
|
|
13
|
+
npm install -g dispatch-cli
|
|
14
|
+
|
|
15
|
+
# Initialize config in your repo
|
|
16
|
+
cd your-repo
|
|
17
|
+
dispatch init
|
|
18
|
+
|
|
19
|
+
# Set your GitHub token
|
|
20
|
+
export GITHUB_TOKEN=ghp_...
|
|
21
|
+
|
|
22
|
+
# Solve all open issues
|
|
23
|
+
dispatch run
|
|
24
|
+
|
|
25
|
+
# Preview what would happen (no changes)
|
|
26
|
+
dispatch run --dry-run
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Commands
|
|
30
|
+
|
|
31
|
+
### `dispatch run`
|
|
32
|
+
|
|
33
|
+
Fetches open issues, classifies them, solves each one with AI, and opens pull requests.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
dispatch run # solve all open issues
|
|
37
|
+
dispatch run --dry-run # preview without making changes
|
|
38
|
+
dispatch run --label bug --label p0 # only solve bugs and P0 issues
|
|
39
|
+
dispatch run --max-issues 5 # limit to 5 issues
|
|
40
|
+
dispatch run --draft # create all PRs as drafts
|
|
41
|
+
dispatch run --model opus # use a specific model
|
|
42
|
+
dispatch run --base-branch develop # target a different base branch
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**What happens:**
|
|
46
|
+
1. Fetches open issues from your GitHub repo
|
|
47
|
+
2. Classifies each issue (bug fix, feature, investigation, audit, docs, refactor)
|
|
48
|
+
3. Prioritizes by labels (P0 → P1 → P2) and reactions
|
|
49
|
+
4. For each issue:
|
|
50
|
+
- Creates a branch (`dispatch/issue-42-fix-login-bug`)
|
|
51
|
+
- Invokes Claude Code to solve it
|
|
52
|
+
- Self-assesses confidence (1-10)
|
|
53
|
+
- Commits, pushes, and opens a PR
|
|
54
|
+
5. Low-confidence solutions become draft PRs
|
|
55
|
+
6. Generates a morning summary report
|
|
56
|
+
|
|
57
|
+
### `dispatch create`
|
|
58
|
+
|
|
59
|
+
Create well-structured GitHub issues from a text description or interactive interview.
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# From a description
|
|
63
|
+
dispatch create "figure out why the /api/users endpoint is 3x slower than last month"
|
|
64
|
+
|
|
65
|
+
# Interactive mode — guided interview
|
|
66
|
+
dispatch create --interactive
|
|
67
|
+
|
|
68
|
+
# Generate without posting
|
|
69
|
+
dispatch create "add rate limiting to public endpoints" --no-post
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### `dispatch status`
|
|
73
|
+
|
|
74
|
+
View results from the last run.
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
dispatch status # pretty-printed morning report
|
|
78
|
+
dispatch status --json # raw JSON output
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### `dispatch init`
|
|
82
|
+
|
|
83
|
+
Initialize configuration for your repository.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
dispatch init # interactive setup
|
|
87
|
+
dispatch init --yes # use defaults
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Configuration
|
|
91
|
+
|
|
92
|
+
Dispatch reads `.dispatchrc.json` from your repo root:
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"engine": "claude",
|
|
97
|
+
"model": "sonnet",
|
|
98
|
+
"labels": [],
|
|
99
|
+
"exclude": ["wontfix", "blocked", "duplicate"],
|
|
100
|
+
"maxIssues": 10,
|
|
101
|
+
"maxTurnsPerIssue": 10,
|
|
102
|
+
"branchPrefix": "dispatch/",
|
|
103
|
+
"createDraftPRs": false,
|
|
104
|
+
"autoLabel": true,
|
|
105
|
+
"baseBranch": "main",
|
|
106
|
+
"draftThreshold": 5,
|
|
107
|
+
"stateDir": ".dispatch"
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
| Option | Description | Default |
|
|
112
|
+
|--------|-------------|---------|
|
|
113
|
+
| `engine` | AI backend (`claude`, future: `gemini`) | `claude` |
|
|
114
|
+
| `model` | Model name (`sonnet`, `opus`, `haiku`) | `sonnet` |
|
|
115
|
+
| `labels` | Only process issues with these labels (empty = all) | `[]` |
|
|
116
|
+
| `exclude` | Skip issues with these labels | `["wontfix", "blocked", "duplicate"]` |
|
|
117
|
+
| `maxIssues` | Max issues per run | `10` |
|
|
118
|
+
| `maxTurnsPerIssue` | Max AI turns per issue | `10` |
|
|
119
|
+
| `branchPrefix` | Branch name prefix | `dispatch/` |
|
|
120
|
+
| `createDraftPRs` | Always create draft PRs | `false` |
|
|
121
|
+
| `autoLabel` | Auto-label issues with classification | `true` |
|
|
122
|
+
| `baseBranch` | Base branch for PRs | `main` |
|
|
123
|
+
| `draftThreshold` | Confidence below this → draft PR | `5` |
|
|
124
|
+
|
|
125
|
+
## Issue Types
|
|
126
|
+
|
|
127
|
+
Dispatch automatically classifies issues and adapts its approach:
|
|
128
|
+
|
|
129
|
+
| Type | What it does | Example |
|
|
130
|
+
|------|-------------|---------|
|
|
131
|
+
| **code-fix** | Finds and fixes the bug, adds tests | "Login button returns 500 error" |
|
|
132
|
+
| **feature** | Implements the feature following project patterns | "Add dark mode toggle" |
|
|
133
|
+
| **investigation** | Researches and commits a findings report | "Figure out why API is slow" |
|
|
134
|
+
| **documentation** | Writes or updates docs | "Document the auth flow" |
|
|
135
|
+
| **audit** | Reviews codebase and commits audit report | "Audit for accessibility issues" |
|
|
136
|
+
| **refactor** | Restructures code without behavior changes | "Extract auth logic into service" |
|
|
137
|
+
|
|
138
|
+
## Confidence Scoring
|
|
139
|
+
|
|
140
|
+
After solving each issue, the AI self-assesses its confidence (1-10):
|
|
141
|
+
|
|
142
|
+
- **8-10**: Regular PR — high confidence, ship it
|
|
143
|
+
- **5-7**: Regular PR with "needs-review" notes
|
|
144
|
+
- **1-4**: Draft PR — significant uncertainty, manual review essential
|
|
145
|
+
|
|
146
|
+
## Prerequisites
|
|
147
|
+
|
|
148
|
+
- [Node.js](https://nodejs.org) >= 20
|
|
149
|
+
- [Claude Code](https://claude.com/claude-code) installed and authenticated
|
|
150
|
+
- [GitHub token](https://github.com/settings/tokens) with repo access (or `gh auth login`)
|
|
151
|
+
|
|
152
|
+
## Architecture
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
dispatch CLI
|
|
156
|
+
├── Commands (run, create, status, init)
|
|
157
|
+
├── GitHub Client (octokit — issues, PRs, labels)
|
|
158
|
+
├── Engine Layer (pluggable AI adapters)
|
|
159
|
+
│ └── Claude Adapter (claude CLI --print)
|
|
160
|
+
│ └── [Future] Gemini Adapter
|
|
161
|
+
├── Orchestrator (pipeline, classifier, planner, scorer)
|
|
162
|
+
├── Reporter (morning summary, run history)
|
|
163
|
+
└── Utils (config, git, logger)
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
The engine adapter pattern makes adding new AI backends trivial — implement the `AIEngine` interface and you're done.
|
|
167
|
+
|
|
168
|
+
## Roadmap
|
|
169
|
+
|
|
170
|
+
- [ ] Gemini CLI adapter
|
|
171
|
+
- [ ] OpenAI adapter
|
|
172
|
+
- [ ] Slack/Discord notifications on run completion
|
|
173
|
+
- [ ] GitHub Action for scheduled runs
|
|
174
|
+
- [ ] Issue decomposition (break large issues into sub-tasks)
|
|
175
|
+
- [ ] Learn from PR review feedback
|
|
176
|
+
- [ ] Parallel issue solving
|
|
177
|
+
- [ ] Web dashboard for run history
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../bin/dispatch.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
import { Command } from "commander";
|
|
6
|
+
import chalk from "chalk";
|
|
7
|
+
import { registerRunCommand } from "../src/commands/run.js";
|
|
8
|
+
import { registerCreateCommand } from "../src/commands/create.js";
|
|
9
|
+
import { registerStatusCommand } from "../src/commands/status.js";
|
|
10
|
+
import { registerInitCommand } from "../src/commands/init.js";
|
|
11
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "..", "..", "package.json"), "utf-8"));
|
|
13
|
+
const program = new Command();
|
|
14
|
+
program
|
|
15
|
+
.name("dispatch")
|
|
16
|
+
.description(chalk.bold("Dispatch") +
|
|
17
|
+
" — Dispatch your GitHub issues. Receive pull requests.\n\n" +
|
|
18
|
+
" AI-powered batch issue solver that turns your open issues into\n" +
|
|
19
|
+
" pull requests while you sleep.")
|
|
20
|
+
.version(pkg.version);
|
|
21
|
+
// Register subcommands
|
|
22
|
+
registerRunCommand(program);
|
|
23
|
+
registerCreateCommand(program);
|
|
24
|
+
registerStatusCommand(program);
|
|
25
|
+
registerInitCommand(program);
|
|
26
|
+
// Default action (no subcommand)
|
|
27
|
+
program.action(() => {
|
|
28
|
+
console.log();
|
|
29
|
+
console.log(chalk.bold.cyan(" ⚡ dispatch") + chalk.gray(" — AI-powered issue solver"));
|
|
30
|
+
console.log();
|
|
31
|
+
console.log(chalk.gray(" Dispatch your issues. Receive pull requests."));
|
|
32
|
+
console.log();
|
|
33
|
+
console.log(` ${chalk.yellow("dispatch run")} Solve open issues and create PRs`);
|
|
34
|
+
console.log(` ${chalk.yellow("dispatch create")} Create well-structured issues`);
|
|
35
|
+
console.log(` ${chalk.yellow("dispatch status")} View last run summary`);
|
|
36
|
+
console.log(` ${chalk.yellow("dispatch init")} Initialize config for this repo`);
|
|
37
|
+
console.log();
|
|
38
|
+
console.log(chalk.gray(" Run dispatch --help for full options."));
|
|
39
|
+
console.log();
|
|
40
|
+
});
|
|
41
|
+
program.parse();
|
|
42
|
+
//# sourceMappingURL=dispatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../../bin/dispatch.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAE3F,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,UAAU,CAAC;KAChB,WAAW,CACV,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;IACtB,4DAA4D;IAC5D,oEAAoE;IACpE,kCAAkC,CACnC;KACA,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAExB,uBAAuB;AACvB,kBAAkB,CAAC,OA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AAE,MAAM,WAAW,CAAC;AASpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QAsFrD"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import chalk from "chalk";
|
|
2
|
+
import inquirer from "inquirer";
|
|
3
|
+
import { loadConfig } from "../utils/config.js";
|
|
4
|
+
import { getRepoInfo } from "../utils/git.js";
|
|
5
|
+
import { GitHubClient } from "../github/client.js";
|
|
6
|
+
import { ClaudeEngine } from "../engine/claude.js";
|
|
7
|
+
import { log } from "../utils/logger.js";
|
|
8
|
+
export function registerCreateCommand(program) {
|
|
9
|
+
program
|
|
10
|
+
.command("create [description]")
|
|
11
|
+
.description("Create a well-structured GitHub issue from a description or interactive interview")
|
|
12
|
+
.option("-i, --interactive", "Use interactive interview mode")
|
|
13
|
+
.option("--no-post", "Generate the issue but don't post it to GitHub")
|
|
14
|
+
.option("--engine <engine>", "AI engine to use")
|
|
15
|
+
.option("--model <model>", "Model to use")
|
|
16
|
+
.action(async (description, options) => {
|
|
17
|
+
try {
|
|
18
|
+
const cwd = process.cwd();
|
|
19
|
+
const config = await loadConfig(cwd);
|
|
20
|
+
const { owner, repo } = await getRepoInfo(cwd);
|
|
21
|
+
// Get description from interactive mode or argument
|
|
22
|
+
let finalDescription;
|
|
23
|
+
if (options.interactive || !description) {
|
|
24
|
+
finalDescription = await interactiveInterview();
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
finalDescription = description;
|
|
28
|
+
}
|
|
29
|
+
if (!finalDescription.trim()) {
|
|
30
|
+
log.error("No description provided.");
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
log.info("Generating structured issue with AI...\n");
|
|
34
|
+
// Use AI to structure the issue
|
|
35
|
+
const engine = new ClaudeEngine({
|
|
36
|
+
model: options.model || config.model,
|
|
37
|
+
maxTurns: 3,
|
|
38
|
+
});
|
|
39
|
+
const structured = await engine.createIssue(finalDescription, {
|
|
40
|
+
owner,
|
|
41
|
+
repo,
|
|
42
|
+
baseBranch: config.baseBranch,
|
|
43
|
+
cwd,
|
|
44
|
+
});
|
|
45
|
+
// Preview
|
|
46
|
+
console.log(chalk.bold.cyan("\n━━━ Issue Preview ━━━\n"));
|
|
47
|
+
console.log(chalk.bold(`Title: ${structured.title}`));
|
|
48
|
+
console.log(chalk.gray(`Labels: ${structured.labels.join(", ")}`));
|
|
49
|
+
console.log(chalk.gray("─".repeat(50)));
|
|
50
|
+
console.log(structured.body);
|
|
51
|
+
console.log(chalk.gray("─".repeat(50)));
|
|
52
|
+
if (options.post === false) {
|
|
53
|
+
log.info("Issue generated (not posted — use without --no-post to publish).");
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
// Confirm before posting
|
|
57
|
+
const { confirm } = await inquirer.prompt([
|
|
58
|
+
{
|
|
59
|
+
type: "confirm",
|
|
60
|
+
name: "confirm",
|
|
61
|
+
message: "Post this issue to GitHub?",
|
|
62
|
+
default: true,
|
|
63
|
+
},
|
|
64
|
+
]);
|
|
65
|
+
if (!confirm) {
|
|
66
|
+
log.info("Issue not posted.");
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
// Post to GitHub
|
|
70
|
+
const github = await GitHubClient.create(owner, repo);
|
|
71
|
+
const issue = await github.createIssue({
|
|
72
|
+
title: structured.title,
|
|
73
|
+
body: structured.body,
|
|
74
|
+
labels: structured.labels,
|
|
75
|
+
});
|
|
76
|
+
console.log();
|
|
77
|
+
log.success(`Issue #${issue.number} created: ${chalk.underline(issue.url)}`);
|
|
78
|
+
}
|
|
79
|
+
catch (err) {
|
|
80
|
+
log.error(`Create failed: ${err instanceof Error ? err.message : err}`);
|
|
81
|
+
process.exit(1);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
async function interactiveInterview() {
|
|
86
|
+
console.log(chalk.bold.cyan("\n━━━ Issue Interview ━━━\n"));
|
|
87
|
+
console.log(chalk.gray("Answer a few questions and I'll create a well-structured issue.\n"));
|
|
88
|
+
const answers = await inquirer.prompt([
|
|
89
|
+
{
|
|
90
|
+
type: "list",
|
|
91
|
+
name: "type",
|
|
92
|
+
message: "What kind of task is this?",
|
|
93
|
+
choices: [
|
|
94
|
+
{ name: "🐛 Bug fix — something is broken", value: "bug" },
|
|
95
|
+
{ name: "✨ Feature — add new functionality", value: "feature" },
|
|
96
|
+
{ name: "🔍 Investigation — research or figure something out", value: "investigation" },
|
|
97
|
+
{ name: "📝 Documentation — write or update docs", value: "documentation" },
|
|
98
|
+
{ name: "🔒 Audit — review codebase for issues", value: "audit" },
|
|
99
|
+
{ name: "♻️ Refactor — restructure without behavior change", value: "refactor" },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: "input",
|
|
104
|
+
name: "what",
|
|
105
|
+
message: "What needs to be done? (describe in your own words)",
|
|
106
|
+
validate: (input) => input.trim().length > 0 || "Please provide a description",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
type: "input",
|
|
110
|
+
name: "where",
|
|
111
|
+
message: "Where in the codebase? (files, modules, or 'not sure')",
|
|
112
|
+
default: "not sure",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
type: "input",
|
|
116
|
+
name: "why",
|
|
117
|
+
message: "Why is this needed? (context, impact, urgency)",
|
|
118
|
+
default: "",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: "input",
|
|
122
|
+
name: "acceptance",
|
|
123
|
+
message: "How will we know it's done? (acceptance criteria, or leave blank)",
|
|
124
|
+
default: "",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: "list",
|
|
128
|
+
name: "priority",
|
|
129
|
+
message: "Priority?",
|
|
130
|
+
choices: [
|
|
131
|
+
{ name: "🔴 Critical (P0)", value: "P0" },
|
|
132
|
+
{ name: "🟠 High (P1)", value: "P1" },
|
|
133
|
+
{ name: "🟡 Medium (P2)", value: "P2" },
|
|
134
|
+
{ name: "🟢 Low (P3)", value: "P3" },
|
|
135
|
+
],
|
|
136
|
+
default: "P2",
|
|
137
|
+
},
|
|
138
|
+
]);
|
|
139
|
+
// Compose a description for AI to structure
|
|
140
|
+
let description = `Type: ${answers.type}\n`;
|
|
141
|
+
description += `Task: ${answers.what}\n`;
|
|
142
|
+
if (answers.where !== "not sure") {
|
|
143
|
+
description += `Location in codebase: ${answers.where}\n`;
|
|
144
|
+
}
|
|
145
|
+
if (answers.why) {
|
|
146
|
+
description += `Context/Why: ${answers.why}\n`;
|
|
147
|
+
}
|
|
148
|
+
if (answers.acceptance) {
|
|
149
|
+
description += `Acceptance criteria: ${answers.acceptance}\n`;
|
|
150
|
+
}
|
|
151
|
+
description += `Priority: ${answers.priority}`;
|
|
152
|
+
return description;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/create.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAEzC,MAAM,UAAU,qBAAqB,CAAC,OAAgB;IACpD,OAAO;SACJ,OAAO,CAAC,sBAAsB,CAAC;SAC/B,WAAW,CAAC,mFAAmF,CAAC;SAChG,MAAM,CAAC,mBAAmB,EAAE,gCAAgC,CAAC;SAC7D,MAAM,CAAC,WAAW,EAAE,gDAAgD,CAAC;SACrE,MAAM,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;SAC/C,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC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