techunter 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 +21 -0
- package/README.md +197 -0
- package/dist/index.js +2865 -0
- package/dist/mcp.js +2195 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Zhang Dongfang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# Techunter
|
|
2
|
+
|
|
3
|
+
> An AI-powered task distribution CLI for development teams. Manage GitHub Issues through a conversational terminal interface.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
▗▄▄▄▄▖ Techunter v0.1.0
|
|
7
|
+
◆──▐████▌══▶ GLM-5 · zai-org
|
|
8
|
+
▝▀▀▀▀▘ owner/repo
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Table of Contents
|
|
14
|
+
|
|
15
|
+
- [Features](#features)
|
|
16
|
+
- [Requirements](#requirements)
|
|
17
|
+
- [Installation](#installation)
|
|
18
|
+
- [Setup](#setup)
|
|
19
|
+
- [Usage](#usage)
|
|
20
|
+
- [Task Lifecycle](#task-lifecycle)
|
|
21
|
+
- [Branch Naming](#branch-naming)
|
|
22
|
+
- [AI Agent Tools](#ai-agent-tools)
|
|
23
|
+
- [Development](#development)
|
|
24
|
+
- [Architecture](#architecture)
|
|
25
|
+
- [License](#license)
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Features
|
|
30
|
+
|
|
31
|
+
- **Conversational REPL** — Describe what you need in plain English; the Agent calls the right tools automatically
|
|
32
|
+
- **GitHub Issues integration** — Create, claim, submit, and close tasks; labels and assignees stay in sync
|
|
33
|
+
- **Automatic branch management** — Claiming a task creates and pushes the corresponding Git branch
|
|
34
|
+
- **Smart task guides** — Before you start, the Agent scans your codebase and posts a detailed implementation guide as an Issue comment
|
|
35
|
+
- **One-command delivery** — `/submit` lets the Agent review your changes against acceptance criteria, then commits and pushes; `/deliver` opens a PR and marks it as in-review
|
|
36
|
+
- **Slash commands** — Common actions don't need a description: just `/pick`, `/new`, `/submit`
|
|
37
|
+
- **Persistent conversation history** — Full context is retained across turns in the same REPL session
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Requirements
|
|
42
|
+
|
|
43
|
+
- Node.js ≥ 18
|
|
44
|
+
- A GitHub repository with Issues enabled
|
|
45
|
+
- GitHub Personal Access Token or OAuth Device Flow authorization
|
|
46
|
+
- [ppio.com](https://ppio.com) API Key (uses the GLM-5 model)
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm install -g techunter
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Install from source (for development):**
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
git clone https://github.com/Zhang-Dongfang/Techunter.git
|
|
60
|
+
cd Techunter
|
|
61
|
+
npm install
|
|
62
|
+
npm run build
|
|
63
|
+
npm link # registers the tch / techunter commands globally
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Setup
|
|
69
|
+
|
|
70
|
+
Run the one-time setup wizard inside any directory that has a GitHub remote:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
tch init
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The wizard will ask for:
|
|
77
|
+
|
|
78
|
+
1. **GitHub authentication** — A Personal Access Token is recommended
|
|
79
|
+
- Create one at https://github.com/settings/tokens/new with `repo` and `read:user` scopes
|
|
80
|
+
2. **PPIO API Key** — Get yours from the [ppio.com](https://ppio.com) console → API Keys
|
|
81
|
+
3. **GitHub repository** — Auto-detected from your git remote, or enter manually
|
|
82
|
+
|
|
83
|
+
Config is stored at `~/.config/techunter/`.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Usage
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
tch
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Starts the conversational REPL. Type natural language or slash commands:
|
|
94
|
+
|
|
95
|
+
| Command | Alias | Description |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| `/help` | `/h` | Show all commands |
|
|
98
|
+
| `/refresh` | `/r` | Refresh the task list |
|
|
99
|
+
| `/pick` | `/p` | Browse and act on tasks interactively |
|
|
100
|
+
| `/new` | `/n` | Create a new task |
|
|
101
|
+
| `/close` | `/d` | Close (delete) a task |
|
|
102
|
+
| `/submit` | `/s` | Review changes for a task and commit + push |
|
|
103
|
+
| `/review` | `/rv` | Review team submissions — approve or request changes |
|
|
104
|
+
| `/status` | `/me` | Show tasks assigned to you |
|
|
105
|
+
| `/code` | `/c` | Launch Claude Code for the current task branch |
|
|
106
|
+
|
|
107
|
+
Any other input is sent to the AI Agent, for example:
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
> claim task #12
|
|
111
|
+
> create a task to add pagination to the user list
|
|
112
|
+
> what tasks are available right now?
|
|
113
|
+
> deliver the current task
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Task Lifecycle
|
|
119
|
+
|
|
120
|
+
Each GitHub Issue carries exactly one `techunter:*` label at a time:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
techunter:available → techunter:claimed → techunter:in-review
|
|
124
|
+
(green) (yellow) (blue)
|
|
125
|
+
↓ rejected
|
|
126
|
+
techunter:changes-needed
|
|
127
|
+
(red)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Labels are created automatically in your repository during `tch init` and when tasks are created.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Branch Naming
|
|
135
|
+
|
|
136
|
+
A branch is created automatically when you claim a task:
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
task-{issue_number}-{your-github-username}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Example: Issue #7 claimed by `johndoe` → `task-7-johndoe`
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## AI Agent Tools
|
|
147
|
+
|
|
148
|
+
The Agent can call the following tools:
|
|
149
|
+
|
|
150
|
+
| Tool | Description |
|
|
151
|
+
|---|---|
|
|
152
|
+
| `list_tasks` | List all open tasks |
|
|
153
|
+
| `get_task` | Get full details of a specific Issue |
|
|
154
|
+
| `create_task` | Create a new GitHub Issue |
|
|
155
|
+
| `claim_task` | Assign an Issue and create a local branch |
|
|
156
|
+
| `deliver_task` | Push the branch, open a PR, mark as in-review |
|
|
157
|
+
| `close_task` | Close a GitHub Issue |
|
|
158
|
+
| `post_comment` | Post a Markdown comment on an Issue |
|
|
159
|
+
| `scan_project` | Scan the project file tree and read key files |
|
|
160
|
+
| `read_file` | Read the contents of a specific file |
|
|
161
|
+
| `run_command` | Execute a shell command in the project root |
|
|
162
|
+
| `get_diff` | Get the current Git diff |
|
|
163
|
+
| `stage_and_commit` | Stage all changes, commit, and push |
|
|
164
|
+
| `ask_user` | Ask the user a question (max 3 times per task) |
|
|
165
|
+
| `get_my_status` | Show tasks assigned to the current user |
|
|
166
|
+
| `get_comments` | Read the latest comments on an Issue (e.g. rejection feedback) |
|
|
167
|
+
| `reject_task` | Reject an in-review task: post feedback and mark as changes-needed |
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Development
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
npm run dev # Run directly with tsx (no build step)
|
|
175
|
+
npm run build # Compile to dist/index.js
|
|
176
|
+
npm run typecheck # Type-check without emitting files
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Architecture
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
tch
|
|
185
|
+
└─ src/index.ts Entry point, REPL, slash command dispatch
|
|
186
|
+
└─ src/lib/agent.ts AI tool-call loop
|
|
187
|
+
├─ src/lib/github.ts Octokit — Issues, PRs, label management
|
|
188
|
+
├─ src/lib/git.ts simple-git — branches, push, diff
|
|
189
|
+
├─ src/lib/project.ts File tree + key file scanning (80 KB cap)
|
|
190
|
+
└─ src/lib/config.ts conf-based config store (~/.config/techunter/)
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## License
|
|
196
|
+
|
|
197
|
+
[MIT](LICENSE)
|