mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
Add the GitHub connection page (fine-grained token, repository list, read-only note, Test that checks each listed repository), let the shared connector page hide messaging settings for a kind that carries no messages, register the add-on in the package matrix and the catalog, and document the credential slot and the GitHub add-on. Assisted-by: Claude:claude-sonnet-5-5 [go node]
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) })
|
|
}
|