Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,26 @@ GRADLE=/path/to/gradle node scripts/test.mjs
[插件契约](https://github.com/Lithe-IDEA/lithe-plugin-docs/blob/main/contract/v1/README.md)
和[构建工具接入指南](https://github.com/Lithe-IDEA/lithe-plugin-docs/blob/main/guides/build-tool-integration.md)。

## 诊断日志

此插件只声明 Gradle 命令及模型导出脚本,没有独立的常驻后端或日志 writer。
启用结构化日志 v2 的 Lithe macOS preview 由宿主将构建、运行与测试的进程终态、退出码和耗时
记录到当前会话的 `run` 通道;Gradle 的编译输出和测试报告继续留在 Build Output 与测试界面。
模型与依赖树 JSON 是工作流数据,不是日志,仍通过宿主提供的临时输出文件返回。

模型导出和依赖树命令同样由宿主执行。宿主替插件把每次执行记成与 SDK 插件同一组的操作事实,写入
`plugins/io.github.lithe-idea.gradle-build/host` 通道,操作名为 `lithe/build/model` 和
`lithe/build/dependencies`(与由插件后端提供时的请求名相同):结果成功解码记
`plugins.operation.finished`(INFO,含耗时);失败记 `plugins.operation.failed`(ERROR),失败码只取自
执行阶段——`host.planFailed`(无法生成命令计划)、`host.executableUnavailable`(无法解析 Gradle 或
wrapper)、`host.launchFailed`(进程拉起失败)、`host.timedOut`(超时)、`host.commandFailed`(命令失败
退出)、`host.outputInvalid`(输出文件无法解码)。取消和被新请求取代的结果不记录;事实不含 Gradle 输出、
路径或命令行。插件不需要任何日志代码,宿主实现见 https://github.com/1lck/Lithe-IDEA/pull/1720。

排障时使用 Lithe 的独立日志窗口和诊断导出。不启用 Gradle `--debug` 来复制环境、凭据、
完整命令行或构建正文,也不将 Gradle User Home、daemon 状态或输出文件迁入日志目录。
Windows 的日志实现仍为 v1;本文没有声明 Windows 已完成 v2 验收。

## 发布新版本

1. 修改 `plugin.json` 的 `version`(例如 `0.2.0`),合入 `main`。
Expand Down
Loading