skillwiki 0.9.48 → 0.9.49

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.
@@ -672,13 +672,7 @@ function vaultIoConcurrency() {
672
672
  function decodeProcMountPath(value) {
673
673
  return value.replace(/\\040/g, " ");
674
674
  }
675
- function isRcloneFuseVault(root) {
676
- let mounts;
677
- try {
678
- mounts = readFileSync("/proc/mounts", "utf8");
679
- } catch {
680
- return false;
681
- }
675
+ function isRcloneFuseVaultFromMounts(root, mounts) {
682
676
  return mounts.split(/\r?\n/).some((line) => {
683
677
  const parts = line.split(" ");
684
678
  if (parts.length < 3) return false;
@@ -687,7 +681,7 @@ function isRcloneFuseVault(root) {
687
681
  return fsType === "fuse.rclone" && (root === mountPoint || root.startsWith(`${mountPoint}/`));
688
682
  });
689
683
  }
690
- function resolveReadOnlyVaultRoot(root) {
684
+ function resolveReadOnlyVaultRootWithMounts(root, mounts) {
691
685
  if (/^(1|true|yes)$/i.test(process.env.SKILLWIKI_DISABLE_VAULT_READ_MIRROR ?? "")) {
692
686
  return { root, mirrored: false };
693
687
  }
@@ -696,11 +690,19 @@ function resolveReadOnlyVaultRoot(root) {
696
690
  return { root: explicitMirror, mirrored: explicitMirror !== root };
697
691
  }
698
692
  const siblingMirror = `${root}-git`;
699
- if (isRcloneFuseVault(root) && existsSync(join2(siblingMirror, "SCHEMA.md"))) {
693
+ if (isRcloneFuseVaultFromMounts(root, mounts) && existsSync(join2(siblingMirror, "SCHEMA.md"))) {
700
694
  return { root: siblingMirror, mirrored: true };
701
695
  }
702
696
  return { root, mirrored: false };
703
697
  }
698
+ function resolveReadOnlyVaultRoot(root) {
699
+ let mounts = "";
700
+ try {
701
+ mounts = readFileSync("/proc/mounts", "utf8");
702
+ } catch {
703
+ }
704
+ return resolveReadOnlyVaultRootWithMounts(root, mounts);
705
+ }
704
706
  async function mapWithConcurrency(items, limit, mapper) {
705
707
  const out = new Array(items.length);
706
708
  let next = 0;
package/dist/cli.js CHANGED
@@ -75,7 +75,7 @@ import {
75
75
  triggerAutoUpdate,
76
76
  writeCache,
77
77
  writeDotenv
78
- } from "./chunk-UCTLPX3M.js";
78
+ } from "./chunk-4Q7MANQI.js";
79
79
  import {
80
80
  normalizeDistTag
81
81
  } from "./chunk-E6UWZ3S3.js";
@@ -321,6 +321,8 @@ async function runInstall(input) {
321
321
  const hintLines2 = [
322
322
  `deferred to plugin: skillwiki@llm-wiki v${plugin.version}`,
323
323
  `plugin provides skills at ${plugin.installPath}`,
324
+ "Plugin-managed skills are not refreshed with `skillwiki install`.",
325
+ "Do not run `skillwiki install` just to refresh plugin-managed skills; update the active plugin channel instead.",
324
326
  `use --force to install CLI copies into ${input.target} anyway`
325
327
  ];
326
328
  return {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runSkillwikiMcpStdio
4
- } from "./chunk-UCTLPX3M.js";
4
+ } from "./chunk-4Q7MANQI.js";
5
5
  import "./chunk-E6UWZ3S3.js";
6
6
 
7
7
  // src/mcp-entry.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.9.48",
3
+ "version": "0.9.49",
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.48",
3
+ "version": "0.9.49",
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.48",
3
+ "version": "0.9.49",
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.48",
3
+ "version": "0.9.49",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",
@@ -172,11 +172,13 @@ skillwiki has multiple distribution channels that can drift:
172
172
  | Channel | Location | Update Command |
173
173
  |---------|----------|----------------|
174
174
  | npm CLI | `/usr/local/bin/skillwiki` | `npm install -g skillwiki@latest` |
175
- | npm skills | `/usr/local/lib/node_modules/skillwiki/skills/` | `skillwiki install` (copies to `~/.claude/skills/`) |
175
+ | npm skills | `/usr/local/lib/node_modules/skillwiki/skills/` | `skillwiki install` only for standalone CLI skill copies; defers when the plugin channel is active |
176
176
  | Claude plugin | `~/.claude/plugins/cache/llm-wiki/` | `claude plugin update skillwiki@llm-wiki` |
177
177
  | Codex plugin | `~/.codex/plugins/cache/llm-wiki/` | `codex plugin marketplace upgrade llm-wiki`, then reinstall or restart Codex as needed |
178
178
  | Local git dev | source repo checkout | `npm link ./packages/cli` (from repo root) |
179
179
  **Check versions:** `skillwiki doctor` reports Plugin/CLI version mismatch warnings when installed channels disagree.
180
+ **Plugin channel rule:** Plugin-managed skills are not refreshed with `skillwiki install`. When Claude or Codex plugin is installed and enabled, the plugin cache is the skill provider; `skillwiki install` is only a legacy/standalone copier for `~/.claude/skills/`.
181
+ **Agent update rule:** Do not run `skillwiki install` just to refresh plugin-managed skills. If `skillwiki install` reports `deferred_to_plugin: true`, stop there and update the active plugin channel instead: Claude uses `claude plugin update skillwiki@llm-wiki`; Codex uses `codex plugin marketplace upgrade llm-wiki`, then reinstall or restart Codex as needed. Only use `skillwiki install --force` when the user explicitly wants duplicate CLI-managed copies under `~/.claude/skills/` and accepts that `skillwiki doctor` may report overlap.
180
182
  **Authoring rule:** `SKILL.md` frontmatter follows the Agent Skills schema: top-level `name` and `description` plus optional schema fields such as `metadata`. Do not put release version fields at the top level of `SKILL.md`; plugin and package release versions live in `plugin.json` and `package.json`.
181
183
  **Fix:** If developing locally, use the repo source plus `npm link`. If using released versions, update the relevant plugin or npm channel; do not infer release freshness from `SKILL.md` frontmatter.
182
184
 
@@ -172,11 +172,13 @@ skillwiki has multiple distribution channels that can drift:
172
172
  | Channel | Location | Update Command |
173
173
  |---------|----------|----------------|
174
174
  | npm CLI | `/usr/local/bin/skillwiki` | `npm install -g skillwiki@latest` |
175
- | npm skills | `/usr/local/lib/node_modules/skillwiki/skills/` | `skillwiki install` (copies to `~/.claude/skills/`) |
175
+ | npm skills | `/usr/local/lib/node_modules/skillwiki/skills/` | `skillwiki install` only for standalone CLI skill copies; defers when the plugin channel is active |
176
176
  | Claude plugin | `~/.claude/plugins/cache/llm-wiki/` | `claude plugin update skillwiki@llm-wiki` |
177
177
  | Codex plugin | `~/.codex/plugins/cache/llm-wiki/` | `codex plugin marketplace upgrade llm-wiki`, then reinstall or restart Codex as needed |
178
178
  | Local git dev | source repo checkout | `npm link ./packages/cli` (from repo root) |
179
179
  **Check versions:** `skillwiki doctor` reports Plugin/CLI version mismatch warnings when installed channels disagree.
180
+ **Plugin channel rule:** Plugin-managed skills are not refreshed with `skillwiki install`. When Claude or Codex plugin is installed and enabled, the plugin cache is the skill provider; `skillwiki install` is only a legacy/standalone copier for `~/.claude/skills/`.
181
+ **Agent update rule:** Do not run `skillwiki install` just to refresh plugin-managed skills. If `skillwiki install` reports `deferred_to_plugin: true`, stop there and update the active plugin channel instead: Claude uses `claude plugin update skillwiki@llm-wiki`; Codex uses `codex plugin marketplace upgrade llm-wiki`, then reinstall or restart Codex as needed. Only use `skillwiki install --force` when the user explicitly wants duplicate CLI-managed copies under `~/.claude/skills/` and accepts that `skillwiki doctor` may report overlap.
180
182
  **Authoring rule:** `SKILL.md` frontmatter follows the Agent Skills schema: top-level `name` and `description` plus optional schema fields such as `metadata`. Do not put release version fields at the top level of `SKILL.md`; plugin and package release versions live in `plugin.json` and `package.json`.
181
183
  **Fix:** If developing locally, use the repo source plus `npm link`. If using released versions, update the relevant plugin or npm channel; do not infer release freshness from `SKILL.md` frontmatter.
182
184