@yorha2b-lab/autodev 5.7.2 → 5.7.3
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/.github/cla.json +7 -0
- package/.github/workflows/cla.yml +7 -2
- package/README.md +1 -1
- package/bin/autodev.js +1 -1
- package/package.json +1 -1
- package/src/bootstrap/index.js +3 -3
- package/src/commands/watch.js +1 -1
- /package/src/{kernel → core}/deployment.js +0 -0
- /package/src/{kernel → core}/engine.js +0 -0
- /package/src/{kernel → core}/queue.js +0 -0
- /package/src/{kernel → core}/recruiter.js +0 -0
package/.github/cla.json
ADDED
|
@@ -16,13 +16,18 @@ jobs:
|
|
|
16
16
|
CLA:
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
18
|
steps:
|
|
19
|
+
# ⚠️ 必须有这一步!先把代码 Checkout 下来
|
|
20
|
+
- name: Checkout
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
# 2. 运行 CLA 机器人
|
|
19
24
|
- name: "CLA Assistant Check"
|
|
20
25
|
if: (github.event.comment.issue.pull_request != null || github.event_name == 'pull_request_target')
|
|
21
26
|
uses: contributor-assistant/github-action@v2.4.0
|
|
22
27
|
env:
|
|
23
28
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
24
29
|
with:
|
|
25
|
-
path-to-signatures: '
|
|
30
|
+
path-to-signatures: '.github/cla.json'
|
|
26
31
|
path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA.md'
|
|
27
32
|
branch: 'main'
|
|
28
|
-
allowlist: 'bot
|
|
33
|
+
allowlist: 'bot*,dependabot[bot],renovate[bot],github-actions[bot],yorha2b-lab'
|
package/README.md
CHANGED
package/bin/autodev.js
CHANGED
|
@@ -6,7 +6,7 @@ const { program } = require('commander')
|
|
|
6
6
|
const local = Intl.DateTimeFormat().resolvedOptions().locale.toUpperCase()
|
|
7
7
|
|
|
8
8
|
const { matchDialog, matrixEffect } = require('../src/utils/ux')
|
|
9
|
-
const recruiter = require('../src/
|
|
9
|
+
const recruiter = require('../src/core/recruiter')
|
|
10
10
|
const dialogs = recruiter(path.join(__dirname, '../src/dialogs'))
|
|
11
11
|
const dialog = matchDialog(local, dialogs) ?? dialogs['EN-US']
|
|
12
12
|
|
package/package.json
CHANGED
package/src/bootstrap/index.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
|
|
8
8
|
init: async ({ template }, dialog, version, local) => {
|
|
9
9
|
|
|
10
|
-
const recruiter = require('../
|
|
10
|
+
const recruiter = require('../core/recruiter')
|
|
11
11
|
const utils = recruiter(path.join(__dirname, '../utils'))
|
|
12
12
|
const yorha = utils.ux.yorha()
|
|
13
13
|
|
|
@@ -23,7 +23,7 @@ module.exports = {
|
|
|
23
23
|
dialog,
|
|
24
24
|
template,
|
|
25
25
|
openAI: require('../ai/openai')(),
|
|
26
|
-
engine: require('../
|
|
26
|
+
engine: require('../core/engine')({ utils, template }),
|
|
27
27
|
handlers: recruiter(path.join(__dirname, '../handlers')),
|
|
28
28
|
prompts: recruiter(path.join(__dirname, `../framework/${template}/prompts`)),
|
|
29
29
|
}
|
|
@@ -31,7 +31,7 @@ module.exports = {
|
|
|
31
31
|
if (version) {
|
|
32
32
|
await utils.ux.bootSequence(version, local)
|
|
33
33
|
}
|
|
34
|
-
require('../
|
|
34
|
+
require('../core/deployment')(accessPoint)
|
|
35
35
|
const llm = require('../ai')(accessPoint)
|
|
36
36
|
const generator = require(generatorPath)(accessPoint)
|
|
37
37
|
const labs = require('../labs')({ llm, ...accessPoint })
|
package/src/commands/watch.js
CHANGED
|
@@ -6,7 +6,7 @@ module.exports = () => {
|
|
|
6
6
|
|
|
7
7
|
const ctx = bootstrap.get()
|
|
8
8
|
const routes = Object.values(ctx.handlers)
|
|
9
|
-
const queue = require('../
|
|
9
|
+
const queue = require('../core/queue')(2, ctx)
|
|
10
10
|
|
|
11
11
|
queue.onIdle(() => ctx.yorha.commander.report(ctx.dialog.bunker.systemStandby, 'gray'))
|
|
12
12
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|