mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
The previous commit was made on a stale base and so reverted work that landed on master before it. This commit puts every file back to the state of its parent's parent. The permission enforcement of the previous commit stays. Assisted-by: Claude:claude-sonnet-5-5 go
16 lines
680 B
JavaScript
16 lines
680 B
JavaScript
import { fileURLToPath } from 'node:url'
|
|
import { dirname, resolve } from 'node:path'
|
|
import { buildAddonUI } from '../../internal/uibuild/uibuild.mjs'
|
|
|
|
const here = dirname(fileURLToPath(import.meta.url))
|
|
|
|
export async function build() {
|
|
// The page keeps the host module names it was written with; the compat
|
|
// directory answers them through the SDK (addons/internal/host-compat).
|
|
return buildAddonUI({ root: here, name: 'github', rgb: [36, 41, 47], compat: resolve(here, '../../internal/host-compat/src') })
|
|
}
|
|
|
|
if (process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
build().then((dir) => console.log(`built ${dir}`), (e) => { console.error(e); process.exit(1) })
|
|
}
|