forge-cw 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/console/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
8
|
<title>Forge Console</title>
|
|
9
9
|
<script type="importmap">{"imports":{"preact":"/shared/preact.js","preact/hooks":"/shared/preact-hooks.js","preact/jsx-runtime":"/shared/preact-jsx-runtime.js","preact/compat":"/shared/preact-compat.js","@preact/signals":"/shared/preact-signals.js","@forge-dev/ui":"/shared/forge-dev-ui.js","@forge-dev/sdk":"/shared/forge-dev-sdk.js"}}</script>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-BRs-GRNk.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-DPf7M8cb.css">
|
|
12
12
|
<link rel="stylesheet" href="/shared/forge-dev-ui.css">
|
|
13
13
|
</head>
|
package/dist/index.js
CHANGED
|
@@ -2630,10 +2630,19 @@ function skillDirs(installPath, manifest) {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
return scanDirs(join8(installPath, "skills"));
|
|
2632
2632
|
}
|
|
2633
|
-
function readSkill(reader, dir) {
|
|
2633
|
+
function readSkill(reader, dir, plugin) {
|
|
2634
2634
|
try {
|
|
2635
2635
|
const { frontmatter } = reader.parseFrontmatter(readFileSync6(join8(dir, "SKILL.md"), "utf-8"));
|
|
2636
|
-
|
|
2636
|
+
const name = String(frontmatter["name"] ?? basename2(dir));
|
|
2637
|
+
const hint = frontmatter["argument-hint"];
|
|
2638
|
+
const invocable = String(frontmatter["user-invocable"]) !== "false";
|
|
2639
|
+
return {
|
|
2640
|
+
name,
|
|
2641
|
+
description: String(frontmatter["description"] ?? ""),
|
|
2642
|
+
path: dir,
|
|
2643
|
+
...invocable ? { command: `/${plugin}:${name}` } : {},
|
|
2644
|
+
...invocable && typeof hint === "string" && hint ? { argumentHint: hint } : {}
|
|
2645
|
+
};
|
|
2637
2646
|
} catch {
|
|
2638
2647
|
return null;
|
|
2639
2648
|
}
|
|
@@ -2772,7 +2781,7 @@ async function listPlugins(reader, remoteOf) {
|
|
|
2772
2781
|
description: String(manifest["description"] ?? ""),
|
|
2773
2782
|
repo,
|
|
2774
2783
|
installs: list.map((f) => f.install),
|
|
2775
|
-
skills: skillDirs(newest.install.installPath, manifest).flatMap((dir) => readSkill(reader, dir) ?? []),
|
|
2784
|
+
skills: skillDirs(newest.install.installPath, manifest).flatMap((dir) => readSkill(reader, dir, splitPluginId(id).name) ?? []),
|
|
2776
2785
|
commands: readCommands(reader, newest.install.installPath),
|
|
2777
2786
|
project: match?.name,
|
|
2778
2787
|
contributing: match ? existsSync6(join8(match.path, "CONTRIBUTING.md")) : false,
|