tracerkit 1.2.1 → 1.3.0

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/README.md CHANGED
@@ -30,28 +30,28 @@ Open Claude Code in any project and start using:
30
30
  /tk:verify dark-mode-support # verify and archive
31
31
  ```
32
32
 
33
- ### 3. Manage your installation
33
+ ### 3. CLI Reference
34
34
 
35
- ```bash
36
- npx tracerkit update # refresh to latest, skip modified files
37
- npx tracerkit uninstall # remove TracerKit skills
38
- ```
35
+ | Command | Description |
36
+ | -------------------------- | ---------------------------------------------- |
37
+ | `tracerkit init` | Install skills to `~/.claude/skills/` |
38
+ | `tracerkit init <path>` | Install skills to a specific project directory |
39
+ | `tracerkit update` | Refresh to latest version, skip modified files |
40
+ | `tracerkit update --force` | Replace modified files with latest versions |
41
+ | `tracerkit uninstall` | Remove TracerKit skills, keep user artifacts |
42
+ | `tracerkit --version` | Print version |
43
+
44
+ All commands default to the home directory. Pass a path or use `--global` explicitly to target `~/`.
39
45
 
40
46
  <details>
41
- <summary>Install per-project instead</summary>
47
+ <summary>Per-project usage</summary>
42
48
 
43
49
  To scope skills to a single project (team members get them via git):
44
50
 
45
51
  ```bash
46
52
  npx tracerkit init . # install to .claude/skills/ in current dir
47
- npx tracerkit init /path/to/proj # or specify a path
48
- ```
49
-
50
- Per-project commands:
51
-
52
- ```bash
53
- npx tracerkit update .
54
- npx tracerkit uninstall .
53
+ npx tracerkit update . # update project-scoped skills
54
+ npx tracerkit uninstall . # remove project-scoped skills
55
55
  ```
56
56
 
57
57
  </details>
package/dist/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as e, r as t, t as n } from "./uninstall-B9BzyN-s.js";
2
+ import { n as e, r as t, t as n } from "./uninstall-vX1WH11F.js";
3
3
  import { resolve as r } from "node:path";
4
4
  import { homedir as i } from "node:os";
5
5
  //#region src/cli.ts
@@ -12,6 +12,7 @@ var a = [
12
12
  " uninstall [path] Remove TracerKit skills, keep user artifacts",
13
13
  "",
14
14
  "Options:",
15
+ " --force Replace modified files with latest versions",
15
16
  " --global Target home directory instead of current directory",
16
17
  " --version, -v Print version"
17
18
  ];
@@ -21,13 +22,13 @@ function o(e) {
21
22
  return t ? i() : n ? r(n) : process.cwd();
22
23
  }
23
24
  function s(r) {
24
- if (r.includes("--version") || r.includes("-v")) return ["tracerkit/1.2.1"];
25
+ if (r.includes("--version") || r.includes("-v")) return ["tracerkit/1.3.0"];
25
26
  let i = r[0], s = r.slice(1);
26
27
  switch (i) {
27
28
  case "init": return t(o(s));
28
29
  case "update": {
29
- let t = e(o(s));
30
- return t.push("", "Updated to tracerkit/1.2.1"), t.push("If using Claude Code, restart your session to load changes."), t;
30
+ let t = s.includes("--force"), n = e(o(s.filter((e) => e !== "--force")), { force: t });
31
+ return n.push("", "Updated to tracerkit/1.3.0"), n.push("If using Claude Code, restart your session to load changes."), n;
31
32
  }
32
33
  case "uninstall": return n(o(s));
33
34
  default: return a;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./uninstall-B9BzyN-s.js";
1
+ import { i as e, n as t, r as n, t as r } from "./uninstall-vX1WH11F.js";
2
2
  export { e as SKILL_NAMES, n as init, r as uninstall, t as update };
@@ -49,16 +49,24 @@ function g(t) {
49
49
  }
50
50
  //#endregion
51
51
  //#region src/commands/update.ts
52
- function _(t) {
52
+ function _(t, n) {
53
53
  if (!u.some((n) => e(s(t, ".claude", "skills", n)))) throw Error("TracerKit not initialized — run `tracerkit init` first");
54
- let { unchanged: n, modified: r, missing: i } = h(t), a = [], o = [...n, ...i];
55
- if (o.length > 0) {
56
- p(t, o);
57
- for (let e of n) a.push(`✓ ${e}`);
58
- for (let e of i) a.push(`✓ ${e} (added)`);
54
+ let { unchanged: r, modified: i, missing: a } = h(t), o = [], c = n?.force ?? !1, l = [
55
+ ...r,
56
+ ...a,
57
+ ...c ? i : []
58
+ ];
59
+ if (l.length > 0) {
60
+ p(t, l);
61
+ for (let e of r) o.push(`✓ ${e}`);
62
+ for (let e of a) o.push(`✓ ${e} (added)`);
63
+ if (c) for (let e of i) o.push(`✓ ${e} (replaced)`);
59
64
  }
60
- for (let e of r) a.push(`⚠ ${e} (skipped — modified)`);
61
- return a;
65
+ if (!c && i.length > 0) {
66
+ for (let e of i) o.push(`⚠ ${e} (skipped — modified)`);
67
+ o.push("", "Run `tracerkit update --force` to replace modified files with latest versions.");
68
+ }
69
+ return o;
62
70
  }
63
71
  //#endregion
64
72
  //#region src/commands/uninstall.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tracerkit",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Stack-agnostic spec-driven workflow for AI coding assistants",
5
5
  "license": "MIT",
6
6
  "author": {