Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license

This commit is contained in:
2026-09-05 13:26:46 +03:00
commit 03634b1ca3
11340 changed files with 3442369 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
import assert from 'node:assert/strict'
import { test } from 'vitest'
import { applyHudElectronOverlay } from './hud-overlay'
test('macOS uses the floating panel level and all-spaces visibility', () => {
const calls: string[] = []
const win = {
setAlwaysOnTop(flag: boolean, level?: string) {
calls.push(`alwaysOnTop:${flag}:${level}`)
},
setVisibleOnAllWorkspaces(visible: boolean, options?: { visibleOnFullScreen?: boolean }) {
calls.push(`allWorkspaces:${visible}:${options?.visibleOnFullScreen === true}`)
}
}
applyHudElectronOverlay(win, 'darwin')
assert.deepEqual(calls, ['alwaysOnTop:true:floating', 'allWorkspaces:true:true'])
})
test('Linux and Windows only set the screen-saver always-on-top level', () => {
for (const platform of ['linux', 'win32']) {
const calls: string[] = []
const win = {
setAlwaysOnTop(flag: boolean, level?: string) {
calls.push(`alwaysOnTop:${flag}:${level}`)
},
setVisibleOnAllWorkspaces() {
calls.push('allWorkspaces')
}
}
applyHudElectronOverlay(win, platform)
assert.deepEqual(calls, ['alwaysOnTop:true:screen-saver'])
}
})