claude-code-replay 0.1.0 → 0.1.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/main.mjs +6 -2
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { pathToFileURL } from "node:url";
|
|
|
8
8
|
import * as fs7 from "node:fs";
|
|
9
9
|
import * as os3 from "node:os";
|
|
10
10
|
import * as path10 from "node:path";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
11
12
|
import { Command, CommanderError, InvalidArgumentError } from "commander";
|
|
12
13
|
|
|
13
14
|
// src/actions.ts
|
|
@@ -2548,6 +2549,9 @@ function formatSummary(c) {
|
|
|
2548
2549
|
}
|
|
2549
2550
|
|
|
2550
2551
|
// src/cli.ts
|
|
2552
|
+
var PKG_VERSION = JSON.parse(
|
|
2553
|
+
fs7.readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf8")
|
|
2554
|
+
).version;
|
|
2551
2555
|
var HALT_EXIT = 10;
|
|
2552
2556
|
function fail(msg) {
|
|
2553
2557
|
process.stderr.write(msg + "\n");
|
|
@@ -2784,9 +2788,9 @@ function parseIsoTimestamp(raw) {
|
|
|
2784
2788
|
}
|
|
2785
2789
|
function buildProgram() {
|
|
2786
2790
|
const program = new Command();
|
|
2787
|
-
program.name("replay").description(
|
|
2791
|
+
program.name("claude-code-replay").description(
|
|
2788
2792
|
"Replay Claude Code session logs (*.jsonl) to reconstruct the filesystem state a session left behind."
|
|
2789
|
-
).showHelpAfterError("(run with --help for usage)").exitOverride();
|
|
2793
|
+
).version(PKG_VERSION).showHelpAfterError("(run with --help for usage)").exitOverride();
|
|
2790
2794
|
program.optionsGroup("Required:").requiredOption(
|
|
2791
2795
|
"--target <dir>",
|
|
2792
2796
|
"directory the replay writes into; must be distinct from any logs dir"
|