geeto 0.6.6 → 0.9.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 +23 -9
- package/lib/api/copilot-adapter.d.ts +14 -5
- package/lib/api/copilot-adapter.d.ts.map +1 -1
- package/lib/api/copilot-adapter.js +15 -21
- package/lib/api/copilot-adapter.js.map +1 -1
- package/lib/api/copilot-sdk.d.ts +3 -16
- package/lib/api/copilot-sdk.d.ts.map +1 -1
- package/lib/api/copilot-sdk.js +186 -454
- package/lib/api/copilot-sdk.js.map +1 -1
- package/lib/api/copilot.d.ts +3 -4
- package/lib/api/copilot.d.ts.map +1 -1
- package/lib/api/copilot.js +28 -28
- package/lib/api/copilot.js.map +1 -1
- package/lib/api/gemini-sdk.d.ts.map +1 -1
- package/lib/api/gemini-sdk.js +11 -77
- package/lib/api/gemini-sdk.js.map +1 -1
- package/lib/api/gemini.d.ts +2 -2
- package/lib/api/gemini.d.ts.map +1 -1
- package/lib/api/gemini.js +24 -19
- package/lib/api/gemini.js.map +1 -1
- package/lib/api/gitlab.d.ts +80 -0
- package/lib/api/gitlab.d.ts.map +1 -0
- package/lib/api/gitlab.js +192 -0
- package/lib/api/gitlab.js.map +1 -0
- package/lib/api/openrouter-sdk.d.ts.map +1 -1
- package/lib/api/openrouter-sdk.js +11 -76
- package/lib/api/openrouter-sdk.js.map +1 -1
- package/lib/api/openrouter.d.ts.map +1 -1
- package/lib/api/openrouter.js +2 -16
- package/lib/api/openrouter.js.map +1 -1
- package/lib/api/platform.d.ts +78 -0
- package/lib/api/platform.d.ts.map +1 -0
- package/lib/api/platform.js +218 -0
- package/lib/api/platform.js.map +1 -0
- package/lib/cli/input.d.ts +2 -2
- package/lib/cli/input.d.ts.map +1 -1
- package/lib/cli/input.js +23 -27
- package/lib/cli/input.js.map +1 -1
- package/lib/cli/menu.d.ts +1 -1
- package/lib/cli/menu.d.ts.map +1 -1
- package/lib/cli/menu.js +123 -100
- package/lib/cli/menu.js.map +1 -1
- package/lib/core/copilot-setup.d.ts +9 -8
- package/lib/core/copilot-setup.d.ts.map +1 -1
- package/lib/core/copilot-setup.js +81 -264
- package/lib/core/copilot-setup.js.map +1 -1
- package/lib/core/gemini-setup.js +7 -7
- package/lib/core/gemini-setup.js.map +1 -1
- package/lib/core/gitlab-setup.d.ts +5 -0
- package/lib/core/gitlab-setup.d.ts.map +1 -0
- package/lib/core/gitlab-setup.js +85 -0
- package/lib/core/gitlab-setup.js.map +1 -0
- package/lib/core/openrouter-setup.d.ts.map +1 -1
- package/lib/core/openrouter-setup.js +17 -0
- package/lib/core/openrouter-setup.js.map +1 -1
- package/lib/index.js +518 -704
- package/lib/index.js.map +1 -1
- package/lib/types/index.d.ts +10 -6
- package/lib/types/index.d.ts.map +1 -1
- package/lib/utils/ai-provider-helpers.d.ts +5 -0
- package/lib/utils/ai-provider-helpers.d.ts.map +1 -0
- package/lib/utils/ai-provider-helpers.js +23 -0
- package/lib/utils/ai-provider-helpers.js.map +1 -0
- package/lib/utils/ai-text.d.ts +23 -0
- package/lib/utils/ai-text.d.ts.map +1 -0
- package/lib/utils/ai-text.js +57 -0
- package/lib/utils/ai-text.js.map +1 -0
- package/lib/utils/ai-workflow.d.ts +18 -0
- package/lib/utils/ai-workflow.d.ts.map +1 -0
- package/lib/utils/ai-workflow.js +66 -0
- package/lib/utils/ai-workflow.js.map +1 -0
- package/lib/utils/branch-naming.d.ts.map +1 -1
- package/lib/utils/branch-naming.js +1 -3
- package/lib/utils/branch-naming.js.map +1 -1
- package/lib/utils/config.d.ts +13 -1
- package/lib/utils/config.d.ts.map +1 -1
- package/lib/utils/config.js +38 -1
- package/lib/utils/config.js.map +1 -1
- package/lib/utils/display.d.ts.map +1 -1
- package/lib/utils/display.js +4 -3
- package/lib/utils/display.js.map +1 -1
- package/lib/utils/exec.d.ts.map +1 -1
- package/lib/utils/exec.js +10 -2
- package/lib/utils/exec.js.map +1 -1
- package/lib/utils/git-ai.js +13 -13
- package/lib/utils/git-ai.js.map +1 -1
- package/lib/utils/git-errors.d.ts.map +1 -1
- package/lib/utils/git-errors.js +2 -6
- package/lib/utils/git-errors.js.map +1 -1
- package/lib/utils/git.d.ts.map +1 -1
- package/lib/utils/git.js +5 -0
- package/lib/utils/git.js.map +1 -1
- package/lib/utils/github-helpers.d.ts +33 -0
- package/lib/utils/github-helpers.d.ts.map +1 -0
- package/lib/utils/github-helpers.js +101 -0
- package/lib/utils/github-helpers.js.map +1 -0
- package/lib/utils/prompt-loader.d.ts +9 -0
- package/lib/utils/prompt-loader.d.ts.map +1 -0
- package/lib/utils/prompt-loader.js +42 -0
- package/lib/utils/prompt-loader.js.map +1 -0
- package/lib/utils/prompts-embedded.d.ts +2 -0
- package/lib/utils/prompts-embedded.d.ts.map +1 -0
- package/lib/utils/prompts-embedded.js +255 -0
- package/lib/utils/prompts-embedded.js.map +1 -0
- package/lib/utils/scramble.d.ts +9 -86
- package/lib/utils/scramble.d.ts.map +1 -1
- package/lib/utils/scramble.js +27 -279
- package/lib/utils/scramble.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/workflows/alias.d.ts.map +1 -1
- package/lib/workflows/alias.js +1 -0
- package/lib/workflows/alias.js.map +1 -1
- package/lib/workflows/amend.d.ts.map +1 -1
- package/lib/workflows/amend.js +1 -5
- package/lib/workflows/amend.js.map +1 -1
- package/lib/workflows/branch-helpers.d.ts.map +1 -1
- package/lib/workflows/branch-helpers.js +0 -1
- package/lib/workflows/branch-helpers.js.map +1 -1
- package/lib/workflows/commit.d.ts.map +1 -1
- package/lib/workflows/commit.js +160 -187
- package/lib/workflows/commit.js.map +1 -1
- package/lib/workflows/doctor.d.ts +7 -0
- package/lib/workflows/doctor.d.ts.map +1 -0
- package/lib/workflows/doctor.js +284 -0
- package/lib/workflows/doctor.js.map +1 -0
- package/lib/workflows/issue.d.ts +1 -1
- package/lib/workflows/issue.d.ts.map +1 -1
- package/lib/workflows/issue.js +28 -115
- package/lib/workflows/issue.js.map +1 -1
- package/lib/workflows/main-helpers.d.ts +34 -0
- package/lib/workflows/main-helpers.d.ts.map +1 -0
- package/lib/workflows/main-helpers.js +346 -0
- package/lib/workflows/main-helpers.js.map +1 -0
- package/lib/workflows/main-steps.d.ts.map +1 -1
- package/lib/workflows/main-steps.js +9 -134
- package/lib/workflows/main-steps.js.map +1 -1
- package/lib/workflows/main.d.ts +2 -6
- package/lib/workflows/main.d.ts.map +1 -1
- package/lib/workflows/main.js +44 -381
- package/lib/workflows/main.js.map +1 -1
- package/lib/workflows/pr.d.ts +2 -2
- package/lib/workflows/pr.d.ts.map +1 -1
- package/lib/workflows/pr.js +49 -137
- package/lib/workflows/pr.js.map +1 -1
- package/lib/workflows/prune.d.ts.map +1 -1
- package/lib/workflows/prune.js +2 -10
- package/lib/workflows/prune.js.map +1 -1
- package/lib/workflows/pull.d.ts.map +1 -1
- package/lib/workflows/pull.js +2 -24
- package/lib/workflows/pull.js.map +1 -1
- package/lib/workflows/release-merge.d.ts +12 -0
- package/lib/workflows/release-merge.d.ts.map +1 -0
- package/lib/workflows/release-merge.js +593 -0
- package/lib/workflows/release-merge.js.map +1 -0
- package/lib/workflows/release-notes.d.ts +13 -0
- package/lib/workflows/release-notes.d.ts.map +1 -0
- package/lib/workflows/release-notes.js +141 -0
- package/lib/workflows/release-notes.js.map +1 -0
- package/lib/workflows/release-recover.d.ts +5 -0
- package/lib/workflows/release-recover.d.ts.map +1 -0
- package/lib/workflows/release-recover.js +137 -0
- package/lib/workflows/release-recover.js.map +1 -0
- package/lib/workflows/release-sync.d.ts +7 -0
- package/lib/workflows/release-sync.d.ts.map +1 -0
- package/lib/workflows/release-sync.js +378 -0
- package/lib/workflows/release-sync.js.map +1 -0
- package/lib/workflows/release-utils.d.ts +36 -0
- package/lib/workflows/release-utils.d.ts.map +1 -0
- package/lib/workflows/release-utils.js +150 -0
- package/lib/workflows/release-utils.js.map +1 -0
- package/lib/workflows/release.d.ts.map +1 -1
- package/lib/workflows/release.js +92 -719
- package/lib/workflows/release.js.map +1 -1
- package/lib/workflows/repo-settings.d.ts +2 -2
- package/lib/workflows/repo-settings.d.ts.map +1 -1
- package/lib/workflows/repo-settings.js +33 -24
- package/lib/workflows/repo-settings.js.map +1 -1
- package/lib/workflows/reword.d.ts.map +1 -1
- package/lib/workflows/reword.js +154 -151
- package/lib/workflows/reword.js.map +1 -1
- package/lib/workflows/security-gate.d.ts.map +1 -1
- package/lib/workflows/security-gate.js +15 -75
- package/lib/workflows/security-gate.js.map +1 -1
- package/lib/workflows/settings.d.ts +3 -1
- package/lib/workflows/settings.d.ts.map +1 -1
- package/lib/workflows/settings.js +319 -19
- package/lib/workflows/settings.js.map +1 -1
- package/lib/workflows/submodules.d.ts +6 -0
- package/lib/workflows/submodules.d.ts.map +1 -0
- package/lib/workflows/submodules.js +344 -0
- package/lib/workflows/submodules.js.map +1 -0
- package/lib/workflows/trello-menu.d.ts +2 -5
- package/lib/workflows/trello-menu.d.ts.map +1 -1
- package/lib/workflows/trello-menu.js +67 -228
- package/lib/workflows/trello-menu.js.map +1 -1
- package/package.json +4 -6
- package/prompts/branch-name-prompt.md +4 -0
- package/prompts/commit-message-prompt.md +12 -0
- package/prompts/issue-prompt.md +19 -0
- package/prompts/issue-review.with-context.prompt.yml +77 -0
- package/prompts/pr-prompt.md +14 -0
- package/prompts/release-notes-prompt.md +35 -0
- package/prompts/repo-description-prompt.md +1 -0
- package/prompts/security-gate-prompt.md +80 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release notes generation — markdown formatting, RELEASE.MD and CHANGELOG.md generators
|
|
3
|
+
*/
|
|
4
|
+
import { categorizeCommits, getRepoUrl } from './release-utils.js';
|
|
5
|
+
// ─── Markdown helpers ───
|
|
6
|
+
/**
|
|
7
|
+
* Normalize markdown spacing for consistent markdownlint-friendly output.
|
|
8
|
+
* Ensures: one blank line after ### and #### headings, one blank line between sections,
|
|
9
|
+
* no double blank lines, trailing newline.
|
|
10
|
+
*/
|
|
11
|
+
export const normalizeReleaseMarkdown = (md) => {
|
|
12
|
+
const lines = md.split('\n');
|
|
13
|
+
const result = [];
|
|
14
|
+
for (let i = 0; i < lines.length; i++) {
|
|
15
|
+
const line = lines[i] ?? '';
|
|
16
|
+
const nextLine = lines[i + 1] ?? '';
|
|
17
|
+
result.push(line);
|
|
18
|
+
// After a heading (### or ####), ensure exactly one blank line before content
|
|
19
|
+
if ((line.startsWith('###') || line.startsWith('####')) && nextLine.trim() !== '') {
|
|
20
|
+
result.push('');
|
|
21
|
+
}
|
|
22
|
+
// After a bullet line, if next line is a heading, ensure blank line
|
|
23
|
+
if (line.startsWith('-') && (nextLine.startsWith('###') || nextLine.startsWith('####'))) {
|
|
24
|
+
result.push('');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
// Collapse multiple blank lines into one
|
|
28
|
+
return result
|
|
29
|
+
.join('\n')
|
|
30
|
+
.replaceAll(/\n{3,}/g, '\n\n')
|
|
31
|
+
.trim();
|
|
32
|
+
};
|
|
33
|
+
// ─── stripConventional helpers ───
|
|
34
|
+
const stripFeatPrefix = (s) => {
|
|
35
|
+
const idx = s.indexOf(': ');
|
|
36
|
+
if (idx !== -1 && s.slice(0, idx).startsWith('feat'))
|
|
37
|
+
return s.slice(idx + 2);
|
|
38
|
+
return s.replace(/^feat:\s*/, '');
|
|
39
|
+
};
|
|
40
|
+
const stripFixPrefix = (s) => {
|
|
41
|
+
const idx = s.indexOf(': ');
|
|
42
|
+
if (idx !== -1 && s.slice(0, idx).startsWith('fix'))
|
|
43
|
+
return s.slice(idx + 2);
|
|
44
|
+
return s.replace(/^fix:\s*/, '');
|
|
45
|
+
};
|
|
46
|
+
const stripBreakingPrefix = (s) => {
|
|
47
|
+
const idx = s.indexOf('!: ');
|
|
48
|
+
if (idx !== -1)
|
|
49
|
+
return s.slice(idx + 3);
|
|
50
|
+
return s.replace(/BREAKING CHANGE:\s*/, '');
|
|
51
|
+
};
|
|
52
|
+
const stripConventionalPrefix = (s) => {
|
|
53
|
+
const idx = s.indexOf(': ');
|
|
54
|
+
if (idx !== -1)
|
|
55
|
+
return s.slice(idx + 2);
|
|
56
|
+
return s;
|
|
57
|
+
};
|
|
58
|
+
// ─── RELEASE.MD generator (user-facing, simple language) ───
|
|
59
|
+
export const generateReleaseMd = (version, commits, prevVersion) => {
|
|
60
|
+
const now = new Date();
|
|
61
|
+
const date = now.toLocaleDateString('en-US', {
|
|
62
|
+
year: 'numeric',
|
|
63
|
+
month: 'long',
|
|
64
|
+
day: 'numeric',
|
|
65
|
+
});
|
|
66
|
+
const cat = categorizeCommits(commits);
|
|
67
|
+
// Each version is a ## section so multiple versions stack in a single file
|
|
68
|
+
const header = [
|
|
69
|
+
`## v${version} — ${date}`,
|
|
70
|
+
'',
|
|
71
|
+
`> Previous version: v${prevVersion}`,
|
|
72
|
+
'',
|
|
73
|
+
"### What's New?",
|
|
74
|
+
'',
|
|
75
|
+
];
|
|
76
|
+
const featureSection = cat.features.length > 0
|
|
77
|
+
? ['#### New Features', '', ...cat.features.map((f) => `- ${stripFeatPrefix(f.subject)}`), '']
|
|
78
|
+
: [];
|
|
79
|
+
const fixSection = cat.fixes.length > 0
|
|
80
|
+
? ['#### Bug Fixes', '', ...cat.fixes.map((f) => `- ${stripFixPrefix(f.subject)}`), '']
|
|
81
|
+
: [];
|
|
82
|
+
const breakingSection = cat.breaking.length > 0
|
|
83
|
+
? [
|
|
84
|
+
'#### Important Changes',
|
|
85
|
+
'',
|
|
86
|
+
'> Note: Some changes in this version may require adjustments.',
|
|
87
|
+
'',
|
|
88
|
+
...cat.breaking.map((b) => `- ${stripBreakingPrefix(b.subject)}`),
|
|
89
|
+
'',
|
|
90
|
+
]
|
|
91
|
+
: [];
|
|
92
|
+
const otherSection = cat.other.length > 0
|
|
93
|
+
? [
|
|
94
|
+
'#### Other Improvements',
|
|
95
|
+
'',
|
|
96
|
+
...cat.other.map((o) => `- ${stripConventionalPrefix(o.subject)}`),
|
|
97
|
+
'',
|
|
98
|
+
]
|
|
99
|
+
: [];
|
|
100
|
+
const empty = commits.length === 0 ? ['No significant changes in this version.', ''] : [];
|
|
101
|
+
return [
|
|
102
|
+
...header,
|
|
103
|
+
...featureSection,
|
|
104
|
+
...fixSection,
|
|
105
|
+
...breakingSection,
|
|
106
|
+
...otherSection,
|
|
107
|
+
...empty,
|
|
108
|
+
'---',
|
|
109
|
+
'',
|
|
110
|
+
].join('\n');
|
|
111
|
+
};
|
|
112
|
+
// ─── CHANGELOG.md generator (developer-facing, per-commit) ───
|
|
113
|
+
export const generateChangelogEntry = (version, commits, prevVersion) => {
|
|
114
|
+
const repoUrl = getRepoUrl();
|
|
115
|
+
const dateStr = new Date().toISOString().slice(0, 10);
|
|
116
|
+
const cat = categorizeCommits(commits);
|
|
117
|
+
const commitLink = (c) => repoUrl ? `[${c.short}](${repoUrl}/commit/${c.short})` : c.short;
|
|
118
|
+
const versionLink = repoUrl
|
|
119
|
+
? `[${version}](${repoUrl}/compare/v${prevVersion}...v${version})`
|
|
120
|
+
: version;
|
|
121
|
+
const header = [`## ${versionLink} (${dateStr})`, ''];
|
|
122
|
+
const breakingSection = cat.breaking.length > 0
|
|
123
|
+
? [
|
|
124
|
+
'### BREAKING CHANGES',
|
|
125
|
+
'',
|
|
126
|
+
...cat.breaking.map((c) => `* ${c.subject} (${commitLink(c)})`),
|
|
127
|
+
'',
|
|
128
|
+
]
|
|
129
|
+
: [];
|
|
130
|
+
const featureSection = cat.features.length > 0
|
|
131
|
+
? ['### Features', '', ...cat.features.map((c) => `* ${c.subject} (${commitLink(c)})`), '']
|
|
132
|
+
: [];
|
|
133
|
+
const fixSection = cat.fixes.length > 0
|
|
134
|
+
? ['### Bug Fixes', '', ...cat.fixes.map((c) => `* ${c.subject} (${commitLink(c)})`), '']
|
|
135
|
+
: [];
|
|
136
|
+
const otherSection = cat.other.length > 0
|
|
137
|
+
? ['### Other Changes', '', ...cat.other.map((c) => `* ${c.subject} (${commitLink(c)})`), '']
|
|
138
|
+
: [];
|
|
139
|
+
return [...header, ...breakingSection, ...featureSection, ...fixSection, ...otherSection].join('\n');
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=release-notes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-notes.js","sourceRoot":"","sources":["../../src/workflows/release-notes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAElE,2BAA2B;AAE3B;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EAAU,EAAU,EAAE;IAC7D,MAAM,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC5B,MAAM,MAAM,GAAa,EAAE,CAAA;IAE3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QAC3B,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAA;QAEnC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAEjB,8EAA8E;QAC9E,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAClF,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACjB,CAAC;QAED,oEAAoE;QACpE,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;YACxF,MA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AU,GACd,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;QAClB,CAAC,CAAC,CAAC,eAAe,EAAE,EAAE,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACzF,CAAC,CAAC,EAAE,CAAA;IAER,MAAM,YAAY,GAChB,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;QAClB,CAAC,CAAC,CAAC,mBAAmB,EAAE,EAAE,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QAC7F,CAAC,CAAC,EAAE,CAAA;IAER,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,eAAe,EAAE,GAAG,cAAc,EAAE,GAAG,UAAU,EAAE,GAAG,YAAY,CAAC,CAAC,IAAI,CAC5F,IAAI,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-recover.d.ts","sourceRoot":"","sources":["../../src/workflows/release-recover.ts"],"names":[],"mappings":"AAAA;;GAEG;AAaH,eAAO,MAAM,iBAAiB,QAAa,OAAO,CAAC,IAAI,CA8ItD,CAAA"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release recovery — recover missing tags from release commits
|
|
3
|
+
*/
|
|
4
|
+
import { getExistingTags } from './release-utils.js';
|
|
5
|
+
import { confirm } from '../cli/input.js';
|
|
6
|
+
import { select } from '../cli/menu.js';
|
|
7
|
+
import { colors } from '../utils/colors.js';
|
|
8
|
+
import { BOX_W } from '../utils/display.js';
|
|
9
|
+
import { exec, execAsync } from '../utils/exec.js';
|
|
10
|
+
import { log } from '../utils/logging.js';
|
|
11
|
+
import { ScrambleProgress } from '../utils/scramble.js';
|
|
12
|
+
// ─── Recover missing tags ───
|
|
13
|
+
export const handleRecoverTags = async () => {
|
|
14
|
+
const line = '─'.repeat(BOX_W);
|
|
15
|
+
console.log('');
|
|
16
|
+
const spinner = log.spinner();
|
|
17
|
+
spinner.start('Scanning release commits...');
|
|
18
|
+
// Find all release commits: "chore(release): vX.Y.Z"
|
|
19
|
+
let gitLog;
|
|
20
|
+
try {
|
|
21
|
+
gitLog = exec('git log --all --oneline --grep="^chore(release): v" --format="%H %s"', true);
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
spinner.fail('Failed to scan git log');
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const releasePattern = /^([a-f0-9]+) chore\(release\): v(.+)$/;
|
|
28
|
+
const releaseCommits = [];
|
|
29
|
+
for (const logLine of gitLog.split('\n').filter(Boolean)) {
|
|
30
|
+
const match = logLine.match(releasePattern);
|
|
31
|
+
if (match?.[1] && match[2]) {
|
|
32
|
+
releaseCommits.push({
|
|
33
|
+
hash: match[1],
|
|
34
|
+
version: match[2],
|
|
35
|
+
tag: `v${match[2]}`,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (releaseCommits.length === 0) {
|
|
40
|
+
spinner.fail('No release commits found');
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
// Compare with existing tags
|
|
44
|
+
const existingTags = new Set(getExistingTags());
|
|
45
|
+
const missingTags = releaseCommits.filter((rc) => !existingTags.has(rc.tag));
|
|
46
|
+
spinner.succeed(`Found ${releaseCommits.length} release commits, ${existingTags.size} tags`);
|
|
47
|
+
if (missingTags.length === 0) {
|
|
48
|
+
console.log('');
|
|
49
|
+
log.success('All release commits have matching tags! Nothing to recover.');
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
// Show missing tags
|
|
53
|
+
console.log('');
|
|
54
|
+
log.info(`${colors.bright}${missingTags.length}${colors.reset} tags missing (release commit exists but no tag):`);
|
|
55
|
+
for (const mt of missingTags) {
|
|
56
|
+
console.log(` ${colors.yellow}${mt.tag}${colors.reset} ${colors.gray}← ${mt.hash.slice(0, 7)}${colors.reset}`);
|
|
57
|
+
}
|
|
58
|
+
console.log('');
|
|
59
|
+
const action = await select('What do you want to do?', [
|
|
60
|
+
{ label: 'Recover all missing tags', value: 'all' },
|
|
61
|
+
{ label: 'Select which tags to recover', value: 'select' },
|
|
62
|
+
{ label: 'Cancel', value: 'cancel' },
|
|
63
|
+
]);
|
|
64
|
+
if (action === 'cancel')
|
|
65
|
+
return;
|
|
66
|
+
let tagsToRecover = missingTags;
|
|
67
|
+
if (action === 'select') {
|
|
68
|
+
const { multiSelect } = await import('../cli/menu.js');
|
|
69
|
+
const choices = missingTags.map((mt) => ({
|
|
70
|
+
label: `${mt.tag} (${mt.hash.slice(0, 7)})`,
|
|
71
|
+
value: mt.tag,
|
|
72
|
+
}));
|
|
73
|
+
const selected = await multiSelect('Select tags to recover:', choices);
|
|
74
|
+
if (selected.length === 0) {
|
|
75
|
+
log.info('No tags selected.');
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
tagsToRecover = missingTags.filter((mt) => selected.includes(mt.tag));
|
|
79
|
+
}
|
|
80
|
+
// Preview
|
|
81
|
+
console.log('');
|
|
82
|
+
console.log(`${colors.cyan}┌${line}┐${colors.reset}`);
|
|
83
|
+
console.log(`${colors.cyan}│${colors.reset} ${colors.bright}Recovery Plan${colors.reset}`);
|
|
84
|
+
console.log(`${colors.cyan}├${line}┤${colors.reset}`);
|
|
85
|
+
for (const mt of tagsToRecover) {
|
|
86
|
+
console.log(`${colors.cyan}│${colors.reset} ${colors.green}+${colors.reset} ${colors.yellow}${mt.tag}${colors.reset} → commit ${colors.gray}${mt.hash.slice(0, 7)}${colors.reset}`);
|
|
87
|
+
}
|
|
88
|
+
console.log(`${colors.cyan}└${line}┘${colors.reset}`);
|
|
89
|
+
console.log('');
|
|
90
|
+
const proceed = confirm(`Create ${tagsToRecover.length} tags?`);
|
|
91
|
+
if (!proceed)
|
|
92
|
+
return;
|
|
93
|
+
let successCount = 0;
|
|
94
|
+
for (const mt of tagsToRecover) {
|
|
95
|
+
console.log('');
|
|
96
|
+
const tagSpinner = log.spinner();
|
|
97
|
+
tagSpinner.start(`Creating tag ${colors.yellow}${mt.tag}${colors.reset}...`);
|
|
98
|
+
try {
|
|
99
|
+
exec(`git tag -a ${mt.tag} ${mt.hash} -m "Release ${mt.tag}"`, true);
|
|
100
|
+
tagSpinner.succeed(`Tag ${mt.tag} created`);
|
|
101
|
+
successCount++;
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
105
|
+
tagSpinner.fail(`Failed to create ${mt.tag}`);
|
|
106
|
+
log.error(` ${errMsg.split('\n')[0]}`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
console.log('');
|
|
110
|
+
if (successCount === tagsToRecover.length) {
|
|
111
|
+
log.success(`All ${successCount} tags recovered!`);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
log.warn(`${successCount}/${tagsToRecover.length} tags recovered`);
|
|
115
|
+
}
|
|
116
|
+
// Offer to push tags to remote
|
|
117
|
+
if (successCount > 0) {
|
|
118
|
+
console.log('');
|
|
119
|
+
const pushTags = confirm('Push recovered tags to remote?');
|
|
120
|
+
if (pushTags) {
|
|
121
|
+
console.log('');
|
|
122
|
+
const pushSpinner = new ScrambleProgress();
|
|
123
|
+
pushSpinner.start(['Pushing tags to remote']);
|
|
124
|
+
try {
|
|
125
|
+
await execAsync('git push --tags --no-verify', true);
|
|
126
|
+
pushSpinner.succeed('Tags pushed to remote');
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
const stderr = error.stderr?.trim();
|
|
130
|
+
pushSpinner.fail('Failed to push tags');
|
|
131
|
+
if (stderr)
|
|
132
|
+
log.error(` ${stderr.split('\n')[0]}`);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=release-recover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-recover.js","sourceRoot":"","sources":["../../src/workflows/release-recover.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,+BAA+B;AAE/B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,IAAmB,EAAE;IACzD,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAE9B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IACf,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAA;IAC7B,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAE5C,qDAAqD;IACrD,IAAI,MAAc,CAAA;IAClB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,sEAAsE,EAAE,IAAI,CAAC,CAAA;IAC7F,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAA;QACtC,OAAM;IACR,CAAC;IAED,MAAM,cAAc,GAAG,uCAAuC,CAAA;I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;QACN,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,IAAI,aAAa,CAAC,MAAM,iBAAiB,CAAC,CAAA;IACpE,CAAC;IAED,+BAA+B;IAC/B,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;QACrB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACf,MAAM,QAAQ,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAA;QAC1D,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACf,MAAM,WAAW,GAAG,IAAI,gBAAgB,EAAE,CAAA;YAC1C,WAAW,CAAC,KAAK,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAA;YAC7C,IAAI,CAAC;gBACH,MAAM,SAAS,CAAC,6BAA6B,EAAE,IAAI,CAAC,CAAA;gBACpD,WAAW,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAA;YAC9C,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,MAAM,GAAI,KAA6B,CAAC,MAAM,EAAE,IAAI,EAAE,CAAA;gBAC5D,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;gBACvC,IAAI,MAAM;oBAAE,GAAG,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;YACrD,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release sync workflows — sync GitHub/GitLab Releases for existing tags, delete releases
|
|
3
|
+
*/
|
|
4
|
+
export declare const getExistingGithubReleases: (cli?: string) => Promise<string[]>;
|
|
5
|
+
export declare const handleSyncReleases: () => Promise<void>;
|
|
6
|
+
export declare const handleDeleteReleases: () => Promise<void>;
|
|
7
|
+
//# sourceMappingURL=release-sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-sync.d.ts","sourceRoot":"","sources":["../../src/workflows/release-sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AA2BH,eAAO,MAAM,yBAAyB,GAAU,YAAU,KAAG,OAAO,CAAC,MAAM,EAAE,CAuB5E,CAAA;AAID,eAAO,MAAM,kBAAkB,QAAa,OAAO,CAAC,IAAI,CA4QvD,CAAA;AAID,eAAO,MAAM,oBAAoB,QAAa,OAAO,CAAC,IAAI,CA0HzD,CAAA"}
|