@shipfast-ai/shipfast 0.4.0 → 0.4.1
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/commands/sf/status.md +29 -21
- package/package.json +1 -1
package/commands/sf/status.md
CHANGED
|
@@ -2,43 +2,51 @@
|
|
|
2
2
|
name: sf:status
|
|
3
3
|
description: "Show current progress, token usage, and brain stats."
|
|
4
4
|
allowed-tools:
|
|
5
|
-
- Read
|
|
6
5
|
- Bash
|
|
7
6
|
---
|
|
8
7
|
|
|
9
8
|
<objective>
|
|
10
|
-
Display
|
|
11
|
-
brain.db stats, and recent activity.
|
|
9
|
+
Display ShipFast status. Run these exact queries — do NOT modify them.
|
|
12
10
|
</objective>
|
|
13
11
|
|
|
14
12
|
<process>
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
Run this single command to gather all stats:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
sqlite3 .shipfast/brain.db "
|
|
18
|
+
SELECT 'nodes', COUNT(*) FROM nodes
|
|
19
|
+
UNION ALL SELECT 'edges', COUNT(*) FROM edges
|
|
20
|
+
UNION ALL SELECT 'decisions', COUNT(*) FROM decisions
|
|
21
|
+
UNION ALL SELECT 'learnings', COUNT(*) FROM learnings
|
|
22
|
+
UNION ALL SELECT 'tasks', COUNT(*) FROM tasks
|
|
23
|
+
UNION ALL SELECT 'checkpoints', COUNT(*) FROM checkpoints
|
|
24
|
+
UNION ALL SELECT 'hot_files', COUNT(*) FROM hot_files;
|
|
25
|
+
" 2>/dev/null || echo "brain.db not found — run shipfast init"
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Then run these for active/recent tasks:
|
|
17
29
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
30
|
+
```bash
|
|
31
|
+
sqlite3 .shipfast/brain.db "SELECT id, status, description FROM tasks WHERE status IN ('running','pending') ORDER BY created_at DESC LIMIT 5;" 2>/dev/null
|
|
32
|
+
sqlite3 .shipfast/brain.db "SELECT id, status, description, commit_sha FROM tasks WHERE status = 'passed' ORDER BY finished_at DESC LIMIT 5;" 2>/dev/null
|
|
33
|
+
sqlite3 .shipfast/brain.db "SELECT id, description FROM checkpoints ORDER BY created_at DESC LIMIT 5;" 2>/dev/null
|
|
34
|
+
```
|
|
23
35
|
|
|
24
|
-
|
|
36
|
+
Format the output as:
|
|
25
37
|
|
|
26
38
|
```
|
|
27
39
|
ShipFast Status
|
|
28
40
|
===============
|
|
29
41
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Active Tasks:
|
|
34
|
-
[task_id] [status] [description]
|
|
42
|
+
Brain:
|
|
43
|
+
[N] nodes | [N] edges | [N] decisions | [N] learnings | [N] hot files
|
|
35
44
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Brain: [N] files indexed | [N] symbols | [N] decisions | [N] learnings
|
|
40
|
-
|
|
41
|
-
Checkpoints: [N] available (/undo to rollback)
|
|
45
|
+
Active Tasks: [list or "none"]
|
|
46
|
+
Recent: [list or "none"]
|
|
47
|
+
Checkpoints: [N] available
|
|
42
48
|
```
|
|
43
49
|
|
|
50
|
+
Keep the output short. No extra commentary unless the brain is empty.
|
|
51
|
+
|
|
44
52
|
</process>
|
package/package.json
CHANGED