change-log-agent 1.1.1 → 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/README.md CHANGED
@@ -45,10 +45,10 @@ npm install -g change-log-agent
45
45
 
46
46
  ### Prepare Your Target File
47
47
 
48
- Add the following markers to your `README.md` or `CHANGELOG.md`:
48
+ If `CHANGELOG.md` doesn't exist, `log-agent sync` will offer to create it for you automatically. You can also create it manually with markers:
49
49
 
50
50
  ```markdown
51
- ## Changelog
51
+ # Changelog
52
52
 
53
53
  <!-- log-agent-start -->
54
54
  <!-- log-agent-end -->
@@ -57,17 +57,20 @@ Add the following markers to your `README.md` or `CHANGELOG.md`:
57
57
  ### Run
58
58
 
59
59
  ```bash
60
- # Basic usage — auto-detects date, updates README.md
60
+ # Basic usage — auto-detects date, updates CHANGELOG.md
61
61
  log-agent sync
62
62
 
63
63
  # Specify a start date
64
64
  log-agent sync --since 2026-02-01
65
65
 
66
66
  # Target a different file
67
- log-agent sync --target CHANGELOG.md
67
+ log-agent sync --target docs/HISTORY.md
68
68
 
69
69
  # Preview mode — prints Mission Spec without executing
70
70
  log-agent sync --dry-run
71
+
72
+ # Skip interactive prompts (for CI/CD)
73
+ log-agent sync --yes
71
74
  ```
72
75
 
73
76
  Or run without installing:
@@ -81,8 +84,9 @@ npx change-log-agent sync
81
84
  | Option | Description | Default |
82
85
  |--------|-------------|---------|
83
86
  | `--since <date>` | Only include commits after this date | Auto-detected from markers |
84
- | `--target <file>` | File to update | `README.md` |
87
+ | `--target <file>` | File to update | `CHANGELOG.md` |
85
88
  | `--dry-run` | Preview the Mission Spec without executing | `false` |
89
+ | `--yes` | Skip interactive confirmation (for CI/CD) | `false` |
86
90
 
87
91
  ---
88
92
 
@@ -95,6 +99,7 @@ npx change-log-agent sync
95
99
  | `src/core/template.ts` | Mission Spec generation |
96
100
  | `src/core/bridge.ts` | Claude Code bridge (`claude -p` invocation) |
97
101
  | `src/core/marker.ts` | Marker detection and date extraction |
102
+ | `src/utils/prompt.ts` | Interactive confirmation prompt |
98
103
 
99
104
  ---
100
105
 
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ async function getCommits(since) {
15
15
  const { stdout } = await execa("git", [
16
16
  "log",
17
17
  "--pretty=format:%h|%an|%ai|%s",
18
- ...since ? [`--since=${since}`] : []
18
+ ...since ? [`--since=${since}T00:00:00`] : []
19
19
  ]);
20
20
  if (!stdout.trim()) return [];
21
21
  return stdout.trim().split("\n").map(parseLine);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "change-log-agent",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "description": "AI-powered CLI that syncs git commit history to project documentation via Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",