| Package | Description |
|---|---|
| io.github.easy4j.opencode | |
| io.github.easy4j.opencode.api |
| Modifier and Type | Method and Description |
|---|---|
Project |
OpenCodeClient.getCurrentProject()
通过 OpenCode Server HTTP API 获取当前项目。
|
Project |
OpenCodeClient.updateProject(String projectId,
Object body)
向 OpenCode Server 提交项目更新,并返回更新后的服务端表示。
|
| Modifier and Type | Method and Description |
|---|---|
List<Project> |
OpenCodeClient.listProjects()
通过 OpenCode Server HTTP API 查询项目;无数据时返回空集合。
|
| Modifier and Type | Method and Description |
|---|---|
Project |
OpenCodeHttpClient.getCurrentProject()
GET /project/current,获取当前项目。 |
Project |
OpenCodeHttpClient.updateProject(String projectId,
Object body)
PATCH /project/:id,更新项目(name / icon / commands 等)。 |
| Modifier and Type | Method and Description |
|---|---|
List<Project> |
OpenCodeHttpClient.listProjects()
GET /project,列出所有已知项目。 |
Copyright © 2026. All rights reserved.