huhaa-myskills 0.2.5 → 0.2.6

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.
@@ -325,7 +325,12 @@ async function cmdSync() {
325
325
  }
326
326
 
327
327
  async function syncToEditors(skills, editors) {
328
- const supported = ['cursor', 'vscode', 'windsurf', 'zed', 'neovim', 'helix', 'sublime', 'vim', 'emacs'];
328
+ const supported = [
329
+ 'cursor', 'vscode', 'vscode-insiders', 'windsurf', 'zed', 'helix',
330
+ 'neovim', 'vim', 'emacs', 'sublime', 'sublime4', 'textmate',
331
+ 'bbedit', 'atom', 'kate', 'gedit', 'jetbrains', 'openclaw',
332
+ 'herems', 'trae', 'trae-cn', 'codex', 'claude'
333
+ ];
329
334
  const validEditors = editors.filter(e => supported.includes(e));
330
335
 
331
336
  if (validEditors.length === 0) {
@@ -368,19 +373,35 @@ async function interactiveSync(skills) {
368
373
 
369
374
  const question = (prompt) => new Promise(resolve => rl.question(prompt, resolve));
370
375
 
376
+ const allEditors = [
377
+ 'cursor', 'vscode', 'vscode-insiders', 'windsurf', 'zed', 'helix',
378
+ 'neovim', 'vim', 'emacs', 'sublime', 'sublime4', 'textmate',
379
+ 'bbedit', 'atom', 'kate', 'gedit', 'jetbrains', 'openclaw',
380
+ 'herems', 'trae', 'trae-cn', 'codex', 'claude'
381
+ ];
382
+
371
383
  console.log(`\n[sync] found ${skills.length} skills`);
372
384
  console.log('\nSupported editors:');
373
- console.log(' [1] cursor [2] vscode [3] windsurf');
374
- console.log(' [4] zed [5] neovim [6] helix');
375
- console.log(' [7] sublime [8] vim [9] emacs');
376
- console.log(' [0] all editors');
377
- console.log(' [q] quit\n');
378
-
379
- const editorMap = {
380
- '1': 'cursor', '2': 'vscode', '3': 'windsurf',
381
- '4': 'zed', '5': 'neovim', '6': 'helix',
382
- '7': 'sublime', '8': 'vim', '9': 'emacs'
383
- };
385
+
386
+ // Display editors in 3 columns
387
+ for (let i = 0; i < allEditors.length; i += 3) {
388
+ const line = [];
389
+ for (let j = 0; j < 3; j++) {
390
+ const idx = i + j + 1;
391
+ const editor = allEditors[i + j];
392
+ if (editor) {
393
+ line.push(`[${idx.toString().padEnd(2)}] ${editor.padEnd(16)}`);
394
+ }
395
+ }
396
+ console.log(' ' + line.join(' '));
397
+ }
398
+
399
+ console.log(' [0] all editors [q] quit\n');
400
+
401
+ const editorMap = {};
402
+ allEditors.forEach((editor, i) => {
403
+ editorMap[(i + 1).toString()] = editor;
404
+ });
384
405
 
385
406
  const input = await question('Select editors (0/1/2/... or q): ');
386
407
  rl.close();
@@ -392,7 +413,7 @@ async function interactiveSync(skills) {
392
413
 
393
414
  let editors = [];
394
415
  if (input === '0') {
395
- editors = Object.values(editorMap);
416
+ editors = allEditors;
396
417
  } else {
397
418
  const selected = input.split(/[,\s]+/).filter(s => s);
398
419
  editors = selected.map(s => editorMap[s]).filter(Boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huhaa-myskills",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "private": false,
5
5
  "description": "Local skill / plugin / MCP aggregation hub. Browse all your AI agent skills at http://localhost:11520.",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "init": "node bin/huhaa-myskills.mjs init",
37
37
  "purge": "node bin/huhaa-myskills.mjs purge",
38
38
  "dev": "node bin/huhaa-myskills.mjs dev",
39
- "sync": "bash scripts/sync-skills.sh",
39
+ "sync": "node bin/huhaa-myskills.mjs sync",
40
40
  "build:web": "node scripts/build-web.mjs",
41
41
  "test": "node --test packages/scanner/test/*.test.mjs packages/server/test/*.test.mjs",
42
42
  "verify": "node scripts/verify.mjs",
@@ -174,7 +174,7 @@ find_huhaa_root() {
174
174
  fi
175
175
 
176
176
  local script_dir
177
- script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
177
+ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
178
178
 
179
179
  if [[ -f "$script_dir/package.json" ]]; then
180
180
  echo "$script_dir"