opencodekit 0.12.5 → 0.12.7

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 (44) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/template/.opencode/agent/build.md +54 -29
  3. package/dist/template/.opencode/agent/explore.md +27 -16
  4. package/dist/template/.opencode/agent/planner.md +103 -63
  5. package/dist/template/.opencode/agent/review.md +31 -23
  6. package/dist/template/.opencode/agent/rush.md +33 -23
  7. package/dist/template/.opencode/agent/scout.md +27 -19
  8. package/dist/template/.opencode/agent/vision.md +29 -19
  9. package/dist/template/.opencode/command/accessibility-check.md +1 -0
  10. package/dist/template/.opencode/command/analyze-mockup.md +1 -0
  11. package/dist/template/.opencode/command/analyze-project.md +2 -1
  12. package/dist/template/.opencode/command/brainstorm.md +2 -1
  13. package/dist/template/.opencode/command/design-audit.md +1 -0
  14. package/dist/template/.opencode/command/finish.md +39 -4
  15. package/dist/template/.opencode/command/implement.md +26 -6
  16. package/dist/template/.opencode/command/init.md +1 -0
  17. package/dist/template/.opencode/command/pr.md +28 -1
  18. package/dist/template/.opencode/command/research-ui.md +1 -0
  19. package/dist/template/.opencode/command/research.md +1 -0
  20. package/dist/template/.opencode/command/review-codebase.md +1 -0
  21. package/dist/template/.opencode/command/status.md +3 -2
  22. package/dist/template/.opencode/command/summarize.md +2 -1
  23. package/dist/template/.opencode/command/ui-review.md +1 -0
  24. package/dist/template/.opencode/memory/project/architecture.md +59 -6
  25. package/dist/template/.opencode/memory/project/commands.md +20 -164
  26. package/dist/template/.opencode/memory/user.md +24 -7
  27. package/dist/template/.opencode/opencode.json +496 -542
  28. package/dist/template/.opencode/package.json +1 -1
  29. package/dist/template/.opencode/skill/condition-based-waiting/example.ts +71 -65
  30. package/dist/template/.opencode/tool/memory-read.ts +57 -57
  31. package/dist/template/.opencode/tool/memory-update.ts +53 -53
  32. package/dist/template/.opencode/tsconfig.json +19 -19
  33. package/package.json +1 -1
  34. package/dist/template/.opencode/command.backup/analyze-project.md +0 -465
  35. package/dist/template/.opencode/command.backup/finish.md +0 -167
  36. package/dist/template/.opencode/command.backup/implement.md +0 -143
  37. package/dist/template/.opencode/command.backup/pr.md +0 -252
  38. package/dist/template/.opencode/command.backup/status.md +0 -376
  39. package/dist/template/.opencode/lib/lsp/client.ts +0 -614
  40. package/dist/template/.opencode/lib/lsp/config.ts +0 -199
  41. package/dist/template/.opencode/lib/lsp/constants.ts +0 -339
  42. package/dist/template/.opencode/lib/lsp/types.ts +0 -138
  43. package/dist/template/.opencode/lib/lsp/utils.ts +0 -190
  44. package/dist/template/.opencode/memory/project/SHELL_OUTPUT_MIGRATION_PLAN.md +0 -551
@@ -1,376 +0,0 @@
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
- ```