@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.
@@ -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 the current ShipFast session status: tasks in progress, token budget usage,
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
- ## Gather Status
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
- 1. **Token Budget**: Query brain.db for token usage this session
19
- 2. **Active Tasks**: Query brain.db for tasks with status 'running' or 'pending'
20
- 3. **Recent Completions**: Last 5 completed tasks
21
- 4. **Brain Stats**: Count of nodes, edges, decisions, learnings
22
- 5. **Checkpoints**: List available rollback points
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
- ## Display
36
+ Format the output as:
25
37
 
26
38
  ```
27
39
  ShipFast Status
28
40
  ===============
29
41
 
30
- Token Budget: [used]/[budget] ([pct]%) [status bar]
31
- Session: [session_id]
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
- Recent:
37
- [task_id] passed [description] ([commit_sha])
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipfast-ai/shipfast",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Autonomous context-engineered development system. 5 agents, 12 commands, SQLite brain. 70-90% less tokens than alternatives.",
5
5
  "bin": {
6
6
  "shipfast": "bin/install.js"