Skip to content

Sync plugin logging contract - #18

Merged
xiaoyumuxi merged 1 commit into
mainfrom
codex/sync-plugin-logging-contract
Nov 4, 2026
Merged

xiaoyumuxi merged 1 commit into
mainfrom
codex/sync-plugin-logging-contract

Conversation

@xiaoyumuxi

Copy link
Copy Markdown
Contributor

概要

把 Lithe preview 合并提交 7a24126eca3a26775daeb84db38ae04bec938d1a(1lck/Lithe-IDEA#1699,插件与调试适配器接入结构化日志 v2)的插件契约同步到 contract/v1,让插件开发者文档和已合并的 Rust Core 契约保持逐字节一致。

改动

  • contract/v1/README.md:新增 “Structured plugin diagnostics (logging protocol 1)” 一节,内容包括:
    • 插件在 initialize 的 experimental.litheLogging 中协商版本 1;
    • lithe/log 只接受 operationFinished / operationFailed / degraded / recovered 四种事实,以及允许的字段;
    • operation 可取的名称,包括 lithe/keymap/import;
    • 每会话限流,以及 Core 如何处理不合法的事实。
  • 新增 fixture contract/v1/fixtures/plugin-logging.json。
  • contract.lock.json 固定到上述 preview 提交,共 79 个文件。

本 PR 合入后,再合入 SDK PR #17(三种 SDK 接入 litheLogging 1)。

验证

  • node scripts/contract.mjs sync --revision 7a24126eca3a26775daeb84db38ae04bec938d1a --checkout <Lithe checkout>
  • node scripts/contract.mjs verify --upstream(79 个文件通过)
  • node scripts/contract.mjs drift --ref preview:无漂移
  • node --test scripts/*.test.mjs(16/16 通过)
  • git diff --check

@xiaoyumuxi
xiaoyumuxi marked this pull request as ready for review November 4, 2026 04:31
@xiaoyumuxi
xiaoyumuxi merged commit 61c25cc into main Nov 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant