@ksw8954/git-ai-commit 1.0.4 → 1.0.5
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/dist/prompts/tag.d.ts.map +1 -1
- package/dist/prompts/tag.js +11 -9
- package/dist/prompts/tag.js.map +1 -1
- package/package.json +1 -1
- package/src/prompts/tag.ts +11 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/prompts/tag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,2BAAuB,EACvB,WAAU,iBAAwB,KACjC,
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/prompts/tag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,2BAAuB,EACvB,WAAU,iBAAwB,KACjC,MA2CF,CAAC"}
|
package/dist/prompts/tag.js
CHANGED
|
@@ -3,20 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.generateTagPrompt = void 0;
|
|
4
4
|
const generateTagPrompt = (tagName, customInstructions = '', language = 'ko') => {
|
|
5
5
|
const summaryInstruction = language === 'ko'
|
|
6
|
-
? 'Begin with a short summary sentence (in Korean) that captures the overall impact of the release.'
|
|
7
|
-
: 'Begin with a short summary sentence (in English) that captures the overall impact of the release.';
|
|
6
|
+
? 'Begin with a short summary sentence (in Korean) that captures the overall impact of the release using plain text only.'
|
|
7
|
+
: 'Begin with a short summary sentence (in English) that captures the overall impact of the release using plain text only.';
|
|
8
8
|
const listInstruction = language === 'ko'
|
|
9
|
-
? 'After the summary,
|
|
10
|
-
: 'After the summary,
|
|
9
|
+
? 'After the summary, write one line per category — 사용자 기능, 버그 수정, 유지 보수 — using the format "사용자 기능: 변경1; 변경2" with plain text only (no bullets, numbers, or markdown symbols).'
|
|
10
|
+
: 'After the summary, write one line per category — User Features, Bug Fixes, Maintenance — using the format "User Features: Change 1; Change 2" with plain text only (no bullets, numbers, or markdown symbols).';
|
|
11
11
|
const emptyCategoryInstruction = language === 'ko'
|
|
12
|
-
? 'If a category has no changes,
|
|
13
|
-
: 'If a category has no changes,
|
|
12
|
+
? 'If a category has no changes, write "사용자 기능: 해당 사항 없음." (or the matching category label) using the same plain text format.'
|
|
13
|
+
: 'If a category has no changes, write "User Features: None." (or the matching category label) using the same plain text format.';
|
|
14
14
|
const noChangesInstruction = language === 'ko'
|
|
15
15
|
? 'If no changes exist at all, state "변경 사항 없음" plainly.'
|
|
16
16
|
: 'If no changes exist at all, state "No changes to report." plainly.';
|
|
17
17
|
const outputLanguageLine = language === 'ko'
|
|
18
|
-
? 'Write the release notes in Korean using concise markdown.'
|
|
19
|
-
: 'Write the release notes in English using concise markdown.';
|
|
18
|
+
? 'Write the release notes in Korean using concise plain text without markdown syntax.'
|
|
19
|
+
: 'Write the release notes in English using concise plain text without markdown syntax.';
|
|
20
20
|
return `You are an experienced release manager. Produce clear, user-facing release notes that describe the differences between the previous tag and ${tagName}.
|
|
21
21
|
|
|
22
22
|
## Objective
|
|
@@ -32,10 +32,12 @@ ${customInstructions}
|
|
|
32
32
|
- ${outputLanguageLine}
|
|
33
33
|
- ${summaryInstruction}
|
|
34
34
|
- ${listInstruction}
|
|
35
|
-
- Use short phrases for each
|
|
35
|
+
- Use short phrases for each change and include scope/component names when helpful, without copying commit messages verbatim.
|
|
36
36
|
- ${emptyCategoryInstruction}
|
|
37
37
|
- ${noChangesInstruction}
|
|
38
38
|
- Do not invent work beyond what appears in the commit log.
|
|
39
|
+
- Do not use markdown syntax such as headings (#), bullets (-), emphasis (**), underscores (_), or backticks (\`).
|
|
40
|
+
- Separate lines using newline characters only; do not use numbering, bullet prefixes, tables, or code blocks.
|
|
39
41
|
- Return only the release notes content with no surrounding commentary.`;
|
|
40
42
|
};
|
|
41
43
|
exports.generateTagPrompt = generateTagPrompt;
|
package/dist/prompts/tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../src/prompts/tag.ts"],"names":[],"mappings":";;;AAEO,MAAM,iBAAiB,GAAG,CAC/B,OAAe,EACf,kBAAkB,GAAG,EAAE,EACvB,WAA8B,IAAI,EAC1B,EAAE;IACV,MAAM,kBAAkB,GAAG,QAAQ,KAAK,IAAI;QAC1C,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../src/prompts/tag.ts"],"names":[],"mappings":";;;AAEO,MAAM,iBAAiB,GAAG,CAC/B,OAAe,EACf,kBAAkB,GAAG,EAAE,EACvB,WAA8B,IAAI,EAC1B,EAAE;IACV,MAAM,kBAAkB,GAAG,QAAQ,KAAK,IAAI;QAC1C,CAAC,CAAC,wHAAwH;QAC1H,CAAC,CAAC,yHAAyH,CAAC;IAE9H,MAAM,eAAe,GAAG,QAAQ,KAAK,IAAI;QACvC,CAAC,CAAC,8KAA8K;QAChL,CAAC,CAAC,gNAAgN,CAAC;IAErN,MAAM,wBAAwB,GAAG,QAAQ,KAAK,IAAI;QAChD,CAAC,CAAC,4HAA4H;QAC9H,CAAC,CAAC,+HAA+H,CAAC;IAEpI,MAAM,oBAAoB,GAAG,QAAQ,KAAK,IAAI;QAC5C,CAAC,CAAC,uDAAuD;QACzD,CAAC,CAAC,oEAAoE,CAAC;IAEzE,MAAM,kBAAkB,GAAG,QAAQ,KAAK,IAAI;QAC1C,CAAC,CAAC,qFAAqF;QACvF,CAAC,CAAC,sFAAsF,CAAC;IAE3F,OAAO,+IAA+I,OAAO;;;mFAG5E,OAAO;;;2BAG/D,OAAO;gDACc,OAAO;;EAErD,kBAAkB;;;IAGhB,kBAAkB;IAClB,kBAAkB;IAClB,eAAe;;IAEf,wBAAwB;IACxB,oBAAoB;;;;wEAIgD,CAAC;AACzE,CAAC,CAAC;AA/CW,QAAA,iBAAiB,qBA+C5B"}
|
package/package.json
CHANGED
package/src/prompts/tag.ts
CHANGED
|
@@ -6,24 +6,24 @@ export const generateTagPrompt = (
|
|
|
6
6
|
language: TagPromptLanguage = 'ko'
|
|
7
7
|
): string => {
|
|
8
8
|
const summaryInstruction = language === 'ko'
|
|
9
|
-
? 'Begin with a short summary sentence (in Korean) that captures the overall impact of the release.'
|
|
10
|
-
: 'Begin with a short summary sentence (in English) that captures the overall impact of the release.';
|
|
9
|
+
? 'Begin with a short summary sentence (in Korean) that captures the overall impact of the release using plain text only.'
|
|
10
|
+
: 'Begin with a short summary sentence (in English) that captures the overall impact of the release using plain text only.';
|
|
11
11
|
|
|
12
12
|
const listInstruction = language === 'ko'
|
|
13
|
-
? 'After the summary,
|
|
14
|
-
: 'After the summary,
|
|
13
|
+
? 'After the summary, write one line per category — 사용자 기능, 버그 수정, 유지 보수 — using the format "사용자 기능: 변경1; 변경2" with plain text only (no bullets, numbers, or markdown symbols).'
|
|
14
|
+
: 'After the summary, write one line per category — User Features, Bug Fixes, Maintenance — using the format "User Features: Change 1; Change 2" with plain text only (no bullets, numbers, or markdown symbols).';
|
|
15
15
|
|
|
16
16
|
const emptyCategoryInstruction = language === 'ko'
|
|
17
|
-
? 'If a category has no changes,
|
|
18
|
-
: 'If a category has no changes,
|
|
17
|
+
? 'If a category has no changes, write "사용자 기능: 해당 사항 없음." (or the matching category label) using the same plain text format.'
|
|
18
|
+
: 'If a category has no changes, write "User Features: None." (or the matching category label) using the same plain text format.';
|
|
19
19
|
|
|
20
20
|
const noChangesInstruction = language === 'ko'
|
|
21
21
|
? 'If no changes exist at all, state "변경 사항 없음" plainly.'
|
|
22
22
|
: 'If no changes exist at all, state "No changes to report." plainly.';
|
|
23
23
|
|
|
24
24
|
const outputLanguageLine = language === 'ko'
|
|
25
|
-
? 'Write the release notes in Korean using concise markdown.'
|
|
26
|
-
: 'Write the release notes in English using concise markdown.';
|
|
25
|
+
? 'Write the release notes in Korean using concise plain text without markdown syntax.'
|
|
26
|
+
: 'Write the release notes in English using concise plain text without markdown syntax.';
|
|
27
27
|
|
|
28
28
|
return `You are an experienced release manager. Produce clear, user-facing release notes that describe the differences between the previous tag and ${tagName}.
|
|
29
29
|
|
|
@@ -40,9 +40,11 @@ ${customInstructions}
|
|
|
40
40
|
- ${outputLanguageLine}
|
|
41
41
|
- ${summaryInstruction}
|
|
42
42
|
- ${listInstruction}
|
|
43
|
-
- Use short phrases for each
|
|
43
|
+
- Use short phrases for each change and include scope/component names when helpful, without copying commit messages verbatim.
|
|
44
44
|
- ${emptyCategoryInstruction}
|
|
45
45
|
- ${noChangesInstruction}
|
|
46
46
|
- Do not invent work beyond what appears in the commit log.
|
|
47
|
+
- Do not use markdown syntax such as headings (#), bullets (-), emphasis (**), underscores (_), or backticks (\`).
|
|
48
|
+
- Separate lines using newline characters only; do not use numbering, bullet prefixes, tables, or code blocks.
|
|
47
49
|
- Return only the release notes content with no surrounding commentary.`;
|
|
48
50
|
};
|