tracerkit 1.2.0 → 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 +14 -14
- package/dist/bin.js +5 -4
- package/dist/index.js +1 -1
- package/dist/{uninstall-B9BzyN-s.js → uninstall-vX1WH11F.js} +16 -8
- package/package.json +1 -1
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.
|
|
33
|
+
### 3. CLI Reference
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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>
|
|
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
|
|
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-
|
|
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.
|
|
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
|
|
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-
|
|
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:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
61
|
-
|
|
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
|