@pi-unipi/command-enchantment 0.1.6 → 0.1.8

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": "@pi-unipi/command-enchantment",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
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
@@ -29,6 +29,9 @@ export const PACKAGE_ORDER: string[] = [
29
29
  "compact",
30
30
  "notify",
31
31
  "kanboard",
32
+ "footer",
33
+ "updater",
34
+ "input-shortcuts",
32
35
  ];
33
36
 
34
37
  // ─── Package Colors ──────────────────────────────────────────────────
@@ -46,6 +49,9 @@ export const PACKAGE_COLORS: Record<string, string> = {
46
49
  compact: `${ESC}[37m`, // White
47
50
  notify: `${ESC}[96m`, // Bright Cyan
48
51
  kanboard: `${ESC}[92m`, // Bright Green
52
+ footer: `${ESC}[34m`, // Blue
53
+ updater: `${ESC}[93m`, // Bright Yellow
54
+ "input-shortcuts": `${ESC}[95m`, // Bright Magenta
49
55
  };
50
56
 
51
57
  // ─── Command Registry ────────────────────────────────────────────────
@@ -143,6 +149,18 @@ export const COMMAND_REGISTRY: Record<string, string> = {
143
149
  // kanboard (3 commands)
144
150
  "unipi:kanboard": "kanboard",
145
151
  "unipi:kanboard-doctor": "kanboard",
152
+
153
+ // footer (2 commands)
154
+ "unipi:footer": "footer",
155
+ "unipi:footer-settings": "footer",
156
+
157
+ // updater (3 commands)
158
+ "unipi:readme": "updater",
159
+ "unipi:changelog": "updater",
160
+ "unipi:updater-settings": "updater",
161
+
162
+ // input-shortcuts (1 command)
163
+ "unipi:stash-settings": "input-shortcuts",
146
164
  };
147
165
 
148
166
  // ─── Description Map ─────────────────────────────────────────────────
@@ -227,6 +245,15 @@ export const COMMAND_DESCRIPTIONS: Record<string, string> = {
227
245
 
228
246
  "unipi:milestone-onboard": "Create MILESTONES.md from existing workflow docs",
229
247
  "unipi:milestone-update": "Sync MILESTONES.md with completed work",
248
+
249
+ "unipi:footer": "Toggle footer or switch preset",
250
+ "unipi:footer-settings": "Open footer settings — toggle groups and segments",
251
+
252
+ "unipi:readme": "Browse package README files",
253
+ "unipi:changelog": "Browse changelog (Keep a Changelog format)",
254
+ "unipi:updater-settings": "Configure updater — check interval and auto-update",
255
+
256
+ "unipi:stash-settings": "Open input shortcuts settings — customize keybindings",
230
257
  };
231
258
 
232
259
  // ─── Package Display Names ───────────────────────────────────────────
@@ -244,4 +271,7 @@ export const PACKAGE_LABELS: Record<string, string> = {
244
271
  compact: "compact",
245
272
  notify: "notify",
246
273
  kanboard: "kanboard",
274
+ footer: "footer",
275
+ updater: "updater",
276
+ "input-shortcuts": "input-shortcuts",
247
277
  };
package/src/settings.ts CHANGED
@@ -52,8 +52,8 @@ export function loadConfig(): CommandEnchantmentConfig {
52
52
  ...config,
53
53
  };
54
54
  }
55
- } catch (error) {
56
- console.error("[command-enchantment] Failed to load config:", error);
55
+ } catch {
56
+ // Silently ignore config load failure falls back to defaults.
57
57
  }
58
58
  return DEFAULT_CONFIG;
59
59
  }