@fitlab-ai/agent-infra 0.7.2 → 0.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/README.md +7 -1
- package/README.zh-CN.md +9 -3
- package/dist/lib/defaults.json +0 -1
- package/dist/lib/init.js +0 -3
- package/dist/lib/sandbox/commands/enter.js +13 -15
- package/dist/lib/sandbox/commands/list-running.js +36 -1
- package/dist/lib/sandbox/commands/ls.js +9 -4
- package/dist/lib/sandbox/commands/start.js +36 -0
- package/dist/lib/sandbox/index.js +8 -0
- package/dist/lib/table.js +11 -2
- package/dist/lib/task/commands/ls.js +1 -1
- package/dist/lib/task/short-id.js +10 -0
- package/dist/lib/update.js +25 -8
- package/lib/defaults.json +0 -1
- package/lib/init.ts +0 -10
- package/lib/sandbox/commands/enter.ts +33 -14
- package/lib/sandbox/commands/list-running.ts +43 -1
- package/lib/sandbox/commands/ls.ts +12 -4
- package/lib/sandbox/commands/start.ts +61 -0
- package/lib/sandbox/index.ts +8 -0
- package/lib/table.ts +14 -2
- package/lib/task/commands/ls.ts +1 -1
- package/lib/task/short-id.ts +10 -0
- package/lib/update.ts +28 -10
- package/package.json +1 -1
- package/templates/.agents/hooks/auto-resume.sh +21 -4
- package/templates/.agents/rules/next-step-output.en.md +6 -3
- package/templates/.agents/rules/next-step-output.zh-CN.md +6 -3
- package/templates/.agents/rules/pr-checks-commands.en.md +5 -0
- package/templates/.agents/rules/pr-checks-commands.github.en.md +62 -0
- package/templates/.agents/rules/pr-checks-commands.github.zh-CN.md +62 -0
- package/templates/.agents/rules/pr-checks-commands.zh-CN.md +5 -0
- package/templates/.agents/rules/pr-sync.github.en.md +7 -0
- package/templates/.agents/rules/pr-sync.github.zh-CN.md +7 -0
- package/templates/.agents/skills/analyze-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/block-task/SKILL.en.md +8 -1
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +8 -1
- package/templates/.agents/skills/cancel-task/SKILL.en.md +8 -1
- package/templates/.agents/skills/cancel-task/SKILL.zh-CN.md +8 -1
- package/templates/.agents/skills/check-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/close-codescan/SKILL.en.md +8 -1
- package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +8 -1
- package/templates/.agents/skills/close-dependabot/SKILL.en.md +8 -1
- package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +8 -1
- package/templates/.agents/skills/code-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/code-task/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/commit/SKILL.en.md +2 -3
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +2 -3
- package/templates/.agents/skills/commit/reference/task-status-update.en.md +31 -23
- package/templates/.agents/skills/commit/reference/task-status-update.zh-CN.md +31 -23
- package/templates/.agents/skills/complete-task/SKILL.en.md +36 -3
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +36 -3
- package/templates/.agents/skills/create-pr/SKILL.en.md +16 -7
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +16 -7
- package/templates/.agents/skills/create-pr/reference/comment-publish.en.md +1 -0
- package/templates/.agents/skills/create-pr/reference/comment-publish.zh-CN.md +1 -0
- package/templates/.agents/skills/create-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/import-codescan/SKILL.en.md +1 -1
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/import-dependabot/SKILL.en.md +1 -1
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/import-issue/SKILL.en.md +1 -1
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/plan-task/SKILL.en.md +1 -1
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/review-analysis/SKILL.en.md +1 -1
- package/templates/.agents/skills/review-analysis/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/review-code/SKILL.en.md +1 -1
- package/templates/.agents/skills/review-code/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/review-plan/SKILL.en.md +1 -1
- package/templates/.agents/skills/review-plan/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +0 -1
- package/templates/.agents/skills/watch-pr/SKILL.en.md +131 -0
- package/templates/.agents/skills/watch-pr/SKILL.zh-CN.md +131 -0
- package/templates/.agents/skills/watch-pr/config/verify.json +22 -0
- package/templates/.agents/skills/watch-pr/reference/monitor-and-heal.en.md +43 -0
- package/templates/.agents/skills/watch-pr/reference/monitor-and-heal.zh-CN.md +43 -0
- package/templates/.agents/templates/task.en.md +1 -0
- package/templates/.agents/templates/task.zh-CN.md +1 -0
- package/templates/.agents/workflows/bug-fix.en.yaml +6 -4
- package/templates/.agents/workflows/bug-fix.zh-CN.yaml +5 -4
- package/templates/.agents/workflows/feature-development.en.yaml +6 -4
- package/templates/.agents/workflows/feature-development.zh-CN.yaml +5 -4
- package/templates/.agents/workflows/refactoring.en.yaml +6 -4
- package/templates/.agents/workflows/refactoring.zh-CN.yaml +5 -4
- package/templates/.claude/commands/watch-pr.en.md +8 -0
- package/templates/.claude/commands/watch-pr.zh-CN.md +8 -0
- package/templates/.gemini/commands/_project_/watch-pr.en.toml +8 -0
- package/templates/.gemini/commands/_project_/watch-pr.zh-CN.toml +8 -0
- package/templates/.opencode/commands/watch-pr.en.md +11 -0
- package/templates/.opencode/commands/watch-pr.zh-CN.md +11 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# Bug-fix workflow
|
|
2
2
|
# Use this workflow when fixing a defect.
|
|
3
3
|
#
|
|
4
|
-
# Note: a step's `pr_tasks` list
|
|
5
|
-
# `.agents/.airc.json:
|
|
4
|
+
# Note: whether a step's `pr_tasks` list counts toward workflow progress follows the "PR path" rule:
|
|
5
|
+
# `.agents/.airc.json:prFlow="required"` always counts; `prFlow="disabled"` never counts;
|
|
6
|
+
# when the field is absent, exclude only if task.md's `pr_status=skipped`, otherwise count
|
|
7
|
+
# (see .agents/skills/complete-task/SKILL.md).
|
|
6
8
|
|
|
7
9
|
name: bug-fix
|
|
8
10
|
description: Workflow for diagnosing and fixing a defect.
|
|
@@ -176,7 +178,7 @@ steps:
|
|
|
176
178
|
- Findings list, if any
|
|
177
179
|
|
|
178
180
|
- name: commit
|
|
179
|
-
description: Finalize the defect fix and create a pull request (the PR portion runs only
|
|
181
|
+
description: Finalize the defect fix and create a pull request (the PR portion runs only on the PR path).
|
|
180
182
|
recommended_agents:
|
|
181
183
|
- claude
|
|
182
184
|
- human
|
|
@@ -192,4 +194,4 @@ steps:
|
|
|
192
194
|
- Task workspace
|
|
193
195
|
outputs:
|
|
194
196
|
- Completed task workspace under .agents/workspace/completed/
|
|
195
|
-
- Pull request (only
|
|
197
|
+
- Pull request (only on the PR path)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# 缺陷修复工作流
|
|
2
2
|
# 修复缺陷时使用此工作流。
|
|
3
3
|
#
|
|
4
|
-
# 注:步骤中的 `pr_tasks`
|
|
5
|
-
#
|
|
4
|
+
# 注:步骤中的 `pr_tasks` 列表按「走 PR 路径」判定是否计入工作流进度:
|
|
5
|
+
# `.agents/.airc.json:prFlow="required"` 始终计入;`prFlow="disabled"` 不计入;
|
|
6
|
+
# 字段缺省时仅当 task.md 的 `pr_status=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
|
|
6
7
|
|
|
7
8
|
name: bug-fix
|
|
8
9
|
description: 诊断和修复缺陷的工作流。
|
|
@@ -176,7 +177,7 @@ steps:
|
|
|
176
177
|
- 问题列表(如有)
|
|
177
178
|
|
|
178
179
|
- name: commit
|
|
179
|
-
description: 最终确认缺陷修复并创建拉取请求(PR
|
|
180
|
+
description: 最终确认缺陷修复并创建拉取请求(PR 部分仅在走 PR 路径时执行)。
|
|
180
181
|
recommended_agents:
|
|
181
182
|
- claude
|
|
182
183
|
- human
|
|
@@ -192,4 +193,4 @@ steps:
|
|
|
192
193
|
- 任务文件
|
|
193
194
|
outputs:
|
|
194
195
|
- 已完成的任务文件(位于 .agents/workspace/completed/)
|
|
195
|
-
-
|
|
196
|
+
- 拉取请求(仅走 PR 路径时)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# Feature development workflow
|
|
2
2
|
# Use this workflow when implementing a new feature.
|
|
3
3
|
#
|
|
4
|
-
# Note: a step's `pr_tasks` list
|
|
5
|
-
# `.agents/.airc.json:
|
|
4
|
+
# Note: whether a step's `pr_tasks` list counts toward workflow progress follows the "PR path" rule:
|
|
5
|
+
# `.agents/.airc.json:prFlow="required"` always counts; `prFlow="disabled"` never counts;
|
|
6
|
+
# when the field is absent, exclude only if task.md's `pr_status=skipped`, otherwise count
|
|
7
|
+
# (see .agents/skills/complete-task/SKILL.md).
|
|
6
8
|
|
|
7
9
|
name: feature-development
|
|
8
10
|
description: End-to-end workflow for developing a new feature.
|
|
@@ -176,7 +178,7 @@ steps:
|
|
|
176
178
|
- Findings to fix
|
|
177
179
|
|
|
178
180
|
- name: commit
|
|
179
|
-
description: Finalize changes and create a pull request (the PR portion runs only
|
|
181
|
+
description: Finalize changes and create a pull request (the PR portion runs only on the PR path).
|
|
180
182
|
recommended_agents:
|
|
181
183
|
- claude
|
|
182
184
|
- human
|
|
@@ -192,4 +194,4 @@ steps:
|
|
|
192
194
|
- Task workspace
|
|
193
195
|
outputs:
|
|
194
196
|
- Completed task workspace under .agents/workspace/completed/
|
|
195
|
-
- Pull request (only
|
|
197
|
+
- Pull request (only on the PR path)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# 功能开发工作流
|
|
2
2
|
# 实现新功能时使用此工作流。
|
|
3
3
|
#
|
|
4
|
-
# 注:步骤中的 `pr_tasks`
|
|
5
|
-
#
|
|
4
|
+
# 注:步骤中的 `pr_tasks` 列表按「走 PR 路径」判定是否计入工作流进度:
|
|
5
|
+
# `.agents/.airc.json:prFlow="required"` 始终计入;`prFlow="disabled"` 不计入;
|
|
6
|
+
# 字段缺省时仅当 task.md 的 `pr_status=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
|
|
6
7
|
|
|
7
8
|
name: feature-development
|
|
8
9
|
description: 开发新功能的端到端工作流。
|
|
@@ -176,7 +177,7 @@ steps:
|
|
|
176
177
|
- 待修复问题列表
|
|
177
178
|
|
|
178
179
|
- name: commit
|
|
179
|
-
description: 最终确认变更并创建拉取请求(PR
|
|
180
|
+
description: 最终确认变更并创建拉取请求(PR 部分仅在走 PR 路径时执行)。
|
|
180
181
|
recommended_agents:
|
|
181
182
|
- claude
|
|
182
183
|
- human
|
|
@@ -192,4 +193,4 @@ steps:
|
|
|
192
193
|
- 任务文件
|
|
193
194
|
outputs:
|
|
194
195
|
- 已完成的任务文件(位于 .agents/workspace/completed/)
|
|
195
|
-
-
|
|
196
|
+
- 拉取请求(仅走 PR 路径时)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# Refactoring workflow
|
|
2
2
|
# Use this workflow for code refactoring tasks.
|
|
3
3
|
#
|
|
4
|
-
# Note: a step's `pr_tasks` list
|
|
5
|
-
# `.agents/.airc.json:
|
|
4
|
+
# Note: whether a step's `pr_tasks` list counts toward workflow progress follows the "PR path" rule:
|
|
5
|
+
# `.agents/.airc.json:prFlow="required"` always counts; `prFlow="disabled"` never counts;
|
|
6
|
+
# when the field is absent, exclude only if task.md's `pr_status=skipped`, otherwise count
|
|
7
|
+
# (see .agents/skills/complete-task/SKILL.md).
|
|
6
8
|
|
|
7
9
|
name: refactoring
|
|
8
10
|
description: Safe and structured workflow for code refactoring.
|
|
@@ -180,7 +182,7 @@ steps:
|
|
|
180
182
|
- Findings list, if any
|
|
181
183
|
|
|
182
184
|
- name: commit
|
|
183
|
-
description: Finalize the refactoring and create a pull request (the PR portion runs only
|
|
185
|
+
description: Finalize the refactoring and create a pull request (the PR portion runs only on the PR path).
|
|
184
186
|
recommended_agents:
|
|
185
187
|
- claude
|
|
186
188
|
- human
|
|
@@ -196,4 +198,4 @@ steps:
|
|
|
196
198
|
- Task workspace
|
|
197
199
|
outputs:
|
|
198
200
|
- Completed task workspace under .agents/workspace/completed/
|
|
199
|
-
- Pull request (only
|
|
201
|
+
- Pull request (only on the PR path)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# 重构工作流
|
|
2
2
|
# 代码重构任务时使用此工作流。
|
|
3
3
|
#
|
|
4
|
-
# 注:步骤中的 `pr_tasks`
|
|
5
|
-
#
|
|
4
|
+
# 注:步骤中的 `pr_tasks` 列表按「走 PR 路径」判定是否计入工作流进度:
|
|
5
|
+
# `.agents/.airc.json:prFlow="required"` 始终计入;`prFlow="disabled"` 不计入;
|
|
6
|
+
# 字段缺省时仅当 task.md 的 `pr_status=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
|
|
6
7
|
|
|
7
8
|
name: refactoring
|
|
8
9
|
description: 安全且结构化的代码重构工作流。
|
|
@@ -180,7 +181,7 @@ steps:
|
|
|
180
181
|
- 问题列表(如有)
|
|
181
182
|
|
|
182
183
|
- name: commit
|
|
183
|
-
description: 最终确认重构并创建拉取请求(PR
|
|
184
|
+
description: 最终确认重构并创建拉取请求(PR 部分仅在走 PR 路径时执行)。
|
|
184
185
|
recommended_agents:
|
|
185
186
|
- claude
|
|
186
187
|
- human
|
|
@@ -196,4 +197,4 @@ steps:
|
|
|
196
197
|
- 任务文件
|
|
197
198
|
outputs:
|
|
198
199
|
- 已完成的任务文件(位于 .agents/workspace/completed/)
|
|
199
|
-
-
|
|
200
|
+
- 拉取请求(仅走 PR 路径时)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Watch a PR's required checks and self-heal on failure"
|
|
3
|
+
agent: general
|
|
4
|
+
subtask: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Watch PR checks: $ARGUMENTS
|
|
8
|
+
|
|
9
|
+
Read and execute the watch-pr skill from `.agents/skills/watch-pr/SKILL.md`.
|
|
10
|
+
|
|
11
|
+
Follow all steps defined in the skill exactly.
|