skillwiki 0.2.3 → 0.2.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.
package/dist/auto-update-bg.js
CHANGED
|
@@ -14,7 +14,7 @@ if (!home || !currentVersion) process.exit(0);
|
|
|
14
14
|
var cacheFile = join(home, ".skillwiki", ".update-cache.json");
|
|
15
15
|
setTimeout(() => process.exit(0), 3e4);
|
|
16
16
|
try {
|
|
17
|
-
const latest = execSync("npm view skillwiki@
|
|
17
|
+
const latest = execSync("npm view skillwiki@latest version", {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
timeout: 15e3
|
|
20
20
|
}).trim();
|
|
@@ -25,7 +25,7 @@ try {
|
|
|
25
25
|
currentVersion
|
|
26
26
|
};
|
|
27
27
|
if (semverGt(latest, currentVersion)) {
|
|
28
|
-
execSync("npm install -g skillwiki@
|
|
28
|
+
execSync("npm install -g skillwiki@latest", {
|
|
29
29
|
stdio: "ignore",
|
|
30
30
|
timeout: 6e4
|
|
31
31
|
});
|
package/dist/cli.js
CHANGED
|
@@ -3015,7 +3015,7 @@ function checkPluginVersionDrift(home, currentVersion) {
|
|
|
3015
3015
|
if (pluginVersion === currentVersion) {
|
|
3016
3016
|
return check("pass", "plugin_version_drift", "Plugin/CLI version", `Both at v${currentVersion}`);
|
|
3017
3017
|
}
|
|
3018
|
-
const updateCmd = semverGt(pluginVersion, currentVersion) ? "npm install -g skillwiki@
|
|
3018
|
+
const updateCmd = semverGt(pluginVersion, currentVersion) ? "npm install -g skillwiki@latest" : "claude plugin update skillwiki@llm-wiki";
|
|
3019
3019
|
return check(
|
|
3020
3020
|
"warn",
|
|
3021
3021
|
"plugin_version_drift",
|
|
@@ -3667,7 +3667,7 @@ async function runUpdate(input) {
|
|
|
3667
3667
|
readFileSync6(new URL("../../package.json", import.meta.url), "utf8")
|
|
3668
3668
|
);
|
|
3669
3669
|
const currentVersion = pkg2.version;
|
|
3670
|
-
const tag = input.distTag ?? "
|
|
3670
|
+
const tag = input.distTag ?? "latest";
|
|
3671
3671
|
const target = join23(input.home, ".claude", "skills");
|
|
3672
3672
|
let latest;
|
|
3673
3673
|
try {
|
|
@@ -3761,7 +3761,7 @@ async function runSelfUpdate(input) {
|
|
|
3761
3761
|
} else {
|
|
3762
3762
|
source = "npm";
|
|
3763
3763
|
try {
|
|
3764
|
-
availableVersion = execSync3("npm view skillwiki@
|
|
3764
|
+
availableVersion = execSync3("npm view skillwiki@latest version", {
|
|
3765
3765
|
encoding: "utf8",
|
|
3766
3766
|
timeout: 15e3
|
|
3767
3767
|
}).trim();
|
|
@@ -3831,7 +3831,7 @@ async function runSelfUpdate(input) {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
let latestVersion;
|
|
3833
3833
|
try {
|
|
3834
|
-
latestVersion = execSync3("npm view skillwiki@
|
|
3834
|
+
latestVersion = execSync3("npm view skillwiki@latest version", {
|
|
3835
3835
|
encoding: "utf8",
|
|
3836
3836
|
timeout: 15e3
|
|
3837
3837
|
}).trim();
|
|
@@ -3849,12 +3849,12 @@ async function runSelfUpdate(input) {
|
|
|
3849
3849
|
currentVersion,
|
|
3850
3850
|
availableVersion: latestVersion,
|
|
3851
3851
|
updateAvailable: false,
|
|
3852
|
-
humanHint: `Already on latest
|
|
3852
|
+
humanHint: `Already on latest: v${currentVersion}`
|
|
3853
3853
|
})
|
|
3854
3854
|
};
|
|
3855
3855
|
}
|
|
3856
3856
|
try {
|
|
3857
|
-
execSync3("npm install -g skillwiki@
|
|
3857
|
+
execSync3("npm install -g skillwiki@latest", {
|
|
3858
3858
|
stdio: "pipe",
|
|
3859
3859
|
timeout: 6e4
|
|
3860
3860
|
});
|
|
@@ -3872,7 +3872,7 @@ async function runSelfUpdate(input) {
|
|
|
3872
3872
|
availableVersion: latestVersion,
|
|
3873
3873
|
updateAvailable: true,
|
|
3874
3874
|
newVersion: latestVersion,
|
|
3875
|
-
humanHint: `Updated skillwiki ${currentVersion} \u2192 ${latestVersion} via npm@
|
|
3875
|
+
humanHint: `Updated skillwiki ${currentVersion} \u2192 ${latestVersion} via npm@latest`
|
|
3876
3876
|
})
|
|
3877
3877
|
};
|
|
3878
3878
|
}
|
|
@@ -5973,11 +5973,11 @@ program.command("frontmatter-fix [vault]").description("fix common frontmatter i
|
|
|
5973
5973
|
if (!v.ok) emit({ exitCode: v.exitCode, result: v.payload });
|
|
5974
5974
|
else emit(await runFrontmatterFix({ vault: v.vault, dryRun: !!opts.dryRun }), v.vault);
|
|
5975
5975
|
});
|
|
5976
|
-
program.command("update").description("update skillwiki CLI to the latest version").option("--tag <tag>", "npm dist-tag", "
|
|
5976
|
+
program.command("update").description("update skillwiki CLI to the latest version").option("--tag <tag>", "npm dist-tag", "latest").action(async (opts) => emit(await runUpdate({
|
|
5977
5977
|
home: process.env.HOME ?? "",
|
|
5978
5978
|
distTag: opts.tag
|
|
5979
5979
|
})));
|
|
5980
|
-
program.command("self-update").description("update skillwiki CLI from local source or npm@
|
|
5980
|
+
program.command("self-update").description("update skillwiki CLI from local source or npm@latest").option("--check", "check for updates without installing", false).action(async (opts) => emit(await runSelfUpdate({
|
|
5981
5981
|
home: process.env.HOME ?? "",
|
|
5982
5982
|
check: !!opts.check
|
|
5983
5983
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 18 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
|
|
6
6
|
"author": {
|
package/skills/bin/skillwiki
CHANGED