copilot-agent 0.10.0 → 0.12.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/README.md +75 -3
- package/dist/index.js +586 -105
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,10 @@ Autonomous AI agent manager — auto-resume sessions, discover tasks, run overni
|
|
|
19
19
|
| **`diff`** | Show git changes made by an agent session |
|
|
20
20
|
| **`quota`** | Track premium requests, tokens, and usage over time |
|
|
21
21
|
| **`compact`** | Generate context summary for session handoff/resume |
|
|
22
|
+
| **`hooks`** | Event-driven automation (on_task_complete, on_error, etc.) |
|
|
23
|
+
| **`pr`** | Auto-create GitHub Pull Request from session changes |
|
|
24
|
+
| **`log`** | Search, timeline, and export session history |
|
|
25
|
+
| **`template`** | Manage custom task templates (add/list/remove/import/export) |
|
|
22
26
|
|
|
23
27
|
All commands support `--agent copilot` or `--agent claude` (auto-detects if omitted).
|
|
24
28
|
|
|
@@ -105,11 +109,11 @@ copilot-agent diff abc12345-... --stat
|
|
|
105
109
|
### Dashboards
|
|
106
110
|
|
|
107
111
|
```bash
|
|
108
|
-
# htop-style TUI (blessed — scrollable, keyboard nav)
|
|
112
|
+
# htop-style TUI (blessed — scrollable, keyboard nav, cached rendering)
|
|
109
113
|
copilot-agent dashboard
|
|
110
114
|
|
|
111
|
-
#
|
|
112
|
-
copilot-agent dashboard --
|
|
115
|
+
# Custom refresh interval
|
|
116
|
+
copilot-agent dashboard --refresh 3
|
|
113
117
|
|
|
114
118
|
# Web UI (Hono + htmx, opens browser)
|
|
115
119
|
copilot-agent web
|
|
@@ -165,6 +169,74 @@ copilot-agent compact --save
|
|
|
165
169
|
copilot-agent compact --resume-prompt
|
|
166
170
|
```
|
|
167
171
|
|
|
172
|
+
### Hooks (event-driven automation)
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
# Show configured hooks
|
|
176
|
+
copilot-agent hooks list
|
|
177
|
+
|
|
178
|
+
# Test-run hooks for an event
|
|
179
|
+
copilot-agent hooks test on_task_complete
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Create `~/.copilot-agent/hooks.yaml` or `.copilot-agent/hooks.yaml`:
|
|
183
|
+
|
|
184
|
+
```yaml
|
|
185
|
+
on_task_complete:
|
|
186
|
+
- command: "npm test"
|
|
187
|
+
name: "Run tests"
|
|
188
|
+
on_session_end:
|
|
189
|
+
- command: "git push origin HEAD"
|
|
190
|
+
name: "Auto-push"
|
|
191
|
+
on_error:
|
|
192
|
+
- command: "curl -X POST $SLACK_WEBHOOK -d '{\"text\":\"Agent error!\"}'"
|
|
193
|
+
name: "Notify Slack"
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Auto-create Pull Request
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# Create PR from latest session
|
|
200
|
+
copilot-agent pr
|
|
201
|
+
|
|
202
|
+
# Dry-run (preview without creating)
|
|
203
|
+
copilot-agent pr --dry-run
|
|
204
|
+
|
|
205
|
+
# Create ready (non-draft) PR
|
|
206
|
+
copilot-agent pr --no-draft
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Session log (search & export)
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Search sessions by keyword
|
|
213
|
+
copilot-agent log search "auth" --limit 10
|
|
214
|
+
|
|
215
|
+
# View session timeline
|
|
216
|
+
copilot-agent log timeline <session-id>
|
|
217
|
+
|
|
218
|
+
# Export history as JSON or CSV
|
|
219
|
+
copilot-agent log export --format json --output sessions.json
|
|
220
|
+
copilot-agent log export --format csv --limit 50
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Task templates
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# List custom templates
|
|
227
|
+
copilot-agent template list
|
|
228
|
+
|
|
229
|
+
# Add a reusable task template
|
|
230
|
+
copilot-agent template add security-audit --prompt "Run a full security audit"
|
|
231
|
+
|
|
232
|
+
# Remove a template
|
|
233
|
+
copilot-agent template remove security-audit
|
|
234
|
+
|
|
235
|
+
# Export/import templates (YAML)
|
|
236
|
+
copilot-agent template export > my-templates.yaml
|
|
237
|
+
copilot-agent template import team-templates.yaml
|
|
238
|
+
```
|
|
239
|
+
|
|
168
240
|
## How it works
|
|
169
241
|
|
|
170
242
|
1. **Agent abstraction** — Unified interface for both Copilot CLI and Claude Code
|