Skip to content

feat(local-integration): 新增模块本地 HTTP 总线#73

Open
liruilong wants to merge 3 commits into
BeyondtheApex:mainfrom
Codes39:codex/local-integration-bus-clean
Open

feat(local-integration): 新增模块本地 HTTP 总线#73
liruilong wants to merge 3 commits into
BeyondtheApex:mainfrom
Codes39:codex/local-integration-bus-clean

Conversation

@liruilong
Copy link
Copy Markdown

@liruilong liruilong commented May 16, 2026

摘要

  • 新增 ChillPatcher.Module.LocalIntegration 模块,提供可配置的本地 HTTP 总线,用于可信本地工具与第三方模块集成。
  • ChillPatcher.SDK 中新增 ILocalIntegrationHandler,模块程序集可以通过实现该接口注册自己的本地路由。
  • 总线只负责监听、Token 鉴权、路由匹配和把请求派发回 Unity 主线程;本 PR 不内置 AIChat、TTS、番茄钟或环境控制等具体业务端点。
  • 顺带将 SaveProfileService 中的字符串匹配改为 net472 可用的 IndexOf(..., StringComparison),确保该分支可独立构建。

验证

  • dotnet build ChillPatcher.Module.LocalIntegration\ChillPatcher.Module.LocalIntegration.csproj -c Debug -p:SteamLibraryRoot=D:\Steam

说明

  • 默认监听 127.0.0.1:18792,除非用户显式修改 Host,否则不会开放到局域网。
  • 配置 Token 后,请求需要使用 Authorization: Bearer <token>X-ChillPatcher-Token
  • 具体集成能力建议由第三方模块实现 ILocalIntegrationHandler 后自行注册,避免主仓绑定特定本地工作流。

@liruilong liruilong marked this pull request as ready for review May 16, 2026 20:50
@liruilong liruilong force-pushed the codex/local-integration-bus-clean branch 6 times, most recently from e7c6987 to e6a2321 Compare May 16, 2026 21:13
@liruilong liruilong force-pushed the codex/local-integration-bus-clean branch from e6a2321 to c784a71 Compare May 17, 2026 18:54
@liruilong liruilong changed the title feat(local-integration): 新增本地集成总线模块 feat(local-integration): 新增模块本地 HTTP 总线 May 17, 2026
@BeyondtheApex
Copy link
Copy Markdown
Owner

这是啥?

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.

2 participants