@fitlab-ai/agent-infra 0.6.0 → 0.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/README.md +12 -12
- package/README.zh-CN.md +12 -12
- package/bin/cli.ts +5 -1
- package/dist/bin/cli.js +6 -1
- package/dist/lib/defaults.json +4 -3
- package/dist/lib/sandbox/config.js +1 -1
- package/dist/package.json +1 -1
- package/lib/defaults.json +4 -3
- package/lib/sandbox/config.ts +1 -1
- package/package.json +3 -3
- package/templates/.agents/README.en.md +8 -8
- package/templates/.agents/README.zh-CN.md +8 -8
- package/templates/{.claude → .agents}/hooks/check-version-format.sh +3 -3
- package/templates/.agents/rules/create-issue.github.en.md +6 -0
- package/templates/.agents/rules/create-issue.github.zh-CN.md +6 -0
- package/templates/.agents/rules/issue-fields.github.en.md +155 -0
- package/templates/.agents/rules/issue-fields.github.zh-CN.md +155 -0
- package/templates/.agents/rules/issue-pr-commands.github.en.md +1 -0
- package/templates/.agents/rules/issue-pr-commands.github.zh-CN.md +1 -0
- package/templates/.agents/rules/issue-sync.github.en.md +2 -1
- package/templates/.agents/rules/issue-sync.github.zh-CN.md +2 -1
- package/templates/.agents/rules/task-management.en.md +17 -9
- package/templates/.agents/rules/task-management.zh-CN.md +17 -9
- package/templates/.agents/rules/testing-discipline.en.md +40 -0
- package/templates/.agents/rules/testing-discipline.zh-CN.md +40 -0
- package/templates/.agents/rules/version-stamp.en.md +29 -0
- package/templates/.agents/rules/version-stamp.zh-CN.md +29 -0
- package/templates/.agents/scripts/platform-adapters/platform-sync.github.js +143 -6
- package/templates/.agents/scripts/validate-artifact.js +32 -5
- package/templates/.agents/skills/analyze-task/SKILL.en.md +3 -0
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +3 -0
- package/templates/.agents/skills/analyze-task/config/verify.json +2 -0
- package/templates/.agents/skills/block-task/SKILL.en.md +3 -0
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +3 -0
- package/templates/.agents/skills/block-task/config/verify.json +1 -0
- package/templates/.agents/skills/cancel-task/SKILL.en.md +3 -0
- package/templates/.agents/skills/cancel-task/SKILL.zh-CN.md +3 -0
- package/templates/.agents/skills/cancel-task/config/verify.json +1 -0
- package/templates/.agents/skills/commit/SKILL.en.md +10 -0
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +10 -0
- package/templates/.agents/skills/commit/config/verify.json +1 -0
- package/templates/.agents/skills/commit/reference/task-status-update.en.md +5 -0
- package/templates/.agents/skills/commit/reference/task-status-update.zh-CN.md +5 -0
- package/templates/.agents/skills/complete-task/SKILL.en.md +4 -0
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +4 -0
- package/templates/.agents/skills/complete-task/config/verify.json +2 -0
- package/templates/.agents/skills/create-pr/SKILL.en.md +5 -1
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +5 -1
- package/templates/.agents/skills/create-pr/config/verify.json +1 -0
- package/templates/.agents/skills/create-task/SKILL.en.md +9 -0
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +9 -0
- package/templates/.agents/skills/create-task/config/verify.json +1 -0
- package/templates/.agents/skills/implement-task/SKILL.en.md +16 -1
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +16 -1
- package/templates/.agents/skills/implement-task/config/verify.json +2 -0
- package/templates/.agents/skills/import-codescan/config/verify.json +1 -0
- package/templates/.agents/skills/import-dependabot/config/verify.json +1 -0
- package/templates/.agents/skills/import-issue/SKILL.en.md +10 -0
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +10 -0
- package/templates/.agents/skills/import-issue/config/verify.json +1 -0
- package/templates/.agents/skills/plan-task/SKILL.en.md +3 -0
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +3 -0
- package/templates/.agents/skills/plan-task/config/verify.json +2 -0
- package/templates/.agents/skills/refine-task/SKILL.en.md +15 -1
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +15 -1
- package/templates/.agents/skills/refine-task/config/verify.json +2 -0
- package/templates/.agents/skills/refine-task/reference/fix-workflow.en.md +9 -0
- package/templates/.agents/skills/refine-task/reference/fix-workflow.zh-CN.md +9 -0
- package/templates/.agents/skills/refine-task/reference/report-template.en.md +11 -0
- package/templates/.agents/skills/refine-task/reference/report-template.zh-CN.md +11 -0
- package/templates/.agents/skills/restore-task/SKILL.en.md +3 -0
- package/templates/.agents/skills/restore-task/SKILL.zh-CN.md +3 -0
- package/templates/.agents/skills/restore-task/config/verify.json +1 -0
- package/templates/.agents/skills/review-task/SKILL.en.md +16 -1
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +16 -1
- package/templates/.agents/skills/review-task/config/verify.json +3 -0
- package/templates/.agents/skills/review-task/reference/output-templates.en.md +20 -5
- package/templates/.agents/skills/review-task/reference/output-templates.zh-CN.md +20 -5
- package/templates/.agents/skills/review-task/reference/report-template.en.md +13 -0
- package/templates/.agents/skills/review-task/reference/report-template.zh-CN.md +13 -0
- package/templates/.agents/skills/review-task/reference/review-criteria.en.md +18 -0
- package/templates/.agents/skills/review-task/reference/review-criteria.zh-CN.md +18 -0
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +4 -3
- package/templates/.agents/templates/task.en.md +5 -0
- package/templates/.agents/templates/task.zh-CN.md +5 -0
- package/templates/.claude/settings.json +1 -1
- package/templates/.codex/hooks.json +17 -0
|
@@ -19,6 +19,7 @@ Use this template when writing `review.md` or `review-r{N}.md`.
|
|
|
19
19
|
- **Review Time**: {timestamp}
|
|
20
20
|
- **Scope**: {file-count and major modules}
|
|
21
21
|
- **Overall Verdict**: {Approved / Changes Requested / Rejected}
|
|
22
|
+
- **Findings (AI-actionable)**: 0 blockers, 0 majors, 0 minors / **env-blocked**: 0
|
|
22
23
|
|
|
23
24
|
## Findings
|
|
24
25
|
|
|
@@ -42,6 +43,18 @@ Use this template when writing `review.md` or `review-r{N}.md`.
|
|
|
42
43
|
**File**: `{file-path}:{line-number}`
|
|
43
44
|
**Suggestion**: {improvement suggestion}
|
|
44
45
|
|
|
46
|
+
## Environment-Blocked Findings
|
|
47
|
+
|
|
48
|
+
> Items the AI agent cannot close in the current execution environment; they do not participate in the next refine round. Maintainers carry them in the PR description as a "manual verification required" checklist.
|
|
49
|
+
|
|
50
|
+
#### 1. {environment-blocked finding title}
|
|
51
|
+
**File**: `{file-path}:{line-number}` (if applicable)
|
|
52
|
+
**Description**: {details}
|
|
53
|
+
**Required Environment**: {e.g. Docker sandbox / macOS host / privileged root / third-party account}
|
|
54
|
+
**Manual Verification Steps**: {steps for the human verifier}
|
|
55
|
+
|
|
56
|
+
> If this round has no env-blocked findings, keep the section heading and write "None".
|
|
57
|
+
|
|
45
58
|
## Highlights
|
|
46
59
|
|
|
47
60
|
- {what went well}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
- **审查时间**:{timestamp}
|
|
20
20
|
- **审查范围**:{file-count and major modules}
|
|
21
21
|
- **总体结论**:{通过 / 需要修改 / 拒绝}
|
|
22
|
+
- **发现(AI 可处理)**:0 阻塞项,0 主要,0 次要 / **env-blocked**:0
|
|
22
23
|
|
|
23
24
|
## 问题清单
|
|
24
25
|
|
|
@@ -42,6 +43,18 @@
|
|
|
42
43
|
**文件**:`{file-path}:{line-number}`
|
|
43
44
|
**建议**:{improvement suggestion}
|
|
44
45
|
|
|
46
|
+
## 环境性遗留
|
|
47
|
+
|
|
48
|
+
> AI agent 在本执行环境无法闭环的项;不参与下一轮 refine。维护者在 PR description 中以「待人工验证」清单承接。
|
|
49
|
+
|
|
50
|
+
#### 1. {环境性项标题}
|
|
51
|
+
**文件**:`{file-path}:{line-number}`(如适用)
|
|
52
|
+
**说明**:{details}
|
|
53
|
+
**所需环境**:{e.g. Docker 沙箱 / macOS host / 特权 root / 第三方账号}
|
|
54
|
+
**待人工执行的验证步骤**:{steps for the human verifier}
|
|
55
|
+
|
|
56
|
+
> 如本轮无 env-blocked 项,保留段落标题并写「(无)」。
|
|
57
|
+
|
|
45
58
|
## 亮点
|
|
46
59
|
|
|
47
60
|
- {what went well}
|
|
@@ -21,4 +21,22 @@ Follow the `code-review` step in `.agents/workflows/feature-development.yaml`.
|
|
|
21
21
|
3. **Actionable**: suggest a concrete fix
|
|
22
22
|
4. **Severity-based**: distinguish blockers, major issues, and minor improvements
|
|
23
23
|
|
|
24
|
+
## Environment-Blocked Classification
|
|
25
|
+
|
|
26
|
+
Some findings cannot be closed by the AI agent in the current execution environment, for example:
|
|
27
|
+
|
|
28
|
+
- missing Docker / sandbox access for end-to-end verification
|
|
29
|
+
- missing a specific OS (macOS-only behavior)
|
|
30
|
+
- missing a third-party account / OAuth access
|
|
31
|
+
- missing privileged operations (root, sudo, special network access)
|
|
32
|
+
|
|
33
|
+
**Classification decision tree**: "Can the AI agent close this without changing the environment?"
|
|
34
|
+
- yes -> one of blocker / major / minor (based on risk)
|
|
35
|
+
- no -> **env-blocked** (a meta-category, not part of severity ordering)
|
|
36
|
+
|
|
37
|
+
Where env-blocked findings go:
|
|
38
|
+
- record them in the independent review report section "Environment-Blocked Findings"
|
|
39
|
+
- append them to the end of numeric summaries (for example, `(+ 1 env-blocked)`)
|
|
40
|
+
- do **not** send them into the refine loop; maintainers carry them in the PR description as a "manual verification required" checklist
|
|
41
|
+
|
|
24
42
|
Also inspect `git diff` so the report reflects the full change context.
|
|
@@ -21,4 +21,22 @@
|
|
|
21
21
|
3. **可执行**:给出明确可落地的修复建议
|
|
22
22
|
4. **按严重程度分类**:明确区分 blocker、major 和 minor
|
|
23
23
|
|
|
24
|
+
## 环境性遗留分类
|
|
25
|
+
|
|
26
|
+
某些发现项是 AI agent 在本执行环境**无法闭环**的,例如:
|
|
27
|
+
|
|
28
|
+
- 缺 Docker / 沙箱而无法跑端到端验证
|
|
29
|
+
- 缺特定 OS(macOS-only 行为)
|
|
30
|
+
- 缺第三方账号 / OAuth
|
|
31
|
+
- 缺特权操作(root、sudo、特殊网络)
|
|
32
|
+
|
|
33
|
+
**分类决策树**:「AI agent 能否在不改环境的前提下独立闭环这一项?」
|
|
34
|
+
- 是 -> blocker / major / minor 之一(按风险定档)
|
|
35
|
+
- 否 -> **env-blocked**(元类目,不参与严重程度排序)
|
|
36
|
+
|
|
37
|
+
env-blocked 项的去向:
|
|
38
|
+
- 写入 review 报告独立段落「环境性遗留」
|
|
39
|
+
- 在数字摘要末尾附带显示(如 `(+ 1 env-blocked)`)
|
|
40
|
+
- **不**进入 refine 循环;维护者在 PR description 中以「待人工验证」清单形式承接
|
|
41
|
+
|
|
24
42
|
同时检查 `git diff`,确保报告反映完整的变更上下文。
|
|
@@ -31,8 +31,8 @@ const DEFAULTS = {
|
|
|
31
31
|
"tools": [
|
|
32
32
|
"claude-code",
|
|
33
33
|
"codex",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"gemini-cli",
|
|
35
|
+
"opencode"
|
|
36
36
|
],
|
|
37
37
|
"dockerfile": null,
|
|
38
38
|
"vm": {
|
|
@@ -48,6 +48,7 @@ const DEFAULTS = {
|
|
|
48
48
|
"managed": [
|
|
49
49
|
".agents/QUICKSTART.md",
|
|
50
50
|
".agents/README.md",
|
|
51
|
+
".agents/hooks/",
|
|
51
52
|
".agents/rules/",
|
|
52
53
|
".agents/scripts/",
|
|
53
54
|
".agents/skills/",
|
|
@@ -55,7 +56,7 @@ const DEFAULTS = {
|
|
|
55
56
|
".agents/workflows/",
|
|
56
57
|
".agents/workspace/README.md",
|
|
57
58
|
".claude/commands/",
|
|
58
|
-
".
|
|
59
|
+
".codex/hooks.json",
|
|
59
60
|
".gemini/commands/",
|
|
60
61
|
".git-hooks/check-version-format.sh",
|
|
61
62
|
".github/scripts/",
|
|
@@ -6,6 +6,11 @@ workflow: feature-development # feature-development | bug-fix | code-review | r
|
|
|
6
6
|
status: open # open | in-progress | review | blocked | completed
|
|
7
7
|
created_at: YYYY-MM-DDTHH:mm:ss±HH:MM
|
|
8
8
|
updated_at: YYYY-MM-DDTHH:mm:ss±HH:MM
|
|
9
|
+
agent_infra_version: v0.0.0 # Current agent-infra version; refreshed by workflow commands
|
|
10
|
+
priority: # Optional Issue field: Urgent | High | Medium | Low
|
|
11
|
+
effort: # Optional Issue field: High | Medium | Low
|
|
12
|
+
start_date: # Optional Issue field for Feature: YYYY-MM-DD
|
|
13
|
+
target_date: # Optional Issue field for Feature: YYYY-MM-DD
|
|
9
14
|
current_step: analysis # analysis | design | implementation | review | fix | commit
|
|
10
15
|
assigned_to: # claude | codex | gemini | opencode | human
|
|
11
16
|
---
|
|
@@ -6,6 +6,11 @@ workflow: feature-development # feature-development | bug-fix | code-review | r
|
|
|
6
6
|
status: open # open | in-progress | review | blocked | completed
|
|
7
7
|
created_at: YYYY-MM-DDTHH:mm:ss±HH:MM
|
|
8
8
|
updated_at: YYYY-MM-DDTHH:mm:ss±HH:MM
|
|
9
|
+
agent_infra_version: v0.0.0 # 当前 agent-infra 版本;由工作流命令刷新
|
|
10
|
+
priority: # 可选 Issue 字段:Urgent | High | Medium | Low
|
|
11
|
+
effort: # 可选 Issue 字段:High | Medium | Low
|
|
12
|
+
start_date: # Feature 可选 Issue 字段:YYYY-MM-DD
|
|
13
|
+
target_date: # Feature 可选 Issue 字段:YYYY-MM-DD
|
|
9
14
|
current_step: analysis # analysis | design | implementation | review | fix | commit
|
|
10
15
|
assigned_to: # claude | codex | gemini | opencode | human
|
|
11
16
|
---
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"PreToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "^Bash$",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "sh \"$(git rev-parse --show-toplevel)/.agents/hooks/check-version-format.sh\"",
|
|
10
|
+
"timeout": 5,
|
|
11
|
+
"statusMessage": "Checking template version before git commit"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|