skillwiki 0.9.55 → 0.9.56

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
@@ -75,13 +75,15 @@ import {
75
75
  scanVault,
76
76
  snapshotterAliasForLocalHost,
77
77
  splitFrontmatter,
78
- triggerAutoUpdate,
79
- writeCache,
80
78
  writeDotenv
81
- } from "./chunk-4BT3HY4K.js";
79
+ } from "./chunk-SE5URAJR.js";
82
80
  import {
83
- normalizeDistTag
84
- } from "./chunk-E6UWZ3S3.js";
81
+ normalizeDistTag,
82
+ readCache,
83
+ resolveAutoApplyAt,
84
+ triggerAutoUpdate,
85
+ writeCache
86
+ } from "./chunk-7I2TPIV5.js";
85
87
 
86
88
  // src/cli.ts
87
89
  import { join as join26 } from "path";
@@ -1956,11 +1958,14 @@ async function runUpdate(input) {
1956
1958
  result: err("PREFLIGHT_FAILED", { message: `Failed to query npm registry: ${String(e)}` })
1957
1959
  };
1958
1960
  }
1961
+ const { firstSeenAt, autoApplyAt } = resolveAutoApplyAt(readCache(input.home).cache, latest);
1959
1962
  const cache = {
1960
1963
  lastCheck: Date.now(),
1961
1964
  latestVersion: latest,
1962
1965
  currentVersion,
1963
- distTag: tag
1966
+ distTag: tag,
1967
+ firstSeenAt,
1968
+ autoApplyAt
1964
1969
  };
1965
1970
  if (latest === currentVersion) {
1966
1971
  writeCache(input.home, cache);
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runSkillwikiMcpStdio
4
- } from "./chunk-4BT3HY4K.js";
5
- import "./chunk-E6UWZ3S3.js";
4
+ } from "./chunk-SE5URAJR.js";
5
+ import "./chunk-7I2TPIV5.js";
6
6
 
7
7
  // src/mcp-entry.ts
8
8
  runSkillwikiMcpStdio().catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.9.55",
3
+ "version": "0.9.56",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skillwiki": "dist/cli.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.9.55",
3
+ "version": "0.9.56",
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": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.9.55",
3
+ "version": "0.9.56",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 18 prompt-only skills backed by the deterministic skillwiki CLI.",
5
5
  "author": {
6
6
  "name": "karlorz",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.9.55",
3
+ "version": "0.9.56",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/utils/semver.ts
4
- function semverGt(a, b) {
5
- const pa = parseSemver(a);
6
- const pb = parseSemver(b);
7
- if (!pa || !pb) return a > b;
8
- if (pa.major !== pb.major) return pa.major > pb.major;
9
- if (pa.minor !== pb.minor) return pa.minor > pb.minor;
10
- if (pa.patch !== pb.patch) return pa.patch > pb.patch;
11
- if (!pa.pre && pb.pre) return true;
12
- if (pa.pre && !pb.pre) return false;
13
- if (!pa.pre && !pb.pre) return false;
14
- const aParts = pa.pre.split(".");
15
- const bParts = pb.pre.split(".");
16
- const len = Math.max(aParts.length, bParts.length);
17
- for (let i = 0; i < len; i++) {
18
- const ai = aParts[i];
19
- const bi = bParts[i];
20
- if (ai === void 0) return false;
21
- if (bi === void 0) return true;
22
- const aNum = parseInt(ai, 10);
23
- const bNum = parseInt(bi, 10);
24
- if (!isNaN(aNum) && !isNaN(bNum)) {
25
- if (aNum !== bNum) return aNum > bNum;
26
- } else {
27
- if (ai !== bi) return ai > bi;
28
- }
29
- }
30
- return false;
31
- }
32
- function parseSemver(version) {
33
- const match = version.match(/^(\d+)\.(\d+)\.(\d+)(?:-(.+))?$/);
34
- if (!match) return null;
35
- return {
36
- major: parseInt(match[1], 10),
37
- minor: parseInt(match[2], 10),
38
- patch: parseInt(match[3], 10),
39
- pre: match[4] ?? null
40
- };
41
- }
42
-
43
- // src/utils/update-consts.ts
44
- var DIST_TAG = "latest";
45
- var CACHE_FILENAME = ".update-cache.json";
46
- var CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
47
- var ENV_DISABLE_KEY = "NO_UPDATE_NOTIFIER";
48
- var CLI_DISABLE_FLAG = "--no-update-notifier";
49
- function normalizeDistTag(tag) {
50
- const value = (tag ?? DIST_TAG).trim();
51
- return /^[A-Za-z0-9._-]+$/.test(value) ? value : DIST_TAG;
52
- }
53
-
54
- export {
55
- semverGt,
56
- DIST_TAG,
57
- CACHE_FILENAME,
58
- CHECK_INTERVAL_MS,
59
- ENV_DISABLE_KEY,
60
- CLI_DISABLE_FLAG,
61
- normalizeDistTag
62
- };