Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro2
Commits
7af8dcc4
Commit
7af8dcc4
authored
Feb 20, 2026
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agents
parent
abab0169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
AGENTS.md
AGENTS.md
+2
-0
No files found.
AGENTS.md
View file @
7af8dcc4
...
...
@@ -18,6 +18,8 @@
-
禁止直接引用具体文件:不要使用
`'../room/room'`
`'../client/client'`
这样的路径
-
如果正在写的算法代码与 this 和业务无关,那么不要放在类方法里面,而是在 utility 目录新开一个 ts 文件放进去
-
如果正在移植 srvpro 的功能,那么 i18n 必须严格和 srvpro 保持一致,不能改动 i18n 的 key 和 value。新功能或者原有功能的额外部分可以写新的。
-
禁止在 constructor 注册 Koishi 指令或者 middleware。请在 async init() 里面注册。
-
async init() 不需要加重复调用护栏。这在 nfkit 里面保证了只调用 1 次。
## 模块结构
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment