feat: add ArkTS shell code skeleton placeholders

This commit is contained in:
OpenClaw committed 2026-03-09 14:16:11 +08:00
1 parent 339756c1aa
commit f8f18f185e
32 files changed
+561

No files matched your search

@@ -0,0 +1,13 @@
export interface NativeInstalledAppDTO {
appId: string
name: string
icon?: string
version?: string
runnable: boolean
}
export class NativeAppAdapter {
async listInstalledApps(): Promise<NativeInstalledAppDTO[]> {
return []
}
}
@@ -0,0 +1,21 @@
export interface NativePackagePreviewDTO {
name: string
version?: string
icon?: string
size?: number
valid: boolean
}
export class NativeImportAdapter {
async pickFile(): Promise<string | null> {
return null
}
async inspectPackage(_fileUri: string): Promise<NativePackagePreviewDTO> {
return { name: '', valid: false }
}
async importPackage(_fileUri: string): Promise<{ appId: string }> {
return { appId: '' }
}
}
@@ -0,0 +1,7 @@
export class NativeRuntimeAdapter {
async startSession(_appId: string): Promise<void> {}
async restartSession(_appId: string): Promise<void> {}
async stopSession(): Promise<void> {}
async notifyPageShow(): Promise<void> {}
async notifyPageHide(): Promise<void> {}
}