aigroup-workflow 1.1.3 → 1.1.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/cli/utils/prompts.mjs +9 -8
- package/cli/utils/scaffold.mjs +5 -1
- package/package.json +1 -1
package/cli/utils/prompts.mjs
CHANGED
|
@@ -88,13 +88,13 @@ export async function multiSelect(message, choices) {
|
|
|
88
88
|
return ` ${C.dim}↑↓ 移动${C.reset} ${C.dim}空格 选择${C.reset} ${C.dim}a 全选/取消${C.reset} ${C.dim}回车 确认${C.reset}`
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
// 总行数 = 选项行 + 提示行
|
|
92
|
-
const totalLines = choices.length + 1
|
|
93
|
-
|
|
94
91
|
function render(isFirst) {
|
|
95
92
|
if (!isFirst) {
|
|
96
|
-
//
|
|
97
|
-
process.stdout.write(
|
|
93
|
+
// 光标在提示行末尾(无换行),清除当前行,再逐行回退并清除
|
|
94
|
+
process.stdout.write('\r\x1b[2K')
|
|
95
|
+
for (let n = 0; n < choices.length; n++) {
|
|
96
|
+
process.stdout.write('\x1b[1A\x1b[2K')
|
|
97
|
+
}
|
|
98
98
|
}
|
|
99
99
|
for (const [i, c] of choices.entries()) {
|
|
100
100
|
process.stdout.write(renderLine(c, i) + '\n')
|
|
@@ -188,11 +188,12 @@ export async function select(message, choices) {
|
|
|
188
188
|
return ` ${C.dim}↑↓ 移动${C.reset} ${C.dim}回车 选择${C.reset}`
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
const totalLines = choices.length + 1
|
|
192
|
-
|
|
193
191
|
function render(isFirst) {
|
|
194
192
|
if (!isFirst) {
|
|
195
|
-
process.stdout.write(
|
|
193
|
+
process.stdout.write('\r\x1b[2K')
|
|
194
|
+
for (let n = 0; n < choices.length; n++) {
|
|
195
|
+
process.stdout.write('\x1b[1A\x1b[2K')
|
|
196
|
+
}
|
|
196
197
|
}
|
|
197
198
|
for (const [i, c] of choices.entries()) {
|
|
198
199
|
process.stdout.write(renderLine(c, i) + '\n')
|
package/cli/utils/scaffold.mjs
CHANGED
|
@@ -42,9 +42,11 @@ export const BASE_DIRS = [
|
|
|
42
42
|
'skills/max/workflow/entropy-management',
|
|
43
43
|
]
|
|
44
44
|
|
|
45
|
-
/** Hooks
|
|
45
|
+
/** Hooks 和通用命令(必装) */
|
|
46
46
|
export const HOOKS_FILES = [
|
|
47
47
|
'.claude/hooks.json',
|
|
48
|
+
'.claude/commands/init-project.md',
|
|
49
|
+
'.claude/commands/git-commit.md',
|
|
48
50
|
]
|
|
49
51
|
|
|
50
52
|
/** 角色资产 */
|
|
@@ -80,6 +82,8 @@ export const UPDATABLE_FILES = [
|
|
|
80
82
|
'.claude/commands/jarvis.md',
|
|
81
83
|
'.claude/commands/ella.md',
|
|
82
84
|
'.claude/commands/kyle.md',
|
|
85
|
+
'.claude/commands/init-project.md',
|
|
86
|
+
'.claude/commands/git-commit.md',
|
|
83
87
|
]
|
|
84
88
|
|
|
85
89
|
// ─── 文件操作 ───
|