Compare commits
3
Commits
v0.2.0
...
538518c2e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
538518c2e8
|
||
|
|
fc6600fe9e
|
||
|
|
82c0833a11
|
No files matched your search
@@ -63,7 +63,8 @@ jobs:
|
||||
const release = metadata.releases.find(item => item.sdk?.version === sdkVersion);
|
||||
const file = release?.sdk?.files?.find(item => item.rid === 'linux-x64' && item.name.endsWith('.tar.gz'));
|
||||
if (!file) throw new Error(`Linux x64 SDK archive not found for ${sdkVersion}`);
|
||||
const archiveResponse = await fetch(file.url);
|
||||
const archiveUrl = `https://dotnetcli.blob.core.windows.net/dotnet/Sdk/${sdkVersion}/dotnet-sdk-${sdkVersion}-linux-x64.tar.gz`;
|
||||
const archiveResponse = await fetch(archiveUrl);
|
||||
if (!archiveResponse.ok) throw new Error(`SDK download failed: ${archiveResponse.status}`);
|
||||
await writeFile('/tmp/dotnet-sdk.tar.gz', new Uint8Array(await archiveResponse.arrayBuffer()));
|
||||
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
<AssemblyName>ShrinkCommand.Integration.EventBus</AssemblyName>
|
||||
<RootNamespace>ShrinkCommand.Integration</RootNamespace>
|
||||
<PackageId>ShrinkSDK.Command.Integration.EventBus</PackageId>
|
||||
<Version>0.2.0</Version>
|
||||
<Version>0.2.6</Version>
|
||||
<Description>ShrinkCommand and EventBus integration.</Description>
|
||||
<ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\*.cs" />
|
||||
<PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.1.0" />
|
||||
<PackageReference Include="ShrinkSDK.Context.Core" Version="0.2.0" />
|
||||
<PackageReference Include="ShrinkSDK.EventBus" Version="2.1.0" />
|
||||
<PackageReference Include="ShrinkSDK.Command" Version="0.3.0" />
|
||||
<PackageReference Include="ShrinkSDK.CodeGen" Version="0.1.0" PrivateAssets="compile;runtime;contentfiles;native" />
|
||||
<PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.2.0" />
|
||||
<PackageReference Include="ShrinkSDK.Context.Core" Version="0.3.1" />
|
||||
<PackageReference Include="ShrinkSDK.EventBus" Version="2.3.1" />
|
||||
<PackageReference Include="ShrinkSDK.Command" Version="0.4.3" />
|
||||
<PackageReference Include="ShrinkSDK.CodeGen" Version="0.2.0" PrivateAssets="compile;runtime;contentfiles;native" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -37,3 +37,13 @@ service.UseEventBusBridge(new ShrinkCommandEventBusBridgeOptions
|
||||
```csharp
|
||||
var result = await ShrinkCommandEventBusBridge.RequestCommandAsync("help", source);
|
||||
```
|
||||
|
||||
## 可复用能力
|
||||
|
||||
<!-- shrink:capabilities -->
|
||||
Capability: 通过事件请求执行命令并发布结果
|
||||
Aliases: 命令事件 结果反馈 command event
|
||||
Limits: 命令权限仍由 Command 校验;桥不增加新命令
|
||||
Extension: 请求事件和桥接生命周期
|
||||
Evidence: [ShrinkCommandEventBusBridge](ShrinkCommandEventBusBridge.cs)
|
||||
<!-- /shrink:capabilities -->
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "com.cneicy.shrink-command-integration-eventbus",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.6",
|
||||
"displayName": "ShrinkCommand - EventBus Integration",
|
||||
"description": "ShrinkCommand 与 ShrinkEventBus 的桥接层,支持事件请求执行命令,以及命令执行生命周期事件发布。",
|
||||
"unity": "2022.3",
|
||||
"dependencies": {
|
||||
"com.cneicy.shrink-command": "0.3.0",
|
||||
"com.cneicy.shrink-context-core": "0.2.0",
|
||||
"com.cneicy.shrink-eventbus": "2.1.0"
|
||||
"com.cneicy.shrink-command": "0.4.3",
|
||||
"com.cneicy.shrink-context-core": "0.3.1",
|
||||
"com.cneicy.shrink-eventbus": "2.3.1"
|
||||
},
|
||||
"keywords": [
|
||||
"command",
|
||||
|
||||
Reference in new issue
Block a user