ShrinkSDK

Public Unity SDK packages and workspace. yeah, almost AI slop. ;)

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
Details
npm
2026-09-29 10:55:17 +08:00
2
cneicy
latest
6.7 KiB
Assets (1)
Versions (4) View all
0.2.5 2026-09-29
0.2.0 2026-09-05
0.1.1 2026-08-26
0.1.0 2026-08-26