tracerkit 1.4.1 → 1.4.2

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.
Files changed (2) hide show
  1. package/dist/bin.js +17 -15
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1,9 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as e, r as t, t as n } from "./uninstall-C6vhDv_T.js";
3
- import { resolve as r } from "node:path";
4
- import { homedir as i } from "node:os";
3
+ import { readFileSync as r } from "node:fs";
4
+ import { dirname as i, resolve as a } from "node:path";
5
+ import { fileURLToPath as o } from "node:url";
6
+ import { homedir as s } from "node:os";
5
7
  //#region src/cli.ts
6
- var a = [
8
+ var { version: c } = JSON.parse(r(a(i(o(import.meta.url)), "..", "package.json"), "utf8")), l = [
7
9
  "Usage: tracerkit <command> [path]",
8
10
  "",
9
11
  "Commands:",
@@ -18,26 +20,26 @@ var a = [
18
20
  "",
19
21
  "All commands default to the home directory when no path is given."
20
22
  ];
21
- function o(e) {
23
+ function u(e) {
22
24
  let t = e.find((e) => !e.startsWith("-"));
23
- return t ? r(t) : i();
25
+ return t ? a(t) : s();
24
26
  }
25
- function s(r) {
26
- if (r.includes("--help") || r.includes("-h")) return a;
27
- if (r.includes("--version") || r.includes("-v")) return ["tracerkit/1.4.1"];
28
- let i = r[0], s = r.slice(1);
27
+ function d(r) {
28
+ if (r.includes("--help") || r.includes("-h")) return l;
29
+ if (r.includes("--version") || r.includes("-v")) return [`tracerkit/${c}`];
30
+ let i = r[0], a = r.slice(1);
29
31
  switch (i) {
30
- case "init": return t(o(s));
32
+ case "init": return t(u(a));
31
33
  case "update": {
32
- let t = s.includes("--force"), n = e(o(s.filter((e) => e !== "--force")), { force: t });
34
+ let t = a.includes("--force"), n = e(u(a.filter((e) => e !== "--force")), { force: t });
33
35
  return n.push("", "Updated to the latest TracerKit."), n.push("If using Claude Code, restart your session to load changes."), n;
34
36
  }
35
- case "uninstall": return n(o(s));
36
- default: return a;
37
+ case "uninstall": return n(u(a));
38
+ default: return l;
37
39
  }
38
40
  }
39
41
  //#endregion
40
42
  //#region src/bin.ts
41
- var c = s(process.argv.slice(2));
42
- for (let e of c) console.log(e);
43
+ var f = d(process.argv.slice(2));
44
+ for (let e of f) console.log(e);
43
45
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tracerkit",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Spec-driven workflow for Claude Code: replace ad-hoc prompts with PRD → plan → verify.",
5
5
  "license": "MIT",
6
6
  "author": {