chore: align SDK dependencies and document reusable capabilities

This commit is contained in:
2026-09-29 10:14:39 +08:00
parent 4b621a0ca2
commit 6db3be8a0a
3 changed files with 19 additions and 9 deletions
@@ -5,16 +5,16 @@
<AssemblyName>ShrinkCommand.Integration.App</AssemblyName> <AssemblyName>ShrinkCommand.Integration.App</AssemblyName>
<RootNamespace>ShrinkCommand.Integration.App</RootNamespace> <RootNamespace>ShrinkCommand.Integration.App</RootNamespace>
<PackageId>ShrinkSDK.Command.Integration.App</PackageId> <PackageId>ShrinkSDK.Command.Integration.App</PackageId>
<Version>0.2.0</Version> <Version>0.2.5</Version>
<Description>ShrinkCommand and App host integration.</Description> <Description>ShrinkCommand and App host integration.</Description>
<ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled> <ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Runtime\*.cs" /> <Compile Include="..\Runtime\*.cs" />
<PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.1.0" /> <PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.1.0" />
<PackageReference Include="ShrinkSDK.Context.Core" Version="0.2.0" /> <PackageReference Include="ShrinkSDK.Context.Core" Version="0.3.0" />
<PackageReference Include="ShrinkSDK.App.Core" Version="0.2.0" /> <PackageReference Include="ShrinkSDK.App.Core" Version="0.2.3" />
<PackageReference Include="ShrinkSDK.Command" Version="0.3.0" /> <PackageReference Include="ShrinkSDK.Command" Version="0.4.2" />
<PackageReference Include="ShrinkSDK.CodeGen" Version="0.1.0" PrivateAssets="compile;runtime;contentfiles;native" /> <PackageReference Include="ShrinkSDK.CodeGen" Version="0.2.0" PrivateAssets="compile;runtime;contentfiles;native" />
</ItemGroup> </ItemGroup>
</Project> </Project>
+10
View File
@@ -23,3 +23,13 @@ var result = await command.ExecuteAsync(source, "help");
- 本包不改变 `ShrinkCommand` 的原有 API。 - 本包不改变 `ShrinkCommand` 的原有 API。
- 静态命令的默认注册仍由 `ShrinkCommandRuntime.Default` 完成。 - 静态命令的默认注册仍由 `ShrinkCommandRuntime.Default` 完成。
- 运行时实例命令仍然走 `RegisterCommands(object target)`。 - 运行时实例命令仍然走 `RegisterCommands(object target)`。
## 可复用能力
<!-- shrink:capabilities -->
Capability: 把命令服务作为 Context 组件和应用服务门面提供
Aliases: 命令宿主 command app
Limits: 退役撤回门面;业务命令仍由 Command 实现
Extension: shrink.service.command 和原生组件
Evidence: [ShrinkCommandAppComponent](Runtime/ShrinkCommandAppComponent.cs)
<!-- /shrink:capabilities -->
+4 -4
View File
@@ -1,14 +1,14 @@
{ {
"name": "com.cneicy.shrink-command-integration-app", "name": "com.cneicy.shrink-command-integration-app",
"version": "0.2.0", "version": "0.2.5",
"displayName": "ShrinkCommand - App Integration", "displayName": "ShrinkCommand - App Integration",
"description": "ShrinkCommand 与 ShrinkApp 的桥接层,把默认命令服务纳入统一宿主服务容器。", "description": "ShrinkCommand 与 ShrinkApp 的桥接层,把默认命令服务纳入统一宿主服务容器。",
"unity": "2022.3", "unity": "2022.3",
"dependencies": { "dependencies": {
"com.cneicy.shrink-command": "0.3.0", "com.cneicy.shrink-command": "0.4.2",
"com.cneicy.shrink-app-core": "0.2.0", "com.cneicy.shrink-app-core": "0.2.3",
"com.cysharp.unitask": "2.5.10", "com.cysharp.unitask": "2.5.10",
"com.cneicy.shrink-context-core": "0.2.0" "com.cneicy.shrink-context-core": "0.3.0"
}, },
"keywords": [ "keywords": [
"command", "command",