opencodekit 0.12.3 → 0.12.5
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/dist/index.js +2 -2
- package/dist/template/.opencode/agent/build.md +66 -9
- package/dist/template/.opencode/agent/rush.md +43 -19
- package/dist/template/.opencode/command/accessibility-check.md +7 -10
- package/dist/template/.opencode/command/analyze-mockup.md +3 -16
- package/dist/template/.opencode/command/analyze-project.md +57 -69
- package/dist/template/.opencode/command/brainstorm.md +3 -11
- package/dist/template/.opencode/command/commit.md +10 -18
- package/dist/template/.opencode/command/create.md +4 -8
- package/dist/template/.opencode/command/design-audit.md +24 -51
- package/dist/template/.opencode/command/design.md +10 -17
- package/dist/template/.opencode/command/finish.md +9 -9
- package/dist/template/.opencode/command/fix-ci.md +7 -28
- package/dist/template/.opencode/command/fix-types.md +3 -7
- package/dist/template/.opencode/command/fix-ui.md +5 -11
- package/dist/template/.opencode/command/fix.md +4 -10
- package/dist/template/.opencode/command/handoff.md +8 -14
- package/dist/template/.opencode/command/implement.md +13 -16
- package/dist/template/.opencode/command/import-plan.md +20 -38
- package/dist/template/.opencode/command/init.md +9 -13
- package/dist/template/.opencode/command/integration-test.md +11 -13
- package/dist/template/.opencode/command/issue.md +4 -8
- package/dist/template/.opencode/command/new-feature.md +20 -40
- package/dist/template/.opencode/command/plan.md +8 -12
- package/dist/template/.opencode/command/pr.md +29 -38
- package/dist/template/.opencode/command/quick-build.md +3 -7
- package/dist/template/.opencode/command/research-and-implement.md +4 -6
- package/dist/template/.opencode/command/research.md +10 -7
- package/dist/template/.opencode/command/resume.md +12 -24
- package/dist/template/.opencode/command/revert-feature.md +21 -56
- package/dist/template/.opencode/command/review-codebase.md +21 -23
- package/dist/template/.opencode/command/skill-create.md +1 -5
- package/dist/template/.opencode/command/skill-optimize.md +3 -10
- package/dist/template/.opencode/command/status.md +28 -25
- package/dist/template/.opencode/command/triage.md +19 -31
- package/dist/template/.opencode/command/ui-review.md +6 -13
- package/dist/template/.opencode/command.backup/analyze-project.md +465 -0
- package/dist/template/.opencode/command.backup/finish.md +167 -0
- package/dist/template/.opencode/command.backup/implement.md +143 -0
- package/dist/template/.opencode/command.backup/pr.md +252 -0
- package/dist/template/.opencode/command.backup/status.md +376 -0
- package/dist/template/.opencode/memory/project/SHELL_OUTPUT_MIGRATION_PLAN.md +551 -0
- package/dist/template/.opencode/memory/project/gotchas.md +33 -28
- package/dist/template/.opencode/opencode.json +542 -510
- package/dist/template/.opencode/package.json +1 -3
- package/dist/template/.opencode/plugin/compaction.ts +51 -129
- package/dist/template/.opencode/plugin/handoff.ts +18 -163
- package/dist/template/.opencode/plugin/notification.ts +1 -1
- package/dist/template/.opencode/plugin/package.json +7 -0
- package/dist/template/.opencode/plugin/sessions.ts +185 -651
- package/dist/template/.opencode/plugin/skill-mcp.ts +2 -1
- package/dist/template/.opencode/plugin/truncator.ts +19 -41
- package/dist/template/.opencode/plugin/tsconfig.json +14 -13
- package/dist/template/.opencode/tool/bd-inbox.ts +109 -0
- package/dist/template/.opencode/tool/bd-msg.ts +62 -0
- package/dist/template/.opencode/tool/bd-release.ts +71 -0
- package/dist/template/.opencode/tool/bd-reserve.ts +120 -0
- package/package.json +2 -2
- package/dist/template/.opencode/plugin/beads.ts +0 -1419
- package/dist/template/.opencode/plugin/compactor.ts +0 -107
- package/dist/template/.opencode/plugin/enforcer.ts +0 -190
- package/dist/template/.opencode/plugin/injector.ts +0 -150
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Comprehensive project and session status dashboard
|
|
3
|
+
argument-hint: "[--full] [--health] [--sessions] [--git]"
|
|
4
|
+
agent: explore
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Status Dashboard
|
|
8
|
+
|
|
9
|
+
## Load Beads Skill
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
skill({ name: "beads" });
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Generate a comprehensive project status report covering tasks, sessions, git state, and system health.
|
|
16
|
+
|
|
17
|
+
## Phase 1: Gather All State (Parallel)
|
|
18
|
+
|
|
19
|
+
Run all status checks simultaneously:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Beads state
|
|
23
|
+
bd status
|
|
24
|
+
bd list --status in_progress --limit 10
|
|
25
|
+
bd list --status ready --limit 10
|
|
26
|
+
bd-inbox --n 5 --unread true --to "all"
|
|
27
|
+
bd doctor
|
|
28
|
+
bd-reservations
|
|
29
|
+
|
|
30
|
+
# Sessions
|
|
31
|
+
list_sessions --project current --since today --limit 5
|
|
32
|
+
|
|
33
|
+
// Search for recent activity on current work (if bead in progress)
|
|
34
|
+
search_session({ query: "<current-bead-id>", limit: 5 });
|
|
35
|
+
|
|
36
|
+
// Git state
|
|
37
|
+
bash("git status --porcelain");
|
|
38
|
+
bash("git branch --show-current");
|
|
39
|
+
bash("git log --oneline -5");
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Phase 2: Health Score Calculation
|
|
43
|
+
|
|
44
|
+
Calculate overall project health (0-100):
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
┌─────────────────────────────────────────────────────────────────────────┐
|
|
48
|
+
│ HEALTH SCORE FORMULA │
|
|
49
|
+
├─────────────────────────────────────────────────────────────────────────┤
|
|
50
|
+
│ │
|
|
51
|
+
│ Health = Base(60) + Bonuses - Penalties │
|
|
52
|
+
│ │
|
|
53
|
+
│ BONUSES (up to +40) │
|
|
54
|
+
│ ├── Database healthy: +10 │
|
|
55
|
+
│ ├── No SLA breaches: +10 │
|
|
56
|
+
│ ├── All P0/P1 assigned: +10 │
|
|
57
|
+
│ └── CI passing: +10 │
|
|
58
|
+
│ │
|
|
59
|
+
│ PENALTIES (uncapped) │
|
|
60
|
+
│ ├── Per SLA breach: -5 │
|
|
61
|
+
│ ├── Per unread urgent msg: -3 │
|
|
62
|
+
│ ├── Per stale task (>7d): -2 │
|
|
63
|
+
│ ├── Database issues: -20 │
|
|
64
|
+
│ └── Per circular dependency: -10 │
|
|
65
|
+
│ │
|
|
66
|
+
│ GRADES │
|
|
67
|
+
│ ├── 90-100: 🟢 EXCELLENT │
|
|
68
|
+
│ ├── 75-89: 🟢 GOOD │
|
|
69
|
+
│ ├── 60-74: 🟡 FAIR │
|
|
70
|
+
│ ├── 40-59: 🟠 NEEDS ATTENTION │
|
|
71
|
+
│ └── 0-39: 🔴 CRITICAL │
|
|
72
|
+
│ │
|
|
73
|
+
└─────────────────────────────────────────────────────────────────────────┘
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Phase 3: Generate Dashboard
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
╔══════════════════════════════════════════════════════════════════════════╗
|
|
80
|
+
║ PROJECT STATUS ║
|
|
81
|
+
║ [Project Name] ║
|
|
82
|
+
║ [Timestamp] ║
|
|
83
|
+
╠══════════════════════════════════════════════════════════════════════════╣
|
|
84
|
+
|
|
85
|
+
HEALTH: 🟢 85/100 GOOD
|
|
86
|
+
━━━━━━━━━━━━━━━━━━━━━━
|
|
87
|
+
|
|
88
|
+
[████████████████████████░░░░░░] 85%
|
|
89
|
+
|
|
90
|
+
Database: ✓ OK
|
|
91
|
+
CI: ✓ Passing
|
|
92
|
+
SLA: ✓ No breaches
|
|
93
|
+
Agents: 3 active
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
TASK OVERVIEW
|
|
97
|
+
━━━━━━━━━━━━━
|
|
98
|
+
┌────────────────────────────────────────────────────┐
|
|
99
|
+
│ │
|
|
100
|
+
│ Open: 12 In Progress: 3 Ready: 5 │
|
|
101
|
+
│ ├── P0: 0 ├── P0: 1 ├── Blocked: 2 │
|
|
102
|
+
│ ├── P1: 2 ├── P1: 1 └── Unblocked: 3 │
|
|
103
|
+
│ ├── P2: 5 └── P2: 1 │
|
|
104
|
+
│ └── P3+: 5 │
|
|
105
|
+
│ │
|
|
106
|
+
│ Closed Today: 4 This Week: 18 │
|
|
107
|
+
│ │
|
|
108
|
+
└────────────────────────────────────────────────────┘
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
IN PROGRESS
|
|
112
|
+
━━━━━━━━━━━
|
|
113
|
+
ID │ Priority │ Title │ Agent │ Age
|
|
114
|
+
─────────┼──────────┼──────────────────────────┼──────────┼────────
|
|
115
|
+
bd-abc12 │ P0 │ Fix auth regression │ build │ 2h
|
|
116
|
+
bd-def34 │ P1 │ Add user dashboard │ build │ 1d
|
|
117
|
+
bd-ghi56 │ P2 │ Refactor logging │ build │ 3h
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
READY TO START
|
|
121
|
+
━━━━━━━━━━━━━━
|
|
122
|
+
ID │ Priority │ Title │ Blocked By
|
|
123
|
+
─────────┼──────────┼──────────────────────────┼───────────
|
|
124
|
+
bd-xyz11 │ P1 │ Add notifications │ -
|
|
125
|
+
bd-xyz22 │ P2 │ Update API docs │ -
|
|
126
|
+
bd-xyz33 │ P2 │ Add analytics │ bd-abc12
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
MESSAGES
|
|
130
|
+
━━━━━━━━
|
|
131
|
+
[If unread messages exist:]
|
|
132
|
+
📬 3 unread messages
|
|
133
|
+
|
|
134
|
+
From │ Subject │ Time
|
|
135
|
+
────────────┼──────────────────────────────────┼────────
|
|
136
|
+
build-1 │ Need API spec for dashboard │ 2h ago
|
|
137
|
+
review │ Tests failing on staging │ 4h ago
|
|
138
|
+
build-2 │ Migration complete │ 1d ago
|
|
139
|
+
|
|
140
|
+
[If no messages:]
|
|
141
|
+
📭 No unread messages
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
FILE LOCKS
|
|
145
|
+
━━━━━━━━━━
|
|
146
|
+
[If locks exist:]
|
|
147
|
+
🔒 2 active locks
|
|
148
|
+
|
|
149
|
+
Path │ Owner │ Expires
|
|
150
|
+
───────────────────────────────┼───────────┼─────────
|
|
151
|
+
src/auth/service.ts │ build │ 8m
|
|
152
|
+
src/components/Dashboard.tsx │ build │ 15m
|
|
153
|
+
|
|
154
|
+
[If no locks:]
|
|
155
|
+
🔓 No active file locks
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
GIT STATUS
|
|
159
|
+
━━━━━━━━━━
|
|
160
|
+
Branch: feature/auth-refactor
|
|
161
|
+
Ahead: 2 commits
|
|
162
|
+
Behind: 0 commits
|
|
163
|
+
|
|
164
|
+
[If changes:]
|
|
165
|
+
Modified: 3 files
|
|
166
|
+
Staged: 1 file
|
|
167
|
+
Untracked: 2 files
|
|
168
|
+
|
|
169
|
+
[If clean:]
|
|
170
|
+
Working tree clean ✓
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
RECENT COMMITS
|
|
174
|
+
━━━━━━━━━━━━━━
|
|
175
|
+
abc1234 - fix: auth token validation (2h ago)
|
|
176
|
+
def5678 - feat: add dashboard skeleton (5h ago)
|
|
177
|
+
ghi9012 - refactor: extract user service (1d ago)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
SESSIONS TODAY
|
|
181
|
+
━━━━━━━━━━━━━━
|
|
182
|
+
Session │ Time │ Messages │ Files │ Focus
|
|
183
|
+
────────────┼──────────┼──────────┼───────┼──────────────────
|
|
184
|
+
ses_abc123 │ 2:30 PM │ 45 │ 12 │ Auth refactor
|
|
185
|
+
ses_def456 │ 11:00 AM │ 28 │ 8 │ Dashboard setup
|
|
186
|
+
ses_ghi789 │ 9:15 AM │ 15 │ 3 │ Bug triage
|
|
187
|
+
|
|
188
|
+
Total: 3 sessions, 88 messages, 23 files modified
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
TASK COMPLIANCE
|
|
192
|
+
━━━━━━━━━━━━━━━
|
|
193
|
+
[Check .beads/artifacts/<id>/ for each in-progress task]
|
|
194
|
+
|
|
195
|
+
Complete (spec + plan):
|
|
196
|
+
✓ bd-abc12: Fix auth regression
|
|
197
|
+
✓ bd-def34: Add user dashboard
|
|
198
|
+
|
|
199
|
+
Incomplete:
|
|
200
|
+
⚠ bd-ghi56: Missing plan.md
|
|
201
|
+
|
|
202
|
+
Compliance: 2/3 (67%)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
CONTEXT STATUS
|
|
206
|
+
━━━━━━━━━━━━━━
|
|
207
|
+
Current Session: ses_xyz999
|
|
208
|
+
Token Usage: ~85,000 (estimated)
|
|
209
|
+
Status: 🟡 Consider pruning soon
|
|
210
|
+
|
|
211
|
+
Recommendation: Prune completed tool outputs before next major task
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
REQUIRED ACTIONS
|
|
215
|
+
━━━━━━━━━━━━━━━━
|
|
216
|
+
Priority │ Action │ Command
|
|
217
|
+
─────────┼─────────────────────────────────────┼────────────────────
|
|
218
|
+
HIGH │ Reply to build-1 question │ bd-msg --to "build-1" --subj "Re:" --body "..."
|
|
219
|
+
HIGH │ Add plan for bd-ghi56 │ /plan bd-ghi56
|
|
220
|
+
MEDIUM │ Review 2 stale tasks │ /triage --stale
|
|
221
|
+
LOW │ Push 2 local commits │ git push
|
|
222
|
+
|
|
223
|
+
╚══════════════════════════════════════════════════════════════════════════╝
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Phase 4: Trend Analysis (--full mode)
|
|
227
|
+
|
|
228
|
+
If `--full` flag, add historical comparison:
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
TRENDS (7 days)
|
|
232
|
+
━━━━━━━━━━━━━━━
|
|
233
|
+
This Week Last Week Change
|
|
234
|
+
────────────────────────────────────────────────────
|
|
235
|
+
Tasks Completed 18 12 +50% ↑
|
|
236
|
+
Avg Cycle Time 2.3 days 3.1 days -26% ↑
|
|
237
|
+
SLA Compliance 95% 88% +7% ↑
|
|
238
|
+
Throughput/Day 2.6 1.7 +53% ↑
|
|
239
|
+
|
|
240
|
+
Velocity Chart:
|
|
241
|
+
Mon ████████ 8
|
|
242
|
+
Tue ██████ 6
|
|
243
|
+
Wed ████ 4
|
|
244
|
+
Thu ██████ 6
|
|
245
|
+
Fri ██████████ 10
|
|
246
|
+
└──────────────────→
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Phase 5: Session Insights
|
|
250
|
+
|
|
251
|
+
### Context Health
|
|
252
|
+
|
|
253
|
+
```typescript
|
|
254
|
+
// Estimate current context usage
|
|
255
|
+
const contextWarnings = [];
|
|
256
|
+
|
|
257
|
+
if (estimatedTokens > 120000) {
|
|
258
|
+
contextWarnings.push("⚠️ High token usage - consider new session");
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if (sessionDuration > 3 * 60 * 60 * 1000) {
|
|
262
|
+
// 3 hours
|
|
263
|
+
contextWarnings.push("⚠️ Long session - context may be degraded");
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (toolCallCount > 200) {
|
|
267
|
+
contextWarnings.push("⚠️ Many tool calls - prune old outputs");
|
|
268
|
+
}
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Incomplete Sessions
|
|
272
|
+
|
|
273
|
+
```typescript
|
|
274
|
+
// Check for sessions with incomplete work
|
|
275
|
+
const incompleteSessions = recentSessions.filter(
|
|
276
|
+
(s) => !s.hasHandoff && !s.summary?.includes("completed"),
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
if (incompleteSessions.length > 0) {
|
|
280
|
+
console.log("Incomplete work from previous sessions:");
|
|
281
|
+
for (const s of incompleteSessions) {
|
|
282
|
+
console.log(`- ${s.id}: ${s.lastMessage}`);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## Phase 6: CI/CD Status (if available)
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
# GitHub Actions
|
|
291
|
+
gh run list --limit 3 --json status,conclusion,name,createdAt
|
|
292
|
+
|
|
293
|
+
# Or check for common CI files
|
|
294
|
+
ls .github/workflows/ 2>/dev/null
|
|
295
|
+
cat .github/workflows/*.yml | grep -A5 "name:"
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
**Output:**
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
CI/CD STATUS
|
|
302
|
+
━━━━━━━━━━━━
|
|
303
|
+
Pipeline │ Status │ Time
|
|
304
|
+
────────────────┼───────────┼─────────
|
|
305
|
+
main │ ✓ Passing │ 15m ago
|
|
306
|
+
feature/auth │ ✗ Failed │ 2h ago
|
|
307
|
+
staging-deploy │ ✓ Passing │ 1d ago
|
|
308
|
+
|
|
309
|
+
Failed Check: feature/auth
|
|
310
|
+
└── Jest tests: 2 failures in auth.test.ts
|
|
311
|
+
└── Fix: /implement bd-abc12 (related task)
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## Examples
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
/status # Quick overview
|
|
318
|
+
/status --full # Include trends and history
|
|
319
|
+
/status --health # Focus on health metrics
|
|
320
|
+
/status --sessions # Focus on session activity
|
|
321
|
+
/status --git # Focus on git state
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
## Integration
|
|
325
|
+
|
|
326
|
+
Based on status, suggest next actions:
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
RECOMMENDED NEXT STEPS
|
|
330
|
+
━━━━━━━━━━━━━━━━━━━━━━
|
|
331
|
+
|
|
332
|
+
Based on current status:
|
|
333
|
+
|
|
334
|
+
1. High Priority Messages:
|
|
335
|
+
→ Reply to build-1: bd-msg --to "build-1" --subj "Re: API spec" --body "..."
|
|
336
|
+
|
|
337
|
+
2. Continue In-Progress Work:
|
|
338
|
+
→ /implement bd-abc12 (P0, 2h old)
|
|
339
|
+
|
|
340
|
+
3. Start Ready Tasks:
|
|
341
|
+
→ /start bd-xyz11 (P1, unblocked)
|
|
342
|
+
|
|
343
|
+
4. Session Maintenance:
|
|
344
|
+
→ Consider /handoff if switching tasks
|
|
345
|
+
→ Prune old tool outputs to reduce context
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
## Caching
|
|
349
|
+
|
|
350
|
+
For performance, cache expensive checks:
|
|
351
|
+
|
|
352
|
+
```typescript
|
|
353
|
+
// Cache health check for 5 minutes
|
|
354
|
+
const healthCacheKey = `health_${(Date.now() / (5 * 60 * 1000)) | 0}`;
|
|
355
|
+
|
|
356
|
+
// Cache CI status for 10 minutes
|
|
357
|
+
const ciCacheKey = `ci_${(Date.now() / (10 * 60 * 1000)) | 0}`;
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
## Error States
|
|
361
|
+
|
|
362
|
+
Handle gracefully:
|
|
363
|
+
|
|
364
|
+
```
|
|
365
|
+
[If beads unavailable:]
|
|
366
|
+
⚠️ Beads database not initialized
|
|
367
|
+
Run: bd_init() to connect
|
|
368
|
+
|
|
369
|
+
[If git not available:]
|
|
370
|
+
⚠️ Not a git repository
|
|
371
|
+
Run: git init
|
|
372
|
+
|
|
373
|
+
[If CI check fails:]
|
|
374
|
+
⚠️ CI status unavailable
|
|
375
|
+
Check: GitHub Actions permissions
|
|
376
|
+
```
|