@pi-unipi/command-enchantment 0.1.9 → 2.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/constants.ts +28 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/command-enchantment",
3
- "version": "0.1.9",
3
+ "version": "2.0.1",
4
4
  "description": "Enhanced TUI autocomplete for /unipi:* commands — colored, sorted, and grouped by package",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/constants.ts CHANGED
@@ -32,6 +32,7 @@ export const PACKAGE_ORDER: string[] = [
32
32
  "footer",
33
33
  "updater",
34
34
  "input-shortcuts",
35
+ "cocoindex",
35
36
  ];
36
37
 
37
38
  // ─── Package Colors ──────────────────────────────────────────────────
@@ -52,10 +53,11 @@ export const PACKAGE_COLORS: Record<string, string> = {
52
53
  footer: `${ESC}[34m`, // Blue
53
54
  updater: `${ESC}[93m`, // Bright Yellow
54
55
  "input-shortcuts": `${ESC}[95m`, // Bright Magenta
56
+ cocoindex: `${ESC}[97m`, // Bright White
55
57
  };
56
58
 
57
59
  // ─── Command Registry ────────────────────────────────────────────────
58
- /** Mapping of full command name → package name (58 verified commands) */
60
+ /** Mapping of full command name → package name (80 verified commands) */
59
61
  export const COMMAND_REGISTRY: Record<string, string> = {
60
62
  // workflow (20 commands)
61
63
  "unipi:brainstorm": "workflow",
@@ -79,8 +81,9 @@ export const COMMAND_REGISTRY: Record<string, string> = {
79
81
  "unipi:chore-create": "workflow",
80
82
  "unipi:chore-execute": "workflow",
81
83
 
82
- // ralph (2 commands)
84
+ // ralph (3 commands)
83
85
  "unipi:ralph": "ralph",
86
+ "unipi:ralph-start": "ralph",
84
87
  "unipi:ralph-stop": "ralph",
85
88
 
86
89
  // memory (7 commands)
@@ -99,7 +102,7 @@ export const COMMAND_REGISTRY: Record<string, string> = {
99
102
  "unipi:mcp-settings": "mcp",
100
103
  "unipi:mcp-reload": "mcp",
101
104
 
102
- // utility (10 commands)
105
+ // utility (11 commands)
103
106
  "unipi:continue": "utility",
104
107
  "unipi:reload": "utility",
105
108
  "unipi:status": "utility",
@@ -123,16 +126,21 @@ export const COMMAND_REGISTRY: Record<string, string> = {
123
126
  "unipi:web-settings": "web-api",
124
127
  "unipi:web-cache-clear": "web-api",
125
128
 
126
- // compact (9 commands)
129
+ // compact (7 commands)
130
+ "unipi:lossless-compact": "compact",
127
131
  "unipi:compact": "compact",
128
132
  "unipi:compact-recall": "compact",
129
133
  "unipi:compact-stats": "compact",
130
134
  "unipi:compact-doctor": "compact",
131
135
  "unipi:compact-settings": "compact",
132
136
  "unipi:compact-preset": "compact",
133
- "unipi:compact-index": "compact",
134
- "unipi:compact-search": "compact",
135
- "unipi:compact-purge": "compact",
137
+
138
+ // cocoindex (5 commands)
139
+ "unipi:cocoindex-update": "cocoindex",
140
+ "unipi:cocoindex-status": "cocoindex",
141
+ "unipi:cocoindex-init": "cocoindex",
142
+ "unipi:cocoindex-search": "cocoindex",
143
+ "unipi:cocoindex-settings": "cocoindex",
136
144
 
137
145
  // milestone (2 commands)
138
146
  "unipi:milestone-onboard": "milestone",
@@ -146,13 +154,14 @@ export const COMMAND_REGISTRY: Record<string, string> = {
146
154
  "unipi:notify-test": "notify",
147
155
  "unipi:notify-recap-model": "notify",
148
156
 
149
- // kanboard (3 commands)
157
+ // kanboard (2 commands)
150
158
  "unipi:kanboard": "kanboard",
151
159
  "unipi:kanboard-doctor": "kanboard",
152
160
 
153
- // footer (2 commands)
161
+ // footer (3 commands)
154
162
  "unipi:footer": "footer",
155
163
  "unipi:footer-settings": "footer",
164
+ "unipi:footer-help": "footer",
156
165
 
157
166
  // updater (3 commands)
158
167
  "unipi:readme": "updater",
@@ -187,7 +196,8 @@ export const COMMAND_DESCRIPTIONS: Record<string, string> = {
187
196
  "unipi:chore-create": "Create reusable chore definition",
188
197
  "unipi:chore-execute": "Execute a saved chore",
189
198
 
190
- "unipi:ralph": "Ralph loop — start/resume coding session",
199
+ "unipi:ralph": "Ralph loop — start/resume/status commands",
200
+ "unipi:ralph-start": "Start a ralph loop for the current task",
191
201
  "unipi:ralph-stop": "Stop the active ralph loop",
192
202
 
193
203
  "unipi:memory-process": "Process and store conversation learnings",
@@ -226,15 +236,18 @@ export const COMMAND_DESCRIPTIONS: Record<string, string> = {
226
236
  "unipi:web-settings": "Configure web search settings",
227
237
  "unipi:web-cache-clear": "Clear web search cache",
228
238
 
229
- "unipi:compact": "Compact context window",
239
+ "unipi:lossless-compact": "Immediate zero-LLM compaction",
240
+ "unipi:compact": "(DEPRECATED) Use /unipi:lossless-compact instead",
230
241
  "unipi:compact-recall": "Recall a compacted session",
231
242
  "unipi:compact-stats": "Show compaction statistics",
232
243
  "unipi:compact-doctor": "Diagnose compaction issues",
233
244
  "unipi:compact-settings": "Configure compaction settings",
234
245
  "unipi:compact-preset": "Manage compaction presets",
235
- "unipi:compact-index": "Show compaction index",
236
- "unipi:compact-search": "Search compacted sessions",
237
- "unipi:compact-purge": "Purge old compacted sessions",
246
+ "unipi:cocoindex-update": "Run CocoIndex update to index project",
247
+ "unipi:cocoindex-status": "Show CocoIndex indexing status",
248
+ "unipi:cocoindex-init": "Initialize CocoIndex pipeline",
249
+ "unipi:cocoindex-search": "Search indexed codebase semantically",
250
+ "unipi:cocoindex-settings": "Show CocoIndex configuration",
238
251
 
239
252
  "unipi:notify-settings": "Configure notification platforms and events",
240
253
  "unipi:notify-set-gotify": "Set up Gotify push notifications",
@@ -248,6 +261,7 @@ export const COMMAND_DESCRIPTIONS: Record<string, string> = {
248
261
 
249
262
  "unipi:footer": "Toggle footer or switch preset",
250
263
  "unipi:footer-settings": "Open footer settings — toggle groups and segments",
264
+ "unipi:footer-help": "Show footer segment guide",
251
265
 
252
266
  "unipi:readme": "Browse package README files",
253
267
  "unipi:changelog": "Browse changelog (Keep a Changelog format)",