@sickr/replay 0.5.2 → 0.5.4

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/cli.js +18 -12
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -26,15 +26,12 @@ replay log helps you — and it — recall exactly what was just done.
26
26
  Usage: npx @sickr/replay <command> [options]
27
27
 
28
28
  Commands:
29
- init Install the recording hooks in this project and start capturing
30
- runs to ~/.sickr/runs (secrets redacted).
31
- --codex install for Codex (.codex/hooks.json) instead of
32
- Claude Code (.claude/settings.json)
33
- --both install for BOTH Claude Code and Codex (so the
34
- combined `, open;
35
- --today ` view sees everything)
36
- --no-name label your prompts "Human" instead of your
37
- login/git name (default is your login name)
29
+ init <agent> Install recording hooks for an agent (REQUIRED no default)
30
+ and start capturing to ~/.sickr/runs (secrets redacted):
31
+ claude Claude Code (.claude/settings.json)
32
+ codex Codex (.codex/hooks.json — needs Codex 0.133+)
33
+ all both of the above (feeds the combined view)
34
+ Flag: --no-name (label prompts "Human", not your login name)
38
35
  open [run] Render a run to a local HTML timeline and open it. 100% local.
39
36
  Defaults to the newest run; pass a run id, or --codex/--claude
40
37
  for the newest run of that agent. Combine across agents with a
@@ -52,8 +49,11 @@ Commands:
52
49
  clear Delete all local runs in ~/.sickr/runs (asks first).
53
50
  help Show this help.
54
51
 
52
+ Requires Node 18+. Codex capture needs Codex CLI 0.133+ (run /hooks to trust);
53
+ Claude Code: any hooks-capable build.
54
+
55
55
  ────────────────────────────────────────────────────────────────────
56
- This tool audits ONE agent on ONE machine. SICKR governs your whole team.
56
+ This replays your AI coding agents on ONE machine. SICKR governs your whole team.
57
57
  Issue tracking + your team + automation + agents — one governed workflow for
58
58
  audit, accountability, productivity and confidence.
59
59
 
@@ -435,12 +435,18 @@ async function main() {
435
435
  return;
436
436
  case 'init': {
437
437
  const noName = rest.includes('--no-name');
438
- if (rest.includes('--both')) {
438
+ const agent = rest.find((a) => !a.startsWith('-'));
439
+ if (agent === 'all') {
439
440
  handleInit('claude', noName);
440
441
  handleInit('codex', noName);
441
442
  return;
442
443
  }
443
- handleInit(provider, noName);
444
+ if (agent === 'claude' || agent === 'codex') {
445
+ handleInit(agent, noName);
446
+ return;
447
+ }
448
+ process.stderr.write('sickr: choose an agent — `init claude`, `init codex`, or `init all`.\n');
449
+ process.exit(1);
444
450
  return;
445
451
  }
446
452
  case 'open': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sickr/replay",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "description": "npx @sickr/replay — local Claude Code audit + one-click share. The free wedge into SICKR.",
6
6
  "bin": { "replay": "dist/cli.js" },