@yorha2b-lab/autodev 7.7.0 → 7.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorha2b-lab/autodev",
3
- "version": "7.7.0",
3
+ "version": "7.7.1",
4
4
  "description": "基于 AI 视觉与语义协议的前端 (React+Antd) 代码构筑与旧系统重构引擎",
5
5
  "bin": {
6
6
  "bunker": "bin/bunker.js"
@@ -12,7 +12,7 @@ module.exports = bunker => {
12
12
 
13
13
  const acp = bunker.get()
14
14
  const units = Object.values(acp.units)
15
- const dispatcher = acp.headquarters.dispatcher(acp, 2)
15
+ const dispatcher = acp.headquarters.dispatcher(acp)
16
16
 
17
17
  dispatcher.onIdle(() => acp.yorha.commander.report(acp.dialog.bunker.systemStandby, 'gray'))
18
18
 
@@ -8,23 +8,23 @@ const yorha = () => {
8
8
 
9
9
  const createMember = ({ name }) => ({
10
10
  start(text) {
11
- const spinner = ora({ text: chalk.cyan(`${name} ${text}\n`) }).start()
11
+ const spinner = ora({ text: chalk.cyan(`${name} ${text}`) }).start()
12
12
  return spinner
13
13
  },
14
14
  fail(spinner, text) {
15
- spinner.fail(chalk.red(`${name} ${text}\n`))
15
+ spinner.fail(chalk.red(`${name} ${text}`))
16
16
  },
17
17
  report(text, color = 'yellow') {
18
- console.log(chalk[color](`${name} ${text}\n`))
18
+ console.log(chalk[color](`${name} ${text}`))
19
19
  },
20
20
  update(spinner, text) {
21
- spinner.text = chalk.cyan(`${name} ${text}\n`)
21
+ spinner.text = chalk.cyan(`${name} ${text}`)
22
22
  },
23
23
  warning(spinner, text) {
24
- spinner.warn(chalk.yellow(`${name} ${text}\n`))
24
+ spinner.warn(chalk.yellow(`${name} ${text}`))
25
25
  },
26
26
  success(spinner, text) {
27
- spinner.succeed(chalk.green(`${name} ${text}\n`))
27
+ spinner.succeed(chalk.green(`${name} ${text}`))
28
28
  },
29
29
  })
30
30
 
@@ -80,9 +80,9 @@ const modalSubmit = async params => {
80
80
  if (fetching) return
81
81
  fetching = true
82
82
  const response = await requestMap[modal.type]?.()
83
+ fetching = false
83
84
  if({{{responseSuccess}}}){
84
85
  setModal({ visible: false })
85
- fetching = false
86
86
  refresh()
87
87
  }
88
88
  }