@yorha2b-lab/autodev 7.6.0 → 7.6.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 +5 -6
- package/src/labs/council.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yorha2b-lab/autodev",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"description": "基于 AI 视觉与语义协议的前端 (React+Antd) 代码构筑与旧系统重构引擎",
|
|
5
5
|
"bin": {
|
|
6
6
|
"bunker": "bin/bunker.js"
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"homepage": "https://github.com/yorha2b-lab/autodev#readme",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"ora": "^5.4.1",
|
|
40
|
-
"chalk": "^4.1.2",
|
|
41
40
|
"json5": "^2.2.3",
|
|
41
|
+
"chalk": "^4.1.2",
|
|
42
42
|
"sharp": "^0.34.5",
|
|
43
|
-
"dotenv": "^17.3.1",
|
|
44
|
-
"figlet": "^1.10.0",
|
|
45
43
|
"openai": "^6.24.0",
|
|
44
|
+
"figlet": "^1.10.0",
|
|
45
|
+
"dotenv": "^17.3.1",
|
|
46
46
|
"chokidar": "^5.0.0",
|
|
47
47
|
"segmentit": "^2.0.3",
|
|
48
48
|
"commander": "^14.0.3",
|
|
@@ -50,6 +50,5 @@
|
|
|
50
50
|
"puppeteer": "^25.4.0",
|
|
51
51
|
"http-proxy": "^1.18.1",
|
|
52
52
|
"json-stringify-pretty-compact": "^4.0.0"
|
|
53
|
-
}
|
|
54
|
-
"devDependencies": {}
|
|
53
|
+
}
|
|
55
54
|
}
|
package/src/labs/council.js
CHANGED
|
@@ -2,6 +2,7 @@ module.exports = async ({ llm, yorha, dialog, logistics }) => {
|
|
|
2
2
|
|
|
3
3
|
const fs = require('fs')
|
|
4
4
|
const path = require('path')
|
|
5
|
+
const JSON5 = require('json5')
|
|
5
6
|
|
|
6
7
|
const { apiParser } = llm
|
|
7
8
|
const { pod153, commander } = yorha
|
|
@@ -13,7 +14,9 @@ module.exports = async ({ llm, yorha, dialog, logistics }) => {
|
|
|
13
14
|
|
|
14
15
|
pod153.report(dialog.pod153.autonomousAddressing, 'magenta')
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
+
const apiResponse = await fetch(apiDoc)
|
|
18
|
+
const text = await apiResponse.text()
|
|
19
|
+
const apiData = JSON5.parse(text)
|
|
17
20
|
const refinedApis = Object.entries(apiData.paths).flatMap(([apiUrl, methods]) => {
|
|
18
21
|
return Object.entries(methods).map(([method, info]) => ({
|
|
19
22
|
path: apiUrl,
|