@fitlab-ai/agent-infra 0.3.2 → 0.4.0
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 +18 -33
- package/README.zh-CN.md +18 -33
- package/lib/defaults.json +3 -12
- package/lib/init.js +13 -24
- package/lib/paths.js +3 -42
- package/lib/update.js +98 -32
- package/package.json +2 -1
- package/templates/.agents/QUICKSTART.md +7 -7
- package/templates/.agents/QUICKSTART.zh-CN.md +7 -7
- package/templates/.agents/README.md +4 -4
- package/templates/.agents/README.zh-CN.md +4 -4
- package/templates/.agents/skills/analyze-task/SKILL.md +6 -6
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/block-task/SKILL.md +8 -8
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +8 -8
- package/templates/.agents/skills/check-task/SKILL.md +3 -3
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/commit/SKILL.md +1 -1
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/complete-task/SKILL.md +7 -7
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +7 -7
- package/templates/.agents/skills/create-issue/SKILL.md +2 -2
- package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +2 -2
- package/templates/.agents/skills/create-pr/SKILL.md +1 -1
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/create-task/SKILL.md +4 -4
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +4 -4
- package/templates/.agents/skills/implement-task/SKILL.md +8 -8
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +8 -8
- package/templates/.agents/skills/import-codescan/SKILL.md +1 -1
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/import-dependabot/SKILL.md +3 -3
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/import-issue/SKILL.md +5 -5
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +5 -5
- package/templates/.agents/skills/plan-task/SKILL.md +6 -6
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/refine-task/SKILL.md +3 -3
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/release/SKILL.md +55 -14
- package/templates/.agents/skills/release/SKILL.zh-CN.md +55 -14
- package/templates/.agents/skills/review-task/SKILL.md +9 -9
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +9 -9
- package/templates/.agents/skills/sync-issue/SKILL.md +8 -8
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +8 -8
- package/templates/.agents/skills/sync-pr/SKILL.md +3 -3
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/update-agent-infra/SKILL.md +6 -6
- package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +61 -116
- package/templates/.agents/templates/handoff.md +1 -1
- package/templates/.agents/templates/handoff.zh-CN.md +1 -1
- package/templates/.agents/workflows/bug-fix.yaml +71 -71
- package/templates/.agents/workflows/bug-fix.zh-CN.yaml +1 -1
- package/templates/.agents/workflows/feature-development.yaml +71 -71
- package/templates/.agents/workflows/feature-development.zh-CN.yaml +1 -1
- package/templates/.agents/workflows/refactoring.yaml +76 -76
- package/templates/.agents/workflows/refactoring.zh-CN.yaml +1 -1
- package/templates/{.agent-workspace → .agents/workspace}/README.md +1 -1
- package/templates/{.agent-workspace → .agents/workspace}/README.zh-CN.md +1 -1
- package/templates/.claude/CLAUDE.md +1 -1
- package/templates/.claude/CLAUDE.zh-CN.md +1 -1
- package/templates/.claude/hooks/check-version-format.sh +44 -0
- package/templates/.claude/settings.json +14 -0
- package/templates/.opencode/COMMAND_STYLE_GUIDE.md +6 -6
- package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +6 -6
- package/templates/AGENTS.md +1 -1
- package/templates/AGENTS.zh-CN.md +1 -1
- package/templates/.editorconfig +0 -15
- package/templates/.github/ISSUE_TEMPLATE/01_bug_report.yml +0 -149
- package/templates/.github/ISSUE_TEMPLATE/02_question.yml +0 -101
- package/templates/.github/ISSUE_TEMPLATE/03_feature_request.yml +0 -131
- package/templates/.github/ISSUE_TEMPLATE/04_documentation.yml +0 -165
- package/templates/.github/ISSUE_TEMPLATE/05_other.yml +0 -147
- package/templates/.github/ISSUE_TEMPLATE/config.yml +0 -11
- package/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -123
- package/templates/.github/dependabot.yml +0 -17
- package/templates/.github/hooks/check-utf8-encoding.sh +0 -25
- package/templates/.github/release.yml +0 -27
- package/templates/.github/workflows/pr-title-check.yml +0 -42
- package/templates/.mailmap +0 -4
- package/templates/CONTRIBUTING.md +0 -126
- package/templates/CONTRIBUTING.zh-CN.md +0 -124
- package/templates/SECURITY.md +0 -131
- package/templates/SECURITY.zh-CN.md +0 -131
package/templates/SECURITY.md
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
[中文版](SECURITY.zh-CN.md)
|
|
4
|
-
|
|
5
|
-
## Supported Versions
|
|
6
|
-
|
|
7
|
-
Please use the following table to understand which versions are currently supported with security updates.
|
|
8
|
-
|
|
9
|
-
| Version | Support Status |
|
|
10
|
-
| -------- | --------------------- |
|
|
11
|
-
| v1.0.x | Supported |
|
|
12
|
-
| < v1.0.0 | Not Supported |
|
|
13
|
-
|
|
14
|
-
## Reporting Vulnerabilities
|
|
15
|
-
|
|
16
|
-
We take security issues very seriously. If you discover a security vulnerability, please follow these steps to report it:
|
|
17
|
-
|
|
18
|
-
### How to Report
|
|
19
|
-
|
|
20
|
-
**Please do not report security vulnerabilities in public GitHub issues.**
|
|
21
|
-
|
|
22
|
-
Instead, please report privately through the following methods:
|
|
23
|
-
|
|
24
|
-
1. **GitHub Security Advisory** (Recommended)
|
|
25
|
-
- Go to the project's "Security" tab
|
|
26
|
-
- Click "Report a vulnerability"
|
|
27
|
-
- Fill out the security advisory form
|
|
28
|
-
|
|
29
|
-
### Report Content
|
|
30
|
-
|
|
31
|
-
Please include the following information in your report:
|
|
32
|
-
|
|
33
|
-
- **Vulnerability Type**: Briefly describe the nature of the vulnerability
|
|
34
|
-
- **Impact Scope**: Affected components, versions, or features
|
|
35
|
-
- **Reproduction Steps**: Detailed steps on how to reproduce the vulnerability
|
|
36
|
-
- **Proof of Concept**: If possible, provide PoC code or screenshots
|
|
37
|
-
- **Impact Assessment**: Potential security impact and risk level
|
|
38
|
-
- **Suggested Fix**: If you have fix suggestions, please provide them
|
|
39
|
-
|
|
40
|
-
### Response Timeline
|
|
41
|
-
|
|
42
|
-
We commit to responding to security reports according to the following timeline:
|
|
43
|
-
|
|
44
|
-
- **Acknowledgment**: Within 24 hours
|
|
45
|
-
- **Initial Assessment**: Within 72 hours
|
|
46
|
-
- **Detailed Analysis**: Within 7 business days
|
|
47
|
-
- **Fix Release**: 1-30 days depending on severity
|
|
48
|
-
|
|
49
|
-
### Vulnerability Severity
|
|
50
|
-
|
|
51
|
-
We use the following criteria to assess vulnerability severity:
|
|
52
|
-
|
|
53
|
-
#### Critical
|
|
54
|
-
- Remote Code Execution
|
|
55
|
-
- Authentication bypass
|
|
56
|
-
- Unauthorized access to sensitive data
|
|
57
|
-
|
|
58
|
-
#### High
|
|
59
|
-
- Cross-Site Scripting (XSS)
|
|
60
|
-
- Privilege escalation
|
|
61
|
-
- Sensitive data exposure
|
|
62
|
-
|
|
63
|
-
#### Medium
|
|
64
|
-
- Information disclosure
|
|
65
|
-
- Denial of Service (DoS)
|
|
66
|
-
- Weak cryptography
|
|
67
|
-
|
|
68
|
-
#### Low
|
|
69
|
-
- Configuration issues
|
|
70
|
-
- Information gathering vulnerabilities
|
|
71
|
-
|
|
72
|
-
### Handling Process
|
|
73
|
-
|
|
74
|
-
1. **Report Reception**: We receive your report and acknowledge it
|
|
75
|
-
2. **Vulnerability Verification**: Our security team verifies the vulnerability's existence and impact
|
|
76
|
-
3. **Impact Assessment**: Assess vulnerability severity and impact scope
|
|
77
|
-
4. **Fix Development**: Develop and test fix solutions
|
|
78
|
-
5. **Coordinated Release**: Coordinate disclosure timing with reporter
|
|
79
|
-
6. **Public Disclosure**: Release security updates and announcements
|
|
80
|
-
|
|
81
|
-
### Responsible Disclosure
|
|
82
|
-
|
|
83
|
-
We follow responsible disclosure principles:
|
|
84
|
-
|
|
85
|
-
- We will publicly disclose after fixing the vulnerability
|
|
86
|
-
- Please do not publicly discuss the vulnerability before the fix is released
|
|
87
|
-
- We will appropriately thank reporters in security announcements (unless you prefer to remain anonymous)
|
|
88
|
-
|
|
89
|
-
### Security Update Notifications
|
|
90
|
-
|
|
91
|
-
To receive security update notifications, please:
|
|
92
|
-
|
|
93
|
-
1. **Watch this Repository** and enable security alerts
|
|
94
|
-
2. **Subscribe to Releases** to get new version notifications
|
|
95
|
-
|
|
96
|
-
### Security Best Practices
|
|
97
|
-
|
|
98
|
-
When using this project, we recommend following these security best practices:
|
|
99
|
-
|
|
100
|
-
- Always use the latest supported version
|
|
101
|
-
- Regularly update dependencies
|
|
102
|
-
- Enable appropriate logging and monitoring
|
|
103
|
-
- Implement the principle of least privilege
|
|
104
|
-
- Conduct regular security audits
|
|
105
|
-
|
|
106
|
-
### Scope
|
|
107
|
-
|
|
108
|
-
This security policy applies to:
|
|
109
|
-
|
|
110
|
-
- All code in this GitHub repository
|
|
111
|
-
- Official releases
|
|
112
|
-
|
|
113
|
-
This security policy does NOT apply to:
|
|
114
|
-
|
|
115
|
-
- Third-party plugins or extensions
|
|
116
|
-
- User configuration errors
|
|
117
|
-
|
|
118
|
-
### Acknowledgments
|
|
119
|
-
|
|
120
|
-
We thank the following researchers for their contributions to project security:
|
|
121
|
-
|
|
122
|
-
<!--
|
|
123
|
-
Acknowledgment list will be updated here
|
|
124
|
-
- [Researcher Name] - Discovered and reported [Vulnerability Type]
|
|
125
|
-
-->
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
**Note**: This security policy may be updated regularly. Please check the latest version periodically.
|
|
130
|
-
|
|
131
|
-
**Last Updated**: March 2026
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
# 安全政策
|
|
2
|
-
|
|
3
|
-
[English](SECURITY.md)
|
|
4
|
-
|
|
5
|
-
## 支持的版本
|
|
6
|
-
|
|
7
|
-
请参考下表了解当前支持安全更新的版本。
|
|
8
|
-
|
|
9
|
-
| 版本 | 支持状态 |
|
|
10
|
-
| -------- | --------------------- |
|
|
11
|
-
| v1.0.x | 支持中 |
|
|
12
|
-
| < v1.0.0 | 不再支持 |
|
|
13
|
-
|
|
14
|
-
## 报告漏洞
|
|
15
|
-
|
|
16
|
-
我们非常重视安全问题。如果您发现安全漏洞,请按照以下步骤报告:
|
|
17
|
-
|
|
18
|
-
### 如何报告
|
|
19
|
-
|
|
20
|
-
**请勿在公开的 GitHub Issue 中报告安全漏洞。**
|
|
21
|
-
|
|
22
|
-
请通过以下方式私下报告:
|
|
23
|
-
|
|
24
|
-
1. **GitHub Security Advisory**(推荐)
|
|
25
|
-
- 进入项目的 "Security" 标签页
|
|
26
|
-
- 点击 "Report a vulnerability"
|
|
27
|
-
- 填写安全公告表单
|
|
28
|
-
|
|
29
|
-
### 报告内容
|
|
30
|
-
|
|
31
|
-
请在报告中包含以下信息:
|
|
32
|
-
|
|
33
|
-
- **漏洞类型**:简要描述漏洞性质
|
|
34
|
-
- **影响范围**:受影响的组件、版本或功能
|
|
35
|
-
- **复现步骤**:详细的漏洞复现步骤
|
|
36
|
-
- **概念验证**:如有可能,提供 PoC 代码或截图
|
|
37
|
-
- **影响评估**:潜在的安全影响和风险等级
|
|
38
|
-
- **修复建议**:如有修复建议,请一并提供
|
|
39
|
-
|
|
40
|
-
### 响应时间
|
|
41
|
-
|
|
42
|
-
我们承诺按照以下时间线响应安全报告:
|
|
43
|
-
|
|
44
|
-
- **确认回复**:24 小时内
|
|
45
|
-
- **初步评估**:72 小时内
|
|
46
|
-
- **详细分析**:7 个工作日内
|
|
47
|
-
- **修复发布**:根据严重程度,1-30 天
|
|
48
|
-
|
|
49
|
-
### 漏洞严重程度
|
|
50
|
-
|
|
51
|
-
我们使用以下标准评估漏洞严重程度:
|
|
52
|
-
|
|
53
|
-
#### 严重(Critical)
|
|
54
|
-
- 远程代码执行
|
|
55
|
-
- 认证绕过
|
|
56
|
-
- 未授权访问敏感数据
|
|
57
|
-
|
|
58
|
-
#### 高危(High)
|
|
59
|
-
- 跨站脚本攻击(XSS)
|
|
60
|
-
- 权限提升
|
|
61
|
-
- 敏感数据泄露
|
|
62
|
-
|
|
63
|
-
#### 中危(Medium)
|
|
64
|
-
- 信息泄露
|
|
65
|
-
- 拒绝服务(DoS)
|
|
66
|
-
- 弱加密
|
|
67
|
-
|
|
68
|
-
#### 低危(Low)
|
|
69
|
-
- 配置问题
|
|
70
|
-
- 信息收集类漏洞
|
|
71
|
-
|
|
72
|
-
### 处理流程
|
|
73
|
-
|
|
74
|
-
1. **接收报告**:我们收到您的报告并确认
|
|
75
|
-
2. **漏洞验证**:安全团队验证漏洞的存在性和影响
|
|
76
|
-
3. **影响评估**:评估漏洞严重程度和影响范围
|
|
77
|
-
4. **修复开发**:开发并测试修复方案
|
|
78
|
-
5. **协调发布**:与报告者协调披露时间
|
|
79
|
-
6. **公开披露**:发布安全更新和公告
|
|
80
|
-
|
|
81
|
-
### 负责任披露
|
|
82
|
-
|
|
83
|
-
我们遵循负责任披露原则:
|
|
84
|
-
|
|
85
|
-
- 我们将在修复漏洞后公开披露
|
|
86
|
-
- 请在修复发布前不要公开讨论该漏洞
|
|
87
|
-
- 我们会在安全公告中适当感谢报告者(除非您希望保持匿名)
|
|
88
|
-
|
|
89
|
-
### 安全更新通知
|
|
90
|
-
|
|
91
|
-
要接收安全更新通知,请:
|
|
92
|
-
|
|
93
|
-
1. **Watch 本仓库** 并启用安全警报
|
|
94
|
-
2. **订阅 Releases** 以获取新版本通知
|
|
95
|
-
|
|
96
|
-
### 安全最佳实践
|
|
97
|
-
|
|
98
|
-
使用本项目时,我们建议遵循以下安全最佳实践:
|
|
99
|
-
|
|
100
|
-
- 始终使用最新的受支持版本
|
|
101
|
-
- 定期更新依赖
|
|
102
|
-
- 启用适当的日志记录和监控
|
|
103
|
-
- 实施最小权限原则
|
|
104
|
-
- 定期进行安全审计
|
|
105
|
-
|
|
106
|
-
### 适用范围
|
|
107
|
-
|
|
108
|
-
本安全政策适用于:
|
|
109
|
-
|
|
110
|
-
- 本 GitHub 仓库中的所有代码
|
|
111
|
-
- 官方发布版本
|
|
112
|
-
|
|
113
|
-
本安全政策不适用于:
|
|
114
|
-
|
|
115
|
-
- 第三方插件或扩展
|
|
116
|
-
- 用户配置错误
|
|
117
|
-
|
|
118
|
-
### 致谢
|
|
119
|
-
|
|
120
|
-
我们感谢以下研究人员对项目安全的贡献:
|
|
121
|
-
|
|
122
|
-
<!--
|
|
123
|
-
致谢名单将在此处更新
|
|
124
|
-
- [研究人员姓名] - 发现并报告了 [漏洞类型]
|
|
125
|
-
-->
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
**注意**:本安全政策可能会定期更新,请定期查看最新版本。
|
|
130
|
-
|
|
131
|
-
**最后更新**:2026 年 3 月
|