@yorha2b-lab/autodev 6.1.0 → 6.1.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/bin/bunker.js +2 -2
- package/package.json +1 -1
- package/src/gateway/index.js +3 -3
- package/src/headquarters/recruiter.js +3 -3
- package/src/logistics/presenter.js +4 -4
- package/src/units/raider.js +2 -2
- package/src/units/striker.js +2 -2
- /package/src/workshop/react/briefings/{part.js → raider.js} +0 -0
- /package/src/workshop/react/briefings/{response.js → reconciler.js} +0 -0
- /package/src/workshop/react/briefings/{page.js → striker.js} +0 -0
package/bin/bunker.js
CHANGED
|
@@ -5,7 +5,7 @@ const pkg = require('../package.json')
|
|
|
5
5
|
const { program } = require('commander')
|
|
6
6
|
const local = Intl.DateTimeFormat().resolvedOptions().locale.toUpperCase()
|
|
7
7
|
|
|
8
|
-
const { matchDialog,
|
|
8
|
+
const { matchDialog, terminalCollapse } = require('../src/logistics/presenter')
|
|
9
9
|
const recruiter = require('../src/headquarters/recruiter')
|
|
10
10
|
const dialogues = recruiter(path.join(__dirname, '../src/dialogues'))
|
|
11
11
|
const dialog = matchDialog(local, dialogues) ?? dialogues['EN-US']
|
|
@@ -46,7 +46,7 @@ program
|
|
|
46
46
|
process.on('SIGINT', () => {
|
|
47
47
|
result.yorha.commander.report(dialog.bunker.systemOffline, 'gray')
|
|
48
48
|
result.labs?.scout?.close()
|
|
49
|
-
|
|
49
|
+
terminalCollapse(500, dialog, result)
|
|
50
50
|
})
|
|
51
51
|
})
|
|
52
52
|
|
package/package.json
CHANGED
package/src/gateway/index.js
CHANGED
|
@@ -3,9 +3,9 @@ module.exports = ({ yorha, dialog, logistics, briefings }) => {
|
|
|
3
3
|
const sharp = require('sharp')
|
|
4
4
|
|
|
5
5
|
const { sleep } = logistics.presenter
|
|
6
|
-
const { mock,
|
|
7
|
-
const { UI_DESIGNER, API_DESIGNER, MOCK_DESIGNER } = system
|
|
6
|
+
const { mock, council, similarity, reconciler } = briefings
|
|
8
7
|
const { textModel, visionModel } = logistics.supporter.getConfig()
|
|
8
|
+
const { UI_DESIGNER, API_DESIGNER, MOCK_DESIGNER } = briefings.system
|
|
9
9
|
|
|
10
10
|
const openAI = require('./client')()
|
|
11
11
|
const askAI = require('./protocol')({ yorha, sleep, dialog, openAI })
|
|
@@ -65,7 +65,7 @@ module.exports = ({ yorha, dialog, logistics, briefings }) => {
|
|
|
65
65
|
model: textModel,
|
|
66
66
|
messages: [
|
|
67
67
|
{ role: 'system', content: API_DESIGNER },
|
|
68
|
-
{ role: 'user', content:
|
|
68
|
+
{ role: 'user', content: reconciler({ responseStr, resourceStr }) }
|
|
69
69
|
]
|
|
70
70
|
})
|
|
71
71
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* This file is part of
|
|
4
|
-
*
|
|
2
|
+
* YoRHa Bunker Construction System
|
|
3
|
+
* This file is part of Bunker.
|
|
4
|
+
* Bunker is free software: you can redistribute it and/or modify
|
|
5
5
|
* it under the terms of the GNU Affero General Public License as
|
|
6
6
|
* published by the Free Software Foundation, either version 3 of the
|
|
7
7
|
* License, or (at your option) any later version.
|
|
@@ -48,8 +48,8 @@ const matchDialog = (locale, dialogs) => {
|
|
|
48
48
|
const bootSequence = async (version, local) => {
|
|
49
49
|
|
|
50
50
|
const lines = [
|
|
51
|
-
chalk.cyan(figlet.textSync('
|
|
52
|
-
chalk.gray('
|
|
51
|
+
chalk.cyan(figlet.textSync('Bunker', { horizontalLayout: 'full' })),
|
|
52
|
+
chalk.gray('Booting System...'),
|
|
53
53
|
chalk.white('[BUNKER] ') + chalk.green('Locale Detection: ') + chalk.cyan(local),
|
|
54
54
|
chalk.white('[BUNKER] ') + chalk.green('YoRHa No.2 Type B Unit: ') + chalk.cyan('Online'),
|
|
55
55
|
chalk.white('[BUNKER] ') + chalk.green('Scanner Type 9S Unit: ') + chalk.cyan('Standby'),
|
|
@@ -65,7 +65,7 @@ const bootSequence = async (version, local) => {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
const
|
|
68
|
+
const terminalCollapse = async (duration = 1500, dialog, result) => {
|
|
69
69
|
|
|
70
70
|
let currentTotal = 0
|
|
71
71
|
const MIRROR_URL = 'https://cdn.jsdelivr.net/gh/yorha2b-lab/autodev@github-repo-stats/bunker-stats.json'
|
|
@@ -142,5 +142,5 @@ module.exports = {
|
|
|
142
142
|
yorha,
|
|
143
143
|
matchDialog,
|
|
144
144
|
bootSequence,
|
|
145
|
-
|
|
145
|
+
terminalCollapse
|
|
146
146
|
}
|
package/src/units/raider.js
CHANGED
|
@@ -8,8 +8,8 @@ module.exports = {
|
|
|
8
8
|
const { llm, yorha, dialog, builder, logistics, briefings } = require('../awakening').get()
|
|
9
9
|
|
|
10
10
|
const { pod042 } = yorha
|
|
11
|
+
const { raider } = briefings
|
|
11
12
|
const { recognizePage } = llm
|
|
12
|
-
const { part: prompt } = briefings
|
|
13
13
|
const { formatFormItemAndColumns } = builder
|
|
14
14
|
const { cleanCode, contextStringify } = logistics.builder
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ module.exports = {
|
|
|
20
20
|
try {
|
|
21
21
|
pod042.update(spinner, dialog.pod042.extractingUiMetadata)
|
|
22
22
|
|
|
23
|
-
const pageConfig = await recognizePage({ prompt, filePath })
|
|
23
|
+
const pageConfig = await recognizePage({ prompt: raider, filePath })
|
|
24
24
|
|
|
25
25
|
const { formItems, dictBlocks, processedColumns } = formatFormItemAndColumns({ pageConfig })
|
|
26
26
|
|
package/src/units/striker.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
|
|
8
8
|
const { llm, yorha, dialog, builder, template, logistics, briefings } = require('../awakening').get()
|
|
9
9
|
|
|
10
|
-
const {
|
|
10
|
+
const { striker } = briefings
|
|
11
11
|
const { nineS, pod042 } = yorha
|
|
12
12
|
const { index, resource } = builder
|
|
13
13
|
const { contextStringify } = logistics.builder
|
|
@@ -33,7 +33,7 @@ module.exports = {
|
|
|
33
33
|
pageConfig = require('../../example/example.json')
|
|
34
34
|
} else {
|
|
35
35
|
pod042.update(spinner, dialog.pod042.uploadVisualMetadata)
|
|
36
|
-
pageConfig = await recognizePage({ prompt:
|
|
36
|
+
pageConfig = await recognizePage({ prompt: striker, filePath, schema: require(`../workshop/${template}/protocols/striker.json`) })
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
const { similarity } = await nameSimilarity({ fileName, english: pageConfig.title.english })
|
|
File without changes
|
|
File without changes
|
|
File without changes
|