@kyubiware/commit-mint 0.10.0 → 0.10.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/dist/bin.mjs +6 -2
- package/dist/bin.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -33,7 +33,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
33
33
|
//#region package.json
|
|
34
34
|
var package_default = {
|
|
35
35
|
name: "@kyubiware/commit-mint",
|
|
36
|
-
version: "0.10.
|
|
36
|
+
version: "0.10.1",
|
|
37
37
|
description: "🌿 AI-powered git commit tool — auto-group changed files, generate messages, run pre-commit checks",
|
|
38
38
|
type: "module",
|
|
39
39
|
bin: { "cmint": "./dist/bin.mjs" },
|
|
@@ -3791,6 +3791,7 @@ async function fileMultiSelect(message, options, opts) {
|
|
|
3791
3791
|
const prompt = new nt({
|
|
3792
3792
|
options,
|
|
3793
3793
|
required,
|
|
3794
|
+
initialValues: opts?.initialValues,
|
|
3794
3795
|
input: opts?.input,
|
|
3795
3796
|
output: opts?.output,
|
|
3796
3797
|
validate: (values) => {
|
|
@@ -4009,7 +4010,10 @@ async function showStagingMenu(files, hasChecks) {
|
|
|
4009
4010
|
const selected = await fileMultiSelect("Select files to stage:", sorted.map((f) => ({
|
|
4010
4011
|
label: `${statusLabel(f.status)} ${f.path}`,
|
|
4011
4012
|
value: f.path
|
|
4012
|
-
})), {
|
|
4013
|
+
})), {
|
|
4014
|
+
required: true,
|
|
4015
|
+
initialValues: sorted.filter((f) => f.staged).map((f) => f.path)
|
|
4016
|
+
});
|
|
4013
4017
|
if (p$1.isCancel(selected)) return null;
|
|
4014
4018
|
return {
|
|
4015
4019
|
files: selected,
|