deuk-agent-rule 2.4.1 → 2.4.2

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/CHANGELOG.ko.md CHANGED
@@ -6,6 +6,11 @@
6
6
 
7
7
  형식은 [Keep a Changelog](https://keepachangelog.com/ko/1.1.0/)를 기반으로 하며, 이 프로젝트는 [유의적 버전(Semantic Versioning)](https://semver.org/spec/v2.0.0.html)을 준수합니다.
8
8
 
9
+ ## [2.4.2] - 2026-04-18
10
+
11
+ ### 수정됨 (Fixed)
12
+ - **ticket:** 파일명(File name)과 본문 내 티켓 ID 생성 로직 간의 불일치(Discrepancy) 해결 (단일 출처로 통합)
13
+
9
14
  ## [2.4.1] - 2026-04-18
10
15
 
11
16
  ### 추가됨 (Added)
package/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.4.2] - 2026-04-18
8
+
9
+
10
+ ### Added
11
+
12
+ - **cli:** add update notifier for checking latest npm version
13
+
14
+
15
+ ### Fixed
16
+
17
+ - **ticket:** resolve discrepancy between filename and ticket ID generation
18
+ - **ticket:** strictly enforce 8-character limit on hostname slug
19
+
20
+
21
+ ### Changed
22
+
23
+ - add reasons for global installation
24
+ - **changelog:** sync korean changelog with v2.4.0
25
+
7
26
  ## [2.4.1] - 2026-04-18
8
27
 
9
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deuk-agent-rule",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "DeukAgentRules: generic AGENTS.md + .cursor rule templates with init/merge CLI (npm name: deuk-agent-rule).",
5
5
  "keywords": [
6
6
  "agents-md",
@@ -33,31 +33,14 @@ export async function runTicketCreate(opts) {
33
33
  // Find nearest or create in CWD if missing
34
34
  const ticketDir = detectConsumerTicketDir(opts.cwd, { createIfMissing: true });
35
35
 
36
- // Calculate next sequence number by scanning existing files
37
- let maxSeq = 0;
38
- const allFiles = [];
39
- const scanDirs = [join(ticketDir, "sub"), join(ticketDir, "main"), join(ticketDir, "archive/sub"), join(ticketDir, "archive/main")];
40
- for (const d of scanDirs) {
41
- if (existsSync(d)) {
42
- const files = readdirSync(d);
43
- for (const f of files) {
44
- const match = f.match(/^(\d+)-/);
45
- if (match) {
46
- const num = parseInt(match[1], 10);
47
- if (num > maxSeq) maxSeq = num;
48
- }
49
- }
50
- }
51
- }
52
- const nextSeq = String(maxSeq + 1).padStart(3, "0");
53
- const hName = hostname().toLowerCase().slice(0, 8);
54
- const finalFileName = `${nextSeq}-${hName}-ticket-${topic}.md`;
36
+ const indexJson = readTicketIndexJson(opts.cwd);
37
+ const ticketId = generateTicketId(topic, indexJson.entries);
38
+ const finalFileName = `${ticketId}.md`;
55
39
 
56
40
  const abs = join(ticketDir, group, finalFileName);
57
41
  mkdirSync(join(ticketDir, group), { recursive: true });
58
42
  path = toRepoRelativePath(opts.cwd, abs);
59
43
 
60
- const ticketId = generateTicketId(title);
61
44
  const meta = {
62
45
  id: ticketId,
63
46
  title,