revdeck 0.3.2 → 0.3.3

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/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ All notable changes to this project are documented here. The format is based on
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.3.3] - 2026-11-12
10
+
11
+ ### Fixed
12
+
13
+ - `revdeck init` installs only `.claude/skills/revdeck/SKILL.md` — a symlink to
14
+ `.agents/skills/revdeck/SKILL.md`. The procedure files stay in `.agents`; old copied skill
15
+ directories are replaced, and Windows gets a short shim instead of a directory copy.
16
+
9
17
  ## [0.3.2] - 2026-11-12
10
18
 
11
19
  ### Fixed
package/CONTRIBUTING.md CHANGED
@@ -57,8 +57,9 @@ Rules of thumb:
57
57
  ## Adding a harness adapter
58
58
 
59
59
  Add a `SPECS` entry in `src/cli/init.ts` with the MCP config path, command file or `linkSkill` flag, then
60
- document it in `docs/integrations.md`. The canonical skill is always `.agents/skills/revdeck`; adapters
61
- link to it instead of copying the procedure files. `init` must never overwrite files it does not own.
60
+ document it in `docs/integrations.md`. The canonical skill is always `.agents/skills/revdeck`; Claude
61
+ gets only a `SKILL.md` symlink, and other adapters must not copy the procedure files. `init` must never
62
+ overwrite files it does not own.
62
63
 
63
64
  ## Translations
64
65
 
package/dist/cli.js CHANGED
@@ -168,7 +168,7 @@ var VERSION;
168
168
  var init_version = __esm({
169
169
  "src/version.ts"() {
170
170
  "use strict";
171
- VERSION = "0.3.2";
171
+ VERSION = "0.3.3";
172
172
  }
173
173
  });
174
174
 
@@ -1654,7 +1654,7 @@ init_format();
1654
1654
  // src/cli/init.ts
1655
1655
  init_paths();
1656
1656
  import { existsSync as existsSync5 } from "node:fs";
1657
- import { appendFile, cp, lstat as lstat2, mkdir as mkdir2, readdir, readFile as readFile3, readlink, rm, symlink, writeFile } from "node:fs/promises";
1657
+ import { appendFile, cp, lstat as lstat2, mkdir as mkdir2, readdir, readFile as readFile3, rm, symlink, writeFile } from "node:fs/promises";
1658
1658
  import path6 from "node:path";
1659
1659
  init_redact();
1660
1660
  init_locale();
@@ -1776,7 +1776,7 @@ async function installAdapter(root, adapter, mcp, locale2, canonicalSkill) {
1776
1776
  writers.err(`! ${tr("\u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0439 \u0430\u0434\u0430\u043F\u0442\u0435\u0440", "unknown adapter")}: ${adapter} (${Object.keys(SPECS).join(", ")})`);
1777
1777
  return;
1778
1778
  }
1779
- if (spec.linkSkill && canonicalSkill) await linkSkill(root, canonicalSkill);
1779
+ if (spec.linkSkill && canonicalSkill) await linkSkill(root, canonicalSkill, locale2);
1780
1780
  if (spec.mcp) await mergeMcpJson(path6.join(root, spec.mcp), root, mcp);
1781
1781
  for (const file of spec.files ?? []) {
1782
1782
  const target = path6.join(root, file.path);
@@ -1821,32 +1821,42 @@ async function copySkill(source, target) {
1821
1821
  await cp(path6.join(source, entry), file, { force: true });
1822
1822
  }
1823
1823
  }
1824
- async function linkSkill(root, canonicalSkill) {
1824
+ async function linkSkill(root, canonicalSkill, locale2) {
1825
1825
  const target = path6.join(root, ".claude", "skills", "revdeck");
1826
- const relative = path6.relative(path6.dirname(target), canonicalSkill);
1826
+ const source = path6.join(canonicalSkill, "SKILL.md");
1827
+ const skillTarget = path6.join(target, "SKILL.md");
1827
1828
  await mkdir2(path6.dirname(target), { recursive: true });
1828
1829
  const existing = await lstat2(target).catch(() => null);
1829
1830
  if (existing) {
1830
1831
  if (existing.isSymbolicLink()) {
1831
- const current2 = await readlink(target).catch(() => "");
1832
- if (current2 === relative) {
1833
- writers.out(`\u2714 ${tr("\u0441\u043A\u0438\u043B\u043B", "skill")}: .claude/skills/revdeck -> ${CANONICAL_SKILL}`);
1834
- return;
1835
- }
1836
1832
  await rm(target, { force: true });
1837
1833
  } else if (existing.isDirectory() && await isManagedSkillDir(target)) {
1838
1834
  await rm(target, { recursive: true, force: true });
1839
1835
  } else {
1840
- writers.out(`! .claude/skills/revdeck ${tr("\u0443\u0436\u0435 \u0435\u0441\u0442\u044C: \u043D\u0435 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0441\u044B\u0432\u0430\u044E", "already exists: not overwriting")}`);
1836
+ writers.out(`! .claude/skills/revdeck ${tr("\u0443\u0436\u0435 \u0435\u0441\u0442\u044C \u0438 \u043D\u0435 \u043F\u043E\u0445\u043E\u0436 \u043D\u0430 revdeck: \u043D\u0435 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0441\u044B\u0432\u0430\u044E", "already exists and does not look like revdeck: not overwriting")}`);
1841
1837
  return;
1842
1838
  }
1843
1839
  }
1840
+ await mkdir2(target, { recursive: true });
1844
1841
  if (process.platform === "win32") {
1845
- await copySkill(canonicalSkill, target);
1842
+ const shim = locale2 === "ru" ? `---
1843
+ name: revdeck
1844
+ description: "\u041A\u0430\u043D\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0441\u043A\u0438\u043B\u043B revdeck"
1845
+ ---
1846
+
1847
+ \u042D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B \u2014 shim. \u041F\u043E\u043B\u043D\u0430\u044F \u043F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430: \`.agents/skills/revdeck/SKILL.md\`; \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u2014 \u0432 \`.agents/skills/revdeck/\`.
1848
+ ` : `---
1849
+ name: revdeck
1850
+ description: "Canonical revdeck skill"
1851
+ ---
1852
+
1853
+ This file is a shim. The full procedure is \`.agents/skills/revdeck/SKILL.md\`; supporting files are in \`.agents/skills/revdeck/\`.
1854
+ `;
1855
+ await writeFile(skillTarget, shim);
1846
1856
  } else {
1847
- await symlink(relative, target, "dir");
1857
+ await symlink(path6.relative(target, source), skillTarget, "file");
1848
1858
  }
1849
- writers.out(`\u2714 ${tr("\u0441\u043A\u0438\u043B\u043B", "skill")}: .claude/skills/revdeck -> ${CANONICAL_SKILL}`);
1859
+ writers.out(`\u2714 ${tr("\u0441\u043A\u0438\u043B\u043B", "skill")}: .claude/skills/revdeck/SKILL.md -> ${CANONICAL_SKILL}/SKILL.md`);
1850
1860
  }
1851
1861
  async function isManagedSkillDir(dir) {
1852
1862
  const skill = path6.join(dir, "SKILL.md");