tracerkit 1.1.0 → 1.2.1
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/bin.js +14 -5
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -7,19 +7,28 @@ var a = [
|
|
|
7
7
|
"Usage: tracerkit <command> [path]",
|
|
8
8
|
"",
|
|
9
9
|
"Commands:",
|
|
10
|
-
" init [path] Install skills (
|
|
10
|
+
" init [path] Install skills (default: current directory)",
|
|
11
11
|
" update [path] Refresh files from latest version, skip modified files",
|
|
12
|
-
" uninstall [path] Remove TracerKit skills, keep user artifacts"
|
|
12
|
+
" uninstall [path] Remove TracerKit skills, keep user artifacts",
|
|
13
|
+
"",
|
|
14
|
+
"Options:",
|
|
15
|
+
" --global Target home directory instead of current directory",
|
|
16
|
+
" --version, -v Print version"
|
|
13
17
|
];
|
|
14
18
|
function o(e) {
|
|
15
|
-
let t = e.find((e) => !e.startsWith("-"));
|
|
16
|
-
|
|
19
|
+
let t = e.includes("--global"), n = e.find((e) => !e.startsWith("-"));
|
|
20
|
+
if (t && n) throw Error("Cannot use --global with a path argument");
|
|
21
|
+
return t ? i() : n ? r(n) : process.cwd();
|
|
17
22
|
}
|
|
18
23
|
function s(r) {
|
|
24
|
+
if (r.includes("--version") || r.includes("-v")) return ["tracerkit/1.2.1"];
|
|
19
25
|
let i = r[0], s = r.slice(1);
|
|
20
26
|
switch (i) {
|
|
21
27
|
case "init": return t(o(s));
|
|
22
|
-
case "update":
|
|
28
|
+
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;
|
|
31
|
+
}
|
|
23
32
|
case "uninstall": return n(o(s));
|
|
24
33
|
default: return a;
|
|
25
34
|
}
|