pikakit 1.0.20 → 1.0.21

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.
@@ -76,47 +76,91 @@ async function showCommands() {
76
76
  step(c.dim("Example: kit pikakit/agent-skills#react-patterns"));
77
77
  stepLine();
78
78
 
79
+ // Basic Commands (Essential)
80
+ step(c.bold(c.green("Essential Commands")));
79
81
  step(c.cyan("list") + c.dim(" List installed skills"));
80
- step(c.cyan("uninstall") + c.dim(" Remove skill(s) (interactive)"));
81
- step(c.cyan("uninstall all") + c.dim(" Remove everything (automatic)"));
82
+ step(c.cyan("uninstall") + c.dim(" Remove skill(s) (interactive)"));
83
+ step(c.cyan("init") + c.dim(" Initialize skills directory"));
84
+ stepLine();
85
+
86
+ // Advanced Commands (collapsed by default)
87
+ step(c.bold(c.yellow("Advanced Commands")));
82
88
  step(c.cyan("update <skill>") + c.dim(" Update a skill"));
83
89
  step(c.cyan("verify") + c.dim(" Verify checksums"));
84
90
  step(c.cyan("doctor") + c.dim(" Check health"));
85
91
  step(c.cyan("lock") + c.dim(" Generate skill-lock.json"));
86
- step(c.cyan("init") + c.dim(" Initialize skills directory"));
87
- step(c.cyan("validate [skill]") + c.dim(" Validate against Antigravity spec"));
92
+ stepLine();
93
+
94
+ // Developer Commands
95
+ step(c.bold(c.magenta("Developer Commands")));
96
+ step(c.cyan("validate [skill]") + c.dim(" Validate against spec"));
88
97
  step(c.cyan("analyze <skill>") + c.dim(" Analyze skill structure"));
89
98
  step(c.cyan("cache [info|clear]") + c.dim(" Manage cache"));
90
99
  step(c.cyan("info <skill>") + c.dim(" Show skill info"));
91
100
 
92
101
  stepLine();
93
102
 
94
- // Interactive command selection
103
+ // Interactive command selection - only essential commands
95
104
  const executeCmd = await select({
96
105
  message: "Execute a command?",
97
106
  options: [
107
+ // Essential (most used)
98
108
  { value: "list", label: "list", hint: "List installed skills" },
99
- { value: "doctor", label: "doctor", hint: "Check health" },
100
- { value: "verify", label: "verify", hint: "Verify checksums" },
101
109
  { value: "uninstall", label: "uninstall", hint: "Interactive removal" },
102
- { value: "lock", label: "lock", hint: "Generate lockfile" },
103
110
  { value: "init", label: "init", hint: "Initialize directory" },
111
+ // Separator
112
+ { value: "advanced", label: "→ Show advanced...", hint: "More options" },
104
113
  { value: "none", label: "← Back", hint: "Return to topics" }
105
114
  ]
106
115
  });
107
116
 
108
- if (!isCancel(executeCmd) && executeCmd !== "none") {
117
+ if (isCancel(executeCmd) || executeCmd === "none") {
118
+ return;
119
+ }
120
+
121
+ // Handle advanced submenu
122
+ if (executeCmd === "advanced") {
109
123
  stepLine();
110
- step(c.cyan(`Running: kit ${executeCmd}`));
124
+ const advCmd = await select({
125
+ message: "Advanced commands",
126
+ options: [
127
+ { value: "doctor", label: "doctor", hint: "Check health" },
128
+ { value: "verify", label: "verify", hint: "Verify checksums" },
129
+ { value: "lock", label: "lock", hint: "Generate lockfile" },
130
+ { value: "validate", label: "validate", hint: "Validate skill" },
131
+ { value: "analyze", label: "analyze", hint: "Analyze structure" },
132
+ { value: "cache", label: "cache", hint: "Manage cache" },
133
+ { value: "none", label: "← Back", hint: "Return" }
134
+ ]
135
+ });
136
+
137
+ if (isCancel(advCmd) || advCmd === "none") {
138
+ return;
139
+ }
140
+
141
+ stepLine();
142
+ step(c.cyan(`Running: kit ${advCmd}`));
111
143
  stepLine();
112
144
 
113
- // Dynamic import and execute command
114
145
  try {
115
- const commandModule = await import(`./${executeCmd}.js`);
146
+ const commandModule = await import(`./${advCmd}.js`);
116
147
  await commandModule.run();
117
148
  } catch (err) {
118
- step(c.red(`Command not yet implemented: ${executeCmd}`));
149
+ step(c.red(`Command not yet implemented: ${advCmd}`));
119
150
  }
151
+ return;
152
+ }
153
+
154
+ stepLine();
155
+ step(c.cyan(`Running: kit ${executeCmd}`));
156
+ stepLine();
157
+
158
+ // Dynamic import and execute command
159
+ try {
160
+ const commandModule = await import(`./${executeCmd}.js`);
161
+ await commandModule.run();
162
+ } catch (err) {
163
+ step(c.red(`Command not yet implemented: ${executeCmd}`));
120
164
  }
121
165
  }
122
166
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pikakit",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
5
5
  "license": "MIT",
6
6
  "author": "pikakit <pikakit@gmail.com>",