跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

macos-setup-view.h

22 行 · 882 B历史下载
1#import <AppKit/AppKit.h>
2#import <Virtualization/Virtualization.h>
3
4NS_ASSUME_NONNULL_BEGIN
5
6// QA-only adapter for a VM the caller already owns. All calls, including the
7// authorization check, run on the AppKit main thread. A revoked session closes.
8@interface CageGuestSetupView : NSObject
9- (nullable instancetype)initWithMachine:(VZVirtualMachine *)machine
10 size:(NSSize)size
11 setupAuthorized:(BOOL (^)(void))setupAuthorized;
12- (instancetype)init NS_UNAVAILABLE;
13- (nullable NSData *)snapshotPNG;
14- (nullable NSData *)snapshotJPEG;
15- (BOOL)sendKey:(NSEvent *)event;
16// Click in the view's logical coordinates, with the origin at its top left.
17- (BOOL)clickAtX:(CGFloat)x y:(CGFloat)y;
18- (BOOL)scrollAtX:(CGFloat)x y:(CGFloat)y deltaX:(CGFloat)deltaX deltaY:(CGFloat)deltaY;
19- (void)close;
20@end
21
22NS_ASSUME_NONNULL_END