35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
# Skill: eip4-env-manage
|
||
|
||
## 触发场景
|
||
|
||
- 用户要求启动、检查或切换 EIP4 环境。
|
||
- 用户要求 Agent 在本地验证功能。
|
||
- 用户要求确认当前服务是否可被 AI 自动开发链路使用。
|
||
|
||
## 操作规则
|
||
|
||
1. 确认当前目录是否是独立 worktree,避免污染用户正在做的任务。
|
||
2. 使用 JDK 21,不能使用 JDK 26。
|
||
3. 默认本地 profile:
|
||
- `local`: `http://localhost:8084`
|
||
- `dev`: `http://localhost:8093`
|
||
4. 使用 CLI 探测环境:
|
||
|
||
```bash
|
||
java -jar platform-cli/target/platform-cli-0.1.0-SNAPSHOT.jar env status --base-url http://localhost:8084
|
||
```
|
||
|
||
5. 如果服务未启动,优先使用重新打包后的 jar:
|
||
|
||
```bash
|
||
JAVA_HOME=/opt/homebrew/opt/openjdk@21 mvn -pl platform-app -am install -DskipTests
|
||
/opt/homebrew/opt/openjdk@21/bin/java -jar platform-app/target/platform-app-0.1.0-SNAPSHOT.jar --spring.profiles.active=local
|
||
```
|
||
|
||
## 禁止事项
|
||
|
||
- 不在用户原始任务目录中直接改动或启动长时间任务,除非用户明确要求。
|
||
- 不把线上环境设置为默认写入目标。
|
||
- 不跳过 JDK 版本检查。
|
||
|