@pi-unipi/command-enchantment 0.1.7 → 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.7",
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
@@ -30,6 +30,8 @@ export const PACKAGE_ORDER: string[] = [
30
30
  "notify",
31
31
  "kanboard",
32
32
  "footer",
33
+ "updater",
34
+ "input-shortcuts",
33
35
  ];
34
36
 
35
37
  // ─── Package Colors ──────────────────────────────────────────────────
@@ -48,6 +50,8 @@ export const PACKAGE_COLORS: Record<string, string> = {
48
50
  notify: `${ESC}[96m`, // Bright Cyan
49
51
  kanboard: `${ESC}[92m`, // Bright Green
50
52
  footer: `${ESC}[34m`, // Blue
53
+ updater: `${ESC}[93m`, // Bright Yellow
54
+ "input-shortcuts": `${ESC}[95m`, // Bright Magenta
51
55
  };
52
56
 
53
57
  // ─── Command Registry ────────────────────────────────────────────────
@@ -149,6 +153,14 @@ export const COMMAND_REGISTRY: Record<string, string> = {
149
153
  // footer (2 commands)
150
154
  "unipi:footer": "footer",
151
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",
152
164
  };
153
165
 
154
166
  // ─── Description Map ─────────────────────────────────────────────────
@@ -236,6 +248,12 @@ export const COMMAND_DESCRIPTIONS: Record<string, string> = {
236
248
 
237
249
  "unipi:footer": "Toggle footer or switch preset",
238
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",
239
257
  };
240
258
 
241
259
  // ─── Package Display Names ───────────────────────────────────────────
@@ -254,4 +272,6 @@ export const PACKAGE_LABELS: Record<string, string> = {
254
272
  notify: "notify",
255
273
  kanboard: "kanboard",
256
274
  footer: "footer",
275
+ updater: "updater",
276
+ "input-shortcuts": "input-shortcuts",
257
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
  }