Skip to content

refactor!: 跟契约的模型包改名到 Hosihikari.Plugin.Models - #42

Merged
residua1 merged 4 commits into
mainfrom
rename/plugin-models
Nov 19, 2026
Merged

residua1 merged 4 commits into
mainfrom
rename/plugin-models

Conversation

@residua1

Copy link
Copy Markdown
Contributor

配合 #25。包名与程序集名都变成复数,引用与硬钉([2.0.1])跟着改;host/Program.cs 的注释同步指向新文件名。

宿主断言 98/98(A63 的基地清单已显示 Hosihikari.Plugin.Models.dll)。

依赖 #25 先合。

包与程序集名都变了,引用与硬钉([2.0.1])跟着改。
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T05:19:14.527233Z 691883e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0e372a1efc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/Build/smoke.sh
Comment on lines +13 to 14
dotnet pack "$contract/model/Hosihikari.Plugin.Models.csproj" -c Release -o "$work/packages" --nologo
dotnet pack "$contract/src/Hosihikari.Plugin.Abstractions.csproj" -c Release -o "$work/packages" --nologo

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the smoke plugin's exact contract version

With the corresponding 2.0.1 contract checkout and a fresh NuGet cache, this script packs the new contract packages into its temporary feed, but the generated TestPlugin.csproj still requires Hosihikari.Plugin.Abstractions version [2.0.0] at line 55. Its package-source mapping restricts that package to the temporary local feed, which contains only 2.0.1, so restore fails before the packaging assertions run. This breaks the smoke step in .github/workflows/verify.yml; update the generated project's exact reference to [2.0.1] alongside the package rename.

Useful? React with 👍 / 👎.

上一版改 csproj 时漏了 smoke.sh 里 heredoc 生成的那一份。
它模拟的是插件作者,跨仓依赖写 [2.0.0,3.0.0)。精确钉在本机可以,但会让
文档里推荐的写法与冒烟不一致。
2.0.0 依赖一个不存在的单数包。NuGet 对范围取最低满足版本,下界留在
2.0.0 就会选中坏包——本机实测把 2.0.0 放进本地源,[2.0.0,3.0.0) 解析出的
就是 2.0.0,随即报找不到 Hosihikari.Plugin.Model。跨仓范围与同仓夹具一起
改成 [2.0.1,3.0.0) / [2.0.1]。
@residua1
residua1 merged commit 702ec3e into main Nov 19, 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.

2 participants