Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 唯一差别是不推 nuget.org。
#
# 本仓库自 2026-09-11 起只产出一个包:VelaShell.PluginSdk.Build 搬去了
# VelaShellLabs/velashell-plugin-sdk(它与契约同版本发布才对),端到端冒烟随它一起搬走,
# VelaShell/velashell-plugin-sdk(它与契约同版本发布才对),端到端冒烟随它一起搬走,
# 打包器也在那边自带(VelaShell.PluginSdk.Packer)。本仓库因此不再有任何下游。
#
# 注意本仓库**不需要任何机密**:程序集不做强名称签名(那只开在 velashell-plugin-sdk
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
# VelaShell.Plugin.Cli dotnet tool `vela-plugin`
#
# 2026-09-11 起 **VelaShell.PluginSdk.Build 不在本仓库发**:它搬去了
# VelaShellLabs/velashell-plugin-sdk,在那边与契约包同版本、同一次发布。插件工程用的打包器
# VelaShell/velashell-plugin-sdk,在那边与契约包同版本、同一次发布。插件工程用的打包器
# 也在那边自带(VelaShell.PluginSdk.Packer,与契约同仓库、同一次构建)。
#
# 于是本仓库**没有任何下游**:vela-plugin 是面向人的工具(商店、开发内环、签名、体检),
# 发不发版与插件作者能不能 `dotnet build -t:PackVpx` 出包毫无关系。两边都过同一个
# VpxContainer(在 VelaShell.PluginSdk 里),包格式的一致性由类型保证,不靠版本号约定。
#
# **其余的包不在这里发**:
# VelaShell.PluginSdk / .Testing / .Build …… VelaShellLabs/velashell-plugin-sdk
# VelaShell.Plugin.Templates ………………… VelaShellLabs/velashell-plugin-templates
# VelaShell.PluginSdk / .Testing / .Build …… VelaShell/velashell-plugin-sdk
# VelaShell.Plugin.Templates ………………… VelaShell/velashell-plugin-templates
# 三个仓库各有各的版本号。本仓库发 1.5.3 不代表契约动了,也不要求模板跟着发。
#
# 📌 版本号:**发版前在本地落好、随功能改动一起合进 main**。
Expand All @@ -36,7 +36,7 @@
# NuGet/login 拿本次运行的 GitHub OIDC 令牌去 nuget.org 换一把**短时效**的推送密钥,
# 用完即弃。
# ⚠️ 首次发版前必须在 nuget.org 上为**本仓库**建一条可信发布策略:
# Repository owner VelaShellLabs
# Repository owner VelaShell
# Repository velashell-plugin-cli
# Workflow file release.yml
# 建法见 velashell-docs 的 zh/cli/release-process.md 的「NuGet 可信发布」一节。
Expand Down
22 changes: 11 additions & 11 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
## 一、开工前必读:velashell-docs

VelaShell 生态的**全部文档**集中在一个仓库:
**[VelaShellLabs/velashell-docs](https://github.com/VelaShellLabs/velashell-docs)**。
**[VelaShell/velashell-docs](https://github.com/VelaShell/velashell-docs)**。
本仓库**不放** `docs/`、`docs-en/` —— 设计手册、开发规范与开发文档都在那边。

**在动任何代码之前**,先把下表中与你要改的部分相关的几篇读掉。跳过这一步直接改,
结果通常是两种:与既有设计冲突,或者重复实现一个已经存在的能力。

| 位置 | 内容 |
| --- | --- |
| [`zh/host/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/zh/host) | 宿主分层架构与依赖方向、工程化重构蓝图、交互与界面规格、快捷键参考、设置项审计,以及 SFTP / FTP / Telnet / 串口 / Redis / S3 / 系统密钥链等可行性调研 |
| [`zh/plugins/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/zh/plugins) | 插件系统设计蓝图 01–15(进程模型、IPC 协议、权限系统、UI 扩展、威胁模型、路线图)与[进度总览 STATUS](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/plugins/STATUS.md) |
| [`zh/sdk/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/zh/sdk) | 插件契约 SDK 参考、SDK 仓库的发版流程 |
| [`zh/cli/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/zh/cli) | `vela-plugin` 命令行手册、CLI 仓库的发版流程 |
| [`zh/templates/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/zh/templates) | 插件开发指南、打包与发布、模板仓库的发版流程 |
| [`zh/host/`](https://github.com/VelaShell/velashell-docs/tree/main/zh/host) | 宿主分层架构与依赖方向、工程化重构蓝图、交互与界面规格、快捷键参考、设置项审计,以及 SFTP / FTP / Telnet / 串口 / Redis / S3 / 系统密钥链等可行性调研 |
| [`zh/plugins/`](https://github.com/VelaShell/velashell-docs/tree/main/zh/plugins) | 插件系统设计蓝图 01–15(进程模型、IPC 协议、权限系统、UI 扩展、威胁模型、路线图)与[进度总览 STATUS](https://github.com/VelaShell/velashell-docs/blob/main/zh/plugins/STATUS.md) |
| [`zh/sdk/`](https://github.com/VelaShell/velashell-docs/tree/main/zh/sdk) | 插件契约 SDK 参考、SDK 仓库的发版流程 |
| [`zh/cli/`](https://github.com/VelaShell/velashell-docs/tree/main/zh/cli) | `vela-plugin` 命令行手册、CLI 仓库的发版流程 |
| [`zh/templates/`](https://github.com/VelaShell/velashell-docs/tree/main/zh/templates) | 插件开发指南、打包与发布、模板仓库的发版流程 |

英文镜像在 [`en/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/en),与 `zh/` 同构。
[仓库首页](https://github.com/VelaShellLabs/velashell-docs)有按「我想做什么」组织的快速入口表。
英文镜像在 [`en/`](https://github.com/VelaShell/velashell-docs/tree/main/en),与 `zh/` 同构。
[仓库首页](https://github.com/VelaShell/velashell-docs)有按「我想做什么」组织的快速入口表。

## 二、涉及文档的改动一律同步到 velashell-docs

Expand All @@ -41,7 +41,7 @@ VelaShell 生态的**全部文档**集中在一个仓库:

产出**一个**包:`VelaShell.Plugin.Cli`(dotnet tool `vela-plugin`)。

`VelaShell.PluginSdk.Build` 已于 2026-09-11 搬去 `VelaShellLabs/velashell-plugin-sdk`
`VelaShell.PluginSdk.Build` 已于 2026-09-11 搬去 `VelaShell/velashell-plugin-sdk`
—— 它决定的是插件作者**编译时看到的那份契约**,所以属于契约仓库,在那边与契约同版本发布。
端到端冒烟(`scripts/Invoke-Smoke.ps1` + `tests/smoke/`)随它一起搬走了。

Expand Down Expand Up @@ -80,12 +80,12 @@ Avalonia 版本锁与它的构建期核对(`VELA1000` / `VELA1006`)在本仓库
脚本按 `-DocsRoot` → `$env:VELASHELL_DOCS` → 同级 `../velashell-docs` 找,找不到就跳过并警告。
**改了命令行的参数、输出或行为,必须同步改 velashell-docs 的 `cli.md`(中英各一份)。**

完整流程见 [`zh/cli/release-process.md`](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/cli/release-process.md)。
完整流程见 [`zh/cli/release-process.md`](https://github.com/VelaShell/velashell-docs/blob/main/zh/cli/release-process.md)。

### 留在本仓库的文档

`README.md`、`LICENSE`,以及 `src/**/README.md`。CLI 手册与发版流程都在 velashell-docs。

### 提交约束

- **所有提交信息与 PR 描述都不要附加 Claude Code 等 AI 工具的作者信息** —— 不加 `Co-Authored-By: Claude …` 行,也不加 `🤖 Generated with Claude Code` 之类的署名。VelaShellLabs 下所有仓库一致适用。
- **所有提交信息与 PR 描述都不要附加 Claude Code 等 AI 工具的作者信息** —— 不加 `Co-Authored-By: Claude …` 行,也不加 `🤖 Generated with Claude Code` 之类的署名。VelaShell 下所有仓库一致适用。
8 changes: 4 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
velashell-docs 的发版流程都按这个名字对接,改名只是让几处一起动一遍,换不来什么。

**VelaShell.PluginSdk.Build 不再在本仓库**(2026-09-11 起):它搬去了
VelaShellLabs/velashell-plugin-sdk,在那边与契约包同版本、同一次发布 —— 它发给插件
VelaShell/velashell-plugin-sdk,在那边与契约包同版本、同一次发布 —— 它发给插件
工程的那份契约就是那个仓库当时那一版,这正是搬过去的理由。
那边的 .Build 自带打包器(VelaShell.PluginSdk.Packer,同仓库的一个小工程,走同一个
VpxContainer),**不引用本仓库的任何东西**。所以两边没有任何耦合可言:本仓库只是
vela-plugin 这一个面向人的工具,发不发版与插件工程能不能出包毫无关系。

**与契约 SDK 解耦**(2026-08-27 拆库起):VelaShell.PluginSdk 在
VelaShellLabs/velashell-plugin-sdk,有自己的版本号。SDK 发 1.6.0 不要求本仓库跟着发;
VelaShell/velashell-plugin-sdk,有自己的版本号。SDK 发 1.6.0 不要求本仓库跟着发;
本仓库发 1.5.3 也不代表契约动了。想吃到新契约时,直接把 src/VelaShell.Plugin.Cli 里
VelaShell.PluginSdk 的 PackageReference 版本抬上来再发一版即可 —— 走 NuGet
(或合掉 Dependabot 的 PR)更新,**不要**抽成 MSBuild 属性:Version="$(...)"
Expand Down Expand Up @@ -58,9 +58,9 @@
<Authors>joesdu</Authors>
<PackagePrefix>VelaShell</PackagePrefix>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/VelaShellLabs/velashell-plugin-cli</RepositoryUrl>
<RepositoryUrl>https://github.com/VelaShell/velashell-plugin-cli</RepositoryUrl>
<PackageLicenseExpression>AGPL-3.0-only</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/VelaShellLabs/velashell-plugin-cli</PackageProjectUrl>
<PackageProjectUrl>https://github.com/VelaShell/velashell-plugin-cli</PackageProjectUrl>
<GenerateAssemblyConfigurationAttribute>True</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>True</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>True</GenerateAssemblyProductAttribute>
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| [`VelaShell.Plugin.Cli`](https://www.nuget.org/packages/VelaShell.Plugin.Cli) | `vela-plugin`(dotnet tool):从插件商店装/升/卸插件、校验清单、打 `.vpx`、签名/验签、挂载到本机宿主调试 |

> 写插件要引用的那个包是 [`VelaShell.PluginSdk.Build`](https://www.nuget.org/packages/VelaShell.PluginSdk.Build),
> 它在 [`velashell-plugin-sdk`](https://github.com/VelaShellLabs/velashell-plugin-sdk)
> 它在 [`velashell-plugin-sdk`](https://github.com/VelaShell/velashell-plugin-sdk)
> (2026-09-11 从本仓库搬过去,与契约包同版本发布)。那个包**自带打包器**,所以插件工程
> `dotnet build -t:PackVpx` 不必安装任何全局工具 —— 也就是说,它与本仓库无关。

Expand All @@ -24,10 +24,10 @@ vela-plugin update # 以后升级

包来自[插件商店](http://market.easilynet.top),落到 `~/.velashell/plugins/<id>/` ——
与宿主「插件管理页 → 安装 .vpx…」同一个目录。装之前会核对整包摘要、容器摘要、签名与宿主
兼容性;`--source` 可以指到自建商店。完整命令见 [`vela-plugin` 手册](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/cli/cli.md)。
兼容性;`--source` 可以指到自建商店。完整命令见 [`vela-plugin` 手册](https://github.com/VelaShell/velashell-docs/blob/main/zh/cli/cli.md)。

写自己的插件:见
[开发指南](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/templates/dev-guide.md)。
[开发指南](https://github.com/VelaShell/velashell-docs/blob/main/zh/templates/dev-guide.md)。

## `.Build` 为什么搬走了

Expand All @@ -49,9 +49,9 @@ SDK」这个旋钮连同它漂移的可能一并消失。2026-09-11 搬走的就

| 仓库 | 产出 | 什么时候发 |
| --- | --- | --- |
| [`velashell-plugin-sdk`](https://github.com/VelaShellLabs/velashell-plugin-sdk) | `VelaShell.PluginSdk`、`.Testing`、`.Build` | 契约有增删改时,或 MSBuild/打包逻辑变化时 |
| [`velashell-plugin-sdk`](https://github.com/VelaShell/velashell-plugin-sdk) | `VelaShell.PluginSdk`、`.Testing`、`.Build` | 契约有增删改时,或 MSBuild/打包逻辑变化时 |
| **本仓库** `velashell-plugin-cli` | `VelaShell.Plugin.Cli` | 命令行工具本身变化时 |
| [`velashell-plugin-templates`](https://github.com/VelaShellLabs/velashell-plugin-templates) | `VelaShell.Plugin.Templates` | 模板内容变化,或要把新建工程指到新版 Build 包时 |
| [`velashell-plugin-templates`](https://github.com/VelaShell/velashell-plugin-templates) | `VelaShell.Plugin.Templates` | 模板内容变化,或要把新建工程指到新版 Build 包时 |

每条依赖都是一条 NuGet **已发布包**的引用,版本写死:

Expand All @@ -69,8 +69,8 @@ velashell-plugin-templates
```

另外三个相关仓库:[joesdu/VelaShell](https://github.com/joesdu/VelaShell)(宿主主程序)、
[VelaShellLabs/velashell-plugins](https://github.com/VelaShellLabs/velashell-plugins)(第一方插件)、
[VelaShellLabs/velashell-docs](https://github.com/VelaShellLabs/velashell-docs)(**全部文档**,
[VelaShell/velashell-plugins](https://github.com/VelaShell/velashell-plugins)(第一方插件)、
[VelaShell/velashell-docs](https://github.com/VelaShell/velashell-docs)(**全部文档**,
2026-08-30 起各仓库的 `docs/` 都搬到了那里)。

## 唯一的跨仓库旋钮
Expand Down Expand Up @@ -107,20 +107,20 @@ pwsh scripts/Set-Version.ps1 1.5.1 # 落版本号(3 处),连同功能改动
# 再在 GitHub 上发 Release,标签 v1.5.1
```

完整流程见[发版流程](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/cli/release-process.md)(在文档仓库)。
完整流程见[发版流程](https://github.com/VelaShell/velashell-docs/blob/main/zh/cli/release-process.md)(在文档仓库)。

## 文档

文档不在本仓库 —— 2026-08-30 起全部集中到
**[VelaShellLabs/velashell-docs](https://github.com/VelaShellLabs/velashell-docs)**。本仓库这份在
[`zh/cli/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/zh/cli)(中文)·
[`en/cli/`](https://github.com/VelaShellLabs/velashell-docs/tree/main/en/cli)(English):
[`vela-plugin` 手册](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/cli/cli.md)与[发版流程](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/cli/release-process.md)。

隔壁还有:[开发指南](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/templates/dev-guide.md)、
[打包发布](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/templates/publishing.md)、
[SDK 参考](https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/sdk/sdk-reference.md),
以及插件系统的[架构蓝图](https://github.com/VelaShellLabs/velashell-docs/tree/main/zh/plugins)。
**[VelaShell/velashell-docs](https://github.com/VelaShell/velashell-docs)**。本仓库这份在
[`zh/cli/`](https://github.com/VelaShell/velashell-docs/tree/main/zh/cli)(中文)·
[`en/cli/`](https://github.com/VelaShell/velashell-docs/tree/main/en/cli)(English):
[`vela-plugin` 手册](https://github.com/VelaShell/velashell-docs/blob/main/zh/cli/cli.md)与[发版流程](https://github.com/VelaShell/velashell-docs/blob/main/zh/cli/release-process.md)。

隔壁还有:[开发指南](https://github.com/VelaShell/velashell-docs/blob/main/zh/templates/dev-guide.md)、
[打包发布](https://github.com/VelaShell/velashell-docs/blob/main/zh/templates/publishing.md)、
[SDK 参考](https://github.com/VelaShell/velashell-docs/blob/main/zh/sdk/sdk-reference.md),
以及插件系统的[架构蓝图](https://github.com/VelaShell/velashell-docs/tree/main/zh/plugins)。

> `scripts/Set-Version.ps1` 会顺带把 `zh|en/cli/cli.md` 的版本横幅一起改掉,前提是
> velashell-docs 就 clone 在本仓库同级目录(否则跳过并提醒,见其 `-DocsRoot`)。
Expand Down
8 changes: 4 additions & 4 deletions scripts/Set-Version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

VelaShell.Plugin.Cli dotnet tool `vela-plugin`

(VelaShell.PluginSdk.Build 已于 2026-09-11 搬去 VelaShellLabs/velashell-plugin-sdk,
(VelaShell.PluginSdk.Build 已于 2026-09-11 搬去 VelaShell/velashell-plugin-sdk,
在那边与契约包同版本发布。理由见 Directory.Build.props 的注释。)

落点三处:
Expand All @@ -18,7 +18,7 @@
en/cli/cli.md version banner ┘ 是**可选**落点,见 -DocsRoot

docs 那两处不影响功能,但它们是给人照抄的,过期版本号会被原样粘进别人的工程 ——
2026-08-30 全部文档搬到 VelaShellLabs/velashell-docs 之后,它们不在本仓库的
2026-08-30 全部文档搬到 VelaShell/velashell-docs 之后,它们不在本仓库的
checkout 里,所以找不到就跳过。

**注意本脚本不碰 VelaShell.PluginSdk 的引用版本。** 那是"打包器自己拿哪一版契约去读
Expand Down Expand Up @@ -75,7 +75,7 @@ if ($Version -notmatch '^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?$') {
$root = Split-Path -Parent $PSScriptRoot

# ── velashell-docs 的位置 ────────────────────────────────────────────────────
# 2026-08-30 起全部文档搬到 VelaShellLabs/velashell-docs,版本横幅跟着走了。那是另一个
# 2026-08-30 起全部文档搬到 VelaShell/velashell-docs,版本横幅跟着走了。那是另一个
# 仓库,发版 runner 的 checkout 里没有它 —— 所以文档落点是**可选**的:本地开发时两个仓库
# 通常并排放着,找得到就一起改;找不到就在末尾提醒一句,不让流水线因为缺个兄弟仓库而红。
if (-not $DocsRoot) {
Expand Down Expand Up @@ -150,7 +150,7 @@ if ($skippedDocs.Count -gt 0) {
Write-Warning @"
没找到 velashell-docs(试过 $DocsRoot),跳过了这几处文档里的版本横幅:
$($skippedDocs -join [Environment]::NewLine)
文档在 https://github.com/VelaShellLabs/velashell-docs —— 把它 clone 到本仓库同级目录,
文档在 https://github.com/VelaShell/velashell-docs —— 把它 clone 到本仓库同级目录,
或用 -DocsRoot / `$env:VELASHELL_DOCS 指过去,再跑一次即可一并更新。
"@
}
Expand Down
6 changes: 3 additions & 3 deletions src/VelaShell.Plugin.Cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ vela-plugin dev init # 生成 IDE 启动配置(读 ~/.velashell/host.json
`dotnet build -t:PackVpx` 直接出包(两边走同一套 `.vpx` 容器实现,包格式完全一致)。
装全局工具是为了开发内环、体检、签名与包检查。

- 命令行手册:<https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/cli/cli.md>
- 插件开发指南:<https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/templates/dev-guide.md>
- 打包与发布:<https://github.com/VelaShellLabs/velashell-docs/blob/main/zh/templates/publishing.md>
- 命令行手册:<https://github.com/VelaShell/velashell-docs/blob/main/zh/cli/cli.md>
- 插件开发指南:<https://github.com/VelaShell/velashell-docs/blob/main/zh/templates/dev-guide.md>
- 打包与发布:<https://github.com/VelaShell/velashell-docs/blob/main/zh/templates/publishing.md>
- 插件商店:<http://market.easilynet.top>
2 changes: 1 addition & 1 deletion tests/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<!-- 测试框架。本目录只剩契约测试(.vpx 容器格式与 plugin.json 清单解析),
它不碰 Avalonia、不碰任何插件的第三方依赖,所以这里也就只有这四条。
插件自己的单元测试连同插件一起搬去了 VelaShellLabs/velashell-plugins,
插件自己的单元测试连同插件一起搬去了 VelaShell/velashell-plugins,
Avalonia / AWSSDK.S3 / NSubstitute 那几条随之搬走。 -->
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageVersion Include="MSTest.TestAdapter" Version="4.5.3" />
Expand Down