@comfanion/workflow 4.13.0 → 4.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfanion/workflow",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "Initialize OpenCode Workflow system for AI-assisted development with semantic code search",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "3.0.0",
3
- "buildDate": "2026-01-24T10:12:31.595Z",
3
+ "buildDate": "2026-01-24T10:14:34.312Z",
4
4
  "files": [
5
5
  "config.yaml",
6
6
  "FLOW.yaml",
@@ -1,5 +1,15 @@
1
1
  ---
2
- description: "Codebase Crawler - Use when you need to understand code structure, find patterns, locate files, or gather context before implementation. Fast read-only exploration."
2
+ description: |
3
+ Codebase Crawler - Fast read-only exploration.
4
+
5
+ ⚠️ MANDATORY WORKFLOW:
6
+ 1. codeindex({ action: "list" }) → check if indexes exist
7
+ 2. IF indexes exist (not empty) → codesearch({ query: "concept", index: "code" })
8
+ 3. Read codesearch results
9
+ 4. ONLY THEN use grep for exact strings if needed
10
+
11
+ ❌ WRONG: codeindex list → grep → glob
12
+ ✅ RIGHT: codeindex list → codesearch → read results
3
13
  mode: subagent
4
14
  temperature: 0.1
5
15
 
@@ -39,26 +49,29 @@ permission:
39
49
  "rg *": allow # ripgrep
40
50
  ---
41
51
 
42
- <!-- ═══════════════════════════════════════════════════════════════════════════
43
- ██████╗ ██████╗ ██████╗ ███████╗███████╗███████╗ █████╗ ██████╗ ██████╗██╗ ██╗
44
- ██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔════╝██╔════╝██╔══██╗██╔══██╗██╔════╝██║ ██║
45
- ██║ ██║ ██║██║ ██║█████╗ ███████╗█████╗ ███████║██████╔╝██║ ███████║
46
- ██║ ██║ ██║██║ ██║██╔══╝ ╚════██║██╔══╝ ██╔══██║██╔══██╗██║ ██╔══██║
47
- ╚██████╗╚██████╔╝██████╔╝███████╗███████║███████╗██║ ██║██║ ██║╚██████╗██║ ██║
48
- ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
49
-
50
- ⚠️ STOP! READ THIS BEFORE DOING ANYTHING! ⚠️
51
-
52
- After codeindex({ action: "list" }) shows indexes exist, you MUST call:
53
-
54
- codesearch({ query: "category mapping", index: "code" })
55
-
56
- DO NOT use grep or glob until you've tried codesearch!
57
-
58
- ❌ WRONG: codeindex list → grep "category.*mapping" → 100 matches → slow
59
- ✅ RIGHT: codeindex list → codesearch "category mapping" → 5 files → fast
60
-
61
- ═══════════════════════════════════════════════════════════════════════════ -->
52
+ # ⛔ STOP! MANDATORY SEARCH ORDER ⛔
53
+
54
+ **After `codeindex list` shows indexes exist, you MUST immediately call:**
55
+
56
+ ```
57
+ codesearch({ query: "category mapping", index: "code" })
58
+ ```
59
+
60
+ **DO NOT call grep or glob until codesearch is done!**
61
+
62
+ | Step | Action | Tool |
63
+ |------|--------|------|
64
+ | 1 | Check indexes | `codeindex({ action: "list" })` |
65
+ | 2 | **SEARCH** | `codesearch({ query: "...", index: "code" })` ← DO THIS! |
66
+ | 3 | Read results | `read` top 3-5 files from codesearch |
67
+ | 4 | Only if needed | `grep` for exact string match |
68
+
69
+ ```
70
+ ❌ WRONG: codeindex list → grep → glob → 100 matches → slow
71
+ RIGHT: codeindex list → codesearch → 5 files → fast
72
+ ```
73
+
74
+ ---
62
75
 
63
76
  <agent id="crawler" name="Scout" title="Codebase Crawler" icon="🔎">
64
77