pulse-framework-cli 0.4.8 → 0.4.9

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.
@@ -16,6 +16,7 @@ function registerCheckpointCommand(program) {
16
16
  .option("--inspect-latest", "Inspect the latest commit diff (useful if Cursor auto-committed)")
17
17
  .option("--run-tests", "Run configured test command")
18
18
  .option("-m, --message <msg>", "If provided, run git commit -am/-m with this message (staged only)")
19
+ .option("-s, --summary <text>", "Summary of what was done (for the checkpoint log)")
19
20
  .action(async (opts) => {
20
21
  const repoRoot = await (0, paths_js_1.findRepoRoot)(process.cwd());
21
22
  if (!repoRoot)
@@ -52,28 +53,18 @@ function registerCheckpointCommand(program) {
52
53
  }
53
54
  const scan = (0, scanner_js_1.scanDiff)(config, { diffText, diffStat, diffNumstat, diffNameStatus });
54
55
  const ts = (0, artifacts_js_1.timestampId)();
55
- const artifact = [
56
+ const artifactParts = [
56
57
  `# Checkpoint (${ts})`,
57
58
  ``,
58
- `## Git status`,
59
- "```",
60
- status || "(clean)",
61
- "```",
62
- ``,
63
- `## Recent commits`,
64
- "```",
65
- log || "(none)",
66
- "```",
67
- ``,
68
- `## Diff stat`,
69
- "```",
70
- diffStat || "(no changes)",
71
- "```",
72
- ``,
73
- `## Findings`,
74
- ...formatFindings(scan.findings),
75
- ``,
76
- ].join("\n");
59
+ ];
60
+ // Add summary if provided
61
+ if (opts.summary) {
62
+ artifactParts.push(`## Summary`);
63
+ artifactParts.push(opts.summary);
64
+ artifactParts.push(``);
65
+ }
66
+ artifactParts.push(`## Git status`, "```", status || "(clean)", "```", ``, `## Recent commits`, "```", log || "(none)", "```", ``, `## Diff stat`, "```", diffStat || "(no changes)", "```", ``, `## Findings`, ...formatFindings(scan.findings), ``);
67
+ const artifact = artifactParts.join("\n");
77
68
  const p = await (0, artifacts_js_1.writeArtifact)(repoRoot, "worklogs", `${ts}-checkpoint.md`, artifact);
78
69
  // eslint-disable-next-line no-console
79
70
  console.log(`✅ Wrote ${p}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulse-framework-cli",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Pulse Framework CLI – Guardrails, checkpoints, and escalation for AI-assisted development.",
5
5
  "author": "Manuel Fuß <kontakt@manuel-fuss.de>",
6
6
  "license": "MIT",