com.cneicy.shrink-command-integration-network (0.1.0)
Published 2026-08-26 03:04:03 +08:00 by cneicy
Installation
registry=https://git.crash.work/api/packages/ShrinkSDK/npm/npm install com.cneicy.shrink-command-integration-network@0.1.0"com.cneicy.shrink-command-integration-network": "0.1.0"About this package
ShrinkCommand 与 ShrinkNetwork 的桥接层,允许远程会话通过 RPC 执行命令。
ShrinkCommand.Integration.Network
ShrinkCommand 与 ShrinkNetwork 的桥接层。
能力
- 通过网络 RPC 执行命令
- 远程命令来源自动映射为
IShrinkCommandSource - 继续复用命令系统自己的权限与来源限制
接入
commandService = new ShrinkCommandService();
commandService.AutoRegisterAll();
networkService.UseCommandBridge(commandService);
客户端调用:
var response = await session.ExecuteCommandAsync("help");
Dependencies
Dependencies
| ID | Version |
|---|---|
| com.cneicy.shrink-command | 0.2.0 |
| com.cneicy.shrink-context-core | 0.1.0 |
| com.cneicy.shrink-network | 0.2.0 |
Keywords
command
network
integration
rpc
Details
2026-08-26 03:04:03 +08:00
Assets (1)
Versions (3)
View all
npm
13
cneicy
6.4 KiB