@industry-theme/agent-panels 0.1.2 → 0.1.4

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.
@@ -2201,7 +2201,7 @@ const createLucideIcon = (iconName, iconNode) => {
2201
2201
  * This source code is licensed under the ISC license.
2202
2202
  * See the LICENSE file in the root directory of this source tree.
2203
2203
  */
2204
- const __iconNode$g = [
2204
+ const __iconNode$j = [
2205
2205
  ["path", { d: "M12 7v14", key: "1akyts" }],
2206
2206
  [
2207
2207
  "path",
@@ -2211,72 +2211,72 @@ const __iconNode$g = [
2211
2211
  }
2212
2212
  ]
2213
2213
  ];
2214
- const BookOpen = createLucideIcon("book-open", __iconNode$g);
2214
+ const BookOpen = createLucideIcon("book-open", __iconNode$j);
2215
2215
  /**
2216
2216
  * @license lucide-react v0.552.0 - ISC
2217
2217
  *
2218
2218
  * This source code is licensed under the ISC license.
2219
2219
  * See the LICENSE file in the root directory of this source tree.
2220
2220
  */
2221
- const __iconNode$f = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
2222
- const Check = createLucideIcon("check", __iconNode$f);
2221
+ const __iconNode$i = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
2222
+ const Check = createLucideIcon("check", __iconNode$i);
2223
2223
  /**
2224
2224
  * @license lucide-react v0.552.0 - ISC
2225
2225
  *
2226
2226
  * This source code is licensed under the ISC license.
2227
2227
  * See the LICENSE file in the root directory of this source tree.
2228
2228
  */
2229
- const __iconNode$e = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
2230
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$e);
2229
+ const __iconNode$h = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
2230
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$h);
2231
2231
  /**
2232
2232
  * @license lucide-react v0.552.0 - ISC
2233
2233
  *
2234
2234
  * This source code is licensed under the ISC license.
2235
2235
  * See the LICENSE file in the root directory of this source tree.
2236
2236
  */
2237
- const __iconNode$d = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
2238
- const ChevronRight = createLucideIcon("chevron-right", __iconNode$d);
2237
+ const __iconNode$g = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
2238
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode$g);
2239
2239
  /**
2240
2240
  * @license lucide-react v0.552.0 - ISC
2241
2241
  *
2242
2242
  * This source code is licensed under the ISC license.
2243
2243
  * See the LICENSE file in the root directory of this source tree.
2244
2244
  */
2245
- const __iconNode$c = [
2245
+ const __iconNode$f = [
2246
2246
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2247
2247
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2248
2248
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2249
2249
  ];
2250
- const CircleAlert = createLucideIcon("circle-alert", __iconNode$c);
2250
+ const CircleAlert = createLucideIcon("circle-alert", __iconNode$f);
2251
2251
  /**
2252
2252
  * @license lucide-react v0.552.0 - ISC
2253
2253
  *
2254
2254
  * This source code is licensed under the ISC license.
2255
2255
  * See the LICENSE file in the root directory of this source tree.
2256
2256
  */
2257
- const __iconNode$b = [
2257
+ const __iconNode$e = [
2258
2258
  ["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
2259
2259
  ["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
2260
2260
  ];
2261
- const Code = createLucideIcon("code", __iconNode$b);
2261
+ const Code = createLucideIcon("code", __iconNode$e);
2262
2262
  /**
2263
2263
  * @license lucide-react v0.552.0 - ISC
2264
2264
  *
2265
2265
  * This source code is licensed under the ISC license.
2266
2266
  * See the LICENSE file in the root directory of this source tree.
2267
2267
  */
2268
- const __iconNode$a = [
2268
+ const __iconNode$d = [
2269
2269
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
2270
2270
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
2271
2271
  ];
2272
- const Copy = createLucideIcon("copy", __iconNode$a);
2272
+ const Copy = createLucideIcon("copy", __iconNode$d);
2273
2273
  /**
2274
2274
  * @license lucide-react v0.552.0 - ISC
2275
2275
  *
2276
2276
  * This source code is licensed under the ISC license.
2277
2277
  * See the LICENSE file in the root directory of this source tree.
2278
2278
  */
2279
- const __iconNode$9 = [
2279
+ const __iconNode$c = [
2280
2280
  ["path", { d: "m15 15 6 6", key: "1s409w" }],
2281
2281
  ["path", { d: "m15 9 6-6", key: "ko1vev" }],
2282
2282
  ["path", { d: "M21 16v5h-5", key: "1ck2sf" }],
@@ -2286,14 +2286,14 @@ const __iconNode$9 = [
2286
2286
  ["path", { d: "M3 8V3h5", key: "1ln10m" }],
2287
2287
  ["path", { d: "M9 9 3 3", key: "v551iv" }]
2288
2288
  ];
2289
- const Expand = createLucideIcon("expand", __iconNode$9);
2289
+ const Expand = createLucideIcon("expand", __iconNode$c);
2290
2290
  /**
2291
2291
  * @license lucide-react v0.552.0 - ISC
2292
2292
  *
2293
2293
  * This source code is licensed under the ISC license.
2294
2294
  * See the LICENSE file in the root directory of this source tree.
2295
2295
  */
2296
- const __iconNode$8 = [
2296
+ const __iconNode$b = [
2297
2297
  [
2298
2298
  "path",
2299
2299
  {
@@ -2305,14 +2305,14 @@ const __iconNode$8 = [
2305
2305
  ["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
2306
2306
  ["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
2307
2307
  ];
2308
- const FileCode = createLucideIcon("file-code", __iconNode$8);
2308
+ const FileCode = createLucideIcon("file-code", __iconNode$b);
2309
2309
  /**
2310
2310
  * @license lucide-react v0.552.0 - ISC
2311
2311
  *
2312
2312
  * This source code is licensed under the ISC license.
2313
2313
  * See the LICENSE file in the root directory of this source tree.
2314
2314
  */
2315
- const __iconNode$7 = [
2315
+ const __iconNode$a = [
2316
2316
  [
2317
2317
  "path",
2318
2318
  {
@@ -2325,7 +2325,52 @@ const __iconNode$7 = [
2325
2325
  ["path", { d: "M16 13H8", key: "t4e002" }],
2326
2326
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
2327
2327
  ];
2328
- const FileText = createLucideIcon("file-text", __iconNode$7);
2328
+ const FileText = createLucideIcon("file-text", __iconNode$a);
2329
+ /**
2330
+ * @license lucide-react v0.552.0 - ISC
2331
+ *
2332
+ * This source code is licensed under the ISC license.
2333
+ * See the LICENSE file in the root directory of this source tree.
2334
+ */
2335
+ const __iconNode$9 = [
2336
+ [
2337
+ "path",
2338
+ {
2339
+ d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
2340
+ key: "1kt360"
2341
+ }
2342
+ ]
2343
+ ];
2344
+ const Folder = createLucideIcon("folder", __iconNode$9);
2345
+ /**
2346
+ * @license lucide-react v0.552.0 - ISC
2347
+ *
2348
+ * This source code is licensed under the ISC license.
2349
+ * See the LICENSE file in the root directory of this source tree.
2350
+ */
2351
+ const __iconNode$8 = [
2352
+ [
2353
+ "path",
2354
+ {
2355
+ d: "M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",
2356
+ key: "tonef"
2357
+ }
2358
+ ],
2359
+ ["path", { d: "M9 18c-4.51 2-5-2-7-2", key: "9comsn" }]
2360
+ ];
2361
+ const Github = createLucideIcon("github", __iconNode$8);
2362
+ /**
2363
+ * @license lucide-react v0.552.0 - ISC
2364
+ *
2365
+ * This source code is licensed under the ISC license.
2366
+ * See the LICENSE file in the root directory of this source tree.
2367
+ */
2368
+ const __iconNode$7 = [
2369
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2370
+ ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
2371
+ ["path", { d: "M2 12h20", key: "9i4pu4" }]
2372
+ ];
2373
+ const Globe = createLucideIcon("globe", __iconNode$7);
2329
2374
  /**
2330
2375
  * @license lucide-react v0.552.0 - ISC
2331
2376
  *
@@ -2419,6 +2464,15 @@ const __iconNode = [
2419
2464
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
2420
2465
  ];
2421
2466
  const X = createLucideIcon("x", __iconNode);
2467
+ const determineSkillSource = (path2) => {
2468
+ if (path2.includes(".agent/skills/")) {
2469
+ return { source: "project-universal", priority: 1 };
2470
+ } else if (path2.includes(".claude/skills/")) {
2471
+ return { source: "project-claude", priority: 3 };
2472
+ } else {
2473
+ return { source: "project-other", priority: 5 };
2474
+ }
2475
+ };
2422
2476
  const findSkillFiles = (fileTree) => {
2423
2477
  const skillFiles = fileTree.allFiles.filter((file) => file.name === "SKILL.md");
2424
2478
  return skillFiles.map((file) => file.relativePath);
@@ -2441,7 +2495,7 @@ const analyzeSkillStructure = (fileTree, skillPath) => {
2441
2495
  assetFiles
2442
2496
  };
2443
2497
  };
2444
- const parseSkillContent = (content2, path2, fileTree) => {
2498
+ const parseSkillContent = async (content2, path2, fileTree, fileSystemAdapter) => {
2445
2499
  const pathParts = path2.split("/");
2446
2500
  const skillDirName = pathParts[pathParts.length - 2] || "Unknown Skill";
2447
2501
  let description = "";
@@ -2465,6 +2519,18 @@ const parseSkillContent = (content2, path2, fileTree) => {
2465
2519
  }
2466
2520
  }
2467
2521
  const structure = analyzeSkillStructure(fileTree, path2);
2522
+ const { source: source2, priority } = determineSkillSource(path2);
2523
+ let metadata;
2524
+ if (fileSystemAdapter && structure.skillFolderPath) {
2525
+ try {
2526
+ const metadataPath = `${structure.skillFolderPath}/.metadata.json`;
2527
+ const metadataContent = await fileSystemAdapter.readFile(metadataPath);
2528
+ metadata = JSON.parse(metadataContent);
2529
+ console.log("[useSkillsData] Loaded metadata for skill:", skillDirName, metadata);
2530
+ } catch (error) {
2531
+ console.debug("[useSkillsData] No metadata file for skill:", skillDirName);
2532
+ }
2533
+ }
2468
2534
  return {
2469
2535
  id: path2,
2470
2536
  name: skillDirName.replace(/-/g, " ").replace(/_/g, " "),
@@ -2473,7 +2539,10 @@ const parseSkillContent = (content2, path2, fileTree) => {
2473
2539
  content: content2,
2474
2540
  capabilities: capabilities.slice(0, 3),
2475
2541
  // Limit to first 3 capabilities
2476
- ...structure
2542
+ ...structure,
2543
+ source: source2,
2544
+ priority,
2545
+ metadata
2477
2546
  };
2478
2547
  };
2479
2548
  const useSkillsData = ({
@@ -2483,53 +2552,56 @@ const useSkillsData = ({
2483
2552
  const [isLoading, setIsLoading] = useState(true);
2484
2553
  const [error, setError] = useState(null);
2485
2554
  const loadSkills = useCallback(async () => {
2486
- var _a, _b;
2555
+ var _a, _b, _c;
2487
2556
  setIsLoading(true);
2488
2557
  setError(null);
2489
2558
  try {
2490
2559
  const fileTreeSlice = context.getSlice("fileTree");
2491
2560
  const fileTree = fileTreeSlice == null ? void 0 : fileTreeSlice.data;
2492
- if (!fileTree) {
2493
- setSkills([]);
2494
- setIsLoading(false);
2495
- return;
2561
+ let localSkills = [];
2562
+ if (fileTree) {
2563
+ console.log("[useSkillsData] Full context:", context);
2564
+ const fileSystem = (_a = context.adapters) == null ? void 0 : _a.fileSystem;
2565
+ console.log("[useSkillsData] Adapters:", context.adapters);
2566
+ console.log("[useSkillsData] FileSystem adapter:", fileSystem);
2567
+ console.log("[useSkillsData] fileSystem?.readFile:", fileSystem == null ? void 0 : fileSystem.readFile);
2568
+ console.log("[useSkillsData] typeof fileSystem?.readFile:", typeof (fileSystem == null ? void 0 : fileSystem.readFile));
2569
+ console.log("[useSkillsData] Check result (!fileSystem?.readFile):", !(fileSystem == null ? void 0 : fileSystem.readFile));
2570
+ if (!(fileSystem == null ? void 0 : fileSystem.readFile)) {
2571
+ console.error("[useSkillsData] FAILING CHECK - fileSystem:", fileSystem);
2572
+ throw new Error("File system adapter not available");
2573
+ }
2574
+ console.log("[useSkillsData] Check passed! Continuing...");
2575
+ const repoPath = (_b = context.currentScope.repository) == null ? void 0 : _b.path;
2576
+ if (!repoPath) {
2577
+ throw new Error("Repository path not available");
2578
+ }
2579
+ console.log("[useSkillsData] fileTree:", fileTree);
2580
+ console.log("[useSkillsData] fileTree.allFiles:", fileTree.allFiles);
2581
+ console.log("[useSkillsData] typeof fileTree:", typeof fileTree);
2582
+ console.log("[useSkillsData] fileTree keys:", Object.keys(fileTree));
2583
+ const skillPaths = findSkillFiles(fileTree);
2584
+ console.log("[useSkillsData] Found skill paths:", skillPaths);
2585
+ const skillPromises = skillPaths.map(async (skillPath) => {
2586
+ try {
2587
+ const fullPath = `${repoPath}/${skillPath}`;
2588
+ const content2 = await fileSystem.readFile(fullPath);
2589
+ return parseSkillContent(content2, skillPath, fileTree, fileSystem);
2590
+ } catch (err) {
2591
+ console.error(`Failed to read skill at ${skillPath}:`, err);
2592
+ return null;
2593
+ }
2594
+ });
2595
+ localSkills = (await Promise.all(skillPromises)).filter(
2596
+ (skill) => skill !== null
2597
+ );
2496
2598
  }
2497
- console.log("[useSkillsData] Full context:", context);
2498
- const fileSystem = (_a = context.adapters) == null ? void 0 : _a.fileSystem;
2499
- console.log("[useSkillsData] Adapters:", context.adapters);
2500
- console.log("[useSkillsData] FileSystem adapter:", fileSystem);
2501
- console.log("[useSkillsData] fileSystem?.readFile:", fileSystem == null ? void 0 : fileSystem.readFile);
2502
- console.log("[useSkillsData] typeof fileSystem?.readFile:", typeof (fileSystem == null ? void 0 : fileSystem.readFile));
2503
- console.log("[useSkillsData] Check result (!fileSystem?.readFile):", !(fileSystem == null ? void 0 : fileSystem.readFile));
2504
- if (!(fileSystem == null ? void 0 : fileSystem.readFile)) {
2505
- console.error("[useSkillsData] FAILING CHECK - fileSystem:", fileSystem);
2506
- throw new Error("File system adapter not available");
2507
- }
2508
- console.log("[useSkillsData] Check passed! Continuing...");
2509
- const repoPath = (_b = context.currentScope.repository) == null ? void 0 : _b.path;
2510
- if (!repoPath) {
2511
- throw new Error("Repository path not available");
2512
- }
2513
- console.log("[useSkillsData] fileTree:", fileTree);
2514
- console.log("[useSkillsData] fileTree.allFiles:", fileTree.allFiles);
2515
- console.log("[useSkillsData] typeof fileTree:", typeof fileTree);
2516
- console.log("[useSkillsData] fileTree keys:", Object.keys(fileTree));
2517
- const skillPaths = findSkillFiles(fileTree);
2518
- console.log("[useSkillsData] Found skill paths:", skillPaths);
2519
- const skillPromises = skillPaths.map(async (skillPath) => {
2520
- try {
2521
- const fullPath = `${repoPath}/${skillPath}`;
2522
- const content2 = await fileSystem.readFile(fullPath);
2523
- return parseSkillContent(content2, skillPath, fileTree);
2524
- } catch (err) {
2525
- console.error(`Failed to read skill at ${skillPath}:`, err);
2526
- return null;
2527
- }
2528
- });
2529
- const loadedSkills = (await Promise.all(skillPromises)).filter(
2530
- (skill) => skill !== null
2531
- );
2532
- setSkills(loadedSkills);
2599
+ const globalSkillsSlice = context.getSlice("globalSkills");
2600
+ const globalSkills = ((_c = globalSkillsSlice == null ? void 0 : globalSkillsSlice.data) == null ? void 0 : _c.skills) || [];
2601
+ console.log("[useSkillsData] Global skills:", globalSkills);
2602
+ const allSkills = [...localSkills, ...globalSkills];
2603
+ console.log("[useSkillsData] Total skills:", allSkills.length);
2604
+ setSkills(allSkills);
2533
2605
  } catch (err) {
2534
2606
  const errorMessage = err instanceof Error ? err.message : "Failed to load skills";
2535
2607
  setError(errorMessage);
@@ -2551,13 +2623,63 @@ const useSkillsData = ({
2551
2623
  refreshSkills
2552
2624
  };
2553
2625
  };
2626
+ const getSourceConfig = (source2) => {
2627
+ switch (source2) {
2628
+ case "global-universal":
2629
+ return {
2630
+ label: "Global",
2631
+ icon: Globe,
2632
+ color: "#7c3aed",
2633
+ // purple
2634
+ bgColor: "#7c3aed15",
2635
+ borderColor: "#7c3aed30"
2636
+ };
2637
+ case "global-claude":
2638
+ return {
2639
+ label: "Global Claude",
2640
+ icon: Globe,
2641
+ color: "#0891b2",
2642
+ // cyan
2643
+ bgColor: "#0891b215",
2644
+ borderColor: "#0891b230"
2645
+ };
2646
+ case "project-universal":
2647
+ return {
2648
+ label: "Project",
2649
+ icon: Folder,
2650
+ color: "#16a34a",
2651
+ // green
2652
+ bgColor: "#16a34a15",
2653
+ borderColor: "#16a34a30"
2654
+ };
2655
+ case "project-claude":
2656
+ return {
2657
+ label: "Project Claude",
2658
+ icon: Folder,
2659
+ color: "#0284c7",
2660
+ // blue
2661
+ bgColor: "#0284c715",
2662
+ borderColor: "#0284c730"
2663
+ };
2664
+ case "project-other":
2665
+ return {
2666
+ label: "Project",
2667
+ icon: Folder,
2668
+ color: "#64748b",
2669
+ // slate
2670
+ bgColor: "#64748b15",
2671
+ borderColor: "#64748b30"
2672
+ };
2673
+ }
2674
+ };
2554
2675
  const SkillCard = ({
2555
2676
  skill,
2556
2677
  onClick,
2557
2678
  isSelected = false
2558
2679
  }) => {
2559
- var _a, _b, _c, _d, _e2, _f;
2680
+ var _a, _b, _c, _d, _e2, _f, _g, _h;
2560
2681
  const { theme: theme2 } = useTheme();
2682
+ const sourceConfig = getSourceConfig(skill.source);
2561
2683
  return /* @__PURE__ */ jsxs(
2562
2684
  "div",
2563
2685
  {
@@ -2607,22 +2729,78 @@ const SkillCard = ({
2607
2729
  children: /* @__PURE__ */ jsx(FileText, { size: 20, color: theme2.colors.primary })
2608
2730
  }
2609
2731
  ),
2610
- /* @__PURE__ */ jsx(
2611
- "h3",
2612
- {
2613
- style: {
2614
- margin: 0,
2615
- fontSize: theme2.fontSizes[2],
2616
- fontWeight: theme2.fontWeights.semibold,
2617
- color: theme2.colors.text,
2618
- overflow: "hidden",
2619
- textOverflow: "ellipsis",
2620
- whiteSpace: "nowrap",
2621
- textTransform: "capitalize"
2622
- },
2623
- children: skill.name
2624
- }
2625
- )
2732
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "4px", flex: 1, minWidth: 0 }, children: [
2733
+ /* @__PURE__ */ jsx(
2734
+ "h3",
2735
+ {
2736
+ style: {
2737
+ margin: 0,
2738
+ fontSize: theme2.fontSizes[2],
2739
+ fontWeight: theme2.fontWeights.semibold,
2740
+ color: theme2.colors.text,
2741
+ overflow: "hidden",
2742
+ textOverflow: "ellipsis",
2743
+ whiteSpace: "nowrap",
2744
+ textTransform: "capitalize"
2745
+ },
2746
+ children: skill.name
2747
+ }
2748
+ ),
2749
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "4px", alignItems: "center", flexWrap: "wrap" }, children: [
2750
+ /* @__PURE__ */ jsxs(
2751
+ "div",
2752
+ {
2753
+ style: {
2754
+ display: "inline-flex",
2755
+ alignItems: "center",
2756
+ gap: "4px",
2757
+ padding: "2px 6px",
2758
+ borderRadius: theme2.radii[1],
2759
+ backgroundColor: sourceConfig.bgColor,
2760
+ border: `1px solid ${sourceConfig.borderColor}`,
2761
+ fontSize: theme2.fontSizes[0],
2762
+ color: sourceConfig.color,
2763
+ fontWeight: 500,
2764
+ width: "fit-content"
2765
+ },
2766
+ title: `Source: ${skill.source}`,
2767
+ children: [
2768
+ /* @__PURE__ */ jsx(sourceConfig.icon, { size: 10 }),
2769
+ /* @__PURE__ */ jsx("span", { children: sourceConfig.label })
2770
+ ]
2771
+ }
2772
+ ),
2773
+ ((_a = skill.metadata) == null ? void 0 : _a.owner) && ((_b = skill.metadata) == null ? void 0 : _b.repo) && /* @__PURE__ */ jsxs(
2774
+ "div",
2775
+ {
2776
+ style: {
2777
+ display: "inline-flex",
2778
+ alignItems: "center",
2779
+ gap: "4px",
2780
+ padding: "2px 6px",
2781
+ borderRadius: theme2.radii[1],
2782
+ backgroundColor: "#23272d15",
2783
+ border: "1px solid #23272d30",
2784
+ fontSize: theme2.fontSizes[0],
2785
+ color: "#23272d",
2786
+ fontWeight: 500,
2787
+ fontFamily: theme2.fonts.monospace,
2788
+ width: "fit-content"
2789
+ },
2790
+ title: `From: ${skill.metadata.installedFrom}
2791
+ Installed: ${skill.metadata.installedAt ? new Date(skill.metadata.installedAt).toLocaleString() : "Unknown"}`,
2792
+ children: [
2793
+ /* @__PURE__ */ jsx(Github, { size: 10 }),
2794
+ /* @__PURE__ */ jsxs("span", { children: [
2795
+ skill.metadata.owner,
2796
+ "/",
2797
+ skill.metadata.repo
2798
+ ] })
2799
+ ]
2800
+ }
2801
+ )
2802
+ ] })
2803
+ ] })
2626
2804
  ] }),
2627
2805
  onClick && /* @__PURE__ */ jsx(
2628
2806
  ChevronRight,
@@ -2707,10 +2885,10 @@ const SkillCard = ({
2707
2885
  color: theme2.colors.primary,
2708
2886
  fontWeight: 500
2709
2887
  },
2710
- title: `Scripts: ${(_a = skill.scriptFiles) == null ? void 0 : _a.join(", ")}`,
2888
+ title: `Scripts: ${(_c = skill.scriptFiles) == null ? void 0 : _c.join(", ")}`,
2711
2889
  children: [
2712
2890
  /* @__PURE__ */ jsx(Code, { size: 12 }),
2713
- /* @__PURE__ */ jsx("span", { children: ((_b = skill.scriptFiles) == null ? void 0 : _b.length) || 0 })
2891
+ /* @__PURE__ */ jsx("span", { children: ((_d = skill.scriptFiles) == null ? void 0 : _d.length) || 0 })
2714
2892
  ]
2715
2893
  }
2716
2894
  ),
@@ -2729,10 +2907,10 @@ const SkillCard = ({
2729
2907
  color: theme2.colors.secondary,
2730
2908
  fontWeight: 500
2731
2909
  },
2732
- title: `References: ${(_c = skill.referenceFiles) == null ? void 0 : _c.join(", ")}`,
2910
+ title: `References: ${(_e2 = skill.referenceFiles) == null ? void 0 : _e2.join(", ")}`,
2733
2911
  children: [
2734
2912
  /* @__PURE__ */ jsx(BookOpen, { size: 12 }),
2735
- /* @__PURE__ */ jsx("span", { children: ((_d = skill.referenceFiles) == null ? void 0 : _d.length) || 0 })
2913
+ /* @__PURE__ */ jsx("span", { children: ((_f = skill.referenceFiles) == null ? void 0 : _f.length) || 0 })
2736
2914
  ]
2737
2915
  }
2738
2916
  ),
@@ -2751,10 +2929,10 @@ const SkillCard = ({
2751
2929
  color: theme2.colors.accent,
2752
2930
  fontWeight: 500
2753
2931
  },
2754
- title: `Assets: ${(_e2 = skill.assetFiles) == null ? void 0 : _e2.join(", ")}`,
2932
+ title: `Assets: ${(_g = skill.assetFiles) == null ? void 0 : _g.join(", ")}`,
2755
2933
  children: [
2756
2934
  /* @__PURE__ */ jsx(Package, { size: 12 }),
2757
- /* @__PURE__ */ jsx("span", { children: ((_f = skill.assetFiles) == null ? void 0 : _f.length) || 0 })
2935
+ /* @__PURE__ */ jsx("span", { children: ((_h = skill.assetFiles) == null ? void 0 : _h.length) || 0 })
2758
2936
  ]
2759
2937
  }
2760
2938
  )
@@ -2789,6 +2967,7 @@ const SkillsListPanel = ({
2789
2967
  const panelRef = useRef(null);
2790
2968
  const [selectedSkillId, setSelectedSkillId] = useState(null);
2791
2969
  const [searchQuery, setSearchQuery] = useState("");
2970
+ const [skillFilter, setSkillFilter] = useState("all");
2792
2971
  const [isRefreshing, setIsRefreshing] = useState(false);
2793
2972
  const { skills, isLoading, error, refreshSkills } = useSkillsData({ context });
2794
2973
  gt("skills-list", events, () => {
@@ -2796,20 +2975,30 @@ const SkillsListPanel = ({
2796
2975
  return (_a = panelRef.current) == null ? void 0 : _a.focus();
2797
2976
  });
2798
2977
  const filteredSkills = useMemo(() => {
2799
- if (!searchQuery.trim()) {
2800
- return skills;
2801
- }
2802
- const query = searchQuery.toLowerCase().trim();
2803
- return skills.filter((skill) => {
2804
- var _a, _b;
2805
- if (skill.name.toLowerCase().includes(query)) return true;
2806
- if ((_a = skill.description) == null ? void 0 : _a.toLowerCase().includes(query)) return true;
2807
- if ((_b = skill.capabilities) == null ? void 0 : _b.some((cap2) => cap2.toLowerCase().includes(query)))
2808
- return true;
2809
- if (skill.path.toLowerCase().includes(query)) return true;
2810
- return false;
2811
- });
2812
- }, [skills, searchQuery]);
2978
+ let filtered = skills;
2979
+ if (skillFilter === "project") {
2980
+ filtered = filtered.filter(
2981
+ (skill) => skill.source === "project-universal" || skill.source === "project-claude" || skill.source === "project-other"
2982
+ );
2983
+ } else if (skillFilter === "global") {
2984
+ filtered = filtered.filter(
2985
+ (skill) => skill.source === "global-universal" || skill.source === "global-claude"
2986
+ );
2987
+ }
2988
+ if (searchQuery.trim()) {
2989
+ const query = searchQuery.toLowerCase().trim();
2990
+ filtered = filtered.filter((skill) => {
2991
+ var _a, _b;
2992
+ if (skill.name.toLowerCase().includes(query)) return true;
2993
+ if ((_a = skill.description) == null ? void 0 : _a.toLowerCase().includes(query)) return true;
2994
+ if ((_b = skill.capabilities) == null ? void 0 : _b.some((cap2) => cap2.toLowerCase().includes(query)))
2995
+ return true;
2996
+ if (skill.path.toLowerCase().includes(query)) return true;
2997
+ return false;
2998
+ });
2999
+ }
3000
+ return filtered;
3001
+ }, [skills, searchQuery, skillFilter]);
2813
3002
  const handleSkillClick = (skill) => {
2814
3003
  setSelectedSkillId(skill.id);
2815
3004
  if (events) {
@@ -3008,6 +3197,90 @@ const SkillsListPanel = ({
3008
3197
  ]
3009
3198
  }
3010
3199
  ),
3200
+ /* @__PURE__ */ jsxs(
3201
+ "div",
3202
+ {
3203
+ style: {
3204
+ flexShrink: 0,
3205
+ display: "flex",
3206
+ gap: "8px"
3207
+ },
3208
+ children: [
3209
+ /* @__PURE__ */ jsx(
3210
+ "button",
3211
+ {
3212
+ onClick: () => setSkillFilter("all"),
3213
+ style: {
3214
+ padding: "8px 16px",
3215
+ fontSize: theme2.fontSizes[1],
3216
+ fontFamily: theme2.fonts.body,
3217
+ border: `1px solid ${skillFilter === "all" ? theme2.colors.primary : theme2.colors.border}`,
3218
+ borderRadius: theme2.radii[1],
3219
+ background: skillFilter === "all" ? `${theme2.colors.primary}15` : theme2.colors.backgroundSecondary,
3220
+ color: skillFilter === "all" ? theme2.colors.primary : theme2.colors.text,
3221
+ cursor: "pointer",
3222
+ display: "flex",
3223
+ alignItems: "center",
3224
+ gap: "6px",
3225
+ fontWeight: skillFilter === "all" ? 600 : 400,
3226
+ transition: "all 0.2s ease"
3227
+ },
3228
+ children: "All Skills"
3229
+ }
3230
+ ),
3231
+ /* @__PURE__ */ jsxs(
3232
+ "button",
3233
+ {
3234
+ onClick: () => setSkillFilter("project"),
3235
+ style: {
3236
+ padding: "8px 16px",
3237
+ fontSize: theme2.fontSizes[1],
3238
+ fontFamily: theme2.fonts.body,
3239
+ border: `1px solid ${skillFilter === "project" ? theme2.colors.primary : theme2.colors.border}`,
3240
+ borderRadius: theme2.radii[1],
3241
+ background: skillFilter === "project" ? `${theme2.colors.primary}15` : theme2.colors.backgroundSecondary,
3242
+ color: skillFilter === "project" ? theme2.colors.primary : theme2.colors.text,
3243
+ cursor: "pointer",
3244
+ display: "flex",
3245
+ alignItems: "center",
3246
+ gap: "6px",
3247
+ fontWeight: skillFilter === "project" ? 600 : 400,
3248
+ transition: "all 0.2s ease"
3249
+ },
3250
+ children: [
3251
+ /* @__PURE__ */ jsx(Folder, { size: 14 }),
3252
+ "Project"
3253
+ ]
3254
+ }
3255
+ ),
3256
+ /* @__PURE__ */ jsxs(
3257
+ "button",
3258
+ {
3259
+ onClick: () => setSkillFilter("global"),
3260
+ style: {
3261
+ padding: "8px 16px",
3262
+ fontSize: theme2.fontSizes[1],
3263
+ fontFamily: theme2.fonts.body,
3264
+ border: `1px solid ${skillFilter === "global" ? theme2.colors.primary : theme2.colors.border}`,
3265
+ borderRadius: theme2.radii[1],
3266
+ background: skillFilter === "global" ? `${theme2.colors.primary}15` : theme2.colors.backgroundSecondary,
3267
+ color: skillFilter === "global" ? theme2.colors.primary : theme2.colors.text,
3268
+ cursor: "pointer",
3269
+ display: "flex",
3270
+ alignItems: "center",
3271
+ gap: "6px",
3272
+ fontWeight: skillFilter === "global" ? 600 : 400,
3273
+ transition: "all 0.2s ease"
3274
+ },
3275
+ children: [
3276
+ /* @__PURE__ */ jsx(Globe, { size: 14 }),
3277
+ "Global"
3278
+ ]
3279
+ }
3280
+ )
3281
+ ]
3282
+ }
3283
+ ),
3011
3284
  error && /* @__PURE__ */ jsxs(
3012
3285
  "div",
3013
3286
  {
@@ -47723,7 +47996,7 @@ const panels = [
47723
47996
  version: "0.1.0",
47724
47997
  author: "Principal ADE",
47725
47998
  description: "Display and manage Agent Skills from SKILL.md files",
47726
- slices: ["fileTree"]
47999
+ slices: ["fileTree", "globalSkills"]
47727
48000
  // Data slices this panel depends on
47728
48001
  },
47729
48002
  component: SkillsListPanel,
@@ -47748,7 +48021,7 @@ const panels = [
47748
48021
  version: "0.1.0",
47749
48022
  author: "Principal ADE",
47750
48023
  description: "Display detailed information about a selected Agent Skill",
47751
- slices: ["fileTree"]
48024
+ slices: ["fileTree", "globalSkills"]
47752
48025
  // Data slices this panel depends on
47753
48026
  },
47754
48027
  component: SkillDetailPanel,