chore: align SDK dependencies and document reusable capabilities

This commit is contained in:
2026-09-29 10:14:39 +08:00
parent 2880c25888
commit a608404c72
3 changed files with 19 additions and 9 deletions
@@ -5,16 +5,16 @@
<AssemblyName>ShrinkCommand.Integration.EventBus</AssemblyName> <AssemblyName>ShrinkCommand.Integration.EventBus</AssemblyName>
<RootNamespace>ShrinkCommand.Integration</RootNamespace> <RootNamespace>ShrinkCommand.Integration</RootNamespace>
<PackageId>ShrinkSDK.Command.Integration.EventBus</PackageId> <PackageId>ShrinkSDK.Command.Integration.EventBus</PackageId>
<Version>0.2.0</Version> <Version>0.2.5</Version>
<Description>ShrinkCommand and EventBus integration.</Description> <Description>ShrinkCommand and EventBus integration.</Description>
<ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled> <ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\*.cs" /> <Compile Include="..\*.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.EventBus" Version="2.1.0" /> <PackageReference Include="ShrinkSDK.EventBus" Version="2.2.2" />
<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
@@ -37,3 +37,13 @@ service.UseEventBusBridge(new ShrinkCommandEventBusBridgeOptions
```csharp ```csharp
var result = await ShrinkCommandEventBusBridge.RequestCommandAsync("help", source); var result = await ShrinkCommandEventBusBridge.RequestCommandAsync("help", source);
``` ```
## 可复用能力
<!-- shrink:capabilities -->
Capability: 通过事件请求执行命令并发布结果
Aliases: 命令事件 结果反馈 command event
Limits: 命令权限仍由 Command 校验;桥不增加新命令
Extension: 请求事件和桥接生命周期
Evidence: [ShrinkCommandEventBusBridge](ShrinkCommandEventBusBridge.cs)
<!-- /shrink:capabilities -->
+4 -4
View File
@@ -1,13 +1,13 @@
{ {
"name": "com.cneicy.shrink-command-integration-eventbus", "name": "com.cneicy.shrink-command-integration-eventbus",
"version": "0.2.0", "version": "0.2.5",
"displayName": "ShrinkCommand - EventBus Integration", "displayName": "ShrinkCommand - EventBus Integration",
"description": "ShrinkCommand 与 ShrinkEventBus 的桥接层,支持事件请求执行命令,以及命令执行生命周期事件发布。", "description": "ShrinkCommand 与 ShrinkEventBus 的桥接层,支持事件请求执行命令,以及命令执行生命周期事件发布。",
"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-context-core": "0.2.0", "com.cneicy.shrink-context-core": "0.3.0",
"com.cneicy.shrink-eventbus": "2.1.0" "com.cneicy.shrink-eventbus": "2.2.2"
}, },
"keywords": [ "keywords": [
"command", "command",