Skip to content

Commit 6d54fbf

Browse files
CodeCasterXclaude
andcommitted
chore(opencode): 将插件依赖声明纳入版本控制
- 精简 .opencode/.gitignore 为只忽略 node_modules/ - 将 package.json 和 bun.lock 纳入 git 跟踪 - README 补充插件安装说明和目录结构 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f3c2303 commit 6d54fbf

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

.opencode/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

.opencode/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,25 @@
22

33
本目录包含 FIT Framework 项目的 OpenCode 配置和自定义命令。
44

5+
## 🔌 插件安装
6+
7+
本项目使用 [oh-my-opencode](https://www.npmjs.com/package/@opencode-ai/plugin) 插件扩展自定义命令能力。
8+
9+
**安装依赖**(clone 项目后执行一次):
10+
11+
```bash
12+
cd .opencode && bun install
13+
```
14+
15+
> 如未安装 Bun,也可使用 `npm install``pnpm install`
16+
517
## 📁 目录结构
618

719
```
820
.opencode/
921
├── README.md # 本文件
22+
├── package.json # 插件依赖声明
23+
├── bun.lock # 依赖版本锁定
1024
└── commands/ # 自定义 Slash Commands
1125
├── analyze-issue.md
1226
├── analyze-security.md

.opencode/bun.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.opencode/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dependencies": {
3+
"@opencode-ai/plugin": "1.2.0"
4+
}
5+
}

0 commit comments

Comments
 (0)