universal-plugin-hub 1.0.12 → 1.0.25

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 (60) hide show
  1. package/README.md +33 -5
  2. package/README.zh.md +33 -5
  3. package/assets/Add-plugin-source.png +0 -0
  4. package/assets/MCP.png +0 -0
  5. package/assets/Plugin-management.png +0 -0
  6. package/assets/Plugins-official.png +0 -0
  7. package/assets/Skills.png +0 -0
  8. package/assets/fluent-3d/balance_scale_3d.png +0 -0
  9. package/assets/fluent-3d/bar_chart_3d.png +0 -0
  10. package/assets/fluent-3d/books_3d.png +0 -0
  11. package/assets/fluent-3d/brain_3d.png +0 -0
  12. package/assets/fluent-3d/briefcase_3d.png +0 -0
  13. package/assets/fluent-3d/card_file_box_3d.png +0 -0
  14. package/assets/fluent-3d/chart_increasing_3d.png +0 -0
  15. package/assets/fluent-3d/clapper_board_3d.png +0 -0
  16. package/assets/fluent-3d/clipboard_3d.png +0 -0
  17. package/assets/fluent-3d/cloud_3d.png +0 -0
  18. package/assets/fluent-3d/compass_3d.png +0 -0
  19. package/assets/fluent-3d/control_knobs_3d.png +0 -0
  20. package/assets/fluent-3d/desktop_computer_3d.png +0 -0
  21. package/assets/fluent-3d/framed_picture_3d.png +0 -0
  22. package/assets/fluent-3d/gear_3d.png +0 -0
  23. package/assets/fluent-3d/globe_with_meridians_3d.png +0 -0
  24. package/assets/fluent-3d/graduation_cap_3d.png +0 -0
  25. package/assets/fluent-3d/handshake_3d.png +0 -0
  26. package/assets/fluent-3d/identification_card_3d.png +0 -0
  27. package/assets/fluent-3d/input_latin_letters_3d.png +0 -0
  28. package/assets/fluent-3d/lady_beetle_3d.png +0 -0
  29. package/assets/fluent-3d/laptop_3d.png +0 -0
  30. package/assets/fluent-3d/link_3d.png +0 -0
  31. package/assets/fluent-3d/locked_3d.png +0 -0
  32. package/assets/fluent-3d/magnifying_glass_tilted_left_3d.png +0 -0
  33. package/assets/fluent-3d/manifest.json +221 -0
  34. package/assets/fluent-3d/memo_3d.png +0 -0
  35. package/assets/fluent-3d/microscope_3d.png +0 -0
  36. package/assets/fluent-3d/money_bag_3d.png +0 -0
  37. package/assets/fluent-3d/musical_notes_3d.png +0 -0
  38. package/assets/fluent-3d/notebook_3d.png +0 -0
  39. package/assets/fluent-3d/open_book_3d.png +0 -0
  40. package/assets/fluent-3d/puzzle_piece_3d.png +0 -0
  41. package/assets/fluent-3d/red_question_mark_3d.png +0 -0
  42. package/assets/fluent-3d/robot_3d.png +0 -0
  43. package/assets/fluent-3d/shield_3d.png +0 -0
  44. package/assets/fluent-3d/shopping_bags_3d.png +0 -0
  45. package/assets/fluent-3d/sparkles_3d.png +0 -0
  46. package/assets/fluent-3d/speech_balloon_3d.png +0 -0
  47. package/assets/fluent-3d/spiral_calendar_3d.png +0 -0
  48. package/assets/fluent-3d/ticket_3d.png +0 -0
  49. package/assets/fluent-3d/triangular_ruler_3d.png +0 -0
  50. package/assets/fluent-3d/world_map_3d.png +0 -0
  51. package/assets/licenses/fluent-emoji.txt +21 -0
  52. package/client/client.js +496 -1122
  53. package/package.json +13 -3
  54. package/screenshots.json +7 -0
  55. package/src/icons.js +5 -1
  56. package/src/index.js +26 -2
  57. package/src/install.js +3 -0
  58. package/src/routes.js +54 -6
  59. package/src/skills.js +365 -0
  60. package/assets/hero.png +0 -0
package/client/client.js CHANGED
@@ -6,6 +6,17 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
6
6
 
7
7
  const React = require("react");
8
8
  const { createElement: h, useState, useEffect, useCallback, useMemo, useRef, useLayoutEffect } = React;
9
+ const SKILL_MARKDOWN_LABELS = { code: { copyLabel: "复制", copiedLabel: "已复制", toolbarLabels: { codeLabel: "代码", wrapLabel: "自动换行", unwrapLabel: "不换行" } }, footnotes: "注释" };
10
+ // The host's own Markdown and path primitives are the preferred renderer
11
+ // for a skill body, but they are an internal DSH package with no
12
+ // compatibility promise: requiring it unguarded would take the whole
13
+ // panel down on a host that renames or drops it. Fall back to this
14
+ // plugin's own Markdown renderer and a plain path label instead.
15
+ const NativeUI = (() => {
16
+ try { return require("@deepseek-ai/dsh-client-ui-primitives") || {}; } catch { return {}; }
17
+ })();
18
+ const NativeMarkdownText = NativeUI.MarkdownText || (({ text }) => h("div", { className: "cpm-skill-content-native" }, h(SmartMarkdown, { text: String(text ?? "") })));
19
+ const NativePathLabel = NativeUI.PathLabel || (({ path }) => h("span", { "data-path-label": true }, path));
9
20
  // Manifests spell a remote transport three ways (`http`, `sse`,
10
21
  // `streamable-http`). The editor only has two modes; anything unrecognised
11
22
  // used to fall through to the stdio form and show an empty local command
@@ -174,6 +185,9 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
174
185
  return { pending, start, cancel };
175
186
  }
176
187
  const useSafeLayoutEffect = typeof useLayoutEffect === "function" ? useLayoutEffect : useEffect;
188
+ // Two 476px columns plus the 48px gap. The grid stops growing here even in
189
+ // a wider panel; keep it in one place so the search row can match it.
190
+ const GRID_COLUMNS_MAX = 2 * 476 + 48;
177
191
 
178
192
  // ────────────────────────────── Styles ──────────────────────────────
179
193
  const CSS = `
@@ -302,9 +316,14 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
302
316
  flex-direction: column;
303
317
  align-items: center;
304
318
  gap: 12px;
319
+ /* 24px inset, matching the list's own padding. The search row's width is
320
+ then pinned to the columns' measured span (--cpm-column-span), so it
321
+ lines up with them whatever the platform's scrollbar width is — an
322
+ arithmetic guess at the gutter kept coming up short. */
305
323
  padding: 14px 24px 10px 24px;
306
324
  background: var(--cpm-bg);
307
325
  width: 100%;
326
+ box-sizing: border-box;
308
327
  }
309
328
  .cpm-topbar::after {
310
329
  content: "";
@@ -318,7 +337,10 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
318
337
  display: flex;
319
338
  align-items: center;
320
339
  width: 100%;
321
- max-width: 1000px;
340
+ /* The measured span of the two list columns, so the search box ends where
341
+ they do instead of where an arithmetic guess about the scrollbar says.
342
+ Falls back to the shared 1000px baseline before the first measurement. */
343
+ max-width: var(--cpm-column-span, 1000px);
322
344
  }
323
345
  .cpm-search {
324
346
  flex: 1;
@@ -705,10 +727,22 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
705
727
  .cpm-grid, .cpm-grid-container {
706
728
  flex: 1;
707
729
  overflow-y: auto;
708
- padding: 16px 24px 28px 24px;
730
+ /* The top bar's last row already ends ~10px above the 1010px rule, so the
731
+ full 16px grid inset left the first card floating well clear of it. */
732
+ padding: 10px 24px 28px 24px;
709
733
  transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
710
734
  box-sizing: border-box;
711
735
  width: 100%;
736
+ /* Reserve the scrollbar track on every list surface. Centered columns are
737
+ laid out inside the content box, so without this a source whose list is
738
+ short enough to be scrollbar-free sits a scrollbar-width to the right of
739
+ the others and every tab switch shifts the whole grid sideways.
740
+ "both-edges" is required, not cosmetic: a one-sided stable gutter is
741
+ taken from the inline-end edge only, which pushes the centered columns
742
+ half a scrollbar left of the top bar's 1000px baseline (and of the 1010px
743
+ rule under it). Reserving both edges keeps the content box symmetric and
744
+ the columns back on that same axis. */
745
+ scrollbar-gutter: stable both-edges;
712
746
  }
713
747
  .cpm-grid {
714
748
  display: grid;
@@ -892,6 +926,15 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
892
926
  background: #3f3f46;
893
927
  border-color: rgba(255, 255, 255, 0.3);
894
928
  }
929
+ /* The row's trailing control owns one fixed slot. A two-character pill
930
+ measures ~43px on its own and the row's switch is 50px, so right-aligning
931
+ alone still left the description's ellipsis 7px short on plugin rows. Giving
932
+ both the same width pins every source's text column to one edge. */
933
+ .cpm-card > :last-child {
934
+ flex: 0 0 auto;
935
+ margin-left: auto;
936
+ min-width: 50px;
937
+ }
895
938
  .cpm-card-pill-installed {
896
939
  background: #ffffff;
897
940
  border-color: rgba(16, 185, 129, 0.35);
@@ -940,6 +983,12 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
940
983
  flex-direction: column;
941
984
  align-items: center;
942
985
  box-sizing: border-box;
986
+ /* Reserve the scrollbar track on every detail surface, so the centered
987
+ content column — and the Back link at its left edge — stays put whether
988
+ or not the open page happens to overflow. Both edges, so the column keeps
989
+ the same axis as the list grid and the top bar rather than sitting half a
990
+ scrollbar to the left of them. */
991
+ scrollbar-gutter: stable both-edges;
943
992
  }
944
993
  .cpm-detail > * {
945
994
  width: 100%;
@@ -949,17 +998,20 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
949
998
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 60px), rgba(0,0,0,0.98) calc(100% - 50px), rgba(0,0,0,0.92) calc(100% - 40px), rgba(0,0,0,0.76) calc(100% - 30px), rgba(0,0,0,0.52) calc(100% - 20px), rgba(0,0,0,0.28) calc(100% - 12px), rgba(0,0,0,0.12) calc(100% - 6px), rgba(0,0,0,0.03) calc(100% - 2px), transparent 100%);
950
999
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 60px), rgba(0,0,0,0.98) calc(100% - 50px), rgba(0,0,0,0.92) calc(100% - 40px), rgba(0,0,0,0.76) calc(100% - 30px), rgba(0,0,0,0.52) calc(100% - 20px), rgba(0,0,0,0.28) calc(100% - 12px), rgba(0,0,0,0.12) calc(100% - 6px), rgba(0,0,0,0.03) calc(100% - 2px), transparent 100%);
951
1000
  }
1001
+ /* One Back affordance for every detail surface: font, size and rhythm are
1002
+ pinned here so a detail page's own typography cannot restyle it. */
952
1003
  .cpm-back {
953
1004
  color: var(--cpm-muted);
954
1005
  cursor: pointer;
1006
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
955
1007
  font-size: 13.5px;
1008
+ font-weight: 500;
956
1009
  border: none;
957
1010
  background: none;
958
1011
  padding: 0 0 16px 0;
959
1012
  display: inline-flex;
960
1013
  align-items: center;
961
1014
  gap: 4px;
962
- font-weight: 500;
963
1015
  }
964
1016
  .cpm-back:hover { color: var(--cpm-text); }
965
1017
  .cpm-title-row {
@@ -1167,6 +1219,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
1167
1219
  flex-direction: column;
1168
1220
  align-items: center;
1169
1221
  box-sizing: border-box;
1222
+ scrollbar-gutter: stable both-edges;
1170
1223
  }
1171
1224
  .cpm-manage > * {
1172
1225
  width: 100%;
@@ -1207,10 +1260,16 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
1207
1260
  }
1208
1261
  .cpm-meta .v { color: var(--cpm-text); font-weight: 500; }
1209
1262
  .cpm-meta .v a { color: var(--cpm-accent); text-decoration: none; }
1263
+ .cpm-skill-warning { color: #c26a24; font-size: 13px; }
1264
+ .cpm-card-open { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
1210
1265
  .cpm-toggle {
1211
1266
  position: relative;
1212
1267
  width: 40px;
1268
+ flex: 0 0 40px;
1269
+ min-width: 40px;
1213
1270
  height: 22px;
1271
+ padding: 0;
1272
+ box-sizing: border-box;
1214
1273
  border-radius: 999px;
1215
1274
  background: var(--cpm-muted);
1216
1275
  border: none;
@@ -1218,6 +1277,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
1218
1277
  transition: background .15s;
1219
1278
  }
1220
1279
  .cpm-toggle.on { background: var(--cpm-toggle-on); }
1280
+ .cpm-toggle:focus-visible { outline: 2px solid var(--cpm-toggle-on); outline-offset: 3px; }
1221
1281
  .cpm-toggle::after {
1222
1282
  content: "";
1223
1283
  position: absolute;
@@ -1230,6 +1290,19 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
1230
1290
  transition: left .15s;
1231
1291
  }
1232
1292
  .cpm-toggle.on::after { left: 20px; }
1293
+ /* A list row's switch only needs to occupy the same *slot* as the pill it
1294
+ stands in for; blowing the switch itself up to the pill's size made it read
1295
+ as oversized. It keeps its familiar 40x22 proportions and is centred in the
1296
+ 50px slot reserved by the trailing-control rule above. */
1297
+ .cpm-card > .cpm-toggle {
1298
+ width: 40px;
1299
+ flex: 0 0 40px;
1300
+ min-width: 40px;
1301
+ height: 22px;
1302
+ /* 50px slot minus the 40px track, split evenly. */
1303
+ margin-left: auto;
1304
+ margin-right: 5px;
1305
+ }
1233
1306
  .cpm-menu { position: relative; }
1234
1307
  .cpm-menu-pop {
1235
1308
  position: absolute;
@@ -1497,6 +1570,37 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
1497
1570
  border: 1px solid rgba(255, 255, 255, 0.12);
1498
1571
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
1499
1572
  }
1573
+ .cpm-upload-dialog {
1574
+ display: grid;
1575
+ gap: 20px;
1576
+ padding: 26px 24px 22px;
1577
+ box-sizing: border-box;
1578
+ max-height: calc(100dvh - 32px);
1579
+ overflow-y: auto;
1580
+ }
1581
+ .cpm-upload-dialog .cpm-dialog-title,
1582
+ .cpm-upload-dialog .cpm-field,
1583
+ .cpm-upload-dialog .cpm-dialog-actions { margin: 0; }
1584
+ .cpm-upload-dialog .cpm-dropzone {
1585
+ width: 100%;
1586
+ min-width: 0;
1587
+ margin: 0;
1588
+ padding: 24px 16px;
1589
+ gap: 8px;
1590
+ font: inherit;
1591
+ color: inherit;
1592
+ appearance: none;
1593
+ }
1594
+ .cpm-upload-dialog .cpm-dropzone-sub { line-height: 1.6; }
1595
+ .cpm-upload-dialog .cpm-dropzone-icon { margin-bottom: 4px; }
1596
+ .cpm-upload-dialog .cpm-field { min-width: 0; }
1597
+ .cpm-upload-dialog .cpm-field label { margin-bottom: 8px; }
1598
+ .cpm-upload-dialog .cpm-input { box-sizing: border-box; min-width: 0; }
1599
+ .cpm-upload-dialog .cpm-dialog-actions { gap: 10px; padding-top: 4px; }
1600
+ .cpm-upload-dialog :is(.cpm-dropzone, .cpm-input):focus-visible {
1601
+ outline: 2px solid var(--cpm-accent);
1602
+ outline-offset: 3px;
1603
+ }
1500
1604
  .cpm-dropzone {
1501
1605
  display: flex;
1502
1606
  flex-direction: column;
@@ -2881,6 +2985,66 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
2881
2985
  opacity: 0.75;
2882
2986
  font-weight: 400;
2883
2987
  }
2988
+ /* Skill detail is a reading surface; compact popover Markdown stays unchanged. */
2989
+ .cpm-skill-detail {
2990
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
2991
+ font-size: 1rem;
2992
+ padding: 16px 24px 56px;
2993
+ }
2994
+ .cpm-skill-detail > * { flex-shrink: 0; }
2995
+ .cpm-skill-detail > .cpm-back:focus-visible { outline: 2px solid var(--cpm-toggle-on); outline-offset: 2px; }
2996
+ .cpm-skill-header { container-type: inline-size; container-name: cpm-skill-header; padding: .75rem 0 1.5rem; border-bottom: 1px solid var(--cpm-border); }
2997
+ .cpm-skill-identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
2998
+ .cpm-skill-identity > .cpm-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
2999
+ .cpm-skill-identity > .cpm-card-icon { width: 3.5rem; height: 3.5rem; border-radius: .875rem; }
3000
+ .cpm-skill-title {
3001
+ grid-column: 1 / -1; grid-row: 2; min-width: 0; margin: 0; color: var(--cpm-text);
3002
+ font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); font-weight: 650;
3003
+ line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance;
3004
+ }
3005
+ @container cpm-skill-header (min-width: 28rem) {
3006
+ .cpm-skill-identity { grid-template-columns: auto minmax(0, 1fr) auto; }
3007
+ .cpm-skill-title, .cpm-skill-identity > .cpm-toggle { grid-column: auto; grid-row: auto; }
3008
+ }
3009
+ .cpm-skill-summary {
3010
+ margin: 1.25rem 0 0; color: var(--cpm-text-sub); font-size: .9375rem;
3011
+ line-height: 1.8; overflow-wrap: anywhere; text-wrap: pretty;
3012
+ }
3013
+ .cpm-skill-location {
3014
+ display: flex; align-items: center; gap: .625rem; margin-top: 1.125rem;
3015
+ min-width: 0; color: var(--cpm-muted); font-size: .75rem; line-height: 1.6;
3016
+ }
3017
+ .cpm-skill-location-label { flex-shrink: 0; padding: .125rem .5rem; background: var(--cpm-card-hover); border-radius: .375rem; }
3018
+ .cpm-skill-location [data-path-label] { min-width: 0; max-width: 100%; font-family: var(--cpm-mono, ui-monospace, monospace); user-select: text; }
3019
+ .cpm-skill-content { padding-top: 2rem; min-width: 0; }
3020
+ .cpm-root .cpm-skill-content > div {
3021
+ font-size: .9375rem; line-height: 1.85; color: var(--cpm-text-sub);
3022
+ word-break: normal; overflow-wrap: anywhere;
3023
+ }
3024
+ .cpm-root .cpm-skill-content p { margin: 0 0 1.1em; line-height: inherit; text-wrap: pretty; }
3025
+ .cpm-root .cpm-skill-content :is(h1, h2, h3, h4, h5, h6) {
3026
+ margin: 1.75em 0 .75em; color: var(--cpm-text); font-size: 1rem; font-weight: 650; line-height: 1.4; letter-spacing: -.015em;
3027
+ }
3028
+ .cpm-root .cpm-skill-content h1 { font-size: 1.5rem; }
3029
+ .cpm-root .cpm-skill-content h2 { font-size: 1.25rem; }
3030
+ .cpm-root .cpm-skill-content h3 { font-size: 1.0625rem; }
3031
+ .cpm-root .cpm-skill-content > div > :first-child { margin-top: 0; }
3032
+ .cpm-root .cpm-skill-content :is(ul, ol) { margin: .5em 0 1.25em; padding-inline-start: 1.5em; }
3033
+ .cpm-root .cpm-skill-content li { margin-bottom: .5em; padding-inline-start: .2em; line-height: inherit; }
3034
+ .cpm-root .cpm-skill-content li::marker { color: var(--cpm-muted); }
3035
+ .cpm-root .cpm-skill-content blockquote { margin: 1.25em 0; padding: .75em 1.1em; border-inline-start-color: var(--cpm-border); background: var(--cpm-card-hover); border-radius: 0 .625rem .625rem 0; }
3036
+ .cpm-root .cpm-skill-content blockquote > :last-child { margin-bottom: 0; }
3037
+ .cpm-root .cpm-skill-content pre { font-size: .8125rem; line-height: 1.65; }
3038
+ .cpm-root .cpm-skill-content hr { margin: 2rem 0; border-color: var(--cpm-border); }
3039
+ .cpm-root .cpm-skill-content div:has(> table) { max-width: 100%; margin-block: 1.5rem; border: 1px solid var(--cpm-border); border-radius: .75rem; }
3040
+ .cpm-root .cpm-skill-content table { border-collapse: separate; border-spacing: 0; font-size: .875rem; line-height: 1.7; }
3041
+ .cpm-root .cpm-skill-content :is(th, td) { padding: .75rem 1rem; border: 0; border-bottom: 1px solid var(--cpm-border); vertical-align: top; font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
3042
+ .cpm-root .cpm-skill-content td code { font-size: .8125rem; }
3043
+ .cpm-root .cpm-skill-content th { color: var(--cpm-text); font-weight: 600; background: var(--cpm-card-hover); }
3044
+ .cpm-root .cpm-skill-content tbody tr:last-child td { border-bottom: 0; }
3045
+ .cpm-root .cpm-skill-content .md-table-wide:focus-visible { outline: 2px solid var(--cpm-toggle-on); outline-offset: 3px; }
3046
+ .cpm-skill-detail .cpm-skill-warning { margin: 1.5rem 0 0; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
3047
+ .cpm-skill-loading { margin: 2rem 0; color: var(--cpm-muted); font-size: .875rem; }
2884
3048
  .cpm-mcp-tool-popover-params {
2885
3049
  display: flex;
2886
3050
  flex-wrap: wrap;
@@ -3483,932 +3647,113 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
3483
3647
  );
3484
3648
  }
3485
3649
 
3486
- // ────────────────────────────── Official Lucide Vector Library (64 Multi-Domain Themes) ──────────────────────────────
3487
- const LUCIDE_BADGES = [
3488
- // 0. Terminal (Emerald / Code & CLI)
3489
- {
3490
- color: "#10b981",
3491
- bgLight: "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",
3492
- borderLight: "#a7f3d0",
3493
- bgDark: "linear-gradient(135deg, #064e3b 0%, #022c22 100%)",
3494
- borderDark: "#047857",
3495
- render: () => [
3496
- h("polyline", { key: "p", points: "4 17 10 11 4 5", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3497
- h("line", { key: "l", x1: 12, y1: 19, x2: 20, y2: 19, stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3498
- ],
3499
- },
3500
- // 1. Code (Cyan / Software & Syntax)
3501
- {
3502
- color: "#06b6d4",
3503
- bgLight: "linear-gradient(135deg, #ecfeff 0%, #cffafe 100%)",
3504
- borderLight: "#a5f3fc",
3505
- bgDark: "linear-gradient(135deg, #164e63 0%, #0d313f 100%)",
3506
- borderDark: "#155e75",
3507
- render: () => [
3508
- h("polyline", { key: "p1", points: "16 18 22 12 16 6", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3509
- h("polyline", { key: "p2", points: "8 6 2 12 8 18", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3510
- ],
3511
- },
3512
- // 2. Video (Red / Video & Cinema)
3513
- {
3514
- color: "#ef4444",
3515
- bgLight: "linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%)",
3516
- borderLight: "#fecaca",
3517
- bgDark: "linear-gradient(135deg, #450a0a 0%, #2b0606 100%)",
3518
- borderDark: "#991b1b",
3519
- render: () => [
3520
- h("rect", { key: "r", x: "2", y: "6", width: "14", height: "12", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3521
- h("polygon", { key: "p", points: "22 8 16 12 22 16 22 8", stroke: "currentColor", strokeWidth: 2, fill: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
3522
- ],
3523
- },
3524
- // 3. Film (Rose / Motion & Reels)
3525
- {
3526
- color: "#f43f5e",
3527
- bgLight: "linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%)",
3528
- borderLight: "#fecdd3",
3529
- bgDark: "linear-gradient(135deg, #4c0519 0%, #2e030f 100%)",
3530
- borderDark: "#9f1239",
3531
- render: () => [
3532
- h("rect", { key: "r", x: "3", y: "3", width: "18", height: "18", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3533
- h("line", { key: "l1", x1: "7", y1: "3", x2: "7", y2: "21", stroke: "currentColor", strokeWidth: 2 }),
3534
- h("line", { key: "l2", x1: "17", y1: "3", x2: "17", y2: "21", stroke: "currentColor", strokeWidth: 2 }),
3535
- h("line", { key: "l3", x1: "3", y1: "12", x2: "21", y2: "12", stroke: "currentColor", strokeWidth: 2 }),
3536
- ],
3537
- },
3538
- // 4. Scissors (Pink / Video Cut & Editing)
3539
- {
3540
- color: "#ec4899",
3541
- bgLight: "linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%)",
3542
- borderLight: "#fbcfe8",
3543
- bgDark: "linear-gradient(135deg, #831843 0%, #500724 100%)",
3544
- borderDark: "#be185d",
3545
- render: () => [
3546
- h("circle", { key: "c1", cx: "6", cy: "6", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3547
- h("circle", { key: "c2", cx: "6", cy: "18", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3548
- h("line", { key: "l1", x1: "20", y1: "4", x2: "8.12", y2: "15.88", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3549
- h("line", { key: "l2", x1: "14.47", y1: "14.48", x2: "20", y2: "20", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3550
- h("line", { key: "l3", x1: "8.12", y1: "8.12", x2: "12", y2: "12", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3551
- ],
3552
- },
3553
- // 5. Wand (Fuchsia / Magic & VFX)
3554
- {
3555
- color: "#d946ef",
3556
- bgLight: "linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",
3557
- borderLight: "#f5d0fe",
3558
- bgDark: "linear-gradient(135deg, #4a044e 0%, #2e0231 100%)",
3559
- borderDark: "#701a75",
3560
- render: () => [
3561
- h("path", { key: "p1", d: "M15 4V2M15 16v-2M8 9h2M20 9h2M17.8 11.8 19 13M12.2 6.2 11 5", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3562
- h("path", { key: "p2", d: "M7 2a5 5 0 0 0-5 5c0 2 1.5 3.5 3 5l12 12a1.4 1.4 0 0 0 2 0l2-2a1.4 1.4 0 0 0 0-2L9 8c-1.5-1.5-2-3-2-6Z", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3563
- ],
3564
- },
3565
- // 6. Play (Orange / Action & Streaming)
3566
- {
3567
- color: "#f97316",
3568
- bgLight: "linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%)",
3569
- borderLight: "#fed7aa",
3570
- bgDark: "linear-gradient(135deg, #431407 0%, #270b04 100%)",
3571
- borderDark: "#c2410c",
3572
- render: () => [
3573
- h("polygon", { key: "p", points: "6 4 20 12 6 20 6 4", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3574
- ],
3575
- },
3576
- // 7. Mic (Violet / Voice & Speech)
3577
- {
3578
- color: "#8b5cf6",
3579
- bgLight: "linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%)",
3580
- borderLight: "#ddd6fe",
3581
- bgDark: "linear-gradient(135deg, #2e1065 0%, #1c0a3d 100%)",
3582
- borderDark: "#4c1d95",
3583
- render: () => [
3584
- h("rect", { key: "r", x: "9", y: "2", width: "6", height: "12", rx: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3585
- h("path", { key: "p1", d: "M5 10v2a7 7 0 0 0 14 0v-2", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3586
- h("line", { key: "l1", x1: "12", y1: "19", x2: "12", y2: "22", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3587
- ],
3588
- },
3589
- // 8. Headphones (Indigo / Audio & Music)
3590
- {
3591
- color: "#6366f1",
3592
- bgLight: "linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)",
3593
- borderLight: "#c7d2fe",
3594
- bgDark: "linear-gradient(135deg, #1e1b4b 0%, #131131 100%)",
3595
- borderDark: "#3730a3",
3596
- render: () => [
3597
- h("path", { key: "p", d: "M3 18v-6a9 9 0 0 1 18 0v6", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3598
- h("rect", { key: "r1", x: "17", y: "14", width: "4", height: "7", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3599
- h("rect", { key: "r2", x: "3", y: "14", width: "4", height: "7", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3600
- ],
3601
- },
3602
- // 9. Music (Purple / Melodies & Audio Tracks)
3603
- {
3604
- color: "#a855f7",
3605
- bgLight: "linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%)",
3606
- borderLight: "#e9d5ff",
3607
- bgDark: "linear-gradient(135deg, #3b0764 0%, #240340 100%)",
3608
- borderDark: "#6b21a8",
3609
- render: () => [
3610
- h("path", { key: "p", d: "M9 18V5l12-2v13", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3611
- h("circle", { key: "c1", cx: "6", cy: "18", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3612
- h("circle", { key: "c2", cx: "18", cy: "16", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3613
- ],
3614
- },
3615
- // 10. Volume (Blue / Sound Synthesizer)
3616
- {
3617
- color: "#3b82f6",
3618
- bgLight: "linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%)",
3619
- borderLight: "#bfdbfe",
3620
- bgDark: "linear-gradient(135deg, #1e3a8a 0%, #112240 100%)",
3621
- borderDark: "#1d4ed8",
3622
- render: () => [
3623
- h("polygon", { key: "p", points: "11 5 6 9 2 9 2 15 6 15 11 19 11 5", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3624
- h("path", { key: "w1", d: "M15.54 8.46a5 5 0 0 1 0 7.07", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3625
- h("path", { key: "w2", d: "M19.07 4.93a10 10 0 0 1 0 14.14", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3626
- ],
3627
- },
3628
- // 11. Bug (Red / Debugger & Troubleshooting)
3629
- {
3630
- color: "#ef4444",
3631
- bgLight: "linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%)",
3632
- borderLight: "#fecaca",
3633
- bgDark: "linear-gradient(135deg, #450a0a 0%, #2b0606 100%)",
3634
- borderDark: "#991b1b",
3635
- render: () => [
3636
- h("rect", { key: "r", width: "8", height: "14", x: "8", y: "6", rx: "4", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3637
- h("path", { key: "p", d: "m19 7-3 2M5 7l3 2M19 19l-3-2M5 19l3-2M20 13h-4M4 13h4M10 4l1 2M14 4l-1 2", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3638
- ],
3639
- },
3640
- // 12. GitBranch (Amber / Branching & Flow)
3641
- {
3642
- color: "#f59e0b",
3643
- bgLight: "linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%)",
3644
- borderLight: "#fde68a",
3645
- bgDark: "linear-gradient(135deg, #451a03 0%, #291002 100%)",
3646
- borderDark: "#78350f",
3647
- render: () => [
3648
- h("line", { key: "l", x1: "6", x2: "6", y1: "3", y2: "15", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3649
- h("circle", { key: "c1", cx: "18", cy: "6", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3650
- h("circle", { key: "c2", cx: "6", cy: "18", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3651
- h("path", { key: "p", d: "M18 9a9 9 0 0 1-9 9", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3652
- ],
3653
- },
3654
- // 13. GitPullRequest (Rose / PRs & Review)
3655
- {
3656
- color: "#e11d48",
3657
- bgLight: "linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%)",
3658
- borderLight: "#fecdd3",
3659
- bgDark: "linear-gradient(135deg, #4c0519 0%, #2e030f 100%)",
3660
- borderDark: "#881337",
3661
- render: () => [
3662
- h("circle", { key: "c1", cx: "18", cy: "18", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3663
- h("circle", { key: "c2", cx: "6", cy: "6", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3664
- h("path", { key: "p", d: "M13 6h3a2 2 0 0 1 2 2v7", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3665
- h("line", { key: "l", x1: "6", x2: "6", y1: "9", y2: "21", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3666
- ],
3667
- },
3668
- // 14. Cpu (Indigo / Processor & Architecture)
3669
- {
3670
- color: "#6366f1",
3671
- bgLight: "linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)",
3672
- borderLight: "#c7d2fe",
3673
- bgDark: "linear-gradient(135deg, #1e1b4b 0%, #131131 100%)",
3674
- borderDark: "#3730a3",
3675
- render: () => [
3676
- h("rect", { key: "r1", width: "16", height: "16", x: "4", y: "4", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3677
- h("rect", { key: "r2", width: "6", height: "6", x: "9", y: "9", rx: "1", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3678
- h("path", { key: "p", d: "M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3679
- ],
3680
- },
3681
- // 15. Braces (Teal / AST, JSON & Linters)
3682
- {
3683
- color: "#14b8a6",
3684
- bgLight: "linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%)",
3685
- borderLight: "#99f6e4",
3686
- bgDark: "linear-gradient(135deg, #134e4a 0%, #0c3330 100%)",
3687
- borderDark: "#0f766e",
3688
- render: () => [
3689
- h("path", { key: "p1", d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5a2 2 0 0 0 2 2h1", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3690
- h("path", { key: "p2", d: "M16 3h1a2 2 0 0 1 2 2v5a2 2 0 0 0 2 2 2 2 0 0 0-2 2v5a2 2 0 0 1-2 2h-1", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3691
- ],
3692
- },
3693
- // 16. Database (Cyan / SQL, Tables & Storage)
3694
- {
3695
- color: "#06b6d4",
3696
- bgLight: "linear-gradient(135deg, #ecfeff 0%, #cffafe 100%)",
3697
- borderLight: "#a5f3fc",
3698
- bgDark: "linear-gradient(135deg, #164e63 0%, #0d313f 100%)",
3699
- borderDark: "#155e75",
3700
- render: () => [
3701
- h("ellipse", { key: "e", cx: "12", cy: "5", rx: "9", ry: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3702
- h("path", { key: "p1", d: "M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3703
- h("path", { key: "p2", d: "M3 12c0 1.66 4 3 9 3s9-1.34 9-3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3704
- ],
3705
- },
3706
- // 17. Server (Sky Blue / Cloud Backend & Node)
3707
- {
3708
- color: "#0284c7",
3709
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
3710
- borderLight: "#bae6fd",
3711
- bgDark: "linear-gradient(135deg, #0c4a6e 0%, #082f46 100%)",
3712
- borderDark: "#0369a1",
3713
- render: () => [
3714
- h("rect", { key: "r1", width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3715
- h("rect", { key: "r2", width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3716
- h("line", { key: "l1", x1: "6", x2: "6.01", y1: "6", y2: "6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3717
- h("line", { key: "l2", x1: "6", x2: "6.01", y1: "18", y2: "18", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3718
- ],
3719
- },
3720
- // 18. Container (Sky / Docker & Microservices)
3721
- {
3722
- color: "#0ea5e9",
3723
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
3724
- borderLight: "#bae6fd",
3725
- bgDark: "linear-gradient(135deg, #075985 0%, #032b42 100%)",
3726
- borderDark: "#0284c7",
3727
- render: () => [
3728
- h("path", { key: "p1", d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3729
- h("path", { key: "p2", d: "m3.3 7 8.7 5 8.7-5M12 22V12", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3730
- ],
3731
- },
3732
- // 19. Brain (Violet / Neural & AI Models)
3733
- {
3734
- color: "#8b5cf6",
3735
- bgLight: "linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%)",
3736
- borderLight: "#ddd6fe",
3737
- bgDark: "linear-gradient(135deg, #2e1065 0%, #1c0a3d 100%)",
3738
- borderDark: "#4c1d95",
3739
- render: () => [
3740
- h("path", { key: "p1", d: "M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3741
- h("path", { key: "p2", d: "M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3742
- h("path", { key: "p3", d: "M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3743
- ],
3744
- },
3745
- // 20. Bot (Emerald / Autonomous Agents)
3746
- {
3747
- color: "#10b981",
3748
- bgLight: "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",
3749
- borderLight: "#a7f3d0",
3750
- bgDark: "linear-gradient(135deg, #064e3b 0%, #022c22 100%)",
3751
- borderDark: "#047857",
3752
- render: () => [
3753
- h("path", { key: "p1", d: "M12 8V4H8", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3754
- h("rect", { key: "r", width: "16", height: "12", x: "4", y: "8", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3755
- h("path", { key: "p2", d: "M2 14h2M20 14h2M15 13v2M9 13v2", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3756
- ],
3757
- },
3758
- // 21. Sparkles (Amber / Generation & Prompts)
3759
- {
3760
- color: "#f59e0b",
3761
- bgLight: "linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%)",
3762
- borderLight: "#fde68a",
3763
- bgDark: "linear-gradient(135deg, #451a03 0%, #291002 100%)",
3764
- borderDark: "#78350f",
3765
- render: () => [
3766
- h("path", { key: "s1", d: "m12 3-1.9 5.8a2 2 0 0 1-1.3 1.3L3 12l5.8 1.9a2 2 0 0 1 1.3 1.3L12 21l1.9-5.8a2 2 0 0 1 1.3-1.3L21 12l-5.8-1.9a2 2 0 0 1-1.3-1.3L12 3Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3767
- h("path", { key: "s2", d: "M5 3v4M3 5h4M19 17v4M17 19h4", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3768
- ],
3769
- },
3770
- // 22. ScanFace (Cyan / Vision, CV & OCR)
3771
- {
3772
- color: "#06b6d4",
3773
- bgLight: "linear-gradient(135deg, #ecfeff 0%, #cffafe 100%)",
3774
- borderLight: "#a5f3fc",
3775
- bgDark: "linear-gradient(135deg, #164e63 0%, #0d313f 100%)",
3776
- borderDark: "#155e75",
3777
- render: () => [
3778
- h("path", { key: "p1", d: "M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3779
- h("circle", { key: "c1", cx: "9", cy: "10", r: "1", fill: "currentColor" }),
3780
- h("circle", { key: "c2", cx: "15", cy: "10", r: "1", fill: "currentColor" }),
3781
- h("path", { key: "p2", d: "M10 15a3 3 0 0 0 4 0", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3782
- ],
3783
- },
3784
- // 23. Activity (Emerald / Monitoring & Metrics)
3785
- {
3786
- color: "#10b981",
3787
- bgLight: "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",
3788
- borderLight: "#a7f3d0",
3789
- bgDark: "linear-gradient(135deg, #064e3b 0%, #022c22 100%)",
3790
- borderDark: "#047857",
3791
- render: () => [
3792
- h("path", { key: "a", d: "M22 12h-4l-3 9L9 3l-3 9H2", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3793
- ],
3794
- },
3795
- // 24. PenTool (Purple / Copywriting & Content Creation)
3796
- {
3797
- color: "#a855f7",
3798
- bgLight: "linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%)",
3799
- borderLight: "#e9d5ff",
3800
- bgDark: "linear-gradient(135deg, #3b0764 0%, #240340 100%)",
3801
- borderDark: "#6b21a8",
3802
- render: () => [
3803
- h("path", { key: "p1", d: "m12 19 7-7 3 3-7 7-3-3z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3804
- h("path", { key: "p2", d: "m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3805
- h("circle", { key: "c", cx: "11", cy: "11", r: "2", fill: "currentColor" }),
3806
- ],
3807
- },
3808
- // 25. FileText (Blue / Specs, Summaries & Docs)
3809
- {
3810
- color: "#3b82f6",
3811
- bgLight: "linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%)",
3812
- borderLight: "#bfdbfe",
3813
- bgDark: "linear-gradient(135deg, #1e3a8a 0%, #112240 100%)",
3814
- borderDark: "#1d4ed8",
3815
- render: () => [
3816
- h("path", { key: "p1", d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3817
- h("path", { key: "p2", d: "M14 2v4a2 2 0 0 0 2 2h4", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3818
- h("path", { key: "p3", d: "M10 9H8M16 13H8M16 17H8", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3819
- ],
3820
- },
3821
- // 26. BookOpen (Indigo / Knowledge Base & Wiki)
3822
- {
3823
- color: "#6366f1",
3824
- bgLight: "linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)",
3825
- borderLight: "#c7d2fe",
3826
- bgDark: "linear-gradient(135deg, #1e1b4b 0%, #131131 100%)",
3827
- borderDark: "#3730a3",
3828
- render: () => [
3829
- h("path", { key: "p1", d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3830
- h("path", { key: "p2", d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3831
- ],
3832
- },
3833
- // 27. Feather (Pink / Stories & Essays)
3834
- {
3835
- color: "#ec4899",
3836
- bgLight: "linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%)",
3837
- borderLight: "#fbcfe8",
3838
- bgDark: "linear-gradient(135deg, #831843 0%, #500724 100%)",
3839
- borderDark: "#be185d",
3840
- render: () => [
3841
- h("path", { key: "p", d: "M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3842
- h("line", { key: "l1", x1: "16", y1: "8", x2: "2", y2: "22", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3843
- h("line", { key: "l2", x1: "17.5", y1: "15", x2: "9", y2: "15", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3844
- ],
3845
- },
3846
- // 28. Type (Fuchsia / Headlines & Typography)
3847
- {
3848
- color: "#d946ef",
3849
- bgLight: "linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",
3850
- borderLight: "#f5d0fe",
3851
- bgDark: "linear-gradient(135deg, #4a044e 0%, #2e0231 100%)",
3852
- borderDark: "#701a75",
3853
- render: () => [
3854
- h("polyline", { key: "p", points: "4 7 4 4 20 4 20 7", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3855
- h("line", { key: "l1", x1: "9", y1: "20", x2: "15", y2: "20", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3856
- h("line", { key: "l2", x1: "12", y1: "4", x2: "12", y2: "20", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3857
- ],
3858
- },
3859
- // 29. Newspaper (Sky Blue / Feeds & RSS)
3860
- {
3861
- color: "#0284c7",
3862
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
3863
- borderLight: "#bae6fd",
3864
- bgDark: "linear-gradient(135deg, #0c4a6e 0%, #082f46 100%)",
3865
- borderDark: "#0369a1",
3866
- render: () => [
3867
- h("path", { key: "p1", d: "M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3868
- h("path", { key: "p2", d: "M18 14h-8M15 18h-5M10 6h8v4h-8V6Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }),
3869
- ],
3870
- },
3871
- // 30. Share (Emerald / Social Distribution)
3872
- {
3873
- color: "#10b981",
3874
- bgLight: "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",
3875
- borderLight: "#a7f3d0",
3876
- bgDark: "linear-gradient(135deg, #064e3b 0%, #022c22 100%)",
3877
- borderDark: "#047857",
3878
- render: () => [
3879
- h("circle", { key: "c1", cx: "18", cy: "5", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3880
- h("circle", { key: "c2", cx: "6", cy: "12", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3881
- h("circle", { key: "c3", cx: "18", cy: "19", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3882
- h("line", { key: "l1", x1: "8.59", x2: "15.42", y1: "13.51", y2: "17.49", stroke: "currentColor", strokeWidth: 2 }),
3883
- h("line", { key: "l2", x1: "15.41", x2: "8.59", y1: "6.51", y2: "10.49", stroke: "currentColor", strokeWidth: 2 }),
3884
- ],
3885
- },
3886
- // 31. Palette (Rose / Art & Graphic Design)
3887
- {
3888
- color: "#f43f5e",
3889
- bgLight: "linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%)",
3890
- borderLight: "#fecdd3",
3891
- bgDark: "linear-gradient(135deg, #4c0519 0%, #2e030f 100%)",
3892
- borderDark: "#9f1239",
3893
- render: () => [
3894
- h("circle", { key: "c1", cx: "13.5", cy: "6.5", r: "1", fill: "currentColor" }),
3895
- h("circle", { key: "c2", cx: "17.5", cy: "10.5", r: "1", fill: "currentColor" }),
3896
- h("circle", { key: "c3", cx: "8.5", cy: "7.5", r: "1", fill: "currentColor" }),
3897
- h("circle", { key: "c4", cx: "6.5", cy: "12.5", r: "1", fill: "currentColor" }),
3898
- h("path", { key: "p", d: "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.9 0 1.6-.7 1.6-1.7 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1a1.6 1.6 0 0 1 1.7-1.7h2c3 0 5.5-2.5 5.5-5.5C21.9 6 17.5 2 12 2z", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3899
- ],
3900
- },
3901
- // 32. Layout (Sky / Dashboard & Wireframes)
3902
- {
3903
- color: "#0ea5e9",
3904
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
3905
- borderLight: "#bae6fd",
3906
- bgDark: "linear-gradient(135deg, #075985 0%, #032b42 100%)",
3907
- borderDark: "#0284c7",
3908
- render: () => [
3909
- h("rect", { key: "r", width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3910
- h("line", { key: "l1", x1: "3", y1: "9", x2: "21", y2: "9", stroke: "currentColor", strokeWidth: 2 }),
3911
- h("line", { key: "l2", x1: "9", y1: "21", x2: "9", y2: "9", stroke: "currentColor", strokeWidth: 2 }),
3912
- ],
3913
- },
3914
- // 33. Image (Purple / Photos & Midjourney)
3915
- {
3916
- color: "#a855f7",
3917
- bgLight: "linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%)",
3918
- borderLight: "#e9d5ff",
3919
- bgDark: "linear-gradient(135deg, #3b0764 0%, #240340 100%)",
3920
- borderDark: "#6b21a8",
3921
- render: () => [
3922
- h("rect", { key: "r", width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3923
- h("circle", { key: "c", cx: "9", cy: "9", r: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3924
- h("path", { key: "p", d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3925
- ],
3926
- },
3927
- // 34. Eye (Cyan / Visual Inspector & A11y)
3928
- {
3929
- color: "#06b6d4",
3930
- bgLight: "linear-gradient(135deg, #ecfeff 0%, #cffafe 100%)",
3931
- borderLight: "#a5f3fc",
3932
- bgDark: "linear-gradient(135deg, #164e63 0%, #0d313f 100%)",
3933
- borderDark: "#155e75",
3934
- render: () => [
3935
- h("path", { key: "p", d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3936
- h("circle", { key: "c", cx: "12", cy: "12", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3937
- ],
3938
- },
3939
- // 35. Layers (Teal / Architecture & Stacks)
3940
- {
3941
- color: "#14b8a6",
3942
- bgLight: "linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%)",
3943
- borderLight: "#99f6e4",
3944
- bgDark: "linear-gradient(135deg, #134e4a 0%, #0c3330 100%)",
3945
- borderDark: "#0f766e",
3946
- render: () => [
3947
- h("path", { key: "l1", d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3948
- h("path", { key: "l2", d: "m2 12 8.58 3.91a2 2 0 0 0 1.66 0L22 12", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3949
- h("path", { key: "l3", d: "m2 17 8.58 3.91a2 2 0 0 0 1.66 0L22 17", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
3950
- ],
3951
- },
3952
- // 36. Compass (Lime / Discovery & Navigation)
3953
- {
3954
- color: "#84cc16",
3955
- bgLight: "linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%)",
3956
- borderLight: "#d9f99d",
3957
- bgDark: "linear-gradient(135deg, #365314 0%, #20310c 100%)",
3958
- borderDark: "#4d7c0f",
3959
- render: () => [
3960
- h("circle", { key: "c", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3961
- h("polygon", { key: "p", points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3962
- ],
3963
- },
3964
- // 37. Search (Blue / RAG & Query Retrieval)
3965
- {
3966
- color: "#3b82f6",
3967
- bgLight: "linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%)",
3968
- borderLight: "#bfdbfe",
3969
- bgDark: "linear-gradient(135deg, #1e3a8a 0%, #112240 100%)",
3970
- borderDark: "#1d4ed8",
3971
- render: () => [
3972
- h("circle", { key: "c", cx: "11", cy: "11", r: "8", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3973
- h("line", { key: "l", x1: "21", y1: "21", x2: "16.65", y2: "16.65", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
3974
- ],
3975
- },
3976
- // 38. Globe (Sky / Internet & Web Crawling)
3977
- {
3978
- color: "#0284c7",
3979
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
3980
- borderLight: "#bae6fd",
3981
- bgDark: "linear-gradient(135deg, #0c4a6e 0%, #082f46 100%)",
3982
- borderDark: "#0369a1",
3983
- render: () => [
3984
- h("circle", { key: "g1", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3985
- h("line", { key: "g2", x1: "2", x2: "22", y1: "12", y2: "12", stroke: "currentColor", strokeWidth: 2 }),
3986
- h("path", { key: "g3", d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
3987
- ],
3988
- },
3989
- // 39. Link (Teal / Bridge & Connectors)
3990
- {
3991
- color: "#14b8a6",
3992
- bgLight: "linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%)",
3993
- borderLight: "#99f6e4",
3994
- bgDark: "linear-gradient(135deg, #134e4a 0%, #0c3330 100%)",
3995
- borderDark: "#0f766e",
3996
- render: () => [
3997
- h("path", { key: "p1", d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3998
- h("path", { key: "p2", d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
3999
- ],
4000
- },
4001
- // 40. Anchor (Cyan / Hooks & Interceptors)
4002
- {
4003
- color: "#06b6d4",
4004
- bgLight: "linear-gradient(135deg, #ecfeff 0%, #cffafe 100%)",
4005
- borderLight: "#a5f3fc",
4006
- bgDark: "linear-gradient(135deg, #164e63 0%, #0d313f 100%)",
4007
- borderDark: "#155e75",
4008
- render: () => [
4009
- h("circle", { key: "c", cx: "12", cy: "5", r: "3", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4010
- h("line", { key: "l", x1: "12", x2: "12", y1: "22", y2: "8", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4011
- h("path", { key: "p", d: "M5 12H2a10 10 0 0 0 20 0h-3", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4012
- ],
4013
- },
4014
- // 41. ShieldCheck (Emerald / Verified Protection)
4015
- {
4016
- color: "#10b981",
4017
- bgLight: "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",
4018
- borderLight: "#a7f3d0",
4019
- bgDark: "linear-gradient(135deg, #064e3b 0%, #022c22 100%)",
4020
- borderDark: "#047857",
4021
- render: () => [
4022
- h("path", { key: "s", d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4023
- h("path", { key: "c", d: "m9 12 2 2 4-4", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4024
- ],
4025
- },
4026
- // 42. ShieldAlert (Red / Risk Control & Security Auditing)
4027
- {
4028
- color: "#ef4444",
4029
- bgLight: "linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%)",
4030
- borderLight: "#fecaca",
4031
- bgDark: "linear-gradient(135deg, #450a0a 0%, #2b0606 100%)",
4032
- borderDark: "#991b1b",
4033
- render: () => [
4034
- h("path", { key: "s", d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4035
- h("line", { key: "l1", x1: "12", y1: "8", x2: "12", y2: "12", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4036
- h("line", { key: "l2", x1: "12", y1: "16", x2: "12.01", y2: "16", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4037
- ],
4038
- },
4039
- // 43. Lock (Amber / Privacy & Encryption)
4040
- {
4041
- color: "#f59e0b",
4042
- bgLight: "linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%)",
4043
- borderLight: "#fde68a",
4044
- bgDark: "linear-gradient(135deg, #451a03 0%, #291002 100%)",
4045
- borderDark: "#78350f",
4046
- render: () => [
4047
- h("rect", { key: "r", width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4048
- h("path", { key: "p", d: "M7 11V7a5 5 0 0 1 10 0v4", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4049
- ],
4050
- },
4051
- // 44. Key (Amber / OAuth Keys & Auth)
4052
- {
4053
- color: "#f59e0b",
4054
- bgLight: "linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%)",
4055
- borderLight: "#fde68a",
4056
- bgDark: "linear-gradient(135deg, #451a03 0%, #291002 100%)",
4057
- borderDark: "#78350f",
4058
- render: () => [
4059
- h("circle", { key: "c", cx: "7.5", cy: "15.5", r: "5.5", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4060
- h("path", { key: "p", d: "m21 2-2 2m-1.5 1.5L19 7l-3 3-2-2-3 3", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4061
- ],
4062
- },
4063
- // 45. CreditCard (Indigo / Payments & Billing)
4064
- {
4065
- color: "#6366f1",
4066
- bgLight: "linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)",
4067
- borderLight: "#c7d2fe",
4068
- bgDark: "linear-gradient(135deg, #1e1b4b 0%, #131131 100%)",
4069
- borderDark: "#3730a3",
4070
- render: () => [
4071
- h("rect", { key: "r", width: "20", height: "14", x: "2", y: "5", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4072
- h("line", { key: "l", x1: "2", x2: "22", y1: "10", y2: "10", stroke: "currentColor", strokeWidth: 2 }),
4073
- ],
4074
- },
4075
- // 46. Coins (Yellow / Finance & Commercial)
4076
- {
4077
- color: "#eab308",
4078
- bgLight: "linear-gradient(135deg, #fefce8 0%, #fef9c3 100%)",
4079
- borderLight: "#fef08a",
4080
- bgDark: "linear-gradient(135deg, #422006 0%, #271304 100%)",
4081
- borderDark: "#854d0e",
4082
- render: () => [
4083
- h("circle", { key: "c1", cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4084
- h("path", { key: "p1", d: "M18.09 10.37A6 6 0 1 1 10.34 18", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4085
- h("path", { key: "p2", d: "M7 6h1v4M17 14h.01", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4086
- ],
4087
- },
4088
- // 47. ShoppingCart (Orange / E-Commerce & Stores)
4089
- {
4090
- color: "#f97316",
4091
- bgLight: "linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%)",
4092
- borderLight: "#fed7aa",
4093
- bgDark: "linear-gradient(135deg, #431407 0%, #270b04 100%)",
4094
- borderDark: "#c2410c",
4095
- render: () => [
4096
- h("circle", { key: "c1", cx: "8", cy: "21", r: "1", fill: "currentColor" }),
4097
- h("circle", { key: "c2", cx: "19", cy: "21", r: "1", fill: "currentColor" }),
4098
- h("path", { key: "p", d: "M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4099
- ],
4100
- },
4101
- // 48. TrendingUp (Emerald / Growth & Performance Benchmark)
4102
- {
4103
- color: "#10b981",
4104
- bgLight: "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",
4105
- borderLight: "#a7f3d0",
4106
- bgDark: "linear-gradient(135deg, #064e3b 0%, #022c22 100%)",
4107
- borderDark: "#047857",
4108
- render: () => [
4109
- h("polyline", { key: "p1", points: "22 7 13.5 15.5 8.5 10.5 2 17", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4110
- h("polyline", { key: "p2", points: "16 7 22 7 22 13", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4111
- ],
4112
- },
4113
- // 49. PieChart (Violet / Data Analytics & BI)
4114
- {
4115
- color: "#8b5cf6",
4116
- bgLight: "linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%)",
4117
- borderLight: "#ddd6fe",
4118
- bgDark: "linear-gradient(135deg, #2e1065 0%, #1c0a3d 100%)",
4119
- borderDark: "#4c1d95",
4120
- render: () => [
4121
- h("path", { key: "p1", d: "M21.21 15.89A10 10 0 1 1 8 2.83", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4122
- h("path", { key: "p2", d: "M22 12A10 10 0 0 0 12 2v10z", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4123
- ],
4124
- },
4125
- // 50. MessageSquare (Blue / Chat & Messaging)
4126
- {
4127
- color: "#3b82f6",
4128
- bgLight: "linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%)",
4129
- borderLight: "#bfdbfe",
4130
- bgDark: "linear-gradient(135deg, #1e3a8a 0%, #112240 100%)",
4131
- borderDark: "#1d4ed8",
4132
- render: () => [
4133
- h("path", { key: "m", d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4134
- ],
4135
- },
4136
- // 51. MessagesSquare (Pink / Chatrooms & Group Discussions)
4137
- {
4138
- color: "#ec4899",
4139
- bgLight: "linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%)",
4140
- borderLight: "#fbcfe8",
4141
- bgDark: "linear-gradient(135deg, #831843 0%, #500724 100%)",
4142
- borderDark: "#be185d",
4143
- render: () => [
4144
- h("path", { key: "p1", d: "M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4145
- h("path", { key: "p2", d: "M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4146
- ],
4147
- },
4148
- // 52. Mail (Sky / Email Newsletters)
4149
- {
4150
- color: "#0284c7",
4151
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
4152
- borderLight: "#bae6fd",
4153
- bgDark: "linear-gradient(135deg, #0c4a6e 0%, #082f46 100%)",
4154
- borderDark: "#0369a1",
4155
- render: () => [
4156
- h("rect", { key: "r", width: "20", height: "16", x: "2", y: "4", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4157
- h("path", { key: "p", d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4158
- ],
4159
- },
4160
- // 53. Users (Indigo / Community & Team Members)
4161
- {
4162
- color: "#6366f1",
4163
- bgLight: "linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)",
4164
- borderLight: "#c7d2fe",
4165
- bgDark: "linear-gradient(135deg, #1e1b4b 0%, #131131 100%)",
4166
- borderDark: "#3730a3",
4167
- render: () => [
4168
- h("path", { key: "p1", d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4169
- h("circle", { key: "c1", cx: "9", cy: "7", r: "4", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4170
- h("path", { key: "p2", d: "M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4171
- ],
4172
- },
4173
- // 54. Wrench (Sky / Diagnosis & Doctor Repair)
4174
- {
4175
- color: "#0284c7",
4176
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
4177
- borderLight: "#bae6fd",
4178
- bgDark: "linear-gradient(135deg, #0c4a6e 0%, #082f46 100%)",
4179
- borderDark: "#0369a1",
4180
- render: () => [
4181
- h("path", { key: "w", d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4182
- ],
4183
- },
4184
- // 55. Gauge (Amber / Speedometer & Latency)
4185
- {
4186
- color: "#f59e0b",
4187
- bgLight: "linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%)",
4188
- borderLight: "#fde68a",
4189
- bgDark: "linear-gradient(135deg, #451a03 0%, #291002 100%)",
4190
- borderDark: "#78350f",
4191
- render: () => [
4192
- h("path", { key: "g1", d: "m12 14 4-4", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4193
- h("path", { key: "g2", d: "M3.34 19a10 10 0 1 1 17.32 0", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4194
- ],
4195
- },
4196
- // 56. CheckCircle (Emerald / Quality QA & Compliance Standards)
4197
- {
4198
- color: "#10b981",
4199
- bgLight: "linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",
4200
- borderLight: "#a7f3d0",
4201
- bgDark: "linear-gradient(135deg, #064e3b 0%, #022c22 100%)",
4202
- borderDark: "#047857",
4203
- render: () => [
4204
- h("path", { key: "p1", d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4205
- h("polyline", { key: "p2", points: "22 4 12 14.01 9 11.01", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4206
- ],
4207
- },
4208
- // 57. Flame (Rose / Power Boost & Turbo)
4209
- {
4210
- color: "#f43f5e",
4211
- bgLight: "linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%)",
4212
- borderLight: "#fecdd3",
4213
- bgDark: "linear-gradient(135deg, #4c0519 0%, #2e030f 100%)",
4214
- borderDark: "#9f1239",
4215
- render: () => [
4216
- h("path", { key: "f", d: "M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4217
- ],
4218
- },
4219
- // 58. Zap (Yellow / Superpowers & Speed)
4220
- {
4221
- color: "#eab308",
4222
- bgLight: "linear-gradient(135deg, #fefce8 0%, #fef9c3 100%)",
4223
- borderLight: "#fef08a",
4224
- bgDark: "linear-gradient(135deg, #422006 0%, #271304 100%)",
4225
- borderDark: "#854d0e",
4226
- render: () => [
4227
- h("polygon", { key: "z", points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4228
- ],
4229
- },
4230
- // 59. Truck (Orange / Migration & Asset Transfer)
4231
- {
4232
- color: "#f97316",
4233
- bgLight: "linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%)",
4234
- borderLight: "#fed7aa",
4235
- bgDark: "linear-gradient(135deg, #431407 0%, #270b04 100%)",
4236
- borderDark: "#c2410c",
4237
- render: () => [
4238
- h("path", { key: "p1", d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4239
- h("path", { key: "p2", d: "M15 18H9M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14v10Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4240
- h("circle", { key: "c1", cx: "17", cy: "18", r: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4241
- h("circle", { key: "c2", cx: "7", cy: "18", r: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4242
- ],
4243
- },
4244
- // 60. RefreshCw (Sky Blue / Sync & Auto-Update)
4245
- {
4246
- color: "#0ea5e9",
4247
- bgLight: "linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)",
4248
- borderLight: "#bae6fd",
4249
- bgDark: "linear-gradient(135deg, #075985 0%, #032b42 100%)",
4250
- borderDark: "#0284c7",
4251
- render: () => [
4252
- h("path", { key: "p1", d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4253
- h("path", { key: "p2", d: "M3 3v5h5", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4254
- h("path", { key: "p3", d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4255
- h("path", { key: "p4", d: "M16 16h5v5", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4256
- ],
4257
- },
4258
- // 61. Workflow (Violet / Pipelines & Automation)
4259
- {
4260
- color: "#8b5cf6",
4261
- bgLight: "linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%)",
4262
- borderLight: "#ddd6fe",
4263
- bgDark: "linear-gradient(135deg, #2e1065 0%, #1c0a3d 100%)",
4264
- borderDark: "#4c1d95",
4265
- render: () => [
4266
- h("rect", { key: "r1", width: "8", height: "8", x: "3", y: "3", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4267
- h("path", { key: "p", d: "M7 11v4a2 2 0 0 0 2 2h4", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round" }),
4268
- h("rect", { key: "r2", width: "8", height: "8", x: "13", y: "13", rx: "2", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4269
- ],
4270
- },
4271
- // 62. Clock (Slate / Cron & Scheduling)
4272
- {
4273
- color: "#64748b",
4274
- bgLight: "linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%)",
4275
- borderLight: "#cbd5e1",
4276
- bgDark: "linear-gradient(135deg, #1e293b 0%, #0f172a 100%)",
4277
- borderDark: "#334155",
4278
- render: () => [
4279
- h("circle", { key: "c", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: 2, fill: "none" }),
4280
- h("polyline", { key: "p", points: "12 6 12 12 16 14", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4281
- ],
4282
- },
4283
- // 63. Package (Purple / Tools & Module Library)
4284
- {
4285
- color: "#a855f7",
4286
- bgLight: "linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%)",
4287
- borderLight: "#e9d5ff",
4288
- bgDark: "linear-gradient(135deg, #3b0764 0%, #240340 100%)",
4289
- borderDark: "#6b21a8",
4290
- render: () => [
4291
- h("path", { key: "p1", d: "m7.5 4.27 9 5.15", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" }),
4292
- h("path", { key: "p2", d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4293
- h("path", { key: "p3", d: "m3.3 7 8.7 5 8.7-5M12 22V12", stroke: "currentColor", strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }),
4294
- ],
4295
- },
3650
+ // Original Microsoft Fluent Emoji 3D PNGs. MIT; see assets/licenses/fluent-emoji.txt.
3651
+ const FLUENT_3D_ICONS = {
3652
+ "brain": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FBrain%2F3D%2Fbrain_3d.png",
3653
+ "compass-tool": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FCompass%2F3D%2Fcompass_3d.png",
3654
+ "chat-circle-dots": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FSpeech%2520balloon%2F3D%2Fspeech_balloon_3d.png",
3655
+ "microscope": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FMicroscope%2F3D%2Fmicroscope_3d.png",
3656
+ "graduation-cap": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FGraduation%2520cap%2F3D%2Fgraduation_cap_3d.png",
3657
+ "notebook": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FNotebook%2F3D%2Fnotebook_3d.png",
3658
+ "translate": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FInput%2520latin%2520letters%2F3D%2Finput_latin_letters_3d.png",
3659
+ "briefcase": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FBriefcase%2F3D%2Fbriefcase_3d.png",
3660
+ "identification-card": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FIdentification%2520card%2F3D%2Fidentification_card_3d.png",
3661
+ "scales": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FBalance%2520scale%2F3D%2Fbalance_scale_3d.png",
3662
+ "handshake": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FHandshake%2F3D%2Fhandshake_3d.png",
3663
+ "magnifying-glass": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FMagnifying%2520glass%2520tilted%2520left%2F3D%2Fmagnifying_glass_tilted_left_3d.png",
3664
+ "puzzle-piece": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FPuzzle%2520piece%2F3D%2Fpuzzle_piece_3d.png",
3665
+ "presentation-chart": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FBar%2520chart%2F3D%2Fbar_chart_3d.png",
3666
+ "image-square": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FFramed%2520picture%2F3D%2Fframed_picture_3d.png",
3667
+ "pen-nib": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FMemo%2F3D%2Fmemo_3d.png",
3668
+ "code-block": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FLaptop%2F3D%2Flaptop_3d.png",
3669
+ "tree-structure": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FWorld%2520map%2F3D%2Fworld_map_3d.png",
3670
+ "question": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FRed%2520question%2520mark%2F3D%2Fred_question_mark_3d.png",
3671
+ "ticket": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FTicket%2F3D%2Fticket_3d.png",
3672
+ "blueprint": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FTriangular%2520ruler%2F3D%2Ftriangular_ruler_3d.png",
3673
+ "kanban": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FClipboard%2F3D%2Fclipboard_3d.png",
3674
+ "sliders-horizontal": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FControl%2520knobs%2F3D%2Fcontrol_knobs_3d.png",
3675
+ "terminal-window": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FDesktop%2520computer%2F3D%2Fdesktop_computer_3d.png",
3676
+ "database": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FCard%2520file%2520box%2F3D%2Fcard_file_box_3d.png",
3677
+ "cloud": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FCloud%2F3D%2Fcloud_3d.png",
3678
+ "shield-check": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FShield%2F3D%2Fshield_3d.png",
3679
+ "music-notes": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FMusical%2520notes%2F3D%2Fmusical_notes_3d.png",
3680
+ "film-strip": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FClapper%2520board%2F3D%2Fclapper_board_3d.png",
3681
+ "globe": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FGlobe%2520with%2520meridians%2F3D%2Fglobe_with_meridians_3d.png",
3682
+ "robot": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FRobot%2F3D%2Frobot_3d.png",
3683
+ "calendar-blank": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FSpiral%2520calendar%2F3D%2Fspiral_calendar_3d.png",
3684
+ "chart-line-up": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FChart%2520increasing%2F3D%2Fchart_increasing_3d.png",
3685
+ "stack": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FBooks%2F3D%2Fbooks_3d.png",
3686
+ "book-open-text": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FOpen%2520book%2F3D%2Fopen_book_3d.png",
3687
+ "cpu": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FDesktop%2520computer%2F3D%2Fdesktop_computer_3d.png",
3688
+ "bug": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FLady%2520beetle%2F3D%2Flady_beetle_3d.png",
3689
+ "git-branch": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FGear%2F3D%2Fgear_3d.png",
3690
+ "link-simple": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FLink%2F3D%2Flink_3d.png",
3691
+ "lock-key": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FLocked%2F3D%2Flocked_3d.png",
3692
+ "sparkle": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FSparkles%2F3D%2Fsparkles_3d.png",
3693
+ "currency-circle-dollar": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FMoney%2520bag%2F3D%2Fmoney_bag_3d.png",
3694
+ "shopping-bag-open": "/universal-plugin-hub/api/icon?u=https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Ffluentui-emoji%2F1ffb34c752ecf5d402f04cfb4b392c77f57c54bc%2Fassets%2FShopping%2520bags%2F3D%2Fshopping_bags_3d.png",
3695
+ };
3696
+ const FALLBACK_RULES = [
3697
+ [/\b(brainstorm|brainstorming|brain|mind)\b|头脑风暴|大脑/, "brain"],
3698
+ [/\b(first principles|mental models?|reasoning|logic)\b|第一性原理|心智模型|逻辑/, "compass-tool"],
3699
+ [/\b(bq|interview|grill|grilling|conversation|chat|discuss)\b|面试|沟通|讨论/, "chat-circle-dots"],
3700
+ [/\b(resume|cv|profile|identity)\b|简历|档案/, "identification-card"],
3701
+ [/\b(salary|negotiation|negotiate|negotiating)\b|谈薪|谈判/, "handshake"],
3702
+ [/\b(compare|comparison|decision)\b|对比|决策/, "scales"],
3703
+ [/\b(job|career|offer|recruit|hiring|business)\b|求职|招聘|职场/, "briefcase"],
3704
+ [/\b(learn eng|english|translate|translation|language|i18n)\b|英语|翻译|语言/, "translate"],
3705
+ [/\b(memo|memory|memorize|flashcard|flashcards|maimemo)\b|记忆|背单词|墨墨/, "stack"],
3706
+ [/\b(teach|learn|learning|homework|cs61b|education|course|study)\b|教学|学习|课程/, "graduation-cap"],
3707
+ [/\b(research|investigate|science|scientific)\b|研究|科研|调研/, "microscope"],
3708
+ [/\b(note|notes|notebook|obsidian|wiki|knowledge)\b|笔记|知识库/, "notebook"],
3709
+ [/\b(ppt|presentation|presentations|slides|slide|keynote)\b|演示|幻灯片/, "presentation-chart"],
3710
+ [/\b(image|photo|picture|draw|illustration|canvas)\b|图像|图片|插画|海报/, "image-square"],
3711
+ [/\b(humanizer|unslop|write|writing|writer|copywriting|article|text|markdown)\b|润色|写作|文章|文案/, "pen-nib"],
3712
+ [/\b(triage|kanban|project|projects)\b|分诊|看板|项目/, "kanban"],
3713
+ [/\b(ticket|tickets|issue|issues)\b|工单|票据/, "ticket"],
3714
+ [/\b(spec|specification|plan|planning|blueprint)\b|规格|规范|规划/, "blueprint"],
3715
+ [/\b(how|workflow|architecture|orchestration|pipeline|automation)\b|流程|架构|编排/, "tree-structure"],
3716
+ [/\b(why|question|questions|explain)\b|为什么|提问|解释/, "question"],
3717
+ [/\b(setup|config|configuration|settings|controls)\b|配置|设置/, "sliders-horizontal"],
3718
+ [/\b(find|search|discovery|lookup|retrieval|rag)\b|查找|搜索|检索/, "magnifying-glass"],
3719
+ [/\b(reverse engineer|cpu|firmware|binary|kernel|chip)\b|逆向|内核|芯片/, "cpu"],
3720
+ [/\b(karpathy|implement|code|coding|dev|developer|sdk|lsp|compiler|programming)\b|编程|代码|开发/, "code-block"],
3721
+ [/\b(design|ui|ux|frontend|layout|glass|theme|color)\b|设计|界面|布局/, "stack"],
3722
+ [/\b(terminal|cli|shell|bash|console|command)\b|终端|命令行/, "terminal-window"],
3723
+ [/\b(database|sql|postgres|mysql|redis|storage|data)\b|数据库|存储/, "database"],
3724
+ [/\b(security|guard|safety|audit|verify|permission)\b|安全|审计|权限/, "shield-check"],
3725
+ [/\b(lock|encryption|privacy|secret|credential|oauth)\b|加密|隐私|密钥/, "lock-key"],
3726
+ [/\b(video|film|movie|animation|editing)\b|视频|影片|动画/, "film-strip"],
3727
+ [/\b(audio|voice|speech|music|podcast|sound)\b|音乐|语音|音频/, "music-notes"],
3728
+ [/\b(calendar|schedule|cron|time|daily)\b|日历|日程|定时/, "calendar-blank"],
3729
+ [/\b(chart|analytics|statistics|metrics|growth)\b|图表|统计|增长/, "chart-line-up"],
3730
+ [/\b(finance|money|billing|payment|currency)\b|金融|财务|支付/, "currency-circle-dollar"],
3731
+ [/\b(shop|shopping|commerce|store|cart)\b|购物|电商|商店/, "shopping-bag-open"],
3732
+ [/\b(bug|debug|error|test|testing|diagnosis)\b|调试|测试|诊断/, "bug"],
3733
+ [/\b(git|github|branch|commit|repository)\b|分支|提交|仓库/, "git-branch"],
3734
+ [/\b(bridge|gateway|integration|connect|link)\b|网关|桥接|连接/, "link-simple"],
3735
+ [/\b(cloud|server|deploy|container|docker|backend)\b|云端|部署|服务器/, "cloud"],
3736
+ [/\b(web|browser|crawl|scrape|internet)\b|网页|浏览器|网络/, "globe"],
3737
+ [/\b(book|docs|documentation|read|reading)\b|文档|阅读|手册/, "book-open-text"],
3738
+ [/\b(agent|robot|assistant|bot)\b|智能体|助手|机器人/, "robot"],
3739
+ [/\b(ai|llm|prompt|generate|magic)\b|提示词|生成|大模型/, "sparkle"],
3740
+ [/\b(plugin|plugins|package|bundle|toolkit)\b|插件|工具箱/, "puzzle-piece"],
4296
3741
  ];
4297
-
4298
3742
  const BADGE_CACHE = new Map();
4299
3743
  function getPluginBadge(plugin) {
4300
- const rawName = String(plugin?.name || "").toLowerCase();
4301
- const rawDisp = String(plugin?.displayName || "").toLowerCase();
4302
- const rawDesc = String(plugin?.description || "").toLowerCase();
4303
- const author = String(typeof plugin?.author === "string" ? plugin.author : (plugin?.author && plugin.author.name) || "").toLowerCase();
4304
- const cacheKey = `${rawName}::${rawDisp}::${author}`;
4305
-
4306
- if (BADGE_CACHE.has(cacheKey)) {
4307
- return BADGE_CACHE.get(cacheKey);
4308
- }
4309
-
4310
- // Clean common repository prefix
4311
- const cleanName = rawName.replace(/^(dbs|ecc|claude|agent|tool|mcp|plugin|skill)[-_]+/i, "");
4312
- const text = `${cleanName} ${rawDisp} ${rawDesc} ${author}`.toLowerCase();
4313
-
4314
- let badge = null;
4315
-
4316
- // 1. Video / Editing / Animation
4317
- if (/\b(video|film|movie|clip|screen|record|obs|ffmpeg|render|capcut|premiere|vfx|motion|animation|reels|subtitle|caption)\b|视频|剪辑|影视|动画|录屏|特效|字幕/.test(text)) {
4318
- if (text.includes("cut") || text.includes("scissors") || text.includes("剪")) badge = LUCIDE_BADGES[4]; // Scissors
4319
- else if (text.includes("film") || text.includes("movie") || text.includes("影")) badge = LUCIDE_BADGES[3]; // Film
4320
- else if (text.includes("wand") || text.includes("effect") || text.includes("特效")) badge = LUCIDE_BADGES[5]; // Wand
4321
- else badge = LUCIDE_BADGES[2]; // Video
4322
- }
4323
-
4324
- // 2. Audio / Voice / Music / Podcast
4325
- else if (/\b(audio|voice|speech|tts|whisper|sound|music|podcast|mic|vocal|listen|track|song|acoustic|elevenlabs)\b|音频|语音|配音|音乐|播客|声音/.test(text)) {
4326
- if (text.includes("music") || text.includes("song") || text.includes("曲") || text.includes("乐")) badge = LUCIDE_BADGES[9]; // Music
4327
- else if (text.includes("headphone") || text.includes("listen") || text.includes("听")) badge = LUCIDE_BADGES[8]; // Headphones
4328
- else if (text.includes("volume") || text.includes("speaker") || text.includes("声")) badge = LUCIDE_BADGES[10]; // Volume
4329
- else badge = LUCIDE_BADGES[7]; // Mic
4330
- }
4331
-
4332
- // 3. Testing / QA / Standards / Diagnosis / Wrench
4333
- else if (/\b(diagnos|doctor|repair|fix|troubleshoot|healthcheck)\b|诊断|体检|排错|修复/.test(text)) badge = LUCIDE_BADGES[54]; // Wrench
4334
- else if (/\b(benchmark|standard|answer|compliant|quality|assert|eval|grading|audit)\b|对标|标准|答案|基准|质检|评估/.test(text)) badge = LUCIDE_BADGES[56]; // CheckCircle
4335
- else if (/\b(risk|vulnerabilit|guard|auth|safe|protect|firewall|exploit|penetrat|cve|owasp)\b|风控|安全|漏洞|防护|鉴权/.test(text)) badge = LUCIDE_BADGES[42]; // ShieldAlert
4336
- else if (/\b(security|safe|verify|certified|cert)\b|认证|合规/.test(text)) badge = LUCIDE_BADGES[41]; // ShieldCheck
4337
-
4338
- // 4. Update / Sync / Bridge / Migration / Workflow / Hook
4339
- else if (/\b(update|refresh|renew|upgrade)\b|更新|刷新|升级/.test(text)) badge = LUCIDE_BADGES[60]; // RefreshCw
4340
- else if (/\b(migration|migrate|transfer|import|export|move|shift|relocat)\b|迁移|导入|导出|搬迁/.test(text)) badge = LUCIDE_BADGES[59]; // Truck
4341
- else if (/\b(bridge|gateway|adapter|connect|router|tunnel)\b|桥接|网关|连接|适配/.test(text)) badge = LUCIDE_BADGES[39]; // Link
4342
- else if (/\b(hook|interceptor|event|listener|signal)\b|钩子|拦截|触发器/.test(text)) badge = LUCIDE_BADGES[40]; // Anchor
4343
- else if (/\b(workflow|pipeline|orchestrat|dag|automat|flow)\b|工作流|流水线|编排|自动化/.test(text)) badge = LUCIDE_BADGES[61]; // Workflow
4344
- else if (/\b(schedule|cron|timer|clock|daily|interval)\b|定时|调度|周期|日历/.test(text)) badge = LUCIDE_BADGES[62]; // Clock
4345
-
4346
- // 5. Writing / Content / Copywriting / Typography / Knowledge
4347
- else if (/\b(title|headline|xhs|typography|font)\b|标题|小红书|排版|字体|文案标题/.test(text)) badge = LUCIDE_BADGES[28]; // Type
4348
- else if (/\b(content|copywriting|writer|article|essay|story|draft)\b|写作|文案|内容|文章|创作/.test(text)) badge = LUCIDE_BADGES[24]; // PenTool
4349
- else if (/\b(knowledge|wiki|docs?|book|study|learn|manual|research)\b|知识|知识库|文档|百科|手册|研报/.test(text)) badge = LUCIDE_BADGES[26]; // BookOpen
4350
- else if (/\b(news|newsletter|rss|feed|press|bulletin)\b|新闻|快讯|简报|早报/.test(text)) badge = LUCIDE_BADGES[29]; // Newspaper
4351
- else if (/\b(social|share|wechat|weibo|twitter|discord|outreach)\b|微信|社交|分发|分享/.test(text)) badge = LUCIDE_BADGES[30]; // Share
4352
- else if (/\b(blog|post|feather|author)\b|博客|帖子/.test(text)) badge = LUCIDE_BADGES[27]; // Feather
4353
- else if (/\b(doc|file|summary|spec|resume)\b|总结|摘要|报告|文档/.test(text)) badge = LUCIDE_BADGES[25]; // FileText
4354
-
4355
- // 6. Communication / Chat / Message
4356
- else if (/\b(chatroom|conversation|forum|discuss)\b|聊天室|群聊|讨论/.test(text)) badge = LUCIDE_BADGES[51]; // MessagesSquare
4357
- else if (/\b(chat|message|dialog|talk|im|room)\b|聊天|对话|会话|留言/.test(text)) badge = LUCIDE_BADGES[50]; // MessageSquare
4358
- else if (/\b(mail|email|inbox|smtp|sendgrid)\b|邮件|邮箱|信件/.test(text)) badge = LUCIDE_BADGES[52]; // Mail
4359
- else if (/\b(users|team|member|community|group)\b|团队|社区|成员|用户/.test(text)) badge = LUCIDE_BADGES[53]; // Users
4360
-
4361
- // 7. Design / UI / UX / Graphics
4362
- else if (/\b(palette|paint|art|color|theme)\b|画板|艺术|色彩|配色/.test(text)) badge = LUCIDE_BADGES[31]; // Palette
4363
- else if (/\b(layout|dashboard|ui|ux|frontend|wireframe)\b|布局|仪表盘|界面|前端/.test(text)) badge = LUCIDE_BADGES[32]; // Layout
4364
- else if (/\b(image|photo|midjourney|dalle|draw|canvas)\b|图像|图片|海报|插画|照片/.test(text)) badge = LUCIDE_BADGES[33]; // Image
4365
- else if (/\b(eye|inspector|visual|preview|look)\b|检查|预览|视图/.test(text)) badge = LUCIDE_BADGES[34]; // Eye
4366
- else if (/\b(layer|stack|hierarchy|structure)\b|图层|分层|结构|架构/.test(text)) badge = LUCIDE_BADGES[35]; // Layers
4367
-
4368
- // 8. Finance / Business / E-Commerce / Data
4369
- else if (/\b(finance|money|cash|invoice|billing|accounting|ledger|coin|crypto|tax)\b|金融|财务|商业|变现|发票|账单|货币/.test(text)) badge = LUCIDE_BADGES[46]; // Coins
4370
- else if (/\b(pay|stripe|payment|checkout|card)\b|支付|刷卡|结算/.test(text)) badge = LUCIDE_BADGES[45]; // CreditCard
4371
- else if (/\b(shop|store|cart|commerce|product|catalog)\b|电商|商店|购物|商品/.test(text)) badge = LUCIDE_BADGES[47]; // ShoppingCart
4372
- else if (/\b(growth|trend|metric|analytics|stats|bi)\b|增长|统计|分析|度量|行情/.test(text)) badge = LUCIDE_BADGES[48]; // TrendingUp
4373
- else if (/\b(chart|report|pie|dashboard)\b|图表|报表/.test(text)) badge = LUCIDE_BADGES[49]; // PieChart
4374
-
4375
- // 9. Coding / Dev / Languages / Infrastructure
4376
- else if (/\b(database|sql|postgres|mysql|sqlite|mongo|redis|prisma|orm|airtable|snowflake|db)\b|数据库|数据表|存储/.test(text)) badge = LUCIDE_BADGES[16]; // Database
4377
- else if (/\b(server|host|backend|deploy|node|cluster)\b|服务器|后端|主机|集群/.test(text)) badge = LUCIDE_BADGES[17]; // Server
4378
- else if (/\b(container|docker|k8s|kubernetes|pod)\b|容器|镜像/.test(text)) badge = LUCIDE_BADGES[18]; // Container
4379
- else if (/\b(cpu|kernel|chip|processor|engine)\b|内核|处理器|核心|引擎/.test(text)) badge = LUCIDE_BADGES[14]; // Cpu
4380
- else if (/\b(bug|debug|trace|error|profiler|leak)\b|调试|修复|报错|异常/.test(text)) badge = LUCIDE_BADGES[11]; // Bug
4381
- else if (/\b(git|branch|pr|commit|repo)\b|仓库|分支|提交/.test(text)) badge = LUCIDE_BADGES[12]; // GitBranch
4382
- else if (/\b(json|ast|parse|syntax|braces|yaml|toml)\b|解析|语法|树/.test(text)) badge = LUCIDE_BADGES[15]; // Braces
4383
- else if (/\b(terminal|cli|shell|bash|cmd|console|command)\b|终端|控制台|命令行/.test(text)) badge = LUCIDE_BADGES[0]; // Terminal
4384
- else if (/\b(code|coding|dev|lsp|sdk|compiler|typescript|javascript|python|rust|golang|java|cpp|html|css)\b|代码|编程|开发|脚本/.test(text)) badge = LUCIDE_BADGES[1]; // Code
4385
-
4386
- // 10. AI / LLM / Agents / Speed / Discovery
4387
- else if (/\b(brain|neural|cognitive|deeplearning|mind)\b|大脑|神经|深度学习/.test(text)) badge = LUCIDE_BADGES[19]; // Brain
4388
- else if (/\b(bot|agent|assistant|robot|automaton)\b|智能体|机器人|助手|助理/.test(text)) badge = LUCIDE_BADGES[20]; // Bot
4389
- else if (/\b(sparkles|magic|generate|prompt|ai|llm|gpt|claude)\b|智能|生成|大模型|提示词/.test(text)) badge = LUCIDE_BADGES[21]; // Sparkles
4390
- else if (/\b(vision|ocr|face|cv|detect)\b|视觉|识图|检测/.test(text)) badge = LUCIDE_BADGES[22]; // ScanFace
4391
- else if (/\b(speed|fast|superpower|turbo|accelerat|boost|quick)\b|快|加速|极速|超能|快速/.test(text)) badge = LUCIDE_BADGES[58]; // Zap
4392
- else if (/\b(flame|hot|power|fire|blazing)\b|火|强大|威力/.test(text)) badge = LUCIDE_BADGES[57]; // Flame
4393
- else if (/\b(search|find|query|lookup|retriev|rag)\b|搜索|查找|检索|查询/.test(text)) badge = LUCIDE_BADGES[37]; // Search
4394
- else if (/\b(explore|discover|compass|navigate|map)\b|探索|发现|指南|导航/.test(text)) badge = LUCIDE_BADGES[36]; // Compass
4395
- else if (/\b(globe|web|internet|browser|crawl|scrape|http|net)\b|网页|网络|抓取|浏览器|互联网/.test(text)) badge = LUCIDE_BADGES[38]; // Globe
4396
- else if (/\b(lock|crypto|encrypt|token|privacy|vault)\b|加密|隐私|保险库/.test(text)) badge = LUCIDE_BADGES[43]; // Lock
4397
- else if (/\b(key|secret|passkey|oauth|access)\b|密钥|凭证|钥匙/.test(text)) badge = LUCIDE_BADGES[44]; // Key
4398
- else if (/\b(package|module|bundle|lib|box|plugin)\b|插件|包|模块|工具箱/.test(text)) badge = LUCIDE_BADGES[63]; // Package
4399
-
4400
- if (!badge) {
4401
- // 11. Deterministic FNV-1a Hash on clean name
4402
- let hash = 2166136261;
4403
- for (let i = 0; i < cleanName.length; i++) {
4404
- hash ^= cleanName.charCodeAt(i);
4405
- hash = Math.imul(hash, 16777619);
4406
- }
4407
- const idx = Math.abs(hash) % LUCIDE_BADGES.length;
4408
- badge = LUCIDE_BADGES[idx];
4409
- }
4410
-
4411
- BADGE_CACHE.set(cacheKey, badge);
3744
+ const name = String(plugin?.name || "").toLowerCase().replace(/[^a-z0-9\u3400-\u9fff]+/g, " ");
3745
+ const display = String(plugin?.displayName || "").toLowerCase().replace(/[^a-z0-9\u3400-\u9fff]+/g, " ");
3746
+ const description = String(plugin?.description || "").toLowerCase();
3747
+ const key = JSON.stringify([name, display, description]);
3748
+ if (BADGE_CACHE.has(key)) return BADGE_CACHE.get(key);
3749
+ // Names are the strongest signal; incidental words in long descriptions
3750
+ // must not turn a writing skill into an audio or transport icon.
3751
+ const rule = FALLBACK_RULES.find(([match]) => match.test(name + " " + display))
3752
+ || FALLBACK_RULES.find(([match]) => match.test(description));
3753
+ const icon = rule?.[1] || "puzzle-piece";
3754
+ const badge = { icon, src: FLUENT_3D_ICONS[icon] };
3755
+ if (BADGE_CACHE.size >= 1024) BADGE_CACHE.delete(BADGE_CACHE.keys().next().value);
3756
+ BADGE_CACHE.set(key, badge);
4412
3757
  return badge;
4413
3758
  }
4414
3759
 
@@ -4416,7 +3761,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
4416
3761
  const FAILED_ICON_URLS = new Map();
4417
3762
  function trackLoadedAvatar(url) {
4418
3763
  if (!url || url.startsWith("data:")) return;
4419
- if (LOADED_AVATARS.size > 300) LOADED_AVATARS.clear();
3764
+ if (LOADED_AVATARS.size >= 2048 && !LOADED_AVATARS.has(url)) LOADED_AVATARS.delete(LOADED_AVATARS.values().next().value);
4420
3765
  LOADED_AVATARS.add(url);
4421
3766
  }
4422
3767
 
@@ -4434,10 +3779,11 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
4434
3779
  const imgLoaded = avatarUrl && (avatarUrl.startsWith("data:") || LOADED_AVATARS.has(avatarUrl) || loaded === avatarUrl);
4435
3780
  return h("div", { className: "cpm-card-icon", style: { position: "relative", overflow: "hidden" } },
4436
3781
  h("div", { className: "cpm-icon-underlay", "aria-hidden": true, style: { position: "absolute", inset: 0, opacity: imgLoaded ? 0 : 1 } }, fallback),
4437
- avatarUrl && h("img", { key: avatarUrl, src: avatarUrl, alt: plugin?.displayName || plugin?.name || "", width: 38, height: 38, decoding: "async", loading: eager ? "eager" : "lazy",
3782
+ avatarUrl && h("img", { key: avatarUrl, src: avatarUrl, alt: plugin?.displayName || plugin?.name || "", width: 38, height: 38, decoding: LOADED_AVATARS.has(avatarUrl) ? "sync" : "async", loading: eager ? "eager" : "lazy",
4438
3783
  style: { position: "absolute", inset: 0, width: "100%", height: "100%", objectFit: "contain", borderRadius: "inherit", opacity: imgLoaded ? 1 : 0 },
4439
3784
  onLoad: () => { trackLoadedAvatar(avatarUrl); setLoaded(avatarUrl); },
4440
3785
  onError: () => {
3786
+ LOADED_AVATARS.delete(avatarUrl);
4441
3787
  if (FAILED_ICON_URLS.size >= 512) FAILED_ICON_URLS.delete(FAILED_ICON_URLS.keys().next().value);
4442
3788
  FAILED_ICON_URLS.set(avatarUrl, Date.now() + 60_000);
4443
3789
  setLoaded("");
@@ -4482,27 +3828,17 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
4482
3828
  return h(AnthropicIcon, { isDark });
4483
3829
  }
4484
3830
 
4485
- // 4. Universal 64-Theme Vector Icon Badge
3831
+ // Use the upstream 3D PNG unchanged; declared logos retain priority.
4486
3832
  return h("div", {
4487
- className: "cpm-card-icon",
3833
+ className: "cpm-card-icon cpm-fallback-icon",
3834
+ "aria-hidden": true,
4488
3835
  style: {
4489
- color: badge.color,
4490
- background: isDark ? badge.bgDark : badge.bgLight,
4491
- borderColor: isDark ? badge.borderDark : badge.borderLight,
3836
+ background: isDark ? "#2b2b31" : "#fff",
3837
+ borderColor: isDark ? "rgba(255,255,255,.1)" : "rgba(34,37,58,.09)",
3838
+ boxShadow: isDark ? "inset 0 1px 0 rgba(255,255,255,.04)" : "inset 0 1px 0 #fff, 0 1px 2px rgba(27,31,49,.06)",
4492
3839
  },
4493
3840
  },
4494
- h("svg", {
4495
- width: 20,
4496
- height: 20,
4497
- viewBox: "0 0 24 24",
4498
- fill: "none",
4499
- stroke: badge.color,
4500
- strokeWidth: 2,
4501
- strokeLinecap: "round",
4502
- strokeLinejoin: "round",
4503
- },
4504
- badge.render(),
4505
- ),
3841
+ h("img", { src: badge.src, alt: "", width: 34, height: 34, loading: "lazy", decoding: "async", style: { objectFit: "contain" } }),
4506
3842
  );
4507
3843
  }
4508
3844
 
@@ -4516,6 +3852,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
4516
3852
  onClick,
4517
3853
  onManage,
4518
3854
  onInstall,
3855
+ action,
4519
3856
  }) {
4520
3857
  return h("div", {
4521
3858
  className: "cpm-card",
@@ -4524,13 +3861,14 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
4524
3861
  onClick,
4525
3862
  },
4526
3863
  h(PluginIcon, { plugin, isDark, eager: eagerIcon }),
4527
- h("div", { className: "cpm-card-body" },
3864
+ h(action ? "button" : "div", { className: "cpm-card-body" + (action ? " cpm-card-open" : ""), type: action ? "button" : undefined,
3865
+ onClick: action ? (e) => { e.stopPropagation(); onClick?.(e); } : undefined },
4528
3866
  h("div", { className: "cpm-card-name" },
4529
3867
  h("span", { className: "cpm-card-name-text" }, plugin.displayName || plugin.name),
4530
3868
  ),
4531
3869
  h("div", { className: "cpm-card-desc" }, plugin.description || (plugin.author ? `by ${plugin.author}` : "")),
4532
3870
  ),
4533
- installed
3871
+ action || (installed
4534
3872
  ? h("button", {
4535
3873
  className: "cpm-card-pill cpm-card-pill-installed",
4536
3874
  onClick: onManage,
@@ -4538,10 +3876,67 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
4538
3876
  : h("button", {
4539
3877
  className: "cpm-card-pill",
4540
3878
  onClick: onInstall,
4541
- }, "安装"),
3879
+ }, "安装")),
4542
3880
  );
4543
3881
  }
4544
3882
 
3883
+ function SkillSwitch({ skill, busy, onToggle }) {
3884
+ return h("input", { type: "checkbox", switch: "", className: "cpm-toggle" + (skill.enabled ? " on" : ""), role: "switch", checked: !!skill.enabled,
3885
+ "aria-label": `启用 ${skill.name}`, style: { appearance: "none", margin: 0 },
3886
+ disabled: busy || !skill.available || !!skill.error,
3887
+ onClick: e => e.stopPropagation(), onChange: e => onToggle(skill, e.currentTarget.checked) });
3888
+ }
3889
+
3890
+ function useDetailScrollMask(identity, containerRef, content) {
3891
+ const localRef = useRef(null);
3892
+ const detailRef = containerRef || localRef;
3893
+ const [maskClass, setMaskClass] = useState(" mask-bottom");
3894
+ const updateMask = useCallback(() => {
3895
+ const el = detailRef.current;
3896
+ if (!el) return;
3897
+ setMaskClass(el.scrollHeight - el.clientHeight > 4 && el.scrollTop < el.scrollHeight - el.clientHeight - 4 ? " mask-bottom" : "");
3898
+ }, [detailRef]);
3899
+ useLayoutEffect(() => {
3900
+ if (detailRef.current) detailRef.current.scrollTop = 0;
3901
+ updateMask();
3902
+ }, [identity, detailRef, updateMask]);
3903
+ useLayoutEffect(() => {
3904
+ updateMask();
3905
+ const el = detailRef.current;
3906
+ const observer = el && typeof ResizeObserver === "function" ? new ResizeObserver(updateMask) : null;
3907
+ if (observer) { observer.observe(el); Array.from(el.children).forEach(child => observer.observe(child)); }
3908
+ if (typeof window !== "undefined") window.addEventListener("resize", updateMask);
3909
+ return () => { observer?.disconnect(); if (typeof window !== "undefined") window.removeEventListener("resize", updateMask); };
3910
+ }, [content, detailRef, updateMask]);
3911
+ return { detailRef, maskClass, updateMask };
3912
+ }
3913
+
3914
+ function SkillDetail({ skill, onBack, onToggle, busy, isDark, containerRef }) {
3915
+ const [detail, setDetail] = useState(null);
3916
+ const [error, setError] = useState("");
3917
+ const { detailRef, maskClass, updateMask } = useDetailScrollMask(skill.id, containerRef, detail || error);
3918
+ useEffect(() => {
3919
+ let live = true;
3920
+ setDetail(null); setError("");
3921
+ api("/skills/detail?id=" + encodeURIComponent(skill.id)).then(body => { if (live) setDetail(body.skill); }).catch(e => { if (live) setError(e.message); });
3922
+ return () => { live = false; };
3923
+ }, [skill.id]);
3924
+ return h("div", { ref: detailRef, onScroll: updateMask, className: "cpm-detail cpm-skill-detail" + maskClass },
3925
+ h("button", { className: "cpm-back", onClick: onBack }, h(IconChevronLeft), "Back"),
3926
+ h("header", { className: "cpm-skill-header" },
3927
+ h("div", { className: "cpm-skill-identity" }, h(PluginIcon, { plugin: skill, isDark }),
3928
+ h("h1", { className: "cpm-skill-title" }, skill.displayName || skill.name),
3929
+ h(SkillSwitch, { skill, busy, onToggle })),
3930
+ skill.description && h("p", { className: "cpm-skill-summary" }, skill.description),
3931
+ (skill.activePath || skill.path) && h("div", { className: "cpm-skill-location" },
3932
+ h("span", { className: "cpm-skill-location-label" }, "本地文件"),
3933
+ h(NativePathLabel, { path: skill.activePath || skill.path }))),
3934
+ (skill.statusMessage || skill.error || error) && h("p", { className: "cpm-skill-warning", role: "alert" }, error || skill.statusMessage || skill.error),
3935
+ detail ? h("article", { className: "cpm-skill-content", "aria-label": skill.displayName || skill.name },
3936
+ h(NativeMarkdownText, { text: detail.content, labels: SKILL_MARKDOWN_LABELS }))
3937
+ : !error && h("p", { className: "cpm-skill-loading", role: "status" }, "正在加载…"));
3938
+ }
3939
+
4545
3940
  // ────────────────────────────── Modern Vector SVG Icons ──────────────────────────────
4546
3941
  const IconSearch = ({ size = 14, color = "var(--cpm-muted)" }) =>
4547
3942
  h("svg", {
@@ -4914,6 +4309,10 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
4914
4309
  }
4915
4310
 
4916
4311
  let currentScrollTopAnim = null;
4312
+ function stopScrollTopAnim() {
4313
+ if (currentScrollTopAnim) cancelAnimationFrame(currentScrollTopAnim);
4314
+ currentScrollTopAnim = null;
4315
+ }
4917
4316
  function smoothScrollToTop(container, duration = 280, onUpdate) {
4918
4317
  if (!container) return;
4919
4318
  if (currentScrollTopAnim) {
@@ -5019,12 +4418,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
5019
4418
  // empty first render after Back dropped it for a frame and Anthropic
5020
4419
  // took the leftmost slot, producing a visible tab-bar jump.
5021
4420
  mcps: null,
5022
- // Per-source "installed-first" sort snapshots. Kept on SESSION_STORE
5023
- // (module-level, not a component ref) so they survive the BrowseView
5024
- // unmount that happens when the manage page opens — returning from
5025
- // manage must keep both scroll position AND plugin ordering where they
5026
- // were, including a plugin installed right before opening manage.
5027
- installedSnapshots: {},
5028
4421
  };
5029
4422
 
5030
4423
  // ────────────────────────────── Root App ──────────────────────────────
@@ -5232,6 +4625,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
5232
4625
  let isMounted = true;
5233
4626
  (async () => {
5234
4627
  await Promise.allSettled(state.sources.map(async (s) => {
4628
+ if (s.virtual) return;
5235
4629
  try {
5236
4630
  const res = await api("/market?sourceId=" + encodeURIComponent(s.id));
5237
4631
  if (isMounted && Array.isArray(res?.plugins)) setRows((prev) => ({ ...(prev || {}), [s.id]: res.plugins }));
@@ -5239,7 +4633,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
5239
4633
  }));
5240
4634
  for (const s of state.sources) {
5241
4635
  if (!isMounted) break;
5242
- if (s.id === "local") continue;
4636
+ if (s.id === "local" || s.virtual) continue;
5243
4637
  try {
5244
4638
  const res = await api("/market/refresh", {
5245
4639
  method: "POST",
@@ -5267,10 +4661,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
5267
4661
  useEffect(() => {
5268
4662
  return () => {
5269
4663
  if (SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
5270
- // Panel close also resets sort snapshots, so a fresh open
5271
- // re-evaluates the "installed-first" default sort from the
5272
- // current plugin list.
5273
- if (SESSION_STORE.installedSnapshots) SESSION_STORE.installedSnapshots = {};
5274
4664
  // Closing the panel is a fresh start: reopen on the plugin list,
5275
4665
  // not on whichever MCP tab happened to be active.
5276
4666
  SESSION_STORE.mcpsOpen = false;
@@ -5628,7 +5018,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
5628
5018
  return blocks;
5629
5019
  }
5630
5020
 
5631
- function SmartMarkdown({ text, className }) {
5021
+ function SmartMarkdown({ text, className }) {
5632
5022
  if (!text) return null;
5633
5023
  const blocks = parseSmartBlocks(text);
5634
5024
 
@@ -5648,7 +5038,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
5648
5038
  return h("hr", { key: idx, className: "cpm-md-hr" });
5649
5039
  }
5650
5040
  if (b.type === "heading") {
5651
- return h("div", { key: idx, className: `cpm-md-heading cpm-md-h${b.level}` }, renderInlineMarkdownNodes(b.text));
5041
+ return h("div", { key: idx, className: `cpm-md-heading cpm-md-h${b.level}` }, renderInlineMarkdownNodes(b.text));
5652
5042
  }
5653
5043
  if (b.type === "list") {
5654
5044
  const Tag = b.ordered ? "ol" : "ul";
@@ -5954,6 +5344,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
5954
5344
  const [showSort, setShowSort] = useState(false);
5955
5345
  const [busy, setBusy] = useState(null);
5956
5346
  const [isRefreshing, setIsRefreshing] = useState(false);
5347
+ const [skillBusy, setSkillBusy] = useState(null);
5957
5348
  const [loadingSourceId, setLoadingSourceId] = useState(null);
5958
5349
  const [addDialog, setAddDialog] = useState(false);
5959
5350
  const [showAddMenu, setShowAddMenu] = useState(false);
@@ -6202,70 +5593,41 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
6202
5593
  const gridRef = useRef(null);
6203
5594
  const detailContainerRef = useRef(null);
6204
5595
  const tabsRef = useRef(null);
5596
+ // The width the two list columns actually occupy. `clientWidth` is the
5597
+ // grid's content box — padding and the reserved scrollbar gutter are
5598
+ // already excluded — but on a wide panel that box is wider than the
5599
+ // columns themselves, which stop at two 476px tracks plus their 48px
5600
+ // gap. Clamping to that 1000px is what keeps the search box from being
5601
+ // measured against empty space beside the columns.
5602
+ const [columnSpan, setColumnSpan] = useState(0);
5603
+ useSafeLayoutEffect(() => {
5604
+ const measure = () => {
5605
+ const grid = gridRef.current;
5606
+ if (!grid) return;
5607
+ const style = getComputedStyle(grid);
5608
+ const content = grid.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
5609
+ const span = Math.round(Math.min(content, GRID_COLUMNS_MAX));
5610
+ if (!(span > 0)) return;
5611
+ setColumnSpan((current) => (current === span ? current : span));
5612
+ };
5613
+ measure();
5614
+ // The grid can mount after this effect (it is absent while the MCP
5615
+ // page or a detail page is open), and a source switch swaps its
5616
+ // content, so re-measure on the next frame as well as on resize.
5617
+ const frame = requestAnimationFrame(measure);
5618
+ window.addEventListener("resize", measure);
5619
+ return () => { cancelAnimationFrame(frame); window.removeEventListener("resize", measure); };
5620
+ }, [activeSourceId, mcpsOpen, filter, rows]);
6205
5621
  const tabRefs = useRef({});
6206
5622
  const [tabsMaskClass, setTabsMaskClass] = useState("");
6207
5623
  const [gridMaskClass, setGridMaskClass] = useState("");
6208
- // Per-source snapshot of installed plugin names used by the default
6209
- // "installed-first" sort. Lives on module-level SESSION_STORE, not a
6210
- // component ref or state: it must survive the BrowseView unmount that
6211
- // happens when the manage page opens, and it must NOT re-run against
6212
- // live `state.plugins` on every re-render (which is what kept a
6213
- // freshly installed plugin in its alphabetical slot after install).
6214
- // A source's snapshot is built on its first visit this session, then
6215
- // stays sticky across the session UNLESS the actual installed set
6216
- // for the source changes (install / uninstall) — the useEffect below
6217
- // detects that and refreshes. Explicit re-sort (clicking the current
6218
- // tab, picking a filter/sort menu item, or market refresh) still goes
6219
- // through `refreshInstalledSnapshot` to promote plugins installed
6220
- // since the last visit even before the next state refresh lands.
6221
- const installedSnapshots = SESSION_STORE.installedSnapshots || (SESSION_STORE.installedSnapshots = {});
6222
- const sortInstalledSnapshot = installedSnapshots[activeSourceId] || new Set();
6223
-
6224
- // Bumped whenever the user explicitly re-selects a filter/sort menu
6225
- // item (even when the value didn't change, e.g. picking "全部插件"
6226
- // while already in "all"). Forces the `visible` memo to recompute so
6227
- // the "installed-first" sort picks up plugins installed since the
6228
- // snapshot was last refreshed.
6229
- const [sortTick, setSortTick] = useState(0);
6230
-
6231
- // Explicitly rebuild the installed-snapshot for a source. Called when the
6232
- // user explicitly re-sorts: clicking the current source's own tab,
6233
- // picking a filter/sort menu item, or market refresh. This is the ONLY
6234
- // writer that promotes plugins installed since the last visit into the
6235
- // "installed-first" group (scroll-to-top and re-sort are bound — a
6236
- // programmatic scroll-to-top re-sorts; manual wheel scrolling does not).
6237
- const refreshInstalledSnapshot = useCallback((sourceId) => {
6238
- const sid = sourceId || activeSourceId;
6239
- if (!sid) return;
6240
- const snapshots = SESSION_STORE.installedSnapshots || (SESSION_STORE.installedSnapshots = {});
6241
- snapshots[sid] = new Set(
6242
- (state.plugins || []).filter((p) => p.sourceId === sid).map((p) => p.name)
6243
- );
6244
- }, [activeSourceId, state.plugins]);
6245
-
6246
- // Sync the installed-snapshot for the active source whenever the actual
6247
- // installed set for that source changes (install / uninstall). The
6248
- // `existing.size === current.size` + `every` check avoids touching the
6249
- // snapshot on renders that don't change the set, so the "installed-first"
6250
- // order stays stable for the user as they scroll/type/browse.
6251
- useEffect(() => {
6252
- if (!activeSourceId) return;
6253
- const snapshots = SESSION_STORE.installedSnapshots || (SESSION_STORE.installedSnapshots = {});
6254
- const current = new Set(
6255
- (state.plugins || []).filter((p) => p.sourceId === activeSourceId).map((p) => p.name)
6256
- );
6257
- const existing = snapshots[activeSourceId];
6258
- const sameMembers = existing && existing.size === current.size && [...existing].every((n) => current.has(n));
6259
- if (!sameMembers) snapshots[activeSourceId] = current;
6260
- }, [activeSourceId, state.plugins]);
6261
-
6262
5624
  // Detail View Data Fetching & LRU Cache
6263
5625
  const [detail, setDetail] = useState(null);
6264
5626
  const detailCacheRef = useRef({});
6265
5627
  const gridMaskRafRef = useRef(null);
6266
5628
 
6267
5629
  const prefetchDetail = useCallback((sourceId, pluginName) => {
6268
- if (!sourceId || !pluginName) return;
5630
+ if (!sourceId || !pluginName || sourceId === "skills-local") return;
6269
5631
  const cacheKey = `${sourceId}:${pluginName}`;
6270
5632
  if (!detailCacheRef.current[cacheKey]) {
6271
5633
  api("/plugins/" + encodeURIComponent(sourceId) + "/" + encodeURIComponent(pluginName))
@@ -6952,17 +6314,10 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
6952
6314
  }
6953
6315
  setActiveSourceId(s.id, targetFilter);
6954
6316
  } else {
6955
- // Clicking the current source's own tab: this is the
6956
- // "scroll back to top" gesture. The scroll resets to top,
6957
- // and in lockstep the default sort re-runs so a plugin
6958
- // installed since the last refresh is promoted into the
6959
- // "installed-first" group at the top. (Only programmatic
6960
- // scroll-to-top re-sorts; manual wheel-scrolling never does.)
6317
+ // Clicking the current source's tab scrolls its list back to the top.
6961
6318
  scrollActiveTabIntoView(s.id, true);
6962
6319
  if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
6963
6320
  SESSION_STORE.scrollTops[s.id] = 0;
6964
- refreshInstalledSnapshot(s.id);
6965
- setSortTick((t) => t + 1);
6966
6321
  scrollContentToTop();
6967
6322
  }
6968
6323
  }
@@ -7134,6 +6489,14 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7134
6489
  const target = pending.type === "restore"
7135
6490
  ? ((SESSION_STORE.scrollTops && SESSION_STORE.scrollTops[activeSourceId]) || 0)
7136
6491
  : 0;
6492
+ // A scroll-to-top still animating from the source we are leaving
6493
+ // writes this shared container's scrollTop on every frame. It used
6494
+ // to stop itself by detecting that its container had been detached
6495
+ // — but the container now survives a source switch, so it would
6496
+ // keep dragging the new source to the old one's top (and each
6497
+ // intermediate value lands in that source's stored scrollTop).
6498
+ // Cancel it before restoring this source's own position.
6499
+ stopScrollTopAnim();
7137
6500
  // Capture sourceId so the follow-up rAF can re-validate against
7138
6501
  // this source's store value instead of a stale closure.
7139
6502
  appliedScrollTopRef.current = { sourceId: activeSourceId, target };
@@ -7180,13 +6543,14 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7180
6543
  }, [showFilter, showSort, showAddMenu]);
7181
6544
 
7182
6545
  const loadMarket = useCallback(async (sourceId, force = false) => {
6546
+ if (!sourceId) return;
7183
6547
  if (!force && rows && rows[sourceId]) {
7184
6548
  return;
7185
6549
  }
7186
6550
  setLoadingSourceId(sourceId);
7187
6551
  try {
7188
- const body = await api("/market?sourceId=" + encodeURIComponent(sourceId));
7189
- setRows((prev) => ({ ...(prev || {}), [sourceId]: body.plugins || [] }));
6552
+ const body = await api(sourceId === "skills-local" ? "/skills" : "/market?sourceId=" + encodeURIComponent(sourceId));
6553
+ setRows((prev) => ({ ...(prev || {}), [sourceId]: sourceId === "skills-local" ? (body.skills || []) : (body.plugins || []) }));
7190
6554
  } catch (e) {
7191
6555
  showToast("加载失败", e.message, { restart: false });
7192
6556
  setRows((prev) => ({ ...(prev || {}), [sourceId]: [] }));
@@ -7200,6 +6564,12 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7200
6564
  loadMarket(activeSourceId);
7201
6565
  }
7202
6566
  }, [activeSourceId, loadMarket, rows]);
6567
+ useEffect(() => {
6568
+ if (activeSourceId !== "skills-local") return;
6569
+ let active = true;
6570
+ api("/skills").then(body => { if (active) setRows(prev => ({ ...(prev || {}), "skills-local": body.skills || [] })); }).catch(e => { if (active) showToast("加载 Skills 失败", e.message, { restart: false }); });
6571
+ return () => { active = false; };
6572
+ }, [activeSourceId, setRows, showToast]);
7203
6573
 
7204
6574
  const currentSourceInstalledNames = useMemo(() => new Set((state.plugins || []).filter((p) => p.sourceId === activeSourceId).map((p) => p.name)), [state.plugins, activeSourceId]);
7205
6575
  const installedNames = useMemo(() => new Set(state.plugins.map((p) => p.name)), [state.plugins]);
@@ -7354,32 +6724,34 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7354
6724
  } else if (sortBy === "name-desc") {
7355
6725
  list = [...list].sort((a, b) => (b.displayName || b.name).localeCompare(a.displayName || a.name));
7356
6726
  } else if (!query.trim()) {
7357
- // Default sort: Installed plugins (snapshot) first, then strictly alphabetical A-Z
6727
+ // Use the same installed set for sorting and card actions on the first render.
7358
6728
  list = [...list].sort((a, b) => {
7359
- const instA = sortInstalledSnapshot.has(a.name) ? 1 : 0;
7360
- const instB = sortInstalledSnapshot.has(b.name) ? 1 : 0;
6729
+ const instA = currentSourceInstalledNames.has(a.name) ? 1 : 0;
6730
+ const instB = currentSourceInstalledNames.has(b.name) ? 1 : 0;
7361
6731
  if (instB !== instA) return instB - instA;
7362
6732
  return (a.displayName || a.name).localeCompare(b.displayName || b.name);
7363
6733
  });
7364
6734
  }
7365
6735
 
7366
6736
  return list;
7367
- }, [currentSourcePlugins, query, sortBy, sortInstalledSnapshot, sortTick]);
6737
+ }, [currentSourcePlugins, query, sortBy, currentSourceInstalledNames]);
7368
6738
 
7369
6739
  const refresh = async () => {
7370
6740
  setIsRefreshing(true);
7371
6741
  if (detailCacheRef.current) detailCacheRef.current = {};
7372
6742
  try {
6743
+ if (activeSourceId === "skills-local") {
6744
+ const body = await api("/skills/refresh", { method: "POST" });
6745
+ setRows(prev => ({ ...(prev || {}), "skills-local": body.skills || [] }));
6746
+ await refreshState();
6747
+ showToast("已刷新", "Skills 列表已更新", { restart: false });
6748
+ return;
6749
+ }
7373
6750
  const body = await api("/market/refresh", {
7374
6751
  method: "POST",
7375
6752
  body: JSON.stringify({ sourceId: activeSourceId }),
7376
6753
  });
7377
6754
  setRows((prev) => ({ ...(prev || {}), [activeSourceId]: body.plugins || [] }));
7378
- // Market refresh is an explicit re-sort of the current source:
7379
- // rebuild the snapshot so freshly-installed plugins land in the
7380
- // "installed-first" group, and bump sortTick to recompute.
7381
- refreshInstalledSnapshot(activeSourceId);
7382
- setSortTick((t) => t + 1);
7383
6755
  showToast("已刷新", "市场清单已更新", { restart: false });
7384
6756
  } catch (e) {
7385
6757
  showToast("刷新失败", e.message, { restart: false });
@@ -7388,6 +6760,17 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7388
6760
  }
7389
6761
  };
7390
6762
 
6763
+ const toggleSkill = async (skill, enabled) => {
6764
+ if (skillBusy) return;
6765
+ setSkillBusy(skill.id);
6766
+ try {
6767
+ const body = await api("/skills/toggle", { method: "POST", body: JSON.stringify({ id: skill.id, enabled }) });
6768
+ setRows(prev => ({ ...(prev || {}), "skills-local": body.skills || [] }));
6769
+ showToast(enabled ? "Skill 已开启" : "Skill 已关闭", skill.name, { restart: false });
6770
+ } catch (e) { showToast("操作失败", e.message, { restart: false }); }
6771
+ finally { setSkillBusy(null); }
6772
+ };
6773
+
7391
6774
  const doInstall = async () => {
7392
6775
  try {
7393
6776
  const result = await api("/plugins/install", {
@@ -7416,7 +6799,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7416
6799
 
7417
6800
  return h("div", { className: "cpm-main" },
7418
6801
  // Top bar matching Claude official: Row 1 (Full width search) & Row 2 (Tabs on Left + Filter & Sort on Right)
7419
- h("div", { className: "cpm-topbar" },
6802
+ h("div", { className: "cpm-topbar", style: columnSpan ? { "--cpm-column-span": columnSpan + "px" } : undefined },
7420
6803
  h("div", { className: "cpm-topbar-row1" },
7421
6804
  h("div", { className: "cpm-search" },
7422
6805
  h(IconSearch),
@@ -7490,7 +6873,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7490
6873
  onClick: () => setMcpsOpen(false),
7491
6874
  },
7492
6875
  h("span", null, s.name),
7493
- !s.builtin && h("span", {
6876
+ !s.builtin && !s.virtual && h("span", {
7494
6877
  className: "cpm-tab-del-zone",
7495
6878
  onPointerDown: (e) => e.stopPropagation(),
7496
6879
  onClick: (e) => {
@@ -7519,7 +6902,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7519
6902
  ),
7520
6903
  h("div", { className: "cpm-topbar-right" },
7521
6904
  h("button", { className: "cpm-icon-btn" + (isRefreshing ? " is-refreshing" : ""), onClick: refresh, disabled: isRefreshing }, h(IconRefresh)),
7522
- h("div", { style: { position: "relative" } },
6905
+ activeSourceId !== "skills-local" && h("div", { style: { position: "relative" } },
7523
6906
  h("button", { className: "cpm-filter" + (showFilter ? " open" : ""), onClick: () => { setShowFilter(!showFilter); setShowSort(false); } },
7524
6907
  h("span", null, filter === "installed" ? "已安装" : (filter === "all" ? "全部插件" : "Filter by")),
7525
6908
  h("span", { className: "cpm-filter-chevron" }, h(IconArrow)),
@@ -7528,8 +6911,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7528
6911
  h("div", { className: "cpm-menu-item", onClick: () => {
7529
6912
  setFilter("all");
7530
6913
  setShowFilter(false);
7531
- refreshInstalledSnapshot(activeSourceId);
7532
- setSortTick((t) => t + 1);
7533
6914
  if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7534
6915
  SESSION_STORE.scrollTops[activeSourceId] = 0;
7535
6916
  scrollContentToTop();
@@ -7537,8 +6918,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7537
6918
  h("div", { className: "cpm-menu-item", onClick: () => {
7538
6919
  setFilter("installed");
7539
6920
  setShowFilter(false);
7540
- refreshInstalledSnapshot(activeSourceId);
7541
- setSortTick((t) => t + 1);
7542
6921
  if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7543
6922
  SESSION_STORE.scrollTops[activeSourceId] = 0;
7544
6923
  scrollContentToTop();
@@ -7554,8 +6933,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7554
6933
  h("div", { className: "cpm-menu-item", onClick: () => {
7555
6934
  setSortBy("default");
7556
6935
  setShowSort(false);
7557
- refreshInstalledSnapshot(activeSourceId);
7558
- setSortTick((t) => t + 1);
7559
6936
  if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7560
6937
  SESSION_STORE.scrollTops[activeSourceId] = 0;
7561
6938
  scrollContentToTop();
@@ -7563,8 +6940,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7563
6940
  h("div", { className: "cpm-menu-item", onClick: () => {
7564
6941
  setSortBy("name-asc");
7565
6942
  setShowSort(false);
7566
- refreshInstalledSnapshot(activeSourceId);
7567
- setSortTick((t) => t + 1);
7568
6943
  if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7569
6944
  SESSION_STORE.scrollTops[activeSourceId] = 0;
7570
6945
  scrollContentToTop();
@@ -7572,8 +6947,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7572
6947
  h("div", { className: "cpm-menu-item", onClick: () => {
7573
6948
  setSortBy("name-desc");
7574
6949
  setShowSort(false);
7575
- refreshInstalledSnapshot(activeSourceId);
7576
- setSortTick((t) => t + 1);
7577
6950
  if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7578
6951
  SESSION_STORE.scrollTops[activeSourceId] = 0;
7579
6952
  scrollContentToTop();
@@ -7599,6 +6972,11 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7599
6972
  ),
7600
6973
  ),
7601
6974
 
6975
+ view.type === "skill-detail" && (() => {
6976
+ const selected = ((rows && rows["skills-local"]) || []).find(s => s.id === view.skill.id) || view.skill;
6977
+ return h(SkillDetail, { skill: selected, isDark, containerRef: detailContainerRef, busy: skillBusy === selected.id, onToggle: toggleSkill, onBack: () => setView({ type: "browse", sourceId: "skills-local" }) });
6978
+ })(),
6979
+
7602
6980
  // Detail view — 0ms instant transition without intermediate loading screen
7603
6981
  view.type === "detail" && currentDetailPlugin && h(DetailView, {
7604
6982
  plugin: {
@@ -7623,7 +7001,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7623
7001
  }),
7624
7002
 
7625
7003
  // Browse View — Mode A: Grouped Installed across all sources (Selected active tab source displayed first)
7626
- isBrowse && filter === "installed" && !mcpsOpen && h("div", {
7004
+ isBrowse && activeSourceId !== "skills-local" && filter === "installed" && !mcpsOpen && h("div", {
7627
7005
  ref: gridRef,
7628
7006
  onWheel: onGridWheel,
7629
7007
  onScroll: onGridScroll,
@@ -7678,49 +7056,72 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7678
7056
  ),
7679
7057
 
7680
7058
  // Browse View — Mode B: Normal Source Browser Grid
7681
- isBrowse && filter !== "installed" && !mcpsOpen && h("div", {
7059
+ //
7060
+ // Skills share this very element instead of rendering a second grid.
7061
+ // Two sibling `.cpm-grid` blocks meant React unmounted the plugin
7062
+ // grid and mounted a fresh one on every switch to or from Skills:
7063
+ // a new scroll container and a full set of re-created cards, which
7064
+ // read as a flash. One element keeps the container, its scroll
7065
+ // position and the card nodes alive across sources — only the rows
7066
+ // change, exactly like switching between two plugin sources.
7067
+ isBrowse && (activeSourceId === "skills-local" || filter !== "installed") && !mcpsOpen && h("div", {
7682
7068
  ref: gridRef,
7683
7069
  onWheel: onGridWheel,
7684
7070
  onScroll: onGridScroll,
7685
7071
  className: "cpm-grid" + gridMaskClass,
7686
7072
  },
7687
- visible.length === 0 && h("div", { className: "cpm-empty", style: { gridColumn: "1 / -1", textAlign: "center", padding: "30px" } },
7688
- loadingSourceId === activeSourceId ? "正在加载插件…" : (query.trim() ? "没有找到匹配的插件" : "该插件源暂无插件")
7689
- ),
7690
- visible.map((p, index) => {
7691
- const installed = currentSourceInstalledNames.has(p.name);
7692
- return h(PluginCard, {
7693
- key: p.id,
7694
- plugin: p,
7695
- eagerIcon: index < 12,
7696
- installed,
7697
- isDark,
7698
- onMouseEnter: (e) => handleCardMouseEnter(p, e.currentTarget, { x: e.clientX, y: e.clientY, buttons: e.buttons }),
7699
- onMouseLeave: () => handleCardMouseLeave(p),
7700
- onClick: () => {
7701
- closePluginHover();
7702
- if (gridRef.current) {
7703
- if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7704
- SESSION_STORE.scrollTops[activeSourceId] = gridRef.current.scrollTop;
7705
- }
7706
- setView({ type: "detail", sourceId: activeSourceId, plugin: p });
7707
- },
7708
- onManage: (e) => {
7709
- e.stopPropagation();
7710
- closePluginHover();
7711
- if (gridRef.current) {
7712
- if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7713
- SESSION_STORE.scrollTops[activeSourceId] = gridRef.current.scrollTop;
7714
- }
7715
- openManage(state.plugins.find((r) => r.name === p.name && (r.sourceId === activeSourceId || r.sourceId === p.sourceId)) || state.plugins.find((r) => r.name === p.name), { type: "browse" });
7716
- },
7717
- onInstall: (e) => {
7718
- e.stopPropagation();
7719
- closePluginHover();
7720
- setInstallFor(p);
7721
- },
7722
- });
7723
- }),
7073
+ activeSourceId === "skills-local"
7074
+ ? [
7075
+ visible.length === 0 && h("div", { key: "empty", className: "cpm-empty", style: { gridColumn: "1 / -1", textAlign: "center", padding: 30 } },
7076
+ loadingSourceId === activeSourceId ? "正在加载 Skills…" : "没有找到匹配的 Skills"),
7077
+ // A skill's identity is its file path, a plugin's its name; the
7078
+ // `skill:` prefix keeps the two from ever colliding while they
7079
+ // share one grid.
7080
+ visible.map((skill, index) => h(PluginCard, { key: "skill:" + skill.id, plugin: skill, isDark, eagerIcon: index < 12,
7081
+ onMouseEnter: (e) => handleCardMouseEnter(skill, e.currentTarget, { x: e.clientX, y: e.clientY, buttons: e.buttons }),
7082
+ onMouseLeave: () => handleCardMouseLeave(skill),
7083
+ onClick: () => { closePluginHover(); setView({ type: "skill-detail", sourceId: "skills-local", skill }); },
7084
+ action: h(SkillSwitch, { skill, busy: skillBusy === skill.id, onToggle: toggleSkill }) })),
7085
+ ]
7086
+ : [
7087
+ visible.length === 0 && h("div", { key: "empty", className: "cpm-empty", style: { gridColumn: "1 / -1", textAlign: "center", padding: "30px" } },
7088
+ loadingSourceId === activeSourceId ? "正在加载插件…" : (query.trim() ? "没有找到匹配的插件" : "该插件源暂无插件")
7089
+ ),
7090
+ visible.map((p, index) => {
7091
+ const installed = currentSourceInstalledNames.has(p.name);
7092
+ return h(PluginCard, {
7093
+ key: "plugin:" + p.id,
7094
+ plugin: p,
7095
+ eagerIcon: index < 12,
7096
+ installed,
7097
+ isDark,
7098
+ onMouseEnter: (e) => handleCardMouseEnter(p, e.currentTarget, { x: e.clientX, y: e.clientY, buttons: e.buttons }),
7099
+ onMouseLeave: () => handleCardMouseLeave(p),
7100
+ onClick: () => {
7101
+ closePluginHover();
7102
+ if (gridRef.current) {
7103
+ if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7104
+ SESSION_STORE.scrollTops[activeSourceId] = gridRef.current.scrollTop;
7105
+ }
7106
+ setView({ type: "detail", sourceId: activeSourceId, plugin: p });
7107
+ },
7108
+ onManage: (e) => {
7109
+ e.stopPropagation();
7110
+ closePluginHover();
7111
+ if (gridRef.current) {
7112
+ if (!SESSION_STORE.scrollTops) SESSION_STORE.scrollTops = {};
7113
+ SESSION_STORE.scrollTops[activeSourceId] = gridRef.current.scrollTop;
7114
+ }
7115
+ openManage(state.plugins.find((r) => r.name === p.name && (r.sourceId === activeSourceId || r.sourceId === p.sourceId)) || state.plugins.find((r) => r.name === p.name), { type: "browse" });
7116
+ },
7117
+ onInstall: (e) => {
7118
+ e.stopPropagation();
7119
+ closePluginHover();
7120
+ setInstallFor(p);
7121
+ },
7122
+ });
7123
+ }),
7124
+ ],
7724
7125
  ),
7725
7126
 
7726
7127
  isBrowse && mcpsOpen && h("div", {
@@ -7828,7 +7229,6 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
7828
7229
  showToast("插件源已删除", `已移除分类「${toRemove.name}」`, { restart: false });
7829
7230
  if (SESSION_STORE.sourceViews) delete SESSION_STORE.sourceViews[toRemove.id];
7830
7231
  if (SESSION_STORE.scrollTops) delete SESSION_STORE.scrollTops[toRemove.id];
7831
- if (SESSION_STORE.installedSnapshots) delete SESSION_STORE.installedSnapshots[toRemove.id];
7832
7232
  savedTabScrolls.delete(toRemove.id);
7833
7233
  if (activeSourceId === toRemove.id) {
7834
7234
  setActiveSourceId("anthropic");
@@ -8155,7 +7555,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
8155
7555
  role: "dialog",
8156
7556
  "aria-modal": "true",
8157
7557
  "aria-labelledby": "cpm-dialog-title",
8158
- className: "cpm-dialog-box cpm-source-dialog-box" + (isDragging ? " is-dragging" : ""),
7558
+ className: "cpm-dialog-box cpm-source-dialog-box" + (phase === "upload" ? " cpm-upload-dialog" : "") + (isDragging ? " is-dragging" : ""),
8159
7559
  style: { position: "relative" },
8160
7560
  onClick: (e) => e.stopPropagation(),
8161
7561
  onDragOver: (e) => { e.preventDefault(); setIsDragging(true); },
@@ -8190,15 +7590,17 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
8190
7590
  ),
8191
7591
  phase === "upload" && [
8192
7592
  h("div", { className: "cpm-dialog-title", id: "cpm-dialog-title", key: "title" }, "上传插件 / Skills"),
8193
- h("div", {
7593
+ h("button", {
8194
7594
  className: "cpm-dropzone",
7595
+ type: "button",
8195
7596
  key: "dz",
8196
7597
  style: { cursor: "pointer" },
8197
7598
  onClick: () => uploadInputRef.current && uploadInputRef.current.click(),
8198
7599
  },
8199
- h("div", { className: "cpm-dropzone-icon" }, h(UploadDropIcon)),
8200
- h("div", { className: "cpm-dropzone-title" }, "拖入插件 / Skills,或点击上传"),
8201
- h("div", { className: "cpm-dropzone-sub" }, "支持 Claude / Codex 插件及市场、Skills;.zip / .tgz / .tar.gz / SKILL.md,上限 22MB"),
7600
+ h("span", { className: "cpm-dropzone-icon", "aria-hidden": "true" }, h(UploadDropIcon)),
7601
+ h("span", { className: "cpm-dropzone-title" }, "拖入插件 / Skills,或点击上传"),
7602
+ h("span", { className: "cpm-dropzone-sub" }, "支持 Claude / Codex 插件、插件市场和 Skills",
7603
+ h("br"), ".zip / .tgz / .tar.gz / SKILL.md · 上限 22MB"),
8202
7604
  ),
8203
7605
  h("input", {
8204
7606
  key: "file",
@@ -8943,35 +8345,7 @@ window.__ModuleLoader__.load({ id: "universal-plugin-hub", factory: (require) =>
8943
8345
  const [busy, setBusy] = useState(false);
8944
8346
  const [confirmRemove, setConfirmRemove] = useState(false);
8945
8347
  const [toggling, setToggling] = useState(false);
8946
- const localDetailRef = useRef(null);
8947
- const detailRef = containerRef || localDetailRef;
8948
- const [detailMaskClass, setDetailMaskClass] = useState(" mask-bottom");
8949
-
8950
- const updateDetailMask = useCallback(() => {
8951
- const el = detailRef.current;
8952
- if (!el) return;
8953
- const { scrollTop, scrollHeight, clientHeight } = el;
8954
- const maxScroll = scrollHeight - clientHeight;
8955
- if (maxScroll <= 4) {
8956
- setDetailMaskClass("");
8957
- return;
8958
- }
8959
- const canScrollDown = scrollTop < maxScroll - 4;
8960
- setDetailMaskClass(canScrollDown ? " mask-bottom" : "");
8961
- }, []);
8962
-
8963
- useLayoutEffect(() => {
8964
- if (detailRef.current) {
8965
- detailRef.current.scrollTop = 0;
8966
- }
8967
- updateDetailMask();
8968
- }, [plugin?.name, updateDetailMask]);
8969
-
8970
- useEffect(() => {
8971
- const handleResize = () => updateDetailMask();
8972
- window.addEventListener("resize", handleResize);
8973
- return () => window.removeEventListener("resize", handleResize);
8974
- }, [updateDetailMask]);
8348
+ const { detailRef, maskClass: detailMaskClass, updateMask: updateDetailMask } = useDetailScrollMask(plugin?.name, containerRef, plugin);
8975
8349
 
8976
8350
  if (!plugin) return null;
8977
8351