mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-19 23:42:03 +08:00
24 lines
1009 B
TypeScript
24 lines
1009 B
TypeScript
import type { SemanticApp, SemanticAppState, SemanticToolInput } from '@/modules/computer-use/semantics/semantic-types.js';
|
|
|
|
export type SemanticAdapterCapabilities = {
|
|
platform: NodeJS.Platform;
|
|
appDiscovery: boolean;
|
|
accessibilityTree: boolean;
|
|
nativeElementActions: boolean;
|
|
nativeValueSetting: boolean;
|
|
targetedInput: boolean;
|
|
};
|
|
|
|
export type SemanticAdapter = {
|
|
capabilities(): SemanticAdapterCapabilities;
|
|
listApps(): Promise<SemanticApp[]>;
|
|
getAppState(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
clickElement(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
performSecondaryAction(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
setValue(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
typeText(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
pressKey(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
scrollElement(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
drag(input: SemanticToolInput): Promise<SemanticAppState>;
|
|
};
|