mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-07 21:13:27 -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
15 lines
556 B
React
15 lines
556 B
React
// The entry of the GitHub add-on. Its page edits the bindings of GitHub
|
|
// tokens through the core API, with the signed-in person's own session. It
|
|
// uses the host's React, router and i18n through the stand-ins of
|
|
// addons/internal/host-compat, like the Slack add-on.
|
|
import { requireHost, setSdk } from '../../../internal/host-compat/src/runtime.js'
|
|
|
|
const NEEDS = ['ui.ConfirmDialog']
|
|
|
|
export async function createAddon(sdk) {
|
|
requireHost(sdk, NEEDS)
|
|
setSdk(sdk)
|
|
const { createGitHub } = await import('./addon.jsx')
|
|
return createGitHub(sdk)
|
|
}
|