com.cneicy.shrink-command-integration-network (0.2.5)
Published 2026-09-29 10:55:17 +08:00 by cneicy
Installation
registry=https://git.crash.work/api/packages/ShrinkSDK/npm/npm install com.cneicy.shrink-command-integration-network@0.2.5"com.cneicy.shrink-command-integration-network": "0.2.5"About this package
ShrinkCommand 与 ShrinkNetwork 的桥接层,允许远程会话通过 RPC 执行命令。
ShrinkCommand.Integration.Network
ShrinkCommand 与 ShrinkNetwork 的桥接层。
Godot 和普通 .NET 项目安装 ShrinkSDK.Command.Integration.Network;可打包源码位于 DotNet~。
能力
- 通过网络 RPC 执行命令
- 远程命令来源自动映射为
IShrinkCommandSource - 继续复用命令系统自己的权限与来源限制
接入
commandService = new ShrinkCommandService();
commandService.AutoRegisterAll();
networkService.UseCommandBridge(commandService);
客户端调用:
var response = await session.ExecuteCommandAsync("help");
可复用能力
Capability: 通过 RPC 执行命令,将远端会话映射为命令来源 Aliases: 远程命令 rpc command 控制台 Limits: 仍需校验来源和权限;不能将任意 RPC 当作管理员授权 Extension: 桥接配置与会话来源映射 Evidence: ShrinkNetworkCommandBridge
Dependencies
Dependencies
| ID | Version |
|---|---|
| com.cneicy.shrink-command | 0.4.2 |
| com.cneicy.shrink-context-core | 0.3.0 |
| com.cneicy.shrink-network | 0.4.2 |
Keywords
command
network
integration
rpc