skillwiki 0.8.5-beta.3 → 0.8.5-beta.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/cli.js
CHANGED
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
} from "./chunk-TPS5XD2J.js";
|
|
15
15
|
|
|
16
16
|
// src/cli.ts
|
|
17
|
-
import { readFileSync as readFileSync12 } from "fs";
|
|
18
17
|
import { join as join44 } from "path";
|
|
19
18
|
import { Command as Command2 } from "commander";
|
|
20
19
|
|
|
@@ -6147,8 +6146,30 @@ ${newBody}`;
|
|
|
6147
6146
|
|
|
6148
6147
|
// src/commands/update.ts
|
|
6149
6148
|
import { execSync as execSync3 } from "child_process";
|
|
6150
|
-
import { readFileSync as readFileSync8 } from "fs";
|
|
6151
6149
|
import { join as join29 } from "path";
|
|
6150
|
+
|
|
6151
|
+
// src/utils/package-info.ts
|
|
6152
|
+
import { readFileSync as readFileSync8 } from "fs";
|
|
6153
|
+
function packageJsonCandidateUrls(baseUrl = import.meta.url) {
|
|
6154
|
+
return [
|
|
6155
|
+
new URL("../package.json", baseUrl),
|
|
6156
|
+
new URL("../../package.json", baseUrl)
|
|
6157
|
+
];
|
|
6158
|
+
}
|
|
6159
|
+
function readCliPackageJson(baseUrl = import.meta.url) {
|
|
6160
|
+
for (const url of packageJsonCandidateUrls(baseUrl)) {
|
|
6161
|
+
try {
|
|
6162
|
+
const pkg2 = JSON.parse(readFileSync8(url, "utf8"));
|
|
6163
|
+
if (typeof pkg2.version === "string") {
|
|
6164
|
+
return { ...pkg2, version: pkg2.version };
|
|
6165
|
+
}
|
|
6166
|
+
} catch {
|
|
6167
|
+
}
|
|
6168
|
+
}
|
|
6169
|
+
throw new Error(`Could not locate skillwiki package.json from ${baseUrl}`);
|
|
6170
|
+
}
|
|
6171
|
+
|
|
6172
|
+
// src/commands/update.ts
|
|
6152
6173
|
function resolveGlobalSkillsRoot() {
|
|
6153
6174
|
try {
|
|
6154
6175
|
const globalRoot = execSync3("npm root -g", {
|
|
@@ -6176,9 +6197,7 @@ async function refreshInstalledSkills(target) {
|
|
|
6176
6197
|
}
|
|
6177
6198
|
}
|
|
6178
6199
|
async function runUpdate(input) {
|
|
6179
|
-
const pkg2 =
|
|
6180
|
-
readFileSync8(new URL("../../package.json", import.meta.url), "utf8")
|
|
6181
|
-
);
|
|
6200
|
+
const pkg2 = readCliPackageJson();
|
|
6182
6201
|
const currentVersion = pkg2.version;
|
|
6183
6202
|
const tag = normalizeDistTag(input.distTag);
|
|
6184
6203
|
const target = join29(input.home, ".claude", "skills");
|
|
@@ -6256,9 +6275,7 @@ import { existsSync as existsSync11, readFileSync as readFileSync9 } from "fs";
|
|
|
6256
6275
|
import { join as join30 } from "path";
|
|
6257
6276
|
var DEFAULT_SOURCE_ROOT_SUFFIX = "/Desktop/code/llm-wiki";
|
|
6258
6277
|
async function runSelfUpdate(input) {
|
|
6259
|
-
const currentVersion =
|
|
6260
|
-
readFileSync9(new URL("../../package.json", import.meta.url), "utf8")
|
|
6261
|
-
).version;
|
|
6278
|
+
const currentVersion = readCliPackageJson().version;
|
|
6262
6279
|
const sourceRoot = input.sourceRoot ?? `${input.home}${DEFAULT_SOURCE_ROOT_SUFFIX}`;
|
|
6263
6280
|
const distTag = normalizeDistTag(input.distTag);
|
|
6264
6281
|
const localPkgPath = join30(sourceRoot, "packages", "cli", "package.json");
|
|
@@ -8624,7 +8641,7 @@ async function postCommit(vault, exitCode) {
|
|
|
8624
8641
|
}
|
|
8625
8642
|
|
|
8626
8643
|
// src/cli.ts
|
|
8627
|
-
var pkg =
|
|
8644
|
+
var pkg = readCliPackageJson();
|
|
8628
8645
|
var program = new Command2();
|
|
8629
8646
|
program.name("skillwiki").description("Deterministic helpers for CodeWiki skills").version(pkg.version);
|
|
8630
8647
|
program.option("--human", "render terminal-readable output instead of JSON");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.8.5-beta.
|
|
3
|
+
"version": "0.8.5-beta.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": {
|