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 +10 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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 | `
|
|
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);
|